maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
[gnulib.git] / ChangeLog
1 2012-07-09  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4         Bugs in both of those conspired to make the
5         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
6         _sc_search_regexp's handling of non-empty $in_files would filter
7         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
8         choice of in_files value meant there would be no match in most
9         projects, due to the presence of two or more Makefile.in files.
10         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
11         Fix a bug in how a non-empty $$in_files was processed:
12         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
13         in spite of the name, it's a regexp, not a list of file names.
14
15 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16
17         getloadavg, getopt: fix commentary re configure.in
18         Autoconf is deprecating the name 'configure.in', so change it to
19         to the new name 'configure.ac' in a couple of places.
20         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
21         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
23         Emacs has renamed it to configure.ac, and it no longer refers
24         to these macros anyway.
25
26         timespec: mark functions with const attributes
27         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
28         Mark with _GL_ATTRIBUTE_CONST.
29
30 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
31
32         canonicalize[-lgpl]: handle "guessing" values when cross-building
33         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
35         matches "*yes" instead of just "yes".  Regression introduced in commit
36         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37
38 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
39             Bruno Haible  <bruno@clisp.org>
40
41         canonicalize: make the right guess when cross-compiling to GNU
42         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
43         determine whether cross-compiling to glibc systems, so as to
44         include GNU/Hurd.
45
46 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47
48         timespec-sub: avoid duplicate include
49         * lib/timespec-sub.c: Do not include <config.h> twice.
50         Reported by Juanma Barranquero.
51
52 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
53
54         bootstrap: use a more consistent error reporting scheme
55         * build-aux/bootstrap (warn, die): New.
56         Use them.
57
58 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59
60         sys_time: allow too-wide tv_sec
61         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
62         timeval even if tv_sec is wider than time_t.  This allows
63         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
64         as without this patch gnulib replaces struct timeval
65         and OpenBSD futimes therefore has a type mismatch.
66         * doc/posix-headers/sys_time.texi: Mention this.
67
68         pthread: check for both pthread_create and pthread_join
69         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
70         alter the check so that it tests for both pthread_create and
71         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
72         Suggested by Bruno Haible and Richard Yao in
73         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
74
75         parse-datetime: doc tuneup
76         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
77         spacing issues.
78
79 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
80
81         do-release-commit-and-tag: fix the previous commit
82         * build-aux/do-release-commit-and-tag: Actually the test was right,
83         but the comment and the error message were misleading.
84         Fix comment, and improve error message.
85         Perform check first, so that NEWS is not modified uselessly.
86
87         do-release-commit-and-tag: fix typo
88         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
89         _not_ start with a stub.
90
91 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
92
93         pthread: check for pthread_create, not pthread_join
94         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
95         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
96         pthread_join in libc.  I hope this removes the need for all the
97         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
98         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
99
100 2012-07-04  Jim Meyering  <meyering@redhat.com>
101
102         parse-datetime: fix failure to diagnose invalid input
103         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
104         rather than diagnosing the invalid input.  Now it reports this:
105         date: invalid date '\260'
106         * lib/parse-datetime.y (to_uchar): Define.
107         (yylex): Don't sign-extend "other" bytes.
108         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
109         Thanks to Bruno Haible for the patch to this file.
110         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
111         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
112
113 2012-07-03  Jim Meyering  <meyering@redhat.com>
114
115         bootstrap: do not require now-removed build-aux/missing
116         Now that build-aux/missing is, er, missing, bootstrap would
117         silently fail.
118         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
119         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
120         no longer part of gnulib.
121         Diagnose the failure.
122
123 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
124
125         alloca: add support for HP NonStop TNS/E native
126         * lib/alloca.in.h (alloca): Support the new host.
127         From a suggestion by Joachim Schmitz in
128         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
129
130 2012-07-02  Pádraig Brady  <P@draigBrady.com>
131
132         fsusage: remove code not needed on non GNU/Linux systems.
133
134         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
135         Don't include headers no longer needed in this case.
136         * lib/fsusage.c [STAT_STATVFS &&
137         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
138         STAT_STATFS2_FRSIZE to exclude code not used in this case.
139
140 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
141
142         fsusage: include files needed for glibc 2.6 fallback
143         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
144         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
145         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
146         Problem reported by Ludovic Courtès in
147         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
148
149         fsusage: avoid needless check on GNU/Linux
150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
151         on GNU/Linux systems, since it can't possibly work.
152
153 2012-07-01  Bruno Haible  <bruno@clisp.org>
154
155         log: Fix an autoconf >= 2.64 warning.
156         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
157         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
158
159 2012-06-28  Bruno Haible  <bruno@clisp.org>
160
161         log10f: Fix possible configuration problem.
162         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
163         $LOGF_LIBM.
164         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
165
166 2012-06-28  Bruno Haible  <bruno@clisp.org>
167
168         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
169         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
170         not gl_cv_func_unlink_works.
171         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
172
173 2012-06-27  Eric Blake  <eblake@redhat.com>
174
175         config: drop scripts that automake says are not independent
176         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
177         * build-aux/elisp-comp: Delete.
178         * build-aux/missing: Likewise.
179         * build-aux/ylwrap: Likewise.
180         * modules/elisp-comp: Likewise.
181         * MODULES.html.sh: Drop mention of elisp-comp.
182         * NEWS: Mention this.
183
184 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
185
186         root-uid: new module
187         This is for portability to Tandem's NonStop Kernel.
188         * lib/root-uid.h, modules/root-uid: New files.
189         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
190         * lib/write-any-file.c, tests/test-sethostname2.c:
191         Include "root-uid.h".
192         * lib/euidaccess.c (euidaccess):
193         * lib/pt_chown.c (main):
194         * lib/unlinkdir.c (cannot_unlink_dir):
195         * lib/write-any-file.c (can_write_any_file):
196         * m4/mknod.m4 (gl_FUNC_MKNOD):
197         * tests/test-sethostname2.c (geteuid, main):
198         Don't assume ROOT_UID == 0.
199         * modules/euidaccess (Depends-on):
200         * modules/pt_chown (Depends-on):
201         * modules/sethostname-tests (Depends-on):
202         * modules/unlinkdir (Depends-on):
203         * modules/write-any-file (Depends-on):
204         Add root-uid.
205
206         regex: use locale-independent comparison for codeset name
207         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
208         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
209         for codeset name.
210         * lib/regex_internal.h: Do not include <strings.h>, since we
211         no longer use strcasecmp.
212         * modules/regex (Depends-on): Remove strcase.
213
214 2012-06-23  Bruno Haible  <bruno@clisp.org>
215
216         getopt-posix: No longer guarantee that option processing is resettable.
217         * doc/posix-functions/getopt.texi: Drop description of problem with
218         internal state. Fix info about mingw and msvc9.
219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
220         option processing by getopt(). Run three test programs instead of one.
221         Simplify cross-compilation guess.
222         * NEWS: Mention the change.
223         Reported by Rich Felker <dalias@aerifal.cx>.
224
225 2012-06-26  Bruno Haible  <bruno@clisp.org>
226
227         argp, regex: Ensure strcasecmp gets declared.
228         * lib/argp-help.c: Include <strings.h>.
229         * lib/regex_internal.h: Likewise.
230         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
231
232 2012-06-24  Bruno Haible  <bruno@clisp.org>
233
234         ptsname_r: Make it consistent with ptsname on AIX.
235         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
236         implementation as for OSF/1.
237         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
238         a pty master.
239
240         ptsname_r: Make it consistent with ptsname on OSF/1.
241         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
242         OSF/1.
243
244 2012-06-24  Bruno Haible  <bruno@clisp.org>
245
246         ttyname_r: Fix result on OSF/1, Solaris.
247         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
248
249 2012-06-24  Bruno Haible  <bruno@clisp.org>
250
251         ptsname_r: Add support for Solaris.
252         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
253         Solaris.
254
255         ptsname_r: Fix test failure on native Windows.
256         * modules/ptsname_r (Depends-on): Add isatty.
257
258         ptsname_r: Fix test failures on IRIX, Solaris.
259         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
260         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
261         accordingly.
262         * lib/ptsname_r.c: Include <fcntl.h>.
263         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
264         set errno if fd is invalid.
265         * tests/test-isatty.c (main): Update comments.
266
267 2012-06-24  Bruno Haible  <bruno@clisp.org>
268
269         ptsname test: Extend test.
270         * tests/test-ptsname.c: Include <errno.h>.
271         (main): Test behaviour with invalid file descriptor.
272
273 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
274
275         time: fix obsolete comment
276         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
277         reference to HAVE_STRUCT_TIMESPEC in comment.
278
279 2012-06-23  Bruno Haible  <bruno@clisp.org>
280
281         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
283         does not handle abbreviated long options with equivalent
284         disambiguations, set gl_replace_getopt to yes.
285         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
286
287 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
288
289         time_r: fix typo that always overrode localtime_r decl
290         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
291         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
292         not in a standard include.
293
294 2012-06-22  Bruno Haible  <bruno@clisp.org>
295
296         Write "Mac OS X" instead of "MacOS X".
297         * README: Write "Mac OS X" instead of "MacOS X".
298         * build-aux/bootstrap: Likewise.
299         * build-aux/install-reloc: Likewise.
300         * lib/acl-internal.h: Likewise.
301         * lib/acl_entries.c: Likewise.
302         * lib/argp-ba.c: Likewise.
303         * lib/argp-pv.c: Likewise.
304         * lib/config.charset: Likewise.
305         * lib/copy-acl.c: Likewise.
306         * lib/csharpexec.c: Likewise.
307         * lib/euidaccess.c: Likewise.
308         * lib/fbufmode.c: Likewise.
309         * lib/fflush.c: Likewise.
310         * lib/file-has-acl.c: Likewise.
311         * lib/filemode.h: Likewise.
312         * lib/fpurge.c: Likewise.
313         * lib/freadable.c: Likewise.
314         * lib/freadahead.c: Likewise.
315         * lib/freading.c: Likewise.
316         * lib/freadptr.c: Likewise.
317         * lib/freadseek.c: Likewise.
318         * lib/fseeko.c: Likewise.
319         * lib/fseterr.c: Likewise.
320         * lib/fsusage.c: Likewise.
321         * lib/fwritable.c: Likewise.
322         * lib/fwriting.c: Likewise.
323         * lib/get-rusage-as.c: Likewise.
324         * lib/get-rusage-data.c: Likewise.
325         * lib/getdomainname.c: Likewise.
326         * lib/idpriv-drop.c: Likewise.
327         * lib/idpriv-droptemp.c: Likewise.
328         * lib/localcharset.c: Likewise.
329         * lib/locale.in.h: Likewise.
330         * lib/localename.c: Likewise.
331         * lib/mbsrtowcs-state.c: Likewise.
332         * lib/nproc.c: Likewise.
333         * lib/passfd.c: Likewise.
334         * lib/posix_openpt.c: Likewise.
335         * lib/printf-parse.c: Likewise.
336         * lib/progreloc.c: Likewise.
337         * lib/safe-read.h: Likewise.
338         * lib/safe-write.h: Likewise.
339         * lib/sched.in.h: Likewise.
340         * lib/set-mode-acl.c: Likewise.
341         * lib/signal.in.h: Likewise.
342         * lib/stdint.in.h: Likewise.
343         * lib/stdio-impl.h: Likewise.
344         * lib/stdlib.in.h: Likewise.
345         * lib/strtod.c: Likewise.
346         * lib/sys_select.in.h: Likewise.
347         * lib/tcgetsid.c: Likewise.
348         * lib/unistd.in.h: Likewise.
349         * lib/unlockpt.c: Likewise.
350         * lib/vasnprintf.c: Likewise.
351         * lib/vma-iter.c: Likewise.
352         * lib/wcsrtombs-state.c: Likewise.
353         * m4/acl.m4: Likewise.
354         * m4/acosl.m4: Likewise.
355         * m4/asinl.m4: Likewise.
356         * m4/atanl.m4: Likewise.
357         * m4/c-stack.m4: Likewise.
358         * m4/cosl.m4: Likewise.
359         * m4/expl.m4: Likewise.
360         * m4/extensions.m4: Likewise.
361         * m4/fdatasync.m4: Likewise.
362         * m4/fmal.m4: Likewise.
363         * m4/frexp.m4: Likewise.
364         * m4/frexpf.m4: Likewise.
365         * m4/frexpl.m4: Likewise.
366         * m4/fsusage.m4: Likewise.
367         * m4/getdomainname.m4: Likewise.
368         * m4/getloadavg.m4: Likewise.
369         * m4/getopt.m4: Likewise.
370         * m4/gettext.m4: Likewise.
371         * m4/gnulib-common.m4: Likewise.
372         * m4/intdiv0.m4: Likewise.
373         * m4/intlmacosx.m4: Likewise.
374         * m4/largefile.m4: Likewise.
375         * m4/ldexpl.m4: Likewise.
376         * m4/link-follow.m4: Likewise.
377         * m4/locale-ar.m4: Likewise.
378         * m4/locale-fr.m4: Likewise.
379         * m4/locale-ja.m4: Likewise.
380         * m4/locale-tr.m4: Likewise.
381         * m4/locale-zh.m4: Likewise.
382         * m4/locale_h.m4: Likewise.
383         * m4/lock.m4: Likewise.
384         * m4/logl.m4: Likewise.
385         * m4/mathfunc.m4: Likewise.
386         * m4/minus-zero.m4: Likewise.
387         * m4/mktime.m4: Likewise.
388         * m4/mmap-anon.m4: Likewise.
389         * m4/multiarch.m4: Likewise.
390         * m4/nanosleep.m4: Likewise.
391         * m4/nocrash.m4: Likewise.
392         * m4/poll.m4: Likewise.
393         * m4/printf-frexpl.m4: Likewise.
394         * m4/printf.m4: Likewise.
395         * m4/signbit.m4: Likewise.
396         * m4/sinl.m4: Likewise.
397         * m4/sqrtl.m4: Likewise.
398         * m4/strerror_r.m4: Likewise.
399         * m4/tanl.m4: Likewise.
400         * m4/threadlib.m4: Likewise.
401         * m4/ttyname_r.m4: Likewise.
402         * m4/unlink.m4: Likewise.
403         * m4/visibility.m4: Likewise.
404         * m4/wcwidth.m4: Likewise.
405         * tests/minus-zero.h: Likewise.
406         * tests/test-alloca-opt.c: Likewise.
407         * tests/test-copy-acl.sh: Likewise.
408         * tests/test-copy-file.sh: Likewise.
409         * tests/test-fdatasync.c: Likewise.
410         * tests/test-file-has-acl.sh: Likewise.
411         * tests/test-flock.c: Likewise.
412         * tests/test-fsync.c: Likewise.
413         * tests/test-localename.c: Likewise.
414         * tests/test-malloca.c: Likewise.
415         * tests/test-nonblocking-pipe.h: Likewise.
416         * tests/test-nonblocking-socket.h: Likewise.
417         * tests/test-openpty.c: Likewise.
418         * tests/test-posix_openpt.c: Likewise.
419         * tests/test-ptsname.c: Likewise.
420         * tests/test-ptsname_r.c: Likewise.
421         * tests/test-sameacls.c: Likewise.
422         * tests/test-select.h: Likewise.
423         * tests/test-set-mode-acl.sh: Likewise.
424         * tests/test-snprintf-posix.h: Likewise.
425         * tests/test-sprintf-posix.h: Likewise.
426         * tests/test-strtod.c: Likewise.
427         * tests/test-time.c: Likewise.
428         * tests/test-vasnprintf-posix.c: Likewise.
429         * tests/test-vasprintf-posix.c: Likewise.
430         * doc/acl-resources.txt: Likewise.
431         * doc/**/*.texi: Likewise.
432         Reported by Max Horn <max@quendi.de>.
433
434 2012-06-22  Bruno Haible  <bruno@clisp.org>
435
436         grantpt: Relax requirement regarding invalid file descriptors.
437         * lib/grantpt.c: Don't include <fcntl.h>.
438         (grantpt): Don't verify the validity of the file descriptor.
439         * modules/grantpt (Depends-on): Remove fcntl-h.
440         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
441         file descriptors.
442         * doc/posix-functions/grantpt.texi: Document more platforms on which
443         grantpt succeeds for invalid file descriptors.
444         Reported by Rich Felker <dalias@aerifal.cx>.
445
446 2012-06-22  Bruno Haible  <bruno@clisp.org>
447
448         fbufmode test: Don't test unportable behaviour.
449         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
450         (main): Invoke it three times.
451         Reported by Szabolcs Nagy <nsz@port70.net>
452         and Rich Felker <dalias@aerifal.cx>.
453
454 2012-06-21  Bruno Haible  <bruno@clisp.org>
455
456         gnulib-tool: Refactor inctests variable.
457         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
458         (func_modules_transitive_closure,
459         func_modules_transitive_closure_separately,
460         func_import, func_create_testdir): Update.
461
462         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
463         * gnulib-tool: Accept option --without-tests.
464         (func_usage): Document --without-tests option. Rearrange.
465         (inctests): Normalize according to the mode.
466         * NEWS: Mention the change.
467         Suggested by Simon Josefsson.
468
469 2012-06-21  Bruce Korb  <bkorb@gnu.org>
470
471         parse-duration test: Avoid spurious output.
472         * tests/test-parse-duration.sh: Reindent with leading tabs.
473
474 2012-06-21  Jim Meyering  <meyering@redhat.com>
475
476         maint: disable the strncpy prohibition
477         * cfg.mk: Do not prohibit strncpy here.
478
479 2012-06-21  Bruno Haible  <bruno@clisp.org>
480
481         nonblocking: Avoid compilation error on mingw64.
482         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
483         fscanf.
484         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
485         * modules/vfscanf (configure.ac): Likewise.
486         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
487         definition only if stdio.h has prepared it.
488         Reported by Daniel P. Berrange <berrange@redhat.com>.
489
490 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
491
492         gnulib-tool: Use readlink if it is available.
493         * gnulib-tool (func_readlink): Choose function more appropriately.
494
495 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
496
497         posixtm-tests: port to buggy compiler
498         Problem reported by Simon Josefsson in
499         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
500         * modules/posixtm-tests (Depends-on): Add stdint.
501         * tests/test-posixtm.c (struct posixtm_test.t_expected):
502         Now of type int_least64_t, not int64_t, both because that's
503         what INT64_C returns and because int_least64_t works even
504         on 72-bit hosts.
505         (T): Use INT64_C on constants outside the traditional int range,
506         to work around compiler bug noted by Simon.
507
508         mktime: fix integer overflow in 'configure'-time test
509         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
510         after integer overflow.  Problem reported by Rich Felker in
511         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
512         Also, don't look for further instances of a bug if we've already
513         found one instance; this helps 'configure' run faster.
514
515 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
516
517         tmpfile, clean-temp: Fix invocation of GetVersionEx.
518         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
519         GetVersionEx correctly.
520         * lib/clean-temp.c (supports_delete_on_close): Likewise.
521
522 2012-06-20  Bruno Haible  <bruno@clisp.org>
523
524         fdopen: Allow implementations that don't reject invalid fd arguments.
525         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
526         succeeds.
527         Reported by Rich Felker <dalias@aerifal.cx>.
528
529 2012-06-20  Simon Josefsson  <simon@josefsson.org>
530
531         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
532         bring in LIBINTL.
533
534 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
535
536         init.sh: do not rely on autoupated PWD
537         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
538         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
539         Although Nelson's bug was not necessarily fixed by this patch,
540         it seems wise to make the change for safety.
541         * tests/init.sh (path_prepend_): Do not rely on PWD updating
542         automagically after 'cd'; this is not reliable on older shells.
543         (setup_): Fail if we cannot cd to temporary directory.
544
545 2012-06-19  Bruno Haible  <bruno@clisp.org>
546
547         stat, fstat: Avoid warnings on mingw64.
548         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
549         redefining.
550         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
551         Reported by Daniel P. Berrange <berrange@redhat.com>.
552
553 2012-06-19  Bruno Haible  <bruno@clisp.org>
554
555         stdioext: Add support for musl libc.
556
557         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
558         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
559
560         * m4/fseterr.m4: New file.
561         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
562         function exists.
563         * modules/fseterr (Files): Add m4/fseterr.m4.
564         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
565         __fseterr does not exist.
566         (Makefile.am): Remove fseterr.c from lib_SOURCES.
567
568         * lib/freadable.h: Update comment.
569
570         * lib/fwritable.h: Update comment.
571
572         * lib/freading.h: Update comment.
573
574         * lib/fwriting.h: Update comment.
575
576         * m4/freadahead.m4: New file.
577         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
578         that function exists.
579         * modules/freadahead (Files): Add m4/freadahead.m4.
580         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
581         __freadahead does not exist.
582         (Makefile.am): Remove freadahead.c from lib_SOURCES.
583
584         * m4/freadptr.m4: New file.
585         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
586         function exists.
587         * modules/freadptr (Files): Add m4/freadptr.m4.
588         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
589         __freadptr does not exist.
590         (Makefile.am): Remove freadptr.c from lib_SOURCES.
591
592         * m4/freadseek.m4: New file.
593         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
594         exists.
595         * modules/freadseek (Files): Add m4/freadseek.m4.
596         (configure.ac): Invoke gl_FUNC_FREADSEEK.
597
598         * lib/fpurge.c (fpurge): Update comment.
599
600         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
601
602 2012-06-19  Bruno Haible  <bruno@clisp.org>
603
604         *printf-posix: Put more info into config.log.
605         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
606         exit code into config.log.
607
608 2012-06-19  Bruno Haible  <bruno@clisp.org>
609
610         getopt-gnu: Fix exit code overflow in autoconf test.
611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
612         to keep them below < 128.
613
614 2012-06-17  Jim Meyering  <meyering@redhat.com>
615
616         maint.mk: fix typo in code to derive GPG key at release time
617         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
618
619 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
620
621         regex: avoid warning when pointers are not long
622         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
623         and uintptr_t, not long, for portability to hosts where pointers and
624         long have different sizes.  Issue noted by Daniel P. Berrange in
625         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
626         and fix suggested by Bruno Haible in
627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
628
629 2012-06-17  Bruno Haible  <bruno@clisp.org>
630
631         dummy: Relicense into the public domain.
632         * modules/dummy (License): Set to "public domain".
633         Suggested by Reuben Thomas.
634
635 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
636
637         announce-gen: VPATH issues
638         * build-aux/announce-gen (--srcdir): New option, used to trim the
639         $srcdir part of the path from $builddir to NEWS.
640         * top/maint.mk (announcement): Adjust.
641
642 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
643
644         gnu-web-doc-update: VPATH builds
645         * build-aux/gnu-web-doc-update (--builddir): New option.
646         Revamp the handling of options.
647         Prefer $(...) to `...`.
648         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
649         the template, and it is GNU mktemp specific.
650         Prefer set -e to long series of &&.
651         Restore the initial git branch, not "master".
652         Properly initialize submodules (don't rely only on bootstrap).
653         Do not reconfigure blindly, use config.status.
654         * top/README-release: Update instructions for gnu-web-doc-update.
655
656 2012-06-11  Jim Meyering  <meyering@redhat.com>
657
658         maint.mk: revert most of the previous change re "all these"
659         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
660         For rationale, see the discussion at
661         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
662
663 2012-06-10  Karl Berry  <karl@gnu.org>
664
665         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
666
667         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
668
669 2012-06-10  Bruce Korb  <bkorb@gnu.org>
670
671         parse-duration: Relicense under LGPLv2+.
672         * modules/parse-duration (License): Change to LGPLv2+.
673
674 2012-06-10  Jim Meyering  <meyering@redhat.com>
675
676         maint.mk: prohibit common grammar error: "all these"
677         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
678         the list of prohibited word sequences.  It should be "all of these".
679         * lib/tempname.c (__gen_tempname): Fix one of them.
680
681 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
682
683         do-release-commit-and-tag: support VPATH builds
684         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
685         (noteworthy): Defined earlier to factor its value.
686         (noteworthy_stub): New.
687         Use it to factor.
688         (help_version): Split into...
689         (help, version): these.
690         Adjust the option processing part.
691         Support "--option=value" in addition to "--option value".
692         (builddir): New.
693         (--builddir): New option.
694         * top/README-release: Document this.
695         Reword slightly so that the reader cannot understand that he
696         has to do these steps before calling do-release-commit-and-tag.
697
698 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
699
700         readme-release: also require announce-gen and maintainer-makefile
701         * modules/readme-release (Depends-on): here.
702         * modules/announce-gen, modules/do-release-commit-and-tag,
703         modules/gnu-web-doc-update, modules/maintainer-makefile
704         (Description): Point to readme-release.
705
706 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
707
708         maint.mk: fix VPATH issues.
709         * top/maint.mk (news-check): GNU Make understand $< very well.
710         (release-prep): NEWS is in $(srcdir).
711
712 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
713
714         readme-release: require the promoted modules.
715         * modules/readme-release (Depends-on): Add
716         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
717         in this text.
718
719 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
720             Bruno Haible  <bruno@clisp.org>
721
722         error, strerror-override: Support mingw64 from Fedora 17.
723         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
724         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
725         EINPROGRESS.
726         * lib/strerror-override.h (strerror_override): Test it.
727         * lib/strerror-override.c (strerror_override): Likewise.
728         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
729
730 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
731             Bruno Haible  <bruno@clisp.org>
732
733         error, strerror-override: Support mingw64 from Fedora 17.
734         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
735         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
736         * lib/strerror-override.h (strerror_override): Test it.
737         * lib/strerror-override.c (strerror_override): Likewise.
738
739 2012-06-03  Bruno Haible  <bruno@clisp.org>
740
741         error, strerror-override: Support new errno values from POSIX:2008.
742         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
743         ENOTRECOVERABLE.
744         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
745         platforms.
746         * lib/strerror-override.c (strerror_override): Conditionalize the
747         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
748         * lib/strerror-override.h (strerror_override): Declare also if
749         GNULIB_defined_EOWNERDEAD is defined.
750         * tests/test-errno.c (e130, e131): New variables.
751         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
752         ENOTRECOVERABLE.
753         Reported by Paolo Bonzini.
754
755 2012-05-31  Jim Meyering  <meyering@redhat.com>
756
757         savewd: add missing dependency on sys_wait module
758         * modules/savewd (Depends-on): Add sys_wait, needed at least
759         for MSVC.  Report and suggested change by Michael Goffioul.
760
761 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
762
763         system-quote-tests: port to CentOS 5
764         Problem reported by Tom G. Christensen in
765         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
766         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
767
768 2012-05-29  Jim Meyering  <meyering@redhat.com>
769
770         maint: fix typos in comments and ChangeLog
771         Culprits identified and fixed mostly automatically using these commands:
772         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
773         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
774         using http://github.com/lyda/misspell-check
775         * ChangeLog: Fix typos.
776         * doc/solaris-versions: Likewise.
777         * lib/regexec.c (re_search_stub): Likewise.
778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
779
780 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
781
782         manywarnings: remove duplicate -Wmultichar entry
783         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
784         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
785         so keep the entry marked as documented.
786
787 2012-05-27  Karl Berry  <karl@gnu.org>
788
789         * config/srclist.txt (mktime.c): remove last libc sync,
790         perhaps just temporarily.
791
792 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
793
794         regex: don't assume uint64_t or uint32_t
795         * lib/regcomp.c (init_word_char): Don't assume that the types
796         uint64_t and uint32_t exist.  The C standard doesn't guarantee
797         them, and on some 32-bit compilers there is no uint64_t.
798         Problem reported by Gianluigi Tiesi in
799         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
800
801 2012-05-25  Jim Meyering  <meyering@redhat.com>
802
803         maint.mk: add strncpy-prohibiting syntax-check rule
804         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
805
806 2012-05-24  Jim Meyering  <meyering@redhat.com>
807
808         maint.mk: compute $(gpg_key_ID) more portably
809         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
810         That use of sed is not portable to some fringe systems.
811         Reported by Paul Eggert in
812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
813
814 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
815
816         mktime: sync from glibc
817         * config/srclist.txt: Uncomment mktime.c.
818         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
819         First, indent with tabs, since glibc uses tabs and doesn't want to
820         change and we'd rather be identical to glibc.  Also, two small
821         coding changes:
822         (isdst_differ): Use &&, not &, as && is the usual style.
823         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
824         for clarity.
825
826 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
827
828         announce-gen: du -h is more portable than du --human
829         * build-aux/announce-gen (sizes): Invoke du with -h instead
830         of --human.  Accept leading white space in its output.
831
832 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
833
834         announce-gen: Improve diagnostics.
835         * build-aux/announce-gen: When parsing command line options,
836         prefer "announce-gen: option --release-type requires an argument"
837         to "Option release-type requires an argument".
838
839 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
840
841         maint.mk: gpg_key_ID: use sed more portably
842         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
843         the closing brace.
844         (refresh-po): Fuse two sed invocations into one.
845
846 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
847
848         gitlog-to-changelog: support the log message format used in Bison.
849         * build-aux/gitlog-to-changelog: Support --strip-tab and
850         --strip-cherry-picked.
851
852 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
853
854         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
855         the rest of the current time slice to another thread in the current
856         process. So if the thread that feeds the file decscriptor we're
857         polling is not in the current process, we get busy-waiting.
858         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
859         Patch from Theodore Leblond.
860         * lib/select.c: Split polling out of the loop that sets the output
861         fd_sets.  Check for zero result and loop if the wait timeout is
862         infinite.
863
864 2012-05-21  Simon Josefsson  <simon@josefsson.org>
865
866         select: Fix build error on IRIX 6.5.
867         * lib/select.c: Include stddef.h for NULL.
868
869 2012-05-21  Simon Josefsson  <simon@josefsson.org>
870
871         gc: fix libgcrypt detection on older machines.
872         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
873         copyright years because the file has been distributed every year
874         since it was created.
875
876 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
877
878         crypto: fix bug in large buffer handling
879         Problem reported by Serge Belyshev for glibc in
880         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
881         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
882         * lib/md4.c (md4_process_block):
883         * lib/md5.c (md5_process_block):
884         * lib/sha1.c (sha1_process_block):
885         * lib/sha256.c (sha256_process_block):
886         Don't assume the buffer length is less than 2**32.
887         * lib/sha512.c (sha512_process_block): Likewise.
888         Here, the bug is present only in the rare case where the host does
889         not support uint64_t or where size_t is wider than 64 bits.
890         Use u64size to work around the problems.
891         * lib/u64.h (u64size): New macro.
892
893 2012-05-15  Pádraig Brady  <P@draigBrady.com>
894
895         fsusage: fix block size returned on older Linux 2.6
896
897         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
898         which is available since Linux 2.6.
899         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
900         when the member is available so it can be used as a fallback.
901         * doc/posix-functions/statvfs.texi: Mention the hang issue
902         on Linux < 2.6.36.
903
904 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
905
906         bootstrap: suppress stderr chatter
907         * build-aux/bootstrap (insert_sorted_if_absent, main program):
908         Omit unnecessary chatter to stderr.  The main program chatter
909         was there only inadvertantly.
910
911         bootstrap: .gitignore files created by autopoint, libtool
912         I ran into this problem when bootstrapping the latest diffutils.
913         After './bootstrap', 'git status' reported lots of untracked files
914         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
915         autopoint and do not need to be version-controlled.
916         * build-aux/bootstrap: Put into .gitignore the files that
917         autopoint and libtool create, by keeping track of files that exist
918         after but not before these programs are run.
919         (version_controlled_file): Move up.  2nd arg is now full file
920         name, not base name; this is more convenient.  Put CVS at the end,
921         as it's now somewhat deprecated.
922
923 2012-05-14  Jim Meyering  <meyering@redhat.com>
924
925         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
926         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
927         definition.  Reported by Bruno Haible.
928
929 2012-05-13  Bruno Haible  <bruno@clisp.org>
930             Paul Eggert  <eggert@cs.ucla.edu>
931
932         binary-io: Define set_binary_mode function.
933         * lib/binary-io.h (set_binary_mode): New function.
934         (SET_BINARY): Define in terms of set_binary_mode.
935         * modules/binary-io (configure.ac): Require AC_C_INLINE.
936         * tests/test-binary-io.c (main): Accept an argument, and test either
937         set_binary_mode or SET_BINARY depending on the argument.
938         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
939         argument. Clean up also t-bin-out0.tmp.
940
941 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
942
943         bootstrap: take advantage of POSIX shell features
944
945         The 'bootstrap' script offered by Gnulib script already uses POSIX
946         shell features (like $((...)) arithmetic expansions) that are not
947         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
948         means that bootstrap must already be run using a proper POSIX shell,
949         which will thus provide more features, like ${var#pattern} parameter
950         expansion or inversion of a command exit status with '!'.  We can
951         thus use these features to improve the clarity and the performances
952         of the bootstrap script.
953
954         Suggested by Eric Blake.
955
956         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
957         of sed/expr plus command substitutions, to save some forks.  While
958         we are at it, prefer the POSIX $(...) form of command substitution,
959         rather than the legacy form `...` (since the former is visually
960         clearer and interacts better with quoting), and prefer the idiom:
961           "if ! CMD; then ACTION ..."
962         over the idiom:
963           "if CMD; then :; else ACTION ..."
964         which was required by legacy Bourne shells not supporting '!'.
965
966 2012-05-12  Bruno Haible  <bruno@clisp.org>
967
968         system-quote: Add more comments.
969         * lib/system-quote.h: Add more comments about wilcards and limitations.
970         Suggested by Eli Zaretskii <eliz@gnu.org>.
971
972         sh-quote, system-quote: Add comments about wildcards.
973         * lib/sh-quote.h: Clarify what happens with wildcard characters.
974         * lib/system-quote.h: Likewise.
975         Reported by Eli Zaretskii <eliz@gnu.org>.
976
977 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
978
979         fsusage: check for GNU/Linux statvfs problem dynamically
980         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
981         Define STAT_STATFS2_BSIZE too, since in this case the code now
982         checks dynamically whether statvfs is reliable, falling back on
983         Linux-style statfs otherwise.
984         (statvfs_works): New function, for dynamically testing statvfs.
985         (get_fs_usage) [STAT_STATVFS]: Use it.
986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
987         statvfs on GNU/Linux hosts, since it's now done dynamically.
988
989 2012-05-10  Bruno Haible  <bruno@clisp.org>
990
991         system-quote, execute, spawn-pipe: Escape '?' on Windows.
992         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
993         '?' character.
994         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
995         * tests/test-system-quote-main.c (check_all): Check also strings like
996         "??????????".
997         Reported by Eli Zaretskii <eliz@gnu.org>.
998
999 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1000
1001         _Noreturn: port config.h to gcc -Wundef
1002         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1003         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1004         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1005
1006 2012-05-10  Bruno Haible  <bruno@clisp.org>
1007
1008         system-quote: Refactor.
1009         * lib/system-quote.h (system_quote_copy): Fix comment.
1010         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1011         New functions, extracted from system_quote_copy.
1012         (system_quote_length, system_quote_copy): Use these functions.
1013         Reported by Paul Eggert.
1014
1015 2012-05-08  Bruno Haible  <bruno@clisp.org>
1016
1017         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1018         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1019
1020 2012-05-08  Bruno Haible  <bruno@clisp.org>
1021
1022         Tests for module 'system-quote'.
1023         * modules/system-quote-tests: New file.
1024         * tests/test-system-quote.sh: New file.
1025         * tests/test-system-quote-main.c: New file.
1026         * tests/test-system-quote-child.c: New file.
1027
1028         New module 'system-quote'.
1029         * lib/system-quote.h: New file.
1030         * lib/system-quote.c: New file.
1031         * modules/system-quote: New file.
1032
1033 2012-05-08  Bruno Haible  <bruno@clisp.org>
1034
1035         sh-quote: Make C++ safe and allow multiple inclusion.
1036         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1037         declarations in extern "C".
1038
1039 2012-05-08  Bruno Haible  <bruno@clisp.org>
1040
1041         sh-quote tests: Make tests stricter.
1042         * tests/test-sh-quote.c (check_one): Check the return value of
1043         shell_quote_copy.
1044         (main): Check a string with a CR character. Check a string that
1045         contains UCHAR_MAX.
1046
1047 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1048
1049         warnings.m4: provide a means to specify the program to compile.
1050         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1051         (gl_WARN_ADD): here.
1052         Use gl_AS_VAR_APPEND.
1053         Support an argument to specify the program to compile.
1054         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1055         AC_SUBST the WARN_CFLAGS when they are used.
1056         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1057         leave this to gl_WARN_ADD.
1058
1059 2012-05-08  Eric Blake  <eblake@redhat.com>
1060
1061         doc: recommendations on gettext version
1062         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1063         choice between versions.
1064         * DEPENDENCIES (gettext): Cover both approaches.
1065
1066 2012-05-08  Jim Meyering  <meyering@redhat.com>
1067
1068         init.sh: explain why EXEEXT support uses aliases rather than functions
1069         * tests/init.sh: Add a comment.
1070
1071         init.sh: don't let bash aliases interfere with tests
1072         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1073         is bash.  This avoids problems for those who alias standard commands to
1074         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1075         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1076
1077 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         stdint: be more consistent with glibc, SunOS libc
1080         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1081         (gl_int_fast16_t, gl_uint_fast16_t)
1082         (gl_int_fast32_t, gl_uint_fast32_t)
1083         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1084         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1085         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1086         Be consistent with glibc by default, and with SunOS 5.10 and later
1087         if __sun is defined.  This lessens the likelihood of clashes if
1088         code compiled for older hosts is combined with code compiled for
1089         newer ones.  Problem reported by Niels Möller in
1090         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1091
1092 2012-05-07  Eric Blake  <eblake@redhat.com>
1093
1094         isatty: relax license to LGPLv2+
1095         * modules/isatty (License): Relax license.
1096
1097 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1098
1099         stat-size: comment fix
1100         * lib/stat-size.h: Remove obsolete comment about indenting.
1101
1102 2012-05-06  Bruno Haible  <bruno@clisp.org>
1103
1104         Tests for module 'sh-quote'.
1105         * modules/sh-quote-tests: New file.
1106         * tests/test-sh-quote.c: New file.
1107
1108 2012-05-06  Bruno Haible  <bruno@clisp.org>
1109
1110         sh-quote: Improve shell_quote_argv's signature.
1111         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1112         * lib/sh-quote.c (shell_quote_argv): Likewise.
1113
1114 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1115
1116         stdint: document issues with int_fast8_t etc.
1117         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1118         stdint.h substitutes may define these types differently.  See
1119         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1120
1121 2012-05-05  Bruno Haible  <bruno@clisp.org>
1122
1123         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1125         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1126         or 'guessing no (mishandles large arguments)'.
1127
1128 2012-05-05  Bruno Haible  <bruno@clisp.org>
1129
1130         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1131         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1132         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1133         set gl_cv_func_link_follows_symlink to "guessing no".
1134
1135 2012-05-05  Bruno Haible  <bruno@clisp.org>
1136
1137         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1138         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1139         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1140         "guessing no".
1141         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1142
1143 2012-05-05  Bruno Haible  <bruno@clisp.org>
1144
1145         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1146         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1147         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1148         set gl_cv_struct_dirent_d_ino to "guessing yes".
1149
1150 2012-05-05  Bruno Haible  <bruno@clisp.org>
1151
1152         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1153         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1154         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1155         "guessing yes".
1156
1157 2012-05-05  Bruno Haible  <bruno@clisp.org>
1158
1159         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1160         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1161         compiling to a glibc system, set gl_cv_func_signbit and
1162         gl_cv_func_signbit_gcc to "guessing yes".
1163
1164 2012-05-05  Bruno Haible  <bruno@clisp.org>
1165
1166         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1167         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1168         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1169         to "guessing yes".
1170         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1171         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1172
1173 2012-05-05  Bruno Haible  <bruno@clisp.org>
1174
1175         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1176         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1177         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1178         gl_cv_func_realpath_works to "guessing yes".
1179
1180 2012-05-05  Bruno Haible  <bruno@clisp.org>
1181
1182         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1183         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1184         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1185
1186 2012-05-04  Bruno Haible  <bruno@clisp.org>
1187
1188         Tweak last commit.
1189         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1190         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1191
1192 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1193
1194         unistd_h: make it easier to avoid sys_types_h
1195         This is useful for Emacs, which has its own method of porting to
1196         Windows, and which therefore does not need the sys_types_h module.
1197         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1198         code moved here from gl_SYS_TYPES_H.
1199         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1200         using the code directly.
1201         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1202         gl_SYS_TYPES_H.
1203         * modules/sys_types (Files):
1204         * modules/unistd (Files): Add m4/off_t.m4.
1205
1206 2012-05-03  Bruno Haible  <bruno@clisp.org>
1207
1208         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1209         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1210         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1211         "guessing yes" or "guessing no".
1212         (gl_FUNC_LSTAT): Update.
1213         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1214         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1215         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1216
1217 2012-05-03  Bruno Haible  <bruno@clisp.org>
1218
1219         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1220         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1221         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1222         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1223         cross-compiling, choose the first alternative on glibc systems.
1224         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1225
1226 2012-05-03  Bruno Haible  <bruno@clisp.org>
1227
1228         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1229         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1230         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1231
1232 2012-05-03  Bruno Haible  <bruno@clisp.org>
1233
1234         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1235         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1236
1237 2012-05-03  Bruno Haible  <bruno@clisp.org>
1238
1239         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1240         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1241         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1242         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1243         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1244         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1245         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1246         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1247         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1248         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1249         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1250         gl_cv_func_chown_ctime_works to "guessing yes".
1251         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1252         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1253         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1254         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1255         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1257         compiling to glibc systems, set gl_cv_func_open_directory_works to
1258         "guessing yes".
1259         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1260         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1261         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1262         "guessing yes".
1263         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1264         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1265         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1266         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1267         "guessing yes".
1268         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1269         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1270         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1271         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1272         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1273         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1274         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1275         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1276         "guessing yes".
1277         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1278         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1279         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1280         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1281         "guessing yes".
1282         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1283         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1284         "guessing yes".
1285         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1286         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1287         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1288         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1289         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1290         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1291         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1292         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1293         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1294         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1295         "guessing yes".
1296         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1297         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1298         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1299         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1300         "guessing yes".
1301         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1302         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1303         "guessing yes".
1304         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1305         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1306         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1307         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1308         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1309         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1310         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1311         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1312         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1313         "guessing yes".
1314         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1315         compiling to glibc systems, set gl_cv_func_mknod_works to
1316         "guessing yes".
1317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1318         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1319         "guessing yes".
1320         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1321         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1322         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1323         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1324         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1325         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1326         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1327         compiling to glibc systems, set gl_cv_func_svid_putenv to
1328         "guessing yes".
1329         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1330         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1331         "guessing yes".
1332         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1333         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1334         "guessing yes".
1335         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1336         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1337         to "guessing yes".
1338         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1339         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1340         to "guessing yes".
1341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1342         compiling to glibc systems, set gl_cv_func_rmdir_works to
1343         "guessing yes".
1344         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1345         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1346         gl_cv_func_unlink_parent_fails to "guessing yes".
1347         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1348         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1349         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1350         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1351         gl_cv_func_rename_dest_works to "guessing yes".
1352         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1353         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1354         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1355         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1356         "guessing yes".
1357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1358         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1359         "guessing yes".
1360         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1361         compiling to glibc systems, set gl_cv_func_setenv_works to
1362         "guessing yes".
1363         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1364         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1365         "guessing yes".
1366         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1367         compiling to glibc systems, set gl_cv_func_sleep_works to
1368         "guessing yes".
1369         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1370         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1371         "guessing yes".
1372         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1373         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1374         "guessing yes".
1375         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1376         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1377         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1378         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1379         "guessing yes".
1380         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1381         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1382         "guessing yes".
1383         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1384         compiling to glibc systems, set gl_cv_func_usleep_works to
1385         "guessing yes".
1386         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1387         compiling to glibc systems, set gl_cv_func_futimesat_works to
1388         "guessing yes".
1389
1390 2012-05-03  Bruno Haible  <bruno@clisp.org>
1391
1392         Say "guessing yes" or "guessing no" when cross-compiling.
1393         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1394         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1395         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1396         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1397         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1398         am_cv_func_working_getline to "guessing yes" or "guessing no".
1399         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1400         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1401         (gl_FUNC_MEMMEM): When cross-compiling, set
1402         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1403         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1404         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1406         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1407         "guessing no".
1408         (gl_FUNC_STRCASESTR): When cross-compiling, set
1409         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1410         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1411         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1412         (gl_FUNC_STRSTR): When cross-compiling, set
1413         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1414         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1415         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1416         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1417         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1418
1419 2012-05-01  Bruno Haible  <bruno@clisp.org>
1420
1421         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1422         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1423         * build-aux/reloc-ldflags: Likewise.
1424         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1425
1426 2012-05-01  Bruno Haible  <bruno@clisp.org>
1427
1428         gnulib-tool: Remove transitional code.
1429         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1430         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1431
1432 2012-05-01  Bruno Haible  <bruno@clisp.org>
1433
1434         getcwd: Fix misindentation.
1435         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1436
1437 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         exclude: process exclude and include directives in order
1440         This restores the pre-2009 behavior, and is part of a fix of a
1441         grep bug reported by Quentin Arce in
1442         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1443         * lib/exclude.c (struct exclude): Remove 'tail' member.
1444         (new_exclude_segment): Prepend the new segment instead of appending.
1445         Return void, since that's now more convenient.
1446         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1447         (file_name_matches): Renamed from excluded_file_name_p.
1448         (file_pattern_matches, file_name_matches):
1449         Return true if the pattern matches, not if it excludes.
1450         All callers changed.
1451         (excluded_file_name): Process the list in reverse order;
1452         since the list is now reversed this restores the pre-2009 behavior.
1453         (add_exclude): Adjust to new reversed-order list.  Use local var
1454         rather than macro, for clarity.
1455         * tests/test-exclude7.sh: Adjust to corrected behavior.
1456
1457         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1458         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1459         it's not possible here.  Handle the case of \ at end of pattern
1460         without dumping core.
1461         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1462
1463         _Noreturn: future-proof non-GNU and non-MSVC compilers
1464         * build-aux/snippet/_Noreturn.h (_Noreturn):
1465         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1466         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1467         C11 or later.  This is more likely to work with random future C
1468         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1469         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1470
1471         exclude: handle wildcards with FNM_EXTMATCH
1472         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1473         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1474         comment that "has wildcards" really means "has or may have
1475         wildcards".  Simplify by avoiding the need to call strcspn.
1476
1477 2012-04-29  Bruno Haible  <bruno@clisp.org>
1478
1479         gnulib-tool: Fix list of authors.
1480         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1481
1482 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1483
1484         bootstrap: support Automake-NG in $buildreq
1485         * bootstrap (check_versions): Handle automake and aclocal from
1486         Automake-NG specially.  They can be specified as respectively
1487         the "automake-ng" and "aclocal-ng" requirements.
1488
1489 2012-04-25  Eric Blake  <eblake@redhat.com>
1490
1491         bootstrap: only force latest Makefile.in.in for gettext module
1492         * build-aux/bootstrap (with_gettext): Only install latest
1493         Makefile.in.in for projects requesting bleeding edge gettext.
1494
1495 2012-04-22  Bruno Haible  <bruno@clisp.org>
1496
1497         doc: Mention reason for replacement on glibc/Linux systems.
1498         * doc/posix-functions/dprintf.texi: Mention the problem with special
1499         'long double' values.
1500         * doc/posix-functions/fprintf.texi: Likewise.
1501         * doc/posix-functions/printf.texi: Likewise.
1502         * doc/posix-functions/snprintf.texi: Likewise.
1503         * doc/posix-functions/sprintf.texi: Likewise.
1504         * doc/posix-functions/vdprintf.texi: Likewise.
1505         * doc/posix-functions/vfprintf.texi: Likewise.
1506         * doc/posix-functions/vprintf.texi: Likewise.
1507         * doc/posix-functions/vsnprintf.texi: Likewise.
1508         * doc/posix-functions/vsprintf.texi: Likewise.
1509         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1510         platforms with F_DUPFD_CLOEXEC problems.
1511         * doc/posix-functions/glob.texi: Mention which platforms are affected
1512         by the problem with symbolic links.
1513         * doc/posix-functions/linkat.texi: Mention the problem with
1514         AT_SYMLINK_FOLLOW on Linux.
1515
1516 2012-04-22  Bruno Haible  <bruno@clisp.org>
1517
1518         pwrite: Don't replace on all platforms.
1519         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1520
1521 2012-04-22  Bruno Haible  <bruno@clisp.org>
1522
1523         rint* tests: Avoid gcc warnings.
1524         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1525         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1526         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1527
1528 2012-04-21  Bruno Haible  <bruno@clisp.org>
1529
1530         users.txt: Update.
1531         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1532         switched from CVS to git, bzr, or svn.
1533
1534 2012-04-21  Bruno Haible  <bruno@clisp.org>
1535
1536         Large File Support for native Windows platforms.
1537
1538         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1539         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1540
1541         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1542         type.
1543         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1544         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1545         * doc/posix-headers/sys_types.texi: Mention the effect of the
1546         'largefile' module.
1547
1548         * lib/fcntl.in.h: Add comments about off_t.
1549         * modules/fcntl-h (Depends-on): Add sys_types.
1550
1551         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1552         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1553         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1554         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1555         * modules/unistd (Depends-on): Add sys_types.
1556         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1557
1558         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1559         instead of lseek.
1560         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1561         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1562         * modules/lseek (Depends-on): Add sys_types.
1563
1564         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1565         msvc-nothrow.h.
1566         (SetFileSize): New function.
1567         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1568         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1569         if Large File Support is requested.
1570         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1571         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1572
1573         * lib/stdio.in.h: Add comments about off_t.
1574         * modules/stdio (Depends-on): Add sys_types.
1575
1576         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1577         instead of ftello.
1578         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1579         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1580         (gl_PREREQ_FTELLO): New macro.
1581         * modules/ftello (Depends-on): Add sys_types.
1582         (configure.ac): Incoke gl_PREREQ_FTELLO.
1583
1584         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1585         instead of fseeko.
1586         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1587         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1588         (gl_PREREQ_FSEEKO): New macro.
1589         * modules/fseeko (Depends-on): Add sys_types.
1590         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1591
1592         * lib/sys_stat.in.h: Add comments about off_t.
1593         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1594         64-bit integer for st_size in 'struct stat'.
1595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1596         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1597         * modules/sys_stat (Depends-on): Add sys_types.
1598         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1599
1600         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1601         instead of stat or _stat.
1602
1603         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1604         'struct _stati64' instead of fstat and 'struct stat'.
1605         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1606         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1607
1608         Reported by Ray Satiro <raysatiro@yahoo.com>.
1609
1610 2012-04-19  Eric Blake  <eblake@redhat.com>
1611
1612         bootstrap: accommodate older libtool
1613         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1614         Reported by Daniel P. Berrange.
1615
1616 2012-04-19  Jim Meyering  <meyering@redhat.com>
1617
1618         announce-gen: avoid failure due to lack of Digest::SHA1
1619         Even with the preferred Digest::SHA available, this script
1620         would fail when the backup module, Digest::SHA1, was not installed.
1621         * build-aux/announce-gen: Quote the conditional use of "use".
1622         Reported by Reuben Thomas in:
1623         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1624
1625         bootstrap: don't let a user's CDPATH setting affect this script
1626         When CDPATH is set, cd will sometimes generate output.
1627         When "cd" is run in a subshell whose output matters, that
1628         surprising-to-some output can cause malfunction.
1629         Unsetting CDPATH turns off this shell "feature."
1630         * build-aux/bootstrap (CDPATH): Unset.
1631         Reported by Reuben Thomas in:
1632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1633         and inspired by his patch here:
1634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1635
1636 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1637         and Jim Meyering  <meyering@redhat.com>
1638
1639         maint.mk: catch "see @xref{}" and similar
1640         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1641         prohibit "See also @xref{", "Also see @pxref{", and similar.
1642
1643 2012-04-16  Jim Meyering  <meyering@redhat.com>
1644
1645         bootstrap: really use gnulib's po/Makefile.in.in
1646         * build-aux/bootstrap: Correct the source file name in previous change.
1647         Reported by Akim Demaille.
1648
1649         configmake: correct minor inconsistency in Makefile rule
1650         * modules/configmake (Makefile.am): All other rules like this one
1651         run the final "mv -f ..." in the same backslash-continued command
1652         as the one that does everything else.  This one put the mv -f ...
1653         command on a separate, non-backslash-continued line.
1654         Make it like the others.
1655
1656         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1657         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1658         the one from gettext.  Reported by Akim Demaille.
1659
1660 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1661
1662         Fix recursion of install-* into po directories.
1663         Bison's install-pdf bug reported by Hans Aberg at
1664         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1665         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1666         (install-info, install-pdf, install-ps): New targets.
1667
1668 2012-04-16  Jim Meyering  <meyering@redhat.com>
1669
1670         maint: avoid spurious "make sc_maint" failure
1671         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1672         exempt all *.class file names, for lib/javaversion.class.
1673
1674 2012-04-15  Bruno Haible  <bruno@clisp.org>
1675
1676         lseek: Make configure test independent of environment.
1677         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1678         Windows, we know that lseek() on pipes is broken; skip the runtime
1679         test.
1680
1681 2012-04-14  Bruno Haible  <bruno@clisp.org>
1682
1683         stat: Bypass buggy override in mingw64.
1684         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1685         * lib/stat.c (stat) [mingw64]: Define to _stat.
1686         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1687
1688 2012-04-14  Bruno Haible  <bruno@clisp.org>
1689
1690         pathmax: Fix compilation error on MSVC 9.
1691         * modules/pathmax (Depends-on): Add unistd.
1692
1693 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1694
1695         README: document pointer comparison assumption
1696         * README (Portability guidelines): Document assumption about
1697         pointer comparisons, in response to a recent bug-gnulib comment by
1698         Jeffrey Kegler.
1699
1700 2012-04-12  Bruno Haible  <bruno@clisp.org>
1701
1702         Tests for module 'getrusage'.
1703         * modules/getrusage-tests: New file.
1704         * tests/test-getrusage.c: New file.
1705
1706         New module 'getrusage'.
1707         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1708         warn-on-use.h.
1709         (getrusage): New declaration.
1710         * lib/getrusage.c: New file.
1711         * m4/getrusage.m4: New file.
1712         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1713         is declared.
1714         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1715         HAVE_GETRUSAGE.
1716         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1717         snippet/c++defs, snippet/warn-on-use.
1718         (Makefile.am): Update generation of sys/resource.h. Substitute
1719         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1720         * modules/getrusage: New file.
1721         * doc/posix-functions/getrusage.texi: Mention the new module.
1722
1723 2012-04-12  Bruno Haible  <bruno@clisp.org>
1724
1725         Tests for module 'sys_resource'.
1726         * modules/sys_resource-tests: New file.
1727         * tests/test-sys_resource.c: New file.
1728
1729         New module 'sys_resource'.
1730         * lib/sys_resource.in.h: New file.
1731         * m4/sys_resource_h.m4: New file.
1732         * modules/sys_resource: New file.
1733         * doc/posix-headers/sys_resource.texi: Mention the new module.
1734
1735 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1736
1737         ioctl: Fix compilation error on mingw.
1738         * lib/ioctl.c: Include <windows.h>.
1739         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1740
1741 2012-04-04  Jim Meyering  <meyering@redhat.com>
1742
1743         regex: correct #pragma guard expression
1744         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1745         not 4.3.  Correct its cpp guard expression.
1746
1747 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1748
1749         regex: remove unnecessary type punning
1750         Problem reported by Vladimir Serbinenko in
1751         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1752         * lib/regex.h (struct re_pattern_buffer): Change the type of
1753         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1754         Fix comment to match code.
1755         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1756         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1757         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1758         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1759         (set_regs):
1760         Omit no-longer-necessary casts.
1761
1762 2012-04-03  Bruno Haible  <bruno@clisp.org>
1763
1764         Tests for module 'ilogbl'.
1765         * modules/ilogbl-tests: New file.
1766         * tests/test-ilogbl.c: New file.
1767
1768         New module 'ilogbl'.
1769         * lib/math.in.h (ilogbl): New declaration.
1770         * lib/ilogbl.c: New file.
1771         * m4/ilogbl.m4: New file.
1772         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1774         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1775         Split sed invocation, to avoid the limit of 100 substitutions of
1776         HP-UX 'sed'.
1777         * modules/ilogbl: New file.
1778         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1779         * doc/posix-functions/ilogbl.texi: Mention the new module.
1780
1781 2012-04-03  Bruno Haible  <bruno@clisp.org>
1782
1783         Tests for module 'ilogbf'.
1784         * modules/ilogbf-tests: New file.
1785         * tests/test-ilogbf.c: New file.
1786
1787         New module 'ilogbf'.
1788         * lib/math.in.h (ilogbf): New declaration.
1789         * lib/ilogbf.c: New file.
1790         * m4/ilogbf.m4: New file.
1791         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1793         REPLACE_ILOGBF.
1794         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1795         REPLACE_ILOGBF.
1796         * modules/ilogbf: New file.
1797         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1798         * doc/posix-functions/ilogbf.texi: Mention the new module.
1799
1800 2012-04-03  Bruno Haible  <bruno@clisp.org>
1801
1802         Tests for module 'ilogb'.
1803         * modules/ilogb-tests: New file.
1804         * tests/test-ilogb.c: New file.
1805         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1806         tests/test-logb-ieee.h.
1807
1808         New module 'ilogb'.
1809         * lib/math.in.h (ilogb): New declaration.
1810         * lib/ilogb.c: New file.
1811         * m4/ilogb.m4: New file.
1812         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1814         REPLACE_ILOGB.
1815         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1816         REPLACE_ILOGB.
1817         * modules/ilogb: New file.
1818         * tests/test-math-c++.cc: Check the declaration of ilogb.
1819         * doc/posix-functions/ilogb.texi: Mention the new module.
1820
1821 2012-04-03  Bruno Haible  <bruno@clisp.org>
1822
1823         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1824         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1825         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1826         (main): Check their values.
1827         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1828         problem.
1829
1830 2012-04-03  Bruno Haible  <bruno@clisp.org>
1831
1832         Tests for module 'logbl-ieee'.
1833         * modules/logbl-ieee-tests: New file.
1834         * tests/test-logbl-ieee.c: New file.
1835
1836         New module 'logbl-ieee'.
1837         * modules/logbl-ieee: New file.
1838
1839         Tests for module 'logb-ieee'.
1840         * modules/logb-ieee-tests: New file.
1841         * tests/test-logb-ieee.c: New file.
1842
1843         New module 'logb-ieee'.
1844         * modules/logb-ieee: New file.
1845
1846         Tests for module 'logbf-ieee'.
1847         * modules/logbf-ieee-tests: New file.
1848         * tests/test-logbf-ieee.c: New file.
1849         * tests/test-logb-ieee.h: New file.
1850
1851         New module 'logbf-ieee'.
1852         * modules/logbf-ieee: New file.
1853
1854 2012-04-03  Bruno Haible  <bruno@clisp.org>
1855
1856         Tests for module 'logbl'.
1857         * modules/logbl-tests: New file.
1858         * tests/test-logbl.c: New file.
1859
1860         New module 'logbl'.
1861         * lib/math.in.h (logbl): New declaration.
1862         * lib/logbl.c: New file.
1863         * m4/logbl.m4: New file.
1864         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1866         REPLACE_LOGBL.
1867         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1868         REPLACE_LOGBL.
1869         * modules/logbl: New file.
1870         * tests/test-math-c++.cc: Check the declaration of logbl.
1871         * doc/posix-functions/logbl.texi: Mention the new module.
1872
1873 2012-04-02  Bruno Haible  <bruno@clisp.org>
1874
1875         Tests for module 'logbf'.
1876         * modules/logbf-tests: New file.
1877         * tests/test-logbf.c: New file.
1878
1879         New module 'logbf'.
1880         * lib/math.in.h (logbf): New declaration.
1881         * lib/logbf.c: New file.
1882         * m4/logbf.m4: New file.
1883         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1885         REPLACE_LOGBF.
1886         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1887         REPLACE_LOGBF.
1888         * modules/logbf: New file.
1889         * tests/test-math-c++.cc: Check the declaration of logbf.
1890         * doc/posix-functions/logbf.texi: Mention the new module.
1891
1892 2012-04-02  Bruno Haible  <bruno@clisp.org>
1893
1894         logb tests: More tests.
1895         * tests/test-logb.h: New file, based on tests/test-logb.c and
1896         tests/test-frexp.h.
1897         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1898         (main): Just invoke test_function.
1899         * modules/logb-tests (Files): Add tests/test-logb.h,
1900         tests/minus-zero.h, tests/randomd.c.
1901         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1902
1903         logb: Provide replacement and workarounds.
1904         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1905         is 1.
1906         * lib/logb.c: New file.
1907         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1908         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1910         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1911         * modules/logb (Files): Add lib/logb.c.
1912         (Depends-on): Add isfinite, frexp, isnand.
1913         (configure.ac): Compile the replacement code logb.c if needed.
1914         * tests/test-math-c++.cc: Check the declaration of logb.
1915         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1916         with subnormal numbers.
1917
1918 2012-04-02  Bruno Haible  <bruno@clisp.org>
1919
1920         log10* tests: Speed up.
1921         * tests/test-log10.h (test_function): Reduce amount of random numbers
1922         to test.
1923
1924 2012-04-01  Bruno Haible  <bruno@clisp.org>
1925
1926         logf-ieee: Fix test whether logf works.
1927         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1928
1929 2012-04-01  Bruno Haible  <bruno@clisp.org>
1930
1931         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1932         * lib/log10l.c: Include <float.h>
1933         (log10l): On IRIX, normalize the +Infinity value.
1934         * modules/log10l (Depends-on): Add 'float'.
1935         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1936         +Infinity.
1937
1938         log10f-ieee: Work around test failure on NetBSD 5.1.
1939         * m4/log10f-ieee.m4: New file.
1940         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1941         test whether log10f works with a negative argument. Replace it if not.
1942         * lib/log10f.c (log10f): For negative arguments, return NaN.
1943         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1944         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1945         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1946
1947         log10f-ieee: Work around test failure on Solaris 9.
1948         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1949         (configure.ac): Require gl_FUNC_LOG10F.
1950
1951         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1952         * m4/log10-ieee.m4: New file.
1953         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1954         whether log10 works with a negative argument. Replace it if not.
1955         * lib/log10.c (log10): For negative arguments, return NaN.
1956         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1957         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1958         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1959
1960         Tests for module 'log10l-ieee'.
1961         * modules/log10l-ieee-tests: New file.
1962         * tests/test-log10l-ieee.c: New file.
1963
1964         New module 'log10l-ieee'.
1965         * modules/log10l-ieee: New file.
1966
1967         Tests for module 'log10-ieee'.
1968         * modules/log10-ieee-tests: New file.
1969         * tests/test-log10-ieee.c: New file.
1970
1971         New module 'log10-ieee'.
1972         * modules/log10-ieee: New file.
1973
1974         Tests for module 'log10f-ieee'.
1975         * modules/log10f-ieee-tests: New file.
1976         * tests/test-log10f-ieee.c: New file.
1977         * tests/test-log10-ieee.h: New file.
1978
1979         New module 'log10f-ieee'.
1980         * modules/log10f-ieee: New file.
1981
1982 2012-04-01  Bruno Haible  <bruno@clisp.org>
1983
1984         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1985         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1986         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1987         workaround.
1988         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1989         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1991         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1992         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1993         (Depends-on): Update conditions.
1994         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1995         IRIX 6.5, OSF/1 5.1 problems.
1996
1997 2012-04-01  Bruno Haible  <bruno@clisp.org>
1998
1999         log10f: Work around OSF/1 5.1 bug.
2000         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2001         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2002         workaround.
2003         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2004         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2006         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2007         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2008         (Depends-on): Update conditions.
2009         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2010
2011 2012-04-01  Bruno Haible  <bruno@clisp.org>
2012
2013         log10: Work around OSF/1 5.1 bug.
2014         * lib/math.in.h (log10): New declaration.
2015         * lib/log10.c: New file.
2016         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2017         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2018         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2020         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2021         * modules/log10 (Files): Add lib/log10.c.
2022         (Depends-on): Add math.
2023         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2024         * tests/test-math-c++.cc: Check the declaration of log10.
2025         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2026
2027 2012-03-31  Bruno Haible  <bruno@clisp.org>
2028
2029         log10l tests: More tests.
2030         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2031         tests/minus-zero.h, tests/randoml.c.
2032         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2033         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2034         (main): Invoke test_function.
2035
2036         log10f tests: More tests.
2037         * modules/log10f-tests (Files): Add tests/test-log10.h,
2038         tests/minus-zero.h, tests/randomf.c.
2039         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2040         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2041         (main): Invoke test_function.
2042
2043         log10 tests: More tests.
2044         * tests/test-log10.h: New file.
2045         * modules/log10-tests (Files): Add tests/test-log10.h,
2046         tests/minus-zero.h, tests/randomd.c.
2047         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2048         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2049         (main): Invoke test_function.
2050
2051 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2052
2053         fflush: Fix syntax error.
2054         * lib/fflush.c: Include unused-parameter.h, needed for
2055         _GL_UNUSED_PARAMETER.
2056         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2057
2058 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2059
2060         regex: pacify GCC when compiling GRUB
2061         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2062         a diagnostic.  Reported by Vladimir Serbinenko in
2063         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2064
2065 2012-03-29  Eric Blake  <eblake@redhat.com>
2066
2067         stdio: don't assume gets any more
2068         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2069         support.
2070         * modules/stdio (Makefile.am): Likewise.
2071         * lib/stdio-read.c (gets): Likewise.
2072         * tests/test-stdio-c++.cc: Likewise.
2073         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2074         * lib/stdio.in.h (gets): Make warning occur in more places.
2075         * doc/posix-functions/gets.texi (gets): Update documentation.
2076         Reported by Christer Solskogen.
2077
2078         maint.mk: fix syntax checks without exclusions
2079         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2080         Reported by Daniel P. Berrange.
2081
2082         strerror_r: avoid compiler warning
2083         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2084         level.
2085
2086         fflush: avoid compiler warning
2087         * lib/fflush.c (update_fpos_cache): Mark variables that are
2088         potentially unused.
2089
2090 2012-03-25  Bruno Haible  <bruno@clisp.org>
2091
2092         Tests for module 'localeconv'.
2093         * modules/localeconv-tests: New file.
2094         * tests/test-localeconv.c: New file.
2095
2096         New module 'localeconv'.
2097         * lib/locale.in.h (localeconv): New declaration.
2098         * lib/localeconv.c: New file.
2099         * m4/localeconv.m4: New file.
2100         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2101         REPLACE_LOCALECONV.
2102         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2103         REPLACE_LOCALECONV.
2104         * modules/localeconv: New file.
2105         * modules/nl_langinfo (Depends-on): Add localeconv.
2106         * modules/human (Depends-on): Likewise.
2107         * doc/posix-functions/localeconv.texi: Mention the new module.
2108
2109 2012-03-25  Bruno Haible  <bruno@clisp.org>
2110
2111         locale: Provide a complete 'struct lconv'.
2112         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2113         'struct lconv' does not contain int_p_cs_precedes.
2114         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2115         * doc/posix-headers/locale.texi: Update.
2116
2117         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2118         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2119         * doc/posix-headers/locale.texi: Update.
2120
2121         locale: Provide a working 'struct lconv'.
2122         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2123         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2124         'struct lconv' does not even contain decimal_point.
2125         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2126         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2127         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2128         * doc/posix-headers/locale.texi: Mention the problems with
2129         'struct lconv'.
2130         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2131
2132 2012-03-24  Bruno Haible  <bruno@clisp.org>
2133
2134         Enable common subexpression optimization in GCC.
2135         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2136         macros.
2137         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2138         GCC attribute 'const'.
2139         (uc_locale_language): Declare with GCC attribute 'pure'.
2140         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2141         with GCC attribute 'const'.
2142         * lib/unictype.in.h (uc_is_general_category_withtable,
2143         uc_combining_class, uc_combining_class_name,
2144         uc_combining_class_long_name, uc_bidi_class_name,
2145         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2146         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2147         uc_decimal_value, uc_digit_value, uc_numeric_value,
2148         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2149         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2150         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2151         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2152         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2153         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2154         Declare with GCC attribute 'const'.
2155         (uc_general_category_name, uc_general_category_long_name,
2156         uc_general_category_byname, uc_general_category,
2157         uc_is_general_category, uc_combining_class_byname,
2158         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2159         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2160         Declare with GCC attribute 'pure'.
2161         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2162         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2163         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2164         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2165         with GCC attribute 'pure'.
2166         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2167         'const'.
2168         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2169         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2170         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2171         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2172         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2173         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2174         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2175         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2176         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2177         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2178         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2179         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2180         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2181         GCC attribute 'pure'.
2182         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2183         'const'.
2184         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2185         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2186         u32_strwidth): Declare with GCC attribute 'pure'.
2187
2188         Enable common subexpression optimization in GCC.
2189         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2190         (alphasort): Declare with GCC attribute 'pure'.
2191         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2192         (atoll): Declare with GCC attribute 'pure'.
2193         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2194         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2195         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2196         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2197         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2198         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2199         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2200
2201 2012-03-24  Bruno Haible  <bruno@clisp.org>
2202
2203         gnulib-tool: Avoid unintended error output from 'cmp'.
2204         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2205         "cmp -s", not "cmp > /dev/null".
2206
2207 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2208
2209         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2210
2211         It's not just Automake versions < 1.9b that creates an empty
2212         pkgdatadir at installation time if pkgdata_DATA is specified
2213         to empty; modern automake versions do this as well, at least
2214         until automake 1.11.4 (not yet released at the moment of writing,
2215         but soon to appear).  That behaviour was generally considered a
2216         feature rather than a bug, at least until this discussion:
2217         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2218
2219         See also automake bugs #10997 and #11030.
2220
2221         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2222         reference to relevant automake bug numbers.
2223         (func_emit_tests_Makefile_am): Likewise.
2224
2225 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2226
2227         announce-gen: use Digest::SHA when possible
2228         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2229         back to Digest::SHA1 if necessary.
2230
2231 2012-03-20  Jim Meyering  <meyering@redhat.com>
2232
2233         tests: avoid gcc warnings about argv vs. const initializers
2234         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2235         warnings about discarding 'const' qualifier from pointer target type.
2236         * tests/test-posix_spawn2.c (main): Likewise.
2237
2238 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2239
2240         README-release: simplify slightly
2241         * top/README-release: Run "git checkout master" only once.
2242
2243 2012-03-15  Mark Wielaard  <mark@klomp.org>
2244
2245         git-merge-changelog: add specific example on how to use with hg.
2246         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2247
2248 2012-03-18  Mark Wielaard  <mark@klomp.org>
2249
2250         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2251
2252 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2253
2254         git-version-gen: don't let "prefix" envvar cause trouble
2255         * build-aux/git-version-gen (prefix): Initialize properly,
2256         so as not to use a value specified via the environment.
2257         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2258
2259 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2260
2261         regex: diagnose too-large repeat counts in EREs
2262         Previously, the code did not diagnose the too-large repeat count
2263         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2264         as if it were 'b\{1000000000}', which is unexpected.
2265         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2266         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2267         is a reasonable one for this problem.  Another option would be to
2268         create a new REG_OVERFLOW error for repeat counts that are too large.
2269         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2270         count is too large, so that the caller can distinguish the two cases.
2271         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2272         "Too large" return code, and that repeat counts are one example of this.
2273
2274 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         doc: some glibc x32 integer width issues
2277         * doc/posix-headers/sys_types.texi (sys/types.h):
2278         * doc/posix-headers/time.texi (time.h):
2279         Mention that glibc x32 does not conform to POSIX in a couple of
2280         areas related to integer widths.
2281
2282 2012-03-15  Bruno Haible  <bruno@clisp.org>
2283
2284         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2285         * lib/fma.c (VOLATILE): New macro.
2286         (FUNC): Use it to work around a GCC compiler bug.
2287
2288 2012-03-13  Bruno Haible  <bruno@clisp.org>
2289
2290         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2291         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2292         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2293         REPLACE_HYPOTL to 1.
2294         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2295
2296 2012-03-13  Bruno Haible  <bruno@clisp.org>
2297
2298         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2299         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2300         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2301         REPLACE_REMAINDERL to 1.
2302         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2303         bug.
2304
2305 2012-03-13  Bruno Haible  <bruno@clisp.org>
2306
2307         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2308         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2309         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2310         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2311         too big rounding errors.
2312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2313         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2314         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2315         (Depends-on): Update conditions.
2316         * tests/test-sqrtl.c (my_ldexpl): New function.
2317         (main): Add test of a particular value.
2318         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2319
2320 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2321
2322         doc: Update timer_* platform portability notes.
2323         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2324         that always return ENOSYS.
2325         * doc/posix-functions/timer_delete.texi: Likewise.
2326         * doc/posix-functions/timer_gettime.texi: Likewise.
2327         * doc/posix-functions/timer_settime.texi: Likewise.
2328
2329 2012-03-13  Bruno Haible  <bruno@clisp.org>
2330
2331         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2332         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2333         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2334         REPLACE_CBRTL to 1.
2335         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2336
2337 2012-03-13  Bruno Haible  <bruno@clisp.org>
2338
2339         remainderl: Avoid compilation error on AIX >= 5.2.
2340         * lib/math.in.h (remainderl): Undefine macro from the system header.
2341
2342 2012-03-13  Bruno Haible  <bruno@clisp.org>
2343
2344         Avoid compilation errors with MSVC option -fp:strict.
2345         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2346         * lib/cbrtf.c: Likewise.
2347         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2348
2349 2012-03-12  Bruno Haible  <bruno@clisp.org>
2350
2351         uninorm: Don't crash in out-of-memory conditions.
2352         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2353         gracefully.
2354         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2355         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2356
2357 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2358
2359         quote: fix syntax-check
2360         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2361         also exports quote_quoting_options.
2362
2363 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2364
2365         Collapse list of copyright years to ranges.  See
2366         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2367         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2368         build-aux/csharpexec.sh.in, build-aux/gnupload,
2369         build-aux/install-reloc, build-aux/javacomp.sh.in,
2370         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2371         build-aux/move-if-change, build-aux/reloc-ldflags,
2372         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2373
2374 2012-03-11  Bruno Haible  <bruno@clisp.org>
2375
2376         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2377         * m4/log2f-ieee.m4: New file.
2378         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2379         whether log2f works with a minus zero argument. Replace it if not.
2380         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2381         (Depends-on): Add log2-ieee.
2382         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2383         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2384
2385         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2386         * m4/log2-ieee.m4: New file.
2387         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2388         whether log2 works with a minus zero argument. Replace it if not.
2389         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2390         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2391         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2392
2393         Tests for module 'log2l-ieee'.
2394         * modules/log2l-ieee-tests: New file.
2395         * tests/test-log2l-ieee.c: New file.
2396
2397         New module 'log2l-ieee'.
2398         * modules/log2l-ieee: New file.
2399
2400         Tests for module 'log2-ieee'.
2401         * modules/log2-ieee-tests: New file.
2402         * tests/test-log2-ieee.c: New file.
2403
2404         New module 'log2-ieee'.
2405         * modules/log2-ieee: New file.
2406
2407         Tests for module 'log2f-ieee'.
2408         * modules/log2f-ieee-tests: New file.
2409         * tests/test-log2f-ieee.c: New file.
2410         * tests/test-log2-ieee.h: New file.
2411
2412         New module 'log2f-ieee'.
2413         * modules/log2f-ieee: New file.
2414
2415 2012-03-11  Bruno Haible  <bruno@clisp.org>
2416
2417         Tests for module 'log2l'.
2418         * modules/log2l-tests: New file.
2419         * tests/test-log2l.c: New file.
2420
2421         New module 'log2l'.
2422         * lib/math.in.h (log2l): New declaration.
2423         * lib/log2l.c: New file.
2424         * m4/log2l.m4: New file.
2425         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2427         REPLACE_LOG2L.
2428         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2429         REPLACE_LOG2L.
2430         * modules/log2l: New file.
2431         * tests/test-math-c++.cc: Check the declaration of log2l.
2432         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2433         and OSF/1 problems.
2434
2435 2012-03-11  Bruno Haible  <bruno@clisp.org>
2436
2437         Tests for module 'log2f'.
2438         * modules/log2f-tests: New file.
2439         * tests/test-log2f.c: New file.
2440
2441         New module 'log2f'.
2442         * lib/math.in.h (log2f): New declaration.
2443         * lib/log2f.c: New file.
2444         * m4/log2f.m4: New file.
2445         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2447         REPLACE_LOG2F.
2448         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2449         REPLACE_LOG2F.
2450         * modules/log2f: New file.
2451         * tests/test-math-c++.cc: Check the declaration of log2f.
2452         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2453         and OSF/1 and Cygwin problems.
2454
2455 2012-03-11  Bruno Haible  <bruno@clisp.org>
2456
2457         Tests for module 'log2'.
2458         * modules/log2-tests: New file.
2459         * tests/test-log2.c: New file.
2460         * tests/test-log2.h: New file.
2461
2462         New module 'log2'.
2463         * lib/math.in.h (log2): New declaration.
2464         * lib/log2.c: New file.
2465         * m4/log2.m4: New file.
2466         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2468         REPLACE_LOG2.
2469         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2470         REPLACE_LOG2.
2471         * modules/log2: New file.
2472         * tests/test-math-c++.cc: Check the declaration of log2.
2473         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2474         and OSF/1 and Cygwin problems.
2475
2476 2012-03-11  Bruno Haible  <bruno@clisp.org>
2477
2478         exp2* tests: More tests.
2479         * tests/test-exp2.h (test_function): Test all integral arguments that
2480         don't need to overflow or denormalized numbers.
2481         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2482         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2483         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2484
2485 2012-03-10  Bruno Haible  <bruno@clisp.org>
2486
2487         log1pl-ieee: Work around test failure on AIX 7.1.
2488         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2489
2490         log1pl-ieee: Work around test failure on IRIX 6.5.
2491         * m4/log1pl-ieee.m4: New file.
2492         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2493         test whether log1pl works with a minus zero argument. Replace it if
2494         not.
2495         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2497         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2498         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2499         (Depends-on): Update conditions.
2500         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2501         m4/signbit.m4.
2502         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2503         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2504
2505         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2506         * m4/log1pf-ieee.m4: New file.
2507         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2508         test whether log1pf works with a minus zero argument. Replace it if
2509         not.
2510         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2511         m4/signbit.m4.
2512         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2513         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2514
2515         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2516         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2517         (configure.ac): Require gl_FUNC_LOG1PF.
2518
2519         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2520         * m4/log1p-ieee.m4: New file.
2521         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2522         whether log1p works with a minus zero argument. Replace it if not.
2523         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2525         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2526         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2527         (Depends-on): Update conditions.
2528         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2529         m4/signbit.m4.
2530         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2531         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2532
2533         Tests for module 'log1pl-ieee'.
2534         * modules/log1pl-ieee-tests: New file.
2535         * tests/test-log1pl-ieee.c: New file.
2536
2537         New module 'log1pl-ieee'.
2538         * modules/log1pl-ieee: New file.
2539
2540         Tests for module 'log1p-ieee'.
2541         * modules/log1p-ieee-tests: New file.
2542         * tests/test-log1p-ieee.c: New file.
2543
2544         New module 'log1p-ieee'.
2545         * modules/log1p-ieee: New file.
2546
2547         Tests for module 'log1pf-ieee'.
2548         * modules/log1pf-ieee-tests: New file.
2549         * tests/test-log1pf-ieee.c: New file.
2550         * tests/test-log1p-ieee.h: New file.
2551
2552         New module 'log1pf-ieee'.
2553         * modules/log1pf-ieee: New file.
2554
2555 2012-03-10  Bruno Haible  <bruno@clisp.org>
2556
2557         Tests for module 'log1pl'.
2558         * modules/log1pl-tests: New file.
2559         * tests/test-log1pl.c: New file.
2560
2561         New module 'log1pl'.
2562         * lib/math.in.h (log1pl): New declaration.
2563         * lib/log1pl.c: New file.
2564         * m4/log1pl.m4: New file.
2565         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2567         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2568         * modules/log1pl: New file.
2569         * tests/test-math-c++.cc: Check the declaration of log1pl.
2570         * doc/posix-functions/log1pl.texi: Mention the new module.
2571
2572 2012-03-10  Bruno Haible  <bruno@clisp.org>
2573
2574         Tests for module 'log1pf'.
2575         * modules/log1pf-tests: New file.
2576         * tests/test-log1pf.c: New file.
2577
2578         New module 'log1pf'.
2579         * lib/math.in.h (log1pf): New declaration.
2580         * lib/log1pf.c: New file.
2581         * m4/log1pf.m4: New file.
2582         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2584         REPLACE_LOG1PF.
2585         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2586         REPLACE_LOG1PF.
2587         * modules/log1pf: New file.
2588         * tests/test-math-c++.cc: Check the declaration of log1pf.
2589         * doc/posix-functions/log1pf.texi: Mention the new module.
2590
2591 2012-03-10  Bruno Haible  <bruno@clisp.org>
2592
2593         log1p tests: More tests.
2594         * tests/test-log1p.h: New file.
2595         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2596         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2597         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2598         (main): Invoke test_function.
2599
2600         log1p: Provide replacement for Minix and MSVC.
2601         * lib/math.in.h (log1p): New declaration.
2602         * lib/log1p.c: New file.
2603         * m4/log1p.m4: New file.
2604         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2606         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2607         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2608         (Depends-on): Add math, isnand, log, round.
2609         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2610         HAVE_LOG1P is 0.
2611         * tests/test-math-c++.cc: Check the declaration of log1p.
2612         * doc/posix-functions/log1p.texi: Mention the replacement.
2613
2614 2012-03-10  Bruno Haible  <bruno@clisp.org>
2615
2616         math tests: Small simplification.
2617         * tests/test-exp.h (test_function): Use the same err_bound for
2618         'double' on platforms with sizeof (long double) == sizeof (double)
2619         than on platforms with sizeof (long double) > sizeof (double).
2620         * tests/test-exp2.h (test_function): Likewise.
2621         * tests/test-expm1.h (test_function): Likewise.
2622         * tests/test-log.h (test_function): Likewise.
2623
2624 2012-03-10  Bruno Haible  <bruno@clisp.org>
2625
2626         Fix some comments.
2627         * lib/expl.c: Fix an ambiguous comment.
2628         * lib/expm1.c: Likewise.
2629         * lib/expm1l.c: Likewise.
2630         * lib/exp2.c: Likewise.
2631         * lib/exp2l.c: Likewise.
2632
2633 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2634
2635         regex: allow inclusion of <regex.h> before <limits.h>
2636         Without this patch, portable programs had to include <limits.h> before
2637         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2638         I ran into this problem with a test version of GNU grep on Solaris 8.
2639         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2640         This is done conditionally so that this change can be merged
2641         back to glibc.
2642         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2643         using the included regex.
2644
2645         fts: depend on fdopendir
2646         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2647         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2648         problem was introduced when fdopendir was split out.
2649
2650 2012-03-10  Bruno Haible  <bruno@clisp.org>
2651
2652         Remove unused variables.
2653         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2654         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2655
2656 2012-03-10  Bruno Haible  <bruno@clisp.org>
2657
2658         isnanf-nolibm: Fix last commit.
2659         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2660
2661         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2662         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2663
2664 2012-03-10  Bruno Haible  <bruno@clisp.org>
2665
2666         logf-ieee: Work around test failure on NetBSD 5.1.
2667         * m4/logf-ieee.m4: New file.
2668         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2669         whether logf works with a negative argument. Replace it if not.
2670         * lib/logf.c (logf): For negative arguments, return NaN.
2671         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2672         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2673         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2674
2675         logf-ieee: Work around test failure on Solaris 9.
2676         * modules/logf-ieee (Depends-on): Add log-ieee.
2677         (configure.ac): Require gl_FUNC_LOGF.
2678
2679         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2680         * m4/log-ieee.m4: New file.
2681         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2682         log works with a negative argument. Replace it if not.
2683         * lib/log.c (log): For negative arguments, return NaN.
2684         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2685         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2686         * doc/posix-functions/log.texi: Mention the log-ieee module.
2687
2688         Tests for module 'logl-ieee'.
2689         * modules/logl-ieee-tests: New file.
2690         * tests/test-logl-ieee.c: New file.
2691
2692         New module 'logl-ieee'.
2693         * modules/logl-ieee: New file.
2694
2695         Tests for module 'log-ieee'.
2696         * modules/log-ieee-tests: New file.
2697         * tests/test-log-ieee.c: New file.
2698
2699         New module 'log-ieee'.
2700         * modules/log-ieee: New file.
2701
2702         Tests for module 'logf-ieee'.
2703         * modules/logf-ieee-tests: New file.
2704         * tests/test-logf-ieee.c: New file.
2705         * tests/test-log-ieee.h: New file.
2706
2707         New module 'logf-ieee'.
2708         * modules/logf-ieee: New file.
2709
2710 2012-03-10  Bruno Haible  <bruno@clisp.org>
2711
2712         log: Fix bug introduced on 2012-03-09.
2713         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2714
2715 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2716
2717         timer-time: link explicitly with pthreads on glibc
2718         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2719         to support static linking, when newer glibc is
2720         detected, as that contains pthread emulation of
2721         POSIX timer functions where required.
2722         * modules/timer-time: Depend on threadlib to
2723         pull in the appropriate library to link.
2724
2725 2012-03-10  Bruno Haible  <bruno@clisp.org>
2726
2727         log* tests: More tests.
2728         * tests/test-log.h: New file.
2729         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2730         (main): Invoke test_function.
2731         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2732         (main): Invoke test_function.
2733         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2734         (main): Invoke test_function.
2735         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2736         tests/randomd.c.
2737         (Makefile.am): Add randomd.c to test_log_SOURCES.
2738         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2739         tests/randomf.c.
2740         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2741         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2742         tests/randoml.c.
2743         (Depends-on): Add 'float'.
2744         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2745
2746 2012-03-09  Bruno Haible  <bruno@clisp.org>
2747
2748         logl: Work around OSF/1 5.1 bug.
2749         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2750         * lib/logl.c (logl): If logl exists, use it and provide just the
2751         workaround.
2752         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2753         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2755         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2756         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2757         (Depends-on): Update conditions.
2758         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2759
2760 2012-03-09  Bruno Haible  <bruno@clisp.org>
2761
2762         logf: Work around OSF/1 5.1 bug.
2763         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2764         * lib/logf.c (logf): If logf exists, use it and provide just the
2765         workaround.
2766         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2767         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2769         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2770         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2771         (Depends-on): Update conditions.
2772         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2773
2774 2012-03-09  Bruno Haible  <bruno@clisp.org>
2775
2776         log: Work around OSF/1 5.1 bug.
2777         * lib/math.in.h (log): New declaration.
2778         * lib/log.c: New file.
2779         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2780         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2781         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2783         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2784         * modules/log (Files): Add lib/log.c.
2785         (Depends-on): Add math.
2786         (configure.ac): If REPLACE_LOG is 1, compile an override.
2787         * tests/test-math-c++.cc: Check the declaration of log.
2788         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2789
2790 2012-03-09  Jim Meyering  <meyering@redhat.com>
2791
2792         readtokens.c: adjust wording in a comment
2793         * lib/readtokens.c: Insert omitted "that" in a comment.
2794
2795 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2796
2797         modechange: add notations +40, 00440, etc.
2798         * lib/modechange.c (mode_compile): Support new notations
2799         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2800
2801 2012-03-08  Bruno Haible  <bruno@clisp.org>
2802
2803         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2804         * m4/exp2l-ieee.m4: New file.
2805         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2806         test whether exp2l works with a NaN argument and with a negative
2807         infinity argument. Replace it if not.
2808         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2810         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2811         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2812         (Depends-on): Update conditions.
2813         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2814         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2815         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2816
2817         Tests for module 'exp2l-ieee'.
2818         * modules/exp2l-ieee-tests: New file.
2819         * tests/test-exp2l-ieee.c: New file.
2820
2821         New module 'exp2l-ieee'.
2822         * modules/exp2l-ieee: New file.
2823
2824         Tests for module 'exp2-ieee'.
2825         * modules/exp2-ieee-tests: New file.
2826         * tests/test-exp2-ieee.c: New file.
2827
2828         New module 'exp2-ieee'.
2829         * modules/exp2-ieee: New file.
2830
2831         Tests for module 'exp2f-ieee'.
2832         * modules/exp2f-ieee-tests: New file.
2833         * tests/test-exp2f-ieee.c: New file.
2834         * tests/test-exp2-ieee.h: New file.
2835
2836         New module 'exp2f-ieee'.
2837         * modules/exp2f-ieee: New file.
2838
2839 2012-03-08  Bruno Haible  <bruno@clisp.org>
2840
2841         Tests for module 'exp2l'.
2842         * modules/exp2l-tests: New file.
2843         * tests/test-exp2l.c: New file.
2844
2845         New module 'exp2l'.
2846         * lib/math.in.h (exp2l): New declaration.
2847         * lib/exp2l.c: New file.
2848         * lib/expl-table.c: New file, extracted from lib/expl.c.
2849         * lib/expl.c (gl_expl_table): New declaration.
2850         (expl): Remove expl_table. Update reference.
2851         * m4/exp2l.m4: New file.
2852         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2854         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2855         * modules/exp2l: New file.
2856         * modules/expl (Files): Add lib/expl-table.c.
2857         (configure.ac): Compile also expl-table.c.
2858         * tests/test-math-c++.cc: Check the declaration of exp2l.
2859         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2860         problem.
2861
2862 2012-03-08  Bruno Haible  <bruno@clisp.org>
2863
2864         Tests for module 'exp2f'.
2865         * modules/exp2f-tests: New file.
2866         * tests/test-exp2f.c: New file.
2867
2868         New module 'exp2f'.
2869         * lib/math.in.h (exp2f): New declaration.
2870         * lib/exp2f.c: New file.
2871         * m4/exp2f.m4: New file.
2872         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2874         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2875         * modules/exp2f: New file.
2876         * tests/test-math-c++.cc: Check the declaration of exp2f.
2877         * doc/posix-functions/exp2f.texi: Mention the new module and the
2878         IRIX problem.
2879
2880 2012-03-08  Bruno Haible  <bruno@clisp.org>
2881
2882         Tests for module 'exp2'.
2883         * modules/exp2-tests: New file.
2884         * tests/test-exp2.c: New file.
2885         * tests/test-exp2.h: New file.
2886
2887         New module 'exp2'.
2888         * lib/math.in.h (exp2): New declaration.
2889         * lib/exp2.c: New file.
2890         * m4/exp2.m4: New file.
2891         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2893         REPLACE_EXP2.
2894         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2895         REPLACE_EXP2.
2896         * modules/exp2: New file.
2897         * tests/test-math-c++.cc: Check the declaration of exp2.
2898         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2899         and OpenBSD problems.
2900
2901 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2902
2903         savedir: fix comment typo
2904         * lib/savedir.c (savedirstream): Fix typo in comment.
2905
2906 2012-03-08  Bruno Haible  <bruno@clisp.org>
2907
2908         test-readtokens.c: use const; remove unwarranted cast
2909         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2910
2911 2012-03-08  Bruno Haible  <bruno@clisp.org>
2912
2913         fmal: Avoid compilation error on AIX.
2914         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2915         AIX 5.2..7.1.
2916
2917 2012-03-08  Bruno Haible  <bruno@clisp.org>
2918
2919         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2920         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2921         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2922         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2923         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2924         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2925         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2926
2927 2012-03-08  Bruno Haible  <bruno@clisp.org>
2928
2929         remainderf: Override buggy system function on IRIX 6.5.
2930         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2931         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2932         when it exists.
2933         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2934
2935 2012-03-08  Jim Meyering  <meyering@redhat.com>
2936
2937         test-readtokens.c: avoid const-related compilation warnings
2938         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2939
2940 2012-03-07  Jim Meyering  <meyering@redhat.com>
2941             Bruno Haible  <bruno@clisp.org>
2942
2943         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2944         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2945         tests/randomd.c.
2946         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2947         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2948         tests/randoml.c.
2949         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2950
2951 2012-03-07  Bruno Haible  <bruno@clisp.org>
2952
2953         expm1l: Avoid compilation error on AIX.
2954         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2955         AIX 5.2..7.1.
2956
2957 2012-03-07  Bruno Haible  <bruno@clisp.org>
2958
2959         expm1l: Don't override undeclared system function on IRIX 6.5.
2960         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2961         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2962         it exists. Set HAVE_DECL_EXPM1L.
2963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2964         HAVE_EXPM1L.
2965         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2966         HAVE_EXPM1L.
2967         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2968
2969 2012-03-07  Bruno Haible  <bruno@clisp.org>
2970
2971         remainderl: Don't override undeclared system function on IRIX 6.5.
2972         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2973         HAVE_REMAINDERL.
2974         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2975         declared when it exists. Set HAVE_DECL_REMAINDERL.
2976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2977         not HAVE_REMAINDERL.
2978         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2979         HAVE_REMAINDERL.
2980         * doc/posix-functions/remainderl.texi: Mention missing declaration
2981         problem.
2982
2983 2012-03-07  Bruno Haible  <bruno@clisp.org>
2984
2985         rintf: Don't override undeclared system function on IRIX 6.5.
2986         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2987         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2988         exists. Set HAVE_DECL_RINTF.
2989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2990         HAVE_RINTF.
2991         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2992         HAVE_RINTF.
2993         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2994
2995 2012-03-07  Bruno Haible  <bruno@clisp.org>
2996
2997         roundl: Avoid compilation error on AIX.
2998         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2999         AIX 5.2..7.1.
3000
3001 2012-03-07  Bruno Haible  <bruno@clisp.org>
3002
3003         roundl: Don't override undeclared system function on IRIX 6.5.
3004         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3005         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3006         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3007         * modules/roundl (configure.ac): For replacement code, test
3008         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3009         (Depends-on): Update conditions.
3010         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3011
3012 2012-03-07  Bruno Haible  <bruno@clisp.org>
3013
3014         roundf: Don't override undeclared system function on IRIX 6.5.
3015         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3016         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3017         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3018         * modules/roundf (configure.ac): For replacement code, test
3019         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3020         (Depends-on): Update conditions.
3021         * modules/roundf-ieee (Depends-on): Update conditions.
3022         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3023
3024 2012-03-07  Bruno Haible  <bruno@clisp.org>
3025
3026         round: Don't override undeclared system function on IRIX 6.5.
3027         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3028         argument.
3029         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3030         also when it is not declared. Set HAVE_ROUND. For replacement code,
3031         test HAVE_ROUND, not HAVE_DECL_ROUND.
3032         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3033         not HAVE_DECL_ROUND.
3034         (Depends-on): Update conditions.
3035         * modules/round-ieee (Depends-on): Update conditions.
3036         * doc/posix-functions/round.texi: Mention the IRIX problem.
3037
3038 2012-03-07  Bruno Haible  <bruno@clisp.org>
3039
3040         copysignf: Don't override undeclared system function on IRIX 6.5.
3041         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3042         HAVE_COPYSIGNF.
3043         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3044         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3046         not HAVE_COPYSIGNF.
3047         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3048         HAVE_COPYSIGNF.
3049         * doc/posix-functions/copysignf.texi: Mention missing declaration
3050         problem.
3051
3052 2012-03-07  Jim Meyering  <meyering@redhat.com>
3053
3054         readtokens: add tests
3055         * modules/readtokens-tests: New file.
3056         * tests/test-readtokens.c: New file.
3057
3058 2012-03-07  Jim Meyering  <meyering@redhat.com>
3059
3060         quotearg: the module must now include quote.h
3061         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3062         So must the module.
3063         * modules/quotearg (Files): Add quote.h.
3064
3065 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3066
3067         readtokens: avoid core dumps with unusual calling patterns
3068         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3069         * lib/readtokens.c: Include limits.h.
3070         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3071         (readtoken): Don't cache the delimiters; the cache code was buggy
3072         if !delim && saved_delim, or if the new n_delim differs from the old.
3073         Also, it wasn't thread-safe.
3074
3075 2012-03-07  Bruno Haible  <bruno@clisp.org>
3076
3077         quote: Adhere to common module description layout.
3078         * modules/quote (Makefile.am): Add back empty section.
3079
3080 2012-03-06  Akim Demaille  <demaille@gostai.com>
3081
3082         quote: fuse into quotearg
3083         This patch is made for the benefit of Bison.
3084         quote does not leave the choice of the quoting style to the user.
3085         quoting_style provides poor customizability, yet quoting_options,
3086         which is very rich, is hidden inside quotearg.c.  So in order to
3087         allow quote customization, move its implementation to quotearg.c.
3088         * lib/quote.c: Remove.
3089         * modules/quote: Adjust.
3090         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3091         warning: provide all the members of literal structs.
3092         (quote_quoting_options): New.
3093         (quote, quote_n): Import implementation from quote.c.
3094         * lib/quote.h: Import the comments from quote.c.
3095         (quote_quoting_options): New.
3096
3097 2012-03-06  Bruno Haible  <bruno@clisp.org>
3098
3099         Tests for module 'expm1l-ieee'.
3100         * modules/expm1l-ieee-tests: New file.
3101         * tests/test-expm1l-ieee.c: New file.
3102
3103         New module 'expm1l-ieee'.
3104         * modules/expm1l-ieee: New file.
3105
3106         Tests for module 'expm1f-ieee'.
3107         * modules/expm1f-ieee-tests: New file.
3108         * tests/test-expm1f-ieee.c: New file.
3109
3110         New module 'expm1f-ieee'.
3111         * modules/expm1f-ieee: New file.
3112
3113         Tests for module 'expm1-ieee'.
3114         * modules/expm1-ieee-tests: New file.
3115         * tests/test-expm1-ieee.c: New file.
3116         * tests/test-expm1-ieee.h: New file.
3117
3118         New module 'expm1-ieee'.
3119         * modules/expm1-ieee: New file.
3120         * m4/expm1-ieee.m4: New file.
3121         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3122         whether expm1 works with a minus zero argument. Replace it if not.
3123         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3125         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3126         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3127         (Depends-on): Update conditions.
3128         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3129         AIX problem.
3130
3131 2012-03-06  Bruno Haible  <bruno@clisp.org>
3132
3133         Work around expm1f bug on IRIX 6.5.
3134         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3135         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3136         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3137         not work.
3138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3139         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3140         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3141         (Depends-on): Update conditions.
3142         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3143
3144 2012-03-06  Bruno Haible  <bruno@clisp.org>
3145
3146         Tests for module 'expm1l'.
3147         * modules/expm1l-tests: New file.
3148         * tests/test-expm1l.c: New file.
3149
3150         New module 'expm1l'.
3151         * lib/math.in.h (expm1l): New declaration.
3152         * lib/expm1l.c: New file.
3153         * m4/expm1l.m4: New file.
3154         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3156         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3157         * modules/expm1l: New file.
3158         * tests/test-math-c++.cc: Check the declaration of expm1l.
3159         * doc/posix-functions/expm1l.texi: Mention the new module.
3160
3161 2012-03-06  Bruno Haible  <bruno@clisp.org>
3162
3163         Tests for module 'expm1f'.
3164         * modules/expm1f-tests: New file.
3165         * tests/test-expm1f.c: New file.
3166
3167         New module 'expm1f'.
3168         * lib/math.in.h (expm1f): New declaration.
3169         * lib/expm1f.c: New file.
3170         * m4/expm1f.m4: New file.
3171         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3173         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3174         * modules/expm1f: New file.
3175         * tests/test-math-c++.cc: Check the declaration of expm1f.
3176         * doc/posix-functions/expm1f.texi: Mention the new module.
3177
3178 2012-03-06  Bruno Haible  <bruno@clisp.org>
3179
3180         Tests for module 'expm1'.
3181         * modules/expm1-tests: New file.
3182         * tests/test-expm1.c: New file.
3183         * tests/test-expm1.h: New file.
3184
3185         New module 'expm1'.
3186         * lib/math.in.h (expm1): New declaration.
3187         * lib/expm1.c: New file.
3188         * m4/expm1.m4: New file.
3189         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3191         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3192         * modules/expm1: New file.
3193         * tests/test-math-c++.cc: Check the declaration of expm1.
3194         * doc/posix-functions/expm1.texi: Mention the new module.
3195
3196 2012-03-06  Bruno Haible  <bruno@clisp.org>
3197
3198         math: Ensure declarations of math functions.
3199         * modules/acosf (Depends-on): Add 'extensions'.
3200         * modules/asinf (Depends-on): Likewise.
3201         * modules/atan2f (Depends-on): Likewise.
3202         * modules/atanf (Depends-on): Likewise.
3203         * modules/cbrt (Depends-on): Likewise.
3204         * modules/cbrtf (Depends-on): Likewise.
3205         * modules/cbrtl (Depends-on): Likewise.
3206         * modules/copysignf (Depends-on): Likewise.
3207         * modules/copysignl (Depends-on): Likewise.
3208         * modules/cosf (Depends-on): Likewise.
3209         * modules/coshf (Depends-on): Likewise.
3210         * modules/expf (Depends-on): Likewise.
3211         * modules/fabsf (Depends-on): Likewise.
3212         * modules/fabsl (Depends-on): Likewise.
3213         * modules/fmaf (Depends-on): Likewise.
3214         * modules/fmal (Depends-on): Likewise.
3215         * modules/fmodf (Depends-on): Likewise.
3216         * modules/fmodl (Depends-on): Likewise.
3217         * modules/frexpf (Depends-on): Likewise.
3218         * modules/frexpl (Depends-on): Likewise.
3219         * modules/hypot (Depends-on): Likewise.
3220         * modules/hypotf (Depends-on): Likewise.
3221         * modules/hypotl (Depends-on): Likewise.
3222         * modules/ldexpf (Depends-on): Likewise.
3223         * modules/ldexpl (Depends-on): Likewise.
3224         * modules/log10f (Depends-on): Likewise.
3225         * modules/log10l (Depends-on): Likewise.
3226         * modules/log1p (Depends-on): Likewise.
3227         * modules/logb (Depends-on): Likewise.
3228         * modules/logf (Depends-on): Likewise.
3229         * modules/modff (Depends-on): Likewise.
3230         * modules/modfl (Depends-on): Likewise.
3231         * modules/powf (Depends-on): Likewise.
3232         * modules/remainderf (Depends-on): Likewise.
3233         * modules/remainderl (Depends-on): Likewise.
3234         * modules/rintf (Depends-on): Likewise.
3235         * modules/rintl (Depends-on): Likewise.
3236         * modules/sinf (Depends-on): Likewise.
3237         * modules/sinhf (Depends-on): Likewise.
3238         * modules/sqrtf (Depends-on): Likewise.
3239         * modules/tanf (Depends-on): Likewise.
3240         * modules/tanhf (Depends-on): Likewise.
3241         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3242         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3243         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3244         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3245         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3246         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3247         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3248         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3249         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3250         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3251         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3252         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3253         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3254         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3255         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3256         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3257         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3258         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3259         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3260         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3261         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3262         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3263         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3264         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3265         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3266         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3267         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3268         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3269         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3270         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3271         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3272         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3273         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3274         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3275         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3276         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3277         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3278         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3279         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3280         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3281         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3282
3283 2012-03-06  Bruno Haible  <bruno@clisp.org>
3284
3285         math: Update module names in warnings.
3286         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3287         tanl): Use specific module name in warn-on-use warning.
3288
3289 2012-03-06  Bruno Haible  <bruno@clisp.org>
3290
3291         expl: Simplify computation.
3292         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3293
3294 2012-03-05  Bruno Haible  <bruno@clisp.org>
3295
3296         exp* tests: More tests.
3297         * tests/test-exp.h: New file.
3298         * tests/test-exp.c: Include <float.h> and test-exp.h.
3299         (main): Invoke test_function.
3300         * tests/test-expf.c: Include <float.h> and test-exp.h.
3301         (main): Invoke test_function.
3302         * tests/test-expl.c: Include <float.h> and test-exp.h.
3303         (main): Invoke test_function.
3304         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3305         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3306         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3307         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3308         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3309         (Depends-on): Add 'float'.
3310         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3311
3312         expl: Fix precision of computed result.
3313         * lib/expl.c: Completely rewritten.
3314         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3315         (Maintainer): Add me.
3316         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3317
3318 2012-03-05  Bruno Haible  <bruno@clisp.org>
3319
3320         cbrt* tests: More tests.
3321         * tests/test-cbrt.h: New file.
3322         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3323         (main): Invoke test_function.
3324         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3325         (main): Invoke test_function.
3326         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3327         (main): Invoke test_function.
3328         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3329         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3330         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3331         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3332         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3333         (Depends-on): Add 'float'.
3334         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3335
3336 2012-03-05  Bruno Haible  <bruno@clisp.org>
3337
3338         hypot* tests: More tests.
3339         * tests/test-hypot.h: New file, partially extracted from
3340         tests/test-hypotl.c.
3341         * tests/test-hypot.c: Include test-hypot.h.
3342         (main): Invoke test_function.
3343         * tests/test-hypotf.c: Include test-hypot.h.
3344         (main): Invoke test_function.
3345         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3346         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3347         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3348         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3349         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3350         tests/randomf.c.
3351         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3352         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3353         tests/randoml.c.
3354         (Depends-on): Add 'fpucw', 'float'.
3355         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3356
3357 2012-03-05  Bruno Haible  <bruno@clisp.org>
3358
3359         fpucw: Doc about FreeBSD.
3360         * lib/fpucw.h: Mention FreeBSD in comments.
3361
3362 2012-03-04  Bruno Haible  <bruno@clisp.org>
3363
3364         sqrt* tests: More tests.
3365         * tests/test-sqrt.h: New file.
3366         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3367         (main): Invoke test_function.
3368         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3369         (main): Invoke test_function.
3370         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3371         (main): Invoke test_function.
3372         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3373         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3374         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3375         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3376         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3377         (Depends-on): Add 'float'.
3378         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3379
3380 2012-03-04  Bruno Haible  <bruno@clisp.org>
3381
3382         remainder* tests: More tests.
3383         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3384         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3385         (main): Invoke test_function.
3386         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3387         (main): Invoke test_function.
3388         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3389         (main): Invoke test_function.
3390         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3391         tests/randomd.c.
3392         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3393         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3394         tests/randomf.c.
3395         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3396         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3397         tests/randoml.c.
3398         (Depends-on): Add 'float'.
3399         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3400
3401 2012-03-04  Bruno Haible  <bruno@clisp.org>
3402
3403         remainder, remainderf, remainderl: Fix computation for large quotients.
3404         * lib/remainder.c: Completely rewritten.
3405         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3406         USE_FLOAT.
3407         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3408         USE_LONG_DOUBLE.
3409         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3410         isnand, isinf. Remove round, fma.
3411         * modules/remainderf (Files): Add lib/remainder.c.
3412         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3413         Remove roundf, fmaf.
3414         * modules/remainderl (Files): Add lib/remainder.c.
3415         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3416         isinf. Remove roundl, fmal.
3417         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3418         REMAINDER_LIBM.
3419         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3420         REMAINDERF_LIBM.
3421         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3422         REMAINDERL_LIBM.
3423
3424 2012-03-04  Bruno Haible  <bruno@clisp.org>
3425
3426         fmod* tests: More tests.
3427         * tests/test-fmod.h (my_ldexp): New function.
3428         (test_function): Reduce amount of random numbers to test. Add tests
3429         of very large quotients x / y.
3430         * tests/test-fmod.c (MAX_EXP): New macro.
3431         * tests/test-fmodf.c (MAX_EXP): Likewise.
3432         * tests/test-fmodl.c (MAX_EXP): Likewise.
3433
3434 2012-03-04  Bruno Haible  <bruno@clisp.org>
3435
3436         fmod, fmodl: Fix computation for large quotients x / y.
3437         * lib/fmod.c: Completely rewritten.
3438         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3439         USE_LONG_DOUBLE.
3440         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3441         isnand. Remove fma.
3442         * modules/fmodl (Files): Add lib/fmod.c.
3443         (Depends-on): Add float, isfinite, signbit, fabsl,
3444         frexpl, ldexpl, isnanl. Remove fma.
3445         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3446         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3447
3448 2012-03-03  Bruno Haible  <bruno@clisp.org>
3449
3450         fmod* tests: More tests.
3451         * tests/test-fmod.h: New file.
3452         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3453         (main): Invoke test_function.
3454         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3455         (main): Invoke test_function.
3456         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3457         (main): Invoke test_function.
3458         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3459         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3460         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3461         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3462         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3463         (Depends-on): Add 'float'.
3464         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3465
3466 2012-03-03  Bruno Haible  <bruno@clisp.org>
3467
3468         rint* tests: More tests.
3469         * tests/test-rint.h: New file, partially extracted from
3470         tests/test-rintl.c.
3471         * tests/test-rint.c: Include test-rint.h.
3472         (main): Invoke test_function.
3473         * tests/test-rintf.c: Include test-rint.h.
3474         (main): Invoke test_function.
3475         * tests/test-rintl.c: Include test-rint.h.
3476         (main): Invoke test_function.
3477         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3478         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3479         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3480         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3481         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3482         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3483
3484 2012-03-03  Bruno Haible  <bruno@clisp.org>
3485
3486         modf* tests: More tests.
3487         * tests/test-modf.h: New file.
3488         * tests/test-modf.c: Include <float.h> and test-modf.h.
3489         (main): Invoke test_function.
3490         * tests/test-modff.c: Include <float.h> and test-modf.h.
3491         (main): Invoke test_function.
3492         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3493         (main): Invoke test_function.
3494         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3495         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3496         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3497         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3498         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3499         (Depends-on): Add 'float'.
3500         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3501
3502 2012-03-03  Bruno Haible  <bruno@clisp.org>
3503
3504         fabs* tests: More tests.
3505         * tests/test-fabs.h: New file, partially extracted from
3506         tests/test-fabsl.c.
3507         * tests/test-fabs.c (RANDOM): New macro.
3508         * tests/test-fabsf.c (RANDOM): New macro.
3509         * tests/test-fabsl.c (RANDOM): New macro.
3510         * modules/fabs-tests (Files): Add tests/randomd.c.
3511         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3512         * modules/fabsf-tests (Files): Add tests/randomf.c.
3513         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3514         * modules/fabsl-tests (Files): Add tests/randoml.c.
3515         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3516
3517 2012-03-03  Bruno Haible  <bruno@clisp.org>
3518
3519         ldexp* tests: More tests.
3520         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3521         * tests/test-ldexp.c (RANDOM): New macro.
3522         * tests/test-ldexpf.c (RANDOM): New macro.
3523         * tests/test-ldexpl.c (RANDOM): New macro.
3524         * modules/ldexp-tests (Files): Add tests/randomd.c.
3525         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3526         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3527         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3528         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3529         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3530
3531 2012-03-03  Bruno Haible  <bruno@clisp.org>
3532
3533         frexp* tests: More tests.
3534         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3535         * tests/test-frexp.c (RANDOM): New macro.
3536         * tests/test-frexpf.c (RANDOM): New macro.
3537         * tests/test-frexpl.c (RANDOM): New macro.
3538         * modules/frexp-tests (Files): Add tests/randomd.c.
3539         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3540         * modules/frexpf-tests (Files): Add tests/randomf.c.
3541         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3542         * modules/frexpl-tests (Files): Add tests/randoml.c.
3543         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3544
3545 2012-03-03  Bruno Haible  <bruno@clisp.org>
3546
3547         Support for pseudo-random numbers in tests.
3548         * tests/randomf.c: New file.
3549         * tests/randomd.c: New file.
3550         * tests/randoml.c: New file.
3551         * tests/macros.h (randomf, randomd, randoml): New declarations.
3552
3553 2012-03-03  Bruno Haible  <bruno@clisp.org>
3554
3555         frexp* tests: Refactor.
3556         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3557         * tests/test-frexp.c: Include and use it.
3558         * tests/test-frexpf.c: Likewise.
3559         * tests/test-frexpl.c: Likewise.
3560         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3561         * modules/frexpf-tests (Files): Likewise.
3562         * modules/frexpl-tests (Files): Likewise.
3563
3564 2012-03-02  Jim Meyering  <meyering@redhat.com>
3565
3566         maint: don't specify XZ_OPT=-9ev in dist-related rule
3567         Using xz's -9 option is warranted only if you have a very large
3568         tarball (see xz's documentation for the sizes vs. presets), and
3569         requires 64MiB of memory at decompression time.
3570         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3571         Automake's default of just "-e" is fine.  Override on a
3572         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3573
3574 2012-03-01  Eric Blake  <eblake@redhat.com>
3575
3576         maint.mk: allow announcement for non-gnulib project
3577         * maint.mk (announcement): Skip gnulib version if not used.
3578
3579 2012-03-01  Jim Meyering  <meyering@redhat.com>
3580
3581         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3582         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3583         envvar settings cannot interfere.  Otherwise, setting envvars like
3584         prohibit=foo require=bar, etc. would cause spurious test failures.
3585
3586 2012-03-01  Eric Blake  <eblake@redhat.com>
3587
3588         maint.mk: add per-line exclusions to prohibitions
3589         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3590         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3591         (sc_const_long_option): Use it.
3592
3593 2012-03-01  Bruno Haible  <bruno@clisp.org>
3594
3595         Tests for module 'expl-ieee'.
3596         * modules/expl-ieee-tests: New file.
3597         * tests/test-expl-ieee.c: New file.
3598
3599         New module 'expl-ieee'.
3600         * modules/expl-ieee: New file.
3601
3602         Tests for module 'exp-ieee'.
3603         * modules/exp-ieee-tests: New file.
3604         * tests/test-exp-ieee.c: New file.
3605
3606         New module 'exp-ieee'.
3607         * modules/exp-ieee: New file.
3608
3609         Tests for module 'expf-ieee'.
3610         * modules/expf-ieee-tests: New file.
3611         * tests/test-expf-ieee.c: New file.
3612         * tests/test-exp-ieee.h: New file.
3613
3614         New module 'expf-ieee'.
3615         * modules/expf-ieee: New file.
3616
3617 2012-02-29  Bruno Haible  <bruno@clisp.org>
3618
3619         cbrtl-ieee: Work around test failure on IRIX 6.5.
3620         * m4/cbrtl-ieee.m4: New file.
3621         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3622         test whether cbrtl works with a minus zero argument. Replace it if not.
3623         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3625         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3626         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3627         (Depends-on): Update conditions.
3628         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3629         m4/signbit.m4.
3630         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3631         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3632         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3633
3634         Tests for module 'cbrtl-ieee'.
3635         * modules/cbrtl-ieee-tests: New file.
3636         * tests/test-cbrtl-ieee.c: New file.
3637
3638         New module 'cbrtl-ieee'.
3639         * modules/cbrtl-ieee: New file.
3640
3641         Tests for module 'cbrt-ieee'.
3642         * modules/cbrt-ieee-tests: New file.
3643         * tests/test-cbrt-ieee.c: New file.
3644
3645         New module 'cbrt-ieee'.
3646         * modules/cbrt-ieee: New file.
3647
3648         Tests for module 'cbrtf-ieee'.
3649         * modules/cbrtf-ieee-tests: New file.
3650         * tests/test-cbrtf-ieee.c: New file.
3651         * tests/test-cbrt-ieee.h: New file.
3652
3653         New module 'cbrtf-ieee'.
3654         * modules/cbrtf-ieee: New file.
3655
3656 2012-02-29  Bruno Haible  <bruno@clisp.org>
3657
3658         cbrtf: Work around bug in IRIX 6.5 system function.
3659         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3660         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3661         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3662         work.
3663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3664         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3665         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3666         (Depends-on): Update conditions.
3667         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3668
3669 2012-02-29  Bruno Haible  <bruno@clisp.org>
3670
3671         Tests for module 'cbrtl'.
3672         * modules/cbrtl-tests: New file.
3673         * tests/test-cbrtl.c: New file.
3674
3675         New module 'cbrtl'.
3676         * lib/math.in.h (cbrtl): New declaration.
3677         * lib/cbrtl.c: New file.
3678         * m4/cbrtl.m4: New file.
3679         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3681         HAVE_DECL_CBRTL.
3682         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3683         HAVE_DECL_CBRTL.
3684         * modules/cbrtl: New file.
3685         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3686         * doc/posix-functions/cbrtl.texi: Mention the new module.
3687
3688 2012-02-29  Bruno Haible  <bruno@clisp.org>
3689
3690         Tests for module 'cbrtf'.
3691         * modules/cbrtf-tests: New file.
3692         * tests/test-cbrtf.c: New file.
3693
3694         New module 'cbrtf'.
3695         * lib/math.in.h (cbrtf): New declaration.
3696         * lib/cbrtf.c: New file.
3697         * m4/cbrtf.m4: New file.
3698         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3700         HAVE_DECL_CBRTF.
3701         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3702         HAVE_DECL_CBRTF.
3703         * modules/cbrtf: New file.
3704         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3705         * doc/posix-functions/cbrtf.texi: Mention the new module.
3706
3707 2012-02-29  Bruno Haible  <bruno@clisp.org>
3708
3709         cbrt: Provide replacement on MSVC and Minix.
3710         * lib/math.in.h (cbrt): New declaration.
3711         * lib/cbrt.c: New file.
3712         * m4/cbrt.m4: New file.
3713         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3715         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3716         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3717         (Depends-on): Add dependencies.
3718         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3719         * tests/test-math-c++.cc: Check the declaration of cbrt.
3720         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3721         replacement.
3722
3723 2012-02-29  Bruno Haible  <bruno@clisp.org>
3724
3725         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3726         * m4/hypotl-ieee.m4: New file.
3727         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3728         test whether hypotl works with mixed NaN and Infinity arguments.
3729         Replace it if not.
3730         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3732         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3733         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3734         (Depends-on): Update conditions.
3735         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3736         (Depends-on): Add hypot-ieee.
3737         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3738         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3739
3740         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3741         * m4/hypotf-ieee.m4: New file.
3742         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3743         test whether hypotf works with mixed NaN and Infinity arguments.
3744         Replace it if not.
3745         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3746         (Depends-on): Add hypot-ieee.
3747         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3748         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3749
3750         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3751         * lib/math.in.h (hypot): New declaration.
3752         * lib/hypot.c: New file.
3753         * m4/hypot-ieee.m4: New file.
3754         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3755         whether hypot works with mixed NaN and Infinity arguments. Replace it
3756         if not.
3757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3758         REPLACE_HYPOT.
3759         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3760         * modules/hypot (Files): Add lib/hypot.c.
3761         (Depends-on): Add dependencies.
3762         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3763         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3764         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3765         * tests/test-math-c++.cc: Check the declaration of hypot.
3766         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3767
3768         Tests for module 'hypotl-ieee'.
3769         * modules/hypotl-ieee-tests: New file.
3770         * tests/test-hypotl-ieee.c: New file.
3771
3772         New module 'hypotl-ieee'.
3773         * modules/hypotl-ieee: New file.
3774
3775         Tests for module 'hypot-ieee'.
3776         * modules/hypot-ieee-tests: New file.
3777         * tests/test-hypot-ieee.c: New file.
3778
3779         New module 'hypot-ieee'.
3780         * modules/hypot-ieee: New file.
3781
3782         Tests for module 'hypotf-ieee'.
3783         * modules/hypotf-ieee-tests: New file.
3784         * tests/test-hypotf-ieee.c: New file.
3785         * tests/test-hypot-ieee.h: New file.
3786
3787         New module 'hypotf-ieee'.
3788         * modules/hypotf-ieee: New file.
3789
3790 2012-02-29  Bruno Haible  <bruno@clisp.org>
3791
3792         Remove unused variables.
3793         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3794         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3795         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3796         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3797
3798 2012-02-29  Eric Blake  <eblake@redhat.com>
3799
3800         termios: fix pid_t always, not just for tcgetsid
3801         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3802         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3803         just when building tcgetsid.
3804
3805 2012-02-29  Bruno Haible  <bruno@clisp.org>
3806
3807         Tests for module 'hypotl'.
3808         * modules/hypotl-tests: New file.
3809         * tests/test-hypotl.c: New file.
3810
3811         New module 'hypotl'.
3812         * lib/math.in.h (hypotl): New declaration.
3813         * lib/hypotl.c: New file.
3814         * m4/hypotl.m4: New file.
3815         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3817         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3818         * modules/hypotl: New file.
3819         * tests/test-math-c++.cc: Check the hypotl declaration.
3820         * doc/posix-functions/hypotl.texi: Mention the new module.
3821
3822 2012-02-29  Eric Blake  <eblake@redhat.com>
3823
3824         tcgetsid: fix cygwin header bug
3825         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3826
3827         docs: update cygwin progress
3828         * doc/posix-functions/llround.texi (llround): Added in cygwin
3829         1.7.8.
3830         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3831         * doc/glibc-functions/program_invocation_name.texi
3832         (program_invocation_name): Likewise.
3833         * doc/glibc-functions/program_invocation_short_name.texi
3834         (program_invocation_short_name): Likewise.
3835         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3836         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3837         Likewise.
3838         * doc/posix-functions/pthread_spin_destroy.texi
3839         (pthread_spin_destroy): Added in cygwin 1.7.10.
3840         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3841         Likewise.
3842         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3843         Likewise.
3844         * doc/posix-functions/pthread_spin_trylock.texi
3845         (pthread_spin_trylock): Likewise.
3846         * doc/posix-functions/pthread_spin_unlock.texi
3847         (pthread_spin_unlock): Likewise.
3848         * doc/posix-functions/pthread_setschedprio.texi
3849         (pthread_setschedprio): Likewise.
3850         * doc/posix-functions/pthread_attr_getstack.texi
3851         (pthread_attr_getstack): Likewise.
3852         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3853         (pthread_attr_getstackaddr): Likewise.
3854         * doc/glibc-functions/pthread_getattr_np.texi
3855         (pthread_getattr_np): Likewise.
3856         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3857         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3858         * doc/posix-functions/clock_settime.texi (clock_settime):
3859         Likewise.
3860         * doc/posix-functions/pthread_attr_getguardsize.texi
3861         (pthread_attr_getguardsize): Likewise.
3862         * doc/posix-functions/pthread_attr_setguardsize.texi
3863         (pthread_attr_setguardsize): Likewise.
3864         * doc/posix-functions/pthread_attr_setstack.texi
3865         (pthread_attr_setstack): Likewise.
3866         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3867         (pthread_attr_setstackaddr): Likewise.
3868         * doc/posix-functions/clock_getcpuclockid.texi
3869         (clock_getcpuclockid): Likewise.
3870         * doc/posix-functions/pthread_getcpuclockid.texi
3871         (pthread_getcpuclockid): Likewise.
3872         * doc/glibc-functions/error.texi (error): Likewise.
3873         * doc/glibc-functions/error_at_line.texi (error_at_line):
3874         Likewise.
3875         * doc/glibc-functions/error_message_count.texi
3876         (error_message_count): Likewise.
3877         * doc/glibc-functions/error_one_per_line.texi
3878         (error_one_per_line): Likewise.
3879         * doc/glibc-functions/error_print_progname.texi
3880         (error_print_progname): Likewise.
3881         * doc/posix-functions/pthread_condattr_getclock.texi
3882         (pthread_condattr_getclock): Likewise.
3883         * doc/posix-functions/pthread_condattr_setclock.texi
3884         (pthread_condattr_setclock): Likewise.
3885         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3886         Likewise.
3887         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3888         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3889         * doc/glibc-functions/get_current_dir_name.texi
3890         (get_current_dir_name): Likewise.
3891         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3892         Likewise.
3893         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3894         wrong return type.
3895         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3896         1.7.11.
3897
3898 2012-02-29  Bruno Haible  <bruno@clisp.org>
3899
3900         Tests for module 'hypotf'.
3901         * modules/hypotf-tests: New file.
3902         * tests/test-hypotf.c: New file.
3903
3904         New module 'hypotf'.
3905         * lib/math.in.h (hypotf): New declaration.
3906         * lib/hypotf.c: New file.
3907         * m4/hypotf.m4: New file.
3908         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3910         REPLACE_HYPOTF.
3911         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3912         REPLACE_HYPOTF.
3913         * modules/hypotf: New file.
3914         * tests/test-math-c++.cc: Check the hypotf declaration.
3915         * doc/posix-functions/hypotf.texi: Mention the new module.
3916
3917         hypot: Prepare for hypotf module.
3918         * m4/hypot.m4: New file.
3919         * modules/hypot (Files): Add m4/hypot.m4.
3920         (configure.ac): Invoke gl_FUNC_HYPOT.
3921
3922 2012-02-29  Bruno Haible  <bruno@clisp.org>
3923
3924         hypot tests: More tests.
3925         * tests/test-hypot.c: Include <float.h>.
3926         (main): Add tests about overflow and underflow.
3927
3928 2012-02-29  Bruno Haible  <bruno@clisp.org>
3929
3930         math code: Add comments.
3931         * lib/acosl.c: Add comment about related glibc source files.
3932         * lib/asinl.c: Likewise.
3933         * lib/atanl.c: Likewise.
3934         * lib/expl.c: Likewise.
3935         * lib/logl.c: Likewise.
3936         * lib/sincosl.c: Likewise.
3937         * lib/sinl.c: Likewise.
3938         * lib/tanl.c: Likewise.
3939         * lib/trigl.c: Likewise.
3940         * lib/cosl.c: Likewise. Fix comments.
3941
3942 2012-02-28  Bruno Haible  <bruno@clisp.org>
3943
3944         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3945         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3946         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3947         HUGE_VALL are defined.
3948         (numeric_equald): Renamed from numeric_equal.
3949         (numeric_equalf, numeric_equall): New functions.
3950         (main): Check also HUGE_VALF, HUGE_VALL.
3951         * modules/math-tests (Files): Add tests/macros.h.
3952         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3953         HUGE_VALL.
3954
3955 2012-02-28  Bruno Haible  <bruno@clisp.org>
3956
3957         doc: Move ISO C11 feature notes into POSIX chapters.
3958         * doc/posix-functions/aligned_alloc.texi: Renamed from
3959         doc/glibc-functions/aligned_alloc.texi.
3960         * doc/posix-functions/quick_exit.texi: Renamed from
3961         doc/glibc-functions/quick_exit.texi.
3962         * doc/posix-headers/uchar.texi: Renamed from
3963         doc/glibc-headers/uchar.texi.
3964         * doc/posix-functions/c16rtomb.texi: Renamed from
3965         doc/glibc-functions/c16rtomb.texi.
3966         * doc/posix-functions/c32rtomb.texi: Renamed from
3967         doc/glibc-functions/c32rtomb.texi.
3968         * doc/posix-functions/mbrtoc16.texi: Renamed from
3969         doc/glibc-functions/mbrtoc16.texi.
3970         * doc/posix-functions/mbrtoc32.texi: Renamed from
3971         doc/glibc-functions/mbrtoc32.texi.
3972         * doc/gnulib.texi: Update.
3973         (Glibc uchar.h): Remove section.
3974         Suggested by Eric Blake.
3975
3976 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3977
3978         stdnoreturn: port to MSVC better
3979         MSVC standard headers use __declspec(noreturn), so #define noreturn
3980         to empty on that platform.  Reported by Bruno Haible in
3981         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3982         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3983         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3984
3985 2012-02-28  Bruno Haible  <bruno@clisp.org>
3986
3987         doc: Mention new glibc headers and functions.
3988         * doc/glibc-headers/uchar.texi: New file.
3989         * doc/glibc-functions/aligned_alloc.texi: New file.
3990         * doc/glibc-functions/c16rtomb.texi: New file.
3991         * doc/glibc-functions/c32rtomb.texi: New file.
3992         * doc/glibc-functions/clock_adjtime.texi: New file.
3993         * doc/glibc-functions/fanotify_init.texi: New file.
3994         * doc/glibc-functions/fanotify_mark.texi: New file.
3995         * doc/glibc-functions/inet6_opt_append.texi: New file.
3996         * doc/glibc-functions/inet6_opt_find.texi: New file.
3997         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3998         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3999         * doc/glibc-functions/inet6_opt_init.texi: New file.
4000         * doc/glibc-functions/inet6_opt_next.texi: New file.
4001         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4002         * doc/glibc-functions/inet6_rth_add.texi: New file.
4003         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4004         * doc/glibc-functions/inet6_rth_init.texi: New file.
4005         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4006         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4007         * doc/glibc-functions/inet6_rth_space.texi: New file.
4008         * doc/glibc-functions/login.texi: New file.
4009         * doc/glibc-functions/mbrtoc16.texi: New file.
4010         * doc/glibc-functions/mbrtoc32.texi: New file.
4011         * doc/glibc-functions/name_to_handle_at.texi: New file.
4012         * doc/glibc-functions/ntp_gettimex.texi: New file.
4013         * doc/glibc-functions/open_by_handle_at.texi: New file.
4014         * doc/glibc-functions/prlimit.texi: New file.
4015         * doc/glibc-functions/process_vm_readv.texi: New file.
4016         * doc/glibc-functions/process_vm_writev.texi: New file.
4017         * doc/glibc-functions/recvmmsg.texi: New file.
4018         * doc/glibc-functions/scandirat.texi: New file.
4019         * doc/glibc-functions/sendmmsg.texi: New file.
4020         * doc/glibc-functions/setns.texi: New file.
4021         * doc/glibc-functions/timespec_get.texi: New file.
4022         * doc/gnulib.texi: Include them.
4023         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4024         sections.
4025         Reported by Eric Blake.
4026
4027 2012-02-28  Bruno Haible  <bruno@clisp.org>
4028
4029         Avoid compilation errors with MSVC option -fp:strict.
4030         * lib/floor.c: Use MSVC specific pragma fenv_access.
4031         * lib/ceil.c: Likewise.
4032         * lib/trunc.c: Likewise.
4033         * lib/round.c: Likewise.
4034         * lib/rint.c: Likewise.
4035         * lib/fma.c: Likewise.
4036         * lib/integer_length.c: Likewise.
4037         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4039         * tests/test-floor2.c: Likewise.
4040         * tests/test-floorf2.c: Likewise.
4041         * tests/test-ceil2.c: Likewise.
4042         * tests/test-ceilf2.c: Likewise.
4043         * tests/test-trunc2.c: Likewise.
4044         * tests/test-truncf2.c: Likewise.
4045         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4046
4047 2012-02-27  Bruno Haible  <bruno@clisp.org>
4048
4049         Tests for module 'sqrtl-ieee'.
4050         * modules/sqrtl-ieee-tests: New file.
4051         * tests/test-sqrtl-ieee.c: New file.
4052
4053         New module 'sqrtl-ieee'.
4054         * modules/sqrtl-ieee: New file.
4055
4056         Tests for module 'sqrt-ieee'.
4057         * modules/sqrt-ieee-tests: New file.
4058         * tests/test-sqrt-ieee.c: New file.
4059
4060         New module 'sqrt-ieee'.
4061         * modules/sqrt-ieee: New file.
4062
4063         Tests for module 'sqrtf-ieee'.
4064         * modules/sqrtf-ieee-tests: New file.
4065         * tests/test-sqrtf-ieee.c: New file.
4066         * tests/test-sqrt-ieee.h: New file.
4067
4068         New module 'sqrtf-ieee'.
4069         * modules/sqrtf-ieee: New file.
4070
4071 2012-02-27  Bruno Haible  <bruno@clisp.org>
4072
4073         remainderl-ieee: Work around test failure on OSF/1.
4074         * m4/remainderl-ieee.m4: New file.
4075         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4076         present, test whether remainderl works with a zero second argument.
4077         Replace it if not.
4078         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4080         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4081         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4082         (Depends-on): Update conditions.
4083         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4084         (Depends-on): Add remainder-ieee.
4085         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4086         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4087         module.
4088
4089         remainderf-ieee: Work around test failure on OSF/1.
4090         * m4/remainderf-ieee.m4: New file.
4091         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4092         present, test whether remainderf works with a zero second argument.
4093         Replace it if not.
4094         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4096         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4097         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4098         (Depends-on): Update conditions.
4099         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4100         (Depends-on): Add remainder-ieee.
4101         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4102         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4103         module.
4104
4105         remainder-ieee: Work around test failure on OSF/1.
4106         * m4/remainder-ieee.m4: New file.
4107         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4108         present, test whether remainder works with a zero second argument.
4109         Replace it if not.
4110         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4112         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4113         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4114         (Depends-on): Update dependencies.
4115         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4116         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4117         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4118
4119         Tests for module 'remainderl-ieee'.
4120         * modules/remainderl-ieee-tests: New file.
4121         * tests/test-remainderl-ieee.c: New file.
4122
4123         New module 'remainderl-ieee'.
4124         * modules/remainderl-ieee: New file.
4125
4126         Tests for module 'remainder-ieee'.
4127         * modules/remainder-ieee-tests: New file.
4128         * tests/test-remainder-ieee.c: New file.
4129
4130         New module 'remainder-ieee'.
4131         * modules/remainder-ieee: New file.
4132
4133         Tests for module 'remainderf-ieee'.
4134         * modules/remainderf-ieee-tests: New file.
4135         * tests/test-remainderf-ieee.c: New file.
4136         * tests/test-remainder-ieee.h: New file.
4137
4138         New module 'remainderf-ieee'.
4139         * modules/remainderf-ieee: New file.
4140
4141 2012-02-27  Bruno Haible  <bruno@clisp.org>
4142
4143         modff, modfl: Fix configure syntax error.
4144         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4145         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4146
4147 2012-02-27  Bruno Haible  <bruno@clisp.org>
4148
4149         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4150         * m4/fmodl-ieee.m4: New file.
4151         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4152         whether fmodl works with zero arguments. Replace it if not.
4153         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4154         (Depends-on): Add fmod-ieee.
4155         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4156         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4157
4158         fmodf-ieee: Work around test failure on OSF/1.
4159         * m4/fmodf-ieee.m4: New file.
4160         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4161         whether fmodf works with zero arguments. Replace it if not.
4162         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4164         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4165         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4166         (Depends-on): Update dependencies.
4167         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4168         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4169         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4170
4171         fmodf-ieee: Work around test failure on MSVC 9.
4172         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4173         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4174
4175         fmod-ieee: Work around test failures on OSF/1, mingw.
4176         * m4/fmod-ieee.m4: New file.
4177         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4178         whether fmod works with zero arguments. Replace it if not.
4179         * lib/math.in.h (fmod): New declaration.
4180         * lib/fmod.c: New file.
4181         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4183         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4184         * modules/fmod (Files): Add lib/fmod.c.
4185         (Depends-on): Add math, isinf, trunc, fma.
4186         (configure.ac): Arrange to compile lib/fmod.c if needed.
4187         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4188         m4/signbit.m4.
4189         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4190         * tests/test-math-c++.cc: Check the declaration of fmod.
4191         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4192
4193         fmodl-ieee: Fix test failures.
4194         * lib/fmodl.c (fmodl): Treat Inf specially.
4195         * modules/fmodl (Depends-on): Add isinf.
4196
4197         Tests for module 'fmodl-ieee'.
4198         * modules/fmodl-ieee-tests: New file.
4199         * tests/test-fmodl-ieee.c: New file.
4200
4201         New module 'fmodl-ieee'.
4202         * modules/fmodl-ieee: New file.
4203
4204         Tests for module 'fmod-ieee'.
4205         * modules/fmod-ieee-tests: New file.
4206         * tests/test-fmod-ieee.c: New file.
4207
4208         New module 'fmod-ieee'.
4209         * modules/fmod-ieee: New file.
4210
4211         Tests for module 'fmodf-ieee'.
4212         * modules/fmodf-ieee-tests: New file.
4213         * tests/test-fmodf-ieee.c: New file.
4214         * tests/test-fmod-ieee.h: New file.
4215
4216         New module 'fmodf-ieee'.
4217         * modules/fmodf-ieee: New file.
4218
4219 2012-02-27  Bruno Haible  <bruno@clisp.org>
4220
4221         Tests for module 'rintl-ieee'.
4222         * modules/rintl-ieee-tests: New file.
4223         * tests/test-rintl-ieee.c: New file.
4224
4225         New module 'rintl-ieee'.
4226         * modules/rintl-ieee: New file.
4227
4228         Tests for module 'rint-ieee'.
4229         * modules/rint-ieee-tests: New file.
4230         * tests/test-rint-ieee.c: New file.
4231
4232         New module 'rint-ieee'.
4233         * modules/rint-ieee: New file.
4234
4235         Tests for module 'rintf-ieee'.
4236         * modules/rintf-ieee-tests: New file.
4237         * tests/test-rintf-ieee.c: New file.
4238         * tests/test-rint-ieee.h: New file.
4239
4240         New module 'rintf-ieee'.
4241         * modules/rintf-ieee: New file.
4242
4243 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4244
4245         regex: re_search etc. should return -2 when memory exhausted
4246         This bug was uncovered when testing 'grep'.  Without the fix,
4247         re_search and friends return -1 when memory is exhausted, but -1
4248         means no match, and this causes grep to falsely report no-match
4249         instead of memory-exhaustion.  See
4250         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4251         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4252         trouble; this can occur if re_search_internal ran out of memory.
4253
4254 2012-02-26  Bruno Haible  <bruno@clisp.org>
4255
4256         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4257         * m4/modfl-ieee.m4: New file.
4258         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4259         whether modfl works with Inf. Replace it if not.
4260         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4262         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4263         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4264         (Depends-on): Update dependencies.
4265         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4266         m4/signbit.m4.
4267         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4268         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4269
4270         modfl-ieee: Fix dependencies.
4271         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4272
4273         modfl-ieee: Fix test failures.
4274         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4275         * modules/modfl (Depends-on): Add isfinite, isinf.
4276
4277         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4278         * m4/modff-ieee.m4: New file.
4279         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4280         whether modff works with NaN and Inf. Replace it if not.
4281         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4283         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4284         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4285         (Depends-on): Update dependencies.
4286         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4287         m4/signbit.m4.
4288         (Depends-on): Add modf-ieee.
4289         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4290         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4291
4292         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4293         * m4/modf-ieee.m4: New file.
4294         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4295         whether modf works with NaN and Inf. Replace it if not.
4296         * lib/math.in.h (modf): New declaration.
4297         * lib/modf.c: New file.
4298         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4300         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4301         * modules/modf (Files): Add lib/modf.c.
4302         (Depends-on): Add math, isfinite, trunc, isinf.
4303         (configure.ac): Addrange to compile lib/modf.c if needed.
4304         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4305         m4/signbit.m4.
4306         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4307         * tests/test-math-c++.cc: Check the declaration of modf.
4308         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4309
4310         Tests for module 'modfl-ieee'.
4311         * modules/modfl-ieee-tests: New file.
4312         * tests/test-modfl-ieee.c: New file.
4313
4314         New module 'modfl-ieee'.
4315         * modules/modfl-ieee: New file.
4316
4317         Tests for module 'modf-ieee'.
4318         * modules/modf-ieee-tests: New file.
4319         * tests/test-modf-ieee.c: New file.
4320
4321         New module 'modf-ieee'.
4322         * modules/modf-ieee: New file.
4323
4324         Tests for module 'modff-ieee'.
4325         * modules/modff-ieee-tests: New file.
4326         * tests/test-modff-ieee.c: New file.
4327         * tests/test-modf-ieee.h: New file.
4328
4329         New module 'modff-ieee'.
4330         * modules/modff-ieee: New file.
4331
4332 2012-02-26  Bruno Haible  <bruno@clisp.org>
4333
4334         Tests for module 'fabsl-ieee'.
4335         * modules/fabsl-ieee-tests: New file.
4336         * tests/test-fabsl-ieee.c: New file.
4337
4338         New module 'fabsl-ieee'.
4339         * modules/fabsl-ieee: New file.
4340
4341         Tests for module 'fabs-ieee'.
4342         * modules/fabs-ieee-tests: New file.
4343         * tests/test-fabs-ieee.c: New file.
4344
4345         New module 'fabs-ieee'.
4346         * modules/fabs-ieee: New file.
4347
4348         Tests for module 'fabsf-ieee'.
4349         * modules/fabsf-ieee-tests: New file.
4350         * tests/test-fabsf-ieee.c: New file.
4351         * tests/test-fabs-ieee.h: New file.
4352
4353         New module 'fabsf-ieee'.
4354         * modules/fabsf-ieee: New file.
4355
4356 2012-02-26  Bruno Haible  <bruno@clisp.org>
4357
4358         Tests for module 'fmal-ieee'.
4359         * modules/fmal-ieee-tests: New file.
4360         * tests/test-fmal-ieee.c: New file.
4361
4362         New module 'fmal-ieee'.
4363         * modules/fmal-ieee: New file.
4364
4365         Tests for module 'fma-ieee'.
4366         * modules/fma-ieee-tests: New file.
4367         * tests/test-fma-ieee.c: New file.
4368
4369         New module 'fma-ieee'.
4370         * modules/fma-ieee: New file.
4371
4372         Tests for module 'fmaf-ieee'.
4373         * modules/fmaf-ieee-tests: New file.
4374         * tests/test-fmaf-ieee.c: New file.
4375         * tests/test-fma-ieee.h: New file.
4376
4377         New module 'fmaf-ieee'.
4378         * modules/fmaf-ieee: New file.
4379
4380 2012-02-26  Bruno Haible  <bruno@clisp.org>
4381
4382         Tests for module 'ldexpl-ieee'.
4383         * modules/ldexpl-ieee-tests: New file.
4384         * tests/test-ldexpl-ieee.c: New file.
4385
4386         New module 'ldexpl-ieee'.
4387         * modules/ldexpl-ieee: New file.
4388
4389         Tests for module 'ldexp-ieee'.
4390         * modules/ldexp-ieee-tests: New file.
4391         * tests/test-ldexp-ieee.c: New file.
4392
4393         New module 'ldexp-ieee'.
4394         * modules/ldexp-ieee: New file.
4395
4396         Tests for module 'ldexpf-ieee'.
4397         * modules/ldexpf-ieee-tests: New file.
4398         * tests/test-ldexpf-ieee.c: New file.
4399         * tests/test-ldexp-ieee.h: New file.
4400
4401         New module 'ldexpf-ieee'.
4402         * modules/ldexpf-ieee: New file.
4403
4404 2012-02-26  Bruno Haible  <bruno@clisp.org>
4405
4406         Refactor frexp*-ieee tests.
4407         * tests/test-frexp-ieee.h: New file.
4408         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4409         (main): Just call test_function.
4410         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4411         (main): Just call test_function.
4412         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4413         (main): Just call test_function.
4414         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4415         * modules/frexp-ieee-tests (Files): Likewise.
4416         * modules/frexpl-ieee-tests (Files): Likewise.
4417
4418         Tests for module 'frexpl-ieee'.
4419         * modules/frexpl-ieee-tests: New file.
4420         * tests/test-frexpl-ieee.c: New file.
4421
4422         New module 'frexpl-ieee'.
4423         * modules/frexpl-ieee: New file.
4424
4425         Tests for module 'frexp-ieee'.
4426         * modules/frexp-ieee-tests: New file.
4427         * tests/test-frexp-ieee.c: New file.
4428
4429         New module 'frexp-ieee'.
4430         * modules/frexp-ieee: New file.
4431
4432         Tests for module 'frexpf-ieee'.
4433         * modules/frexpf-ieee-tests: New file.
4434         * tests/test-frexpf-ieee.c: New file.
4435
4436         New module 'frexpf-ieee'.
4437         * modules/frexpf-ieee: New file.
4438
4439 2012-02-26  Bruno Haible  <bruno@clisp.org>
4440
4441         roundl-ieee tests: More tests.
4442         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4443         (main): Add tests for [MX] shaded specification in POSIX.
4444         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4445         (Depends-on): Add isnanl-nolibm.
4446
4447         round-ieee tests: More tests.
4448         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4449         (main): Add tests for [MX] shaded specification in POSIX.
4450         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4451         (Depends-on): Add isnand-nolibm.
4452
4453         roundf-ieee tests: More tests.
4454         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4455         (main): Add tests for [MX] shaded specification in POSIX.
4456         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4457         (Depends-on): Add isnanf-nolibm.
4458
4459         truncl-ieee tests: More tests.
4460         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4461         (main): Add tests for [MX] shaded specification in POSIX.
4462         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4463         (Depends-on): Add isnanl-nolibm.
4464
4465         trunc-ieee tests: More tests.
4466         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4467         (main): Add tests for [MX] shaded specification in POSIX.
4468         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4469         (Depends-on): Add isnand-nolibm.
4470
4471         truncf-ieee tests: More tests.
4472         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4473         (main): Add tests for [MX] shaded specification in POSIX.
4474         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4475         (Depends-on): Add isnanf-nolibm.
4476
4477         ceill-ieee tests: More tests.
4478         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4479         (main): Add tests for [MX] shaded specification in POSIX.
4480         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4481         (Depends-on): Add isnanl-nolibm.
4482
4483         ceil-ieee tests: More tests.
4484         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4485         (main): Add tests for [MX] shaded specification in POSIX.
4486         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4487         (Depends-on): Add isnand-nolibm.
4488
4489         ceilf-ieee tests: More tests.
4490         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4491         (main): Add tests for [MX] shaded specification in POSIX.
4492         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4493         (Depends-on): Add isnanf-nolibm.
4494
4495         floorl-ieee tests: More tests.
4496         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4497         (main): Add tests for [MX] shaded specification in POSIX.
4498         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4499         (Depends-on): Add isnanl-nolibm.
4500
4501         floor-ieee tests: More tests.
4502         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4503         (main): Add tests for [MX] shaded specification in POSIX.
4504         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4505         (Depends-on): Add isnand-nolibm.
4506
4507         floorf-ieee tests: More tests.
4508         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4509         (main): Add tests for [MX] shaded specification in POSIX.
4510         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4511         (Depends-on): Add isnanf-nolibm.
4512
4513 2012-02-26  Bruno Haible  <bruno@clisp.org>
4514
4515         fpieee: More comments.
4516         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4517
4518 2012-02-25  Bruno Haible  <bruno@clisp.org>
4519
4520         Tests for module 'log10l'.
4521         * modules/log10l-tests: New file.
4522         * tests/test-log10l.c: New file.
4523         * tests/test-math-c++.cc: Check the declaration of log10l.
4524
4525         New module 'log10l'.
4526         * lib/math.in.h (log10l): New declaration.
4527         * lib/log10l.c: New file.
4528         * m4/log10l.m4: New file.
4529         * modules/log10l: New file.
4530         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4532         HAVE_DECL_LOG10L.
4533         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4534         HAVE_DECL_LOG10L.
4535         * doc/posix-functions/log10l.texi: Mention the new module.
4536
4537 2012-02-25  Bruno Haible  <bruno@clisp.org>
4538
4539         fmodl, remainder*: Avoid wrong results due to rounding errors.
4540         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4541         expected bounds.
4542         * lib/remainderf.c (remainderf): Likewise.
4543         * lib/remainder.c (remainder): Likewise.
4544         * lib/remainderl.c (remainderl): Likewise.
4545
4546 2012-02-25  Bruno Haible  <bruno@clisp.org>
4547
4548         Tests for module 'remainderl'.
4549         * modules/remainderl-tests: New file.
4550         * tests/test-remainderl.c: New file.
4551         * tests/test-math-c++.cc: Check the declaration of remainderl.
4552
4553         New module 'remainderl'.
4554         * lib/math.in.h (remainderl): New declaration.
4555         * lib/remainderl.c: New file.
4556         * m4/remainderl.m4: New file.
4557         * modules/remainderl: New file.
4558         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4560         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4561         HAVE_REMAINDERL.
4562         * doc/posix-functions/remainderl.texi: Mention the new module.
4563
4564 2012-02-25  Bruno Haible  <bruno@clisp.org>
4565
4566         Tests for module 'remainderf'.
4567         * modules/remainderf-tests: New file.
4568         * tests/test-remainderf.c: New file.
4569         * tests/test-math-c++.cc: Check the declaration of remainderf.
4570
4571         New module 'remainderf'.
4572         * lib/math.in.h (remainderf): New declaration.
4573         * lib/remainderf.c: New file.
4574         * m4/remainderf.m4: New file.
4575         * modules/remainderf: New file.
4576         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4578         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4579         HAVE_REMAINDERF.
4580         * doc/posix-functions/remainderf.texi: Mention the new module.
4581
4582 2012-02-25  Bruno Haible  <bruno@clisp.org>
4583
4584         remainder: Support for MSVC.
4585         * lib/math.in.h (remainder): New declaration.
4586         * lib/remainder.c: New file.
4587         * m4/remainder.m4: New file.
4588         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4589         (Depends-on): Add math, round, fma.
4590         (configure.ac): Use results of gl_FUNC_REMAINDER.
4591         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4593         HAVE_DECL_REMAINDER.
4594         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4595         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4596         * tests/test-math-c++.cc: Check the declaration of remainder.
4597         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4598         problems are fixed.
4599
4600 2012-02-25  Bruno Haible  <bruno@clisp.org>
4601
4602         Tests for module 'fmodl'.
4603         * modules/fmodl-tests: New file.
4604         * tests/test-fmodl.c: New file.
4605         * tests/test-math-c++.cc: Check the declaration of fmodl.
4606
4607         New module 'fmodl'.
4608         * lib/math.in.h (fmodl): New declaration.
4609         * lib/fmodl.c: New file.
4610         * m4/fmodl.m4: New file.
4611         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4613         REPLACE_FMODL.
4614         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4615         REPLACE_FMODL.
4616         * modules/fmodl: New file.
4617         * doc/posix-functions/fmodl.texi: Mention the new module.
4618
4619 2012-02-25  Bruno Haible  <bruno@clisp.org>
4620
4621         Tests for module 'modfl'.
4622         * modules/modfl-tests: New file.
4623         * tests/test-modfl.c: New file.
4624         * tests/test-math-c++.cc: Check the declaration of modfl.
4625
4626         New module 'modfl'.
4627         * lib/math.in.h (modfl): New declaration.
4628         * lib/modfl.c: New file.
4629         * m4/modfl.m4: New file.
4630         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4632         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4633         * modules/modfl: New file.
4634         * doc/posix-functions/modfl.texi: Mention the new module.
4635
4636 2012-02-25  Bruno Haible  <bruno@clisp.org>
4637
4638         Tests for module 'fabsl'.
4639         * modules/fabsl-tests: New file.
4640         * tests/test-fabsl.c: New file.
4641         * tests/test-math-c++.cc: Check the declaration of fabsl.
4642
4643         New module 'fabsl'.
4644         * lib/math.in.h (fabsl): New declaration.
4645         * lib/fabsl.c: New file.
4646         * m4/fabsl.m4: New file.
4647         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4649         REPLACE_FABSL.
4650         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4651         REPLACE_FABSL.
4652         * modules/fabsl: New file.
4653         * doc/posix-functions/fabsl.texi: Mention the new module.
4654
4655 2012-02-25  Bruno Haible  <bruno@clisp.org>
4656
4657         fabs tests: More tests.
4658         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4659         (zero): New variable.
4660         (main): Add tests for signed zero.
4661         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4662
4663         fabsf tests: More tests.
4664         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4665         (zero): New variable.
4666         (main): Add tests for signed zero.
4667         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4668
4669 2012-02-24  Bruno Haible  <bruno@clisp.org>
4670
4671         atanl: Provide function definition on MSVC.
4672         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4673         function pointer.
4674         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4675
4676 2012-02-24  Bruno Haible  <bruno@clisp.org>
4677
4678         acosl: Provide function definition on MSVC.
4679         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4680         function pointer.
4681         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4682
4683 2012-02-24  Bruno Haible  <bruno@clisp.org>
4684
4685         asinl: Provide function definition on MSVC.
4686         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4687         function pointer.
4688         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4689
4690 2012-02-24  Bruno Haible  <bruno@clisp.org>
4691
4692         tanl: Provide function definition on MSVC.
4693         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4694         function pointer.
4695         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4696
4697 2012-02-24  Bruno Haible  <bruno@clisp.org>
4698
4699         cosl: Provide function definition on MSVC.
4700         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4701         function pointer.
4702         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4703
4704 2012-02-24  Bruno Haible  <bruno@clisp.org>
4705
4706         sinl: Provide function definition on MSVC.
4707         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4708         function pointer.
4709         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4710
4711 2012-02-24  Bruno Haible  <bruno@clisp.org>
4712
4713         logl: Provide function definition on MSVC.
4714         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4715         function pointer.
4716         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4717
4718 2012-02-24  Bruno Haible  <bruno@clisp.org>
4719
4720         expl: Provide function definition on MSVC.
4721         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4722         function pointer.
4723         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4724
4725 2012-02-24  Bruno Haible  <bruno@clisp.org>
4726
4727         sqrtl: Provide function definition on MSVC.
4728         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4729         a function pointer.
4730         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4731
4732 2012-02-24  Bruno Haible  <bruno@clisp.org>
4733
4734         ceill: Provide function definition on MSVC.
4735         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4736         used as a function pointer.
4737         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4738
4739 2012-02-24  Bruno Haible  <bruno@clisp.org>
4740
4741         floorl: Provide function definition on MSVC.
4742         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4743         used as a function pointer.
4744         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4745
4746 2012-02-24  Bruno Haible  <bruno@clisp.org>
4747
4748         ceilf: Provide function definition on MSVC.
4749         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4750         used as a function pointer.
4751         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4752
4753 2012-02-24  Bruno Haible  <bruno@clisp.org>
4754
4755         floorf: Provide function definition on MSVC.
4756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4757         used as a function pointer.
4758         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4759
4760 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4761
4762         stdnoreturn: new module
4763         This implements a replacement for C11's <stdnoreturn.h>.
4764         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4765         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4766         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4767         * tests/test-stdnoreturn.c: New files.
4768
4769 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4770
4771         regex: fix false multibyte matches in some regular expressions
4772         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4773         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4774         * lib/regex_internal.c (re_string_skip_chars):
4775         Fix miscomputation of remain_len that may cause incomplete
4776         multi-byte character and false match.
4777
4778 2012-02-24  Jim Meyering  <meyering@redhat.com>
4779
4780         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4781         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4782         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4783         Remove now-unnecessary str''cmp obfuscation.
4784         Suggested by Akim Demaille.
4785
4786 2012-02-24  Bruno Haible  <bruno@clisp.org>
4787
4788         streq: Rename macro.
4789         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4790         * NEWS: Mention the change.
4791         * lib/mbrtowc.c (mbrtowc): Update.
4792         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4793         * lib/wcwidth.c (wcwidth): Update.
4794         Suggested by Akim Demaille and Jim Meyering.
4795
4796 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4797
4798         regex: fix typo in definition of MIN
4799         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4800         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4801
4802 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4803             Bruno Haible  <bruno@clisp.org>
4804
4805         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4806         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4807         entries into a stack-allocated buffer directly.
4808         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4809
4810 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4811             Bruno Haible  <bruno@clisp.org>
4812
4813         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4814
4815          - There were several instances of this pattern:
4816
4817              for (;;) {
4818                n = acl (f, GETACLCNT, 0, NULL);
4819                [ allocate an array A of size N ]
4820                if (acl (f, GETACL, n, a) == n)
4821                  break;
4822              }
4823
4824            This loop might never terminate if some other process is constantly
4825            manipulating the file's ACL.  The loop should be rewritten to
4826            terminate.
4827
4828          - The acl (... GETACLNT ...) call is merely an optimization; its value
4829            is merely a hint as to how big to make the array.  A better
4830            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4831            and just guess a reasonably-big size, growing the size and trying
4832            again if it's not large enough.  This guarantees termination, and
4833            saves a system call.
4834
4835         * lib/acl-internal.h: Include <limits.h>.
4836         (MIN, SIZE_MAX): New macros.
4837         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4838         a stack-allocated buffer, and use malloc if it does not fit. Don't
4839         use GETACLCNT.
4840         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4841
4842 2012-02-19  Bruno Haible  <bruno@clisp.org>
4843
4844         acl: Fix endless loop on Solaris with vxfs.
4845         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4846         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4847         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4848         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4849         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4850         Reported by Bill Jones in
4851         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4852
4853 2012-02-19  Bruno Haible  <bruno@clisp.org>
4854
4855         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4856         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4857         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4858         that this function returns 0 in some more cases.
4859
4860 2012-02-19  Bruno Haible  <bruno@clisp.org>
4861
4862         acl: Update doc references.
4863         * doc/acl-resources.txt: Update links to Solaris documentation.
4864
4865 2012-02-19  Bruno Haible  <bruno@clisp.org>
4866
4867         Fix test failure in many locales on Solaris 11.
4868         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4869         'tr' arguments.
4870         * tests/test-pipe-filter-ii1.c (main): Likewise.
4871         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4872         expressions in the C locale.
4873         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4874         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4875
4876 2012-02-19  Bruno Haible  <bruno@clisp.org>
4877
4878         gnulib-tool: Improve usage message.
4879         * gnulib-tool (func_usage): Move doc of --help and --version to the
4880         section "Operation modes".
4881
4882 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4883
4884         README-release: make it easier to execute commands
4885         * top/README-release: break commands out on to separate lines.
4886
4887 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4888
4889         GNUmakefile: simplify detection of unconfigured trees
4890         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4891         whether the tree make is being run from is already configured or
4892         not.  Related simplifications.
4893
4894 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4895
4896         * gnulib-tool (func_usage): Document --help and --version.
4897
4898 2012-02-11  Jim Meyering  <meyering@redhat.com>
4899
4900         bootstrap: don't exit 0 upon gnulib-tool failure
4901         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4902         its exit status, not 0.
4903
4904 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4905
4906         README-release: various improvements
4907         * top/README-release: Give a command to push changes for the
4908         release.  Add "distcheck" to list of other pre-release checks.
4909         Fix instance of "make stable" which should be "make TYPE".
4910
4911 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4912
4913         maint: replace FSF snail-mail addresses with URLs
4914         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4915         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4916         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4917         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4918         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4919         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4920         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4921         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4922         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4923         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4924         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4925         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4926         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4927         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4928         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4929         * lib/glthread/thread.c, lib/glthread/thread.h:
4930         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4931         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4932         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4933         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4934         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4935         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4936         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4937         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4938         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4939         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4940         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4941         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4942         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4943         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4944         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4945         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4946         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4947         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4948         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4949         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4950         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4951         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4952         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4953         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4954         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4955         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4956         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4957         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4958         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4959         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4960         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4961         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4962         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4963         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4964         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4965         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4966         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4967         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4968         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4969         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4970         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4971         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4972         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4973         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4974         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4975         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4976         * tests/test-poll.c, tests/test-quotearg-simple.c:
4977         * tests/test-quotearg.c, tests/test-quotearg.h:
4978         * tests/test-round-ieee.c, tests/test-round1.c:
4979         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4980         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4981         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4982         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4983         * tests/test-strerror.c, tests/test-strerror_r.c:
4984         * tests/test-strsignal.c, tests/test-strverscmp.c:
4985         * tests/test-xmemdup0.c:
4986         Replace FSF snail mail addresses with URLs, as per GNU coding
4987         standards.  See glibc bug
4988         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4989
4990 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4991
4992         README-release: capitalize a word and split a line
4993         * top/README-release: Fix punctuation and spacing.
4994
4995 2012-02-08  Akim Demaille  <demaille@gostai.com>
4996
4997         fatal-signal: use C prototypes (with explicit void).
4998         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4999         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5000
5001 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5002
5003         regex: spelling fix
5004         * lib/regexec.c: spelling fix
5005
5006         regex: rely on stdint.h for SIZE_MAX
5007         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5008
5009 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         regex: merge glibc changes
5012
5013         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5014         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5015         (init_word_char): Work even if bitset words are not exactly 32 or
5016         64 bits wide.  Don't assume there are no padding bits.
5017         * lib/regex.c [_LIBC]: Do not include <config.h>.
5018         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5019         and -Wtype-limits.
5020         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5021         needless disagreement with glibc.  All uses changed.  Define it to
5022         1 only if _GNU_SOURCE, to match glibc.
5023         (_REG_RM_NAME): Remove; no longer needed, since the names in
5024         question are now all protected by __USE_GNU.
5025         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5026         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5027         * lib/regex_internal.h (MIN): New macro.
5028
5029         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5030         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5031
5032         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5033         * lib/regex_internal.c (re_string_fetch_byte_case):
5034         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5035         is miscompiled, and it turns out it is because of an incorrect
5036         attribute on re_string_fetch_byte_case.  Unlike
5037         re_string_peek_byte_case, this one is really not pure, it modifies
5038         memory (increments pstr->cur_idx), and with the pure attribute GCC
5039         assumed it doesn't and it cached the presumed value of
5040         regexp->cur_idx in a variable across the
5041          for (;; ++i)
5042            {
5043              if (i >= BRACKET_NAME_BUF_SIZE)
5044                return REG_EBRACK;
5045              if (token->type == OP_OPEN_CHAR_CLASS)
5046                ch = re_string_fetch_byte_case (regexp);
5047              else
5048                ch = re_string_fetch_byte (regexp);
5049              if (re_string_eoi(regexp))
5050                return REG_EBRACK;
5051              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5052                break;
5053              elem->opr.name[i] = ch;
5054            }
5055
5056         2011-11-29 Andreas Schwab <schwab@redhat.com>
5057         * lib/regcomp.c (build_equiv_class):
5058         Fix access after end of search string in regex matcher.
5059
5060         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5061         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5062
5063         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5064         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5065
5066         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5067         * lib/regcomp.c (parse_branch, parse_sub_exp):
5068         More regex memory leak fixes and tests.
5069         (parse_sub_exp, parse_bracket_exp):
5070         Fix memory leak for some invalid regular expressions.
5071
5072         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5073         * lib/regex_internal.c, lib/regexec.c:
5074         Fix unnecessary overallocation due to incomplete character.  When
5075         incomplete characters are found at the end of a string the code
5076         ran amok and allocated lots of memory.  Stricter limits are now in
5077         place.
5078
5079         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5080         * lib/regex.h: Update documentation.
5081
5082         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5083         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5084
5085         2010-05-05 Andreas Schwab <schwab@redhat.com>
5086         * lib/regexec.c (find_collation_sequence_value):
5087         Fix lookup of collation sequence value during regexp matching.
5088
5089         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5090         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5091
5092         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5093         * lib/regex.h: Cleanup namespace.
5094
5095         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5096         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5097
5098         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5099         * lib/regex_internal.h: Prevent some declarations and definitions
5100         to be seen when used in tests.
5101
5102         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5103         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5104         __libc_lock_* macros if not _LIBC.
5105         (struct re_dfa_t): Add lock.
5106
5107 2012-02-07  Eric Blake  <eblake@redhat.com>
5108
5109         maint.mk: also prohibit lower-case @var@
5110         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5111         lower case, like @top_srcdir@.
5112
5113 2012-02-04  Eric Blake  <eblake@redhat.com>
5114
5115         canonicalize: avoid uninitialized memory use
5116         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5117         random '/' left in dest.
5118         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5119
5120 2012-02-04  Bruno Haible  <bruno@clisp.org>
5121
5122         isatty: Fix test failure of ptsname_r on native Windows.
5123         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5124         and don't set errno.
5125         (isatty): Test first whether fd is valid. Set errno when returning 0.
5126
5127 2012-02-04  Bruno Haible  <bruno@clisp.org>
5128
5129         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5130         * tests/test-spawn-pipe-main.c: Include progname.h.
5131         (main): Invoke set_program_name.
5132         * modules/spawn-pipe-tests (Depends-on): Add progname.
5133
5134         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5135         * tests/test-nonblocking-socket-main.c: Include progname.h.
5136         (main): Invoke set_program_name.
5137         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5138
5139         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5140         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5141         (main): Invoke set_program_name.
5142         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5143
5144 2012-02-04  Eric Blake  <eblake@redhat.com>
5145
5146         canonicalize-lgpl: fix // handling
5147         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5148
5149         canonicalize: fix // handling
5150         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5151         /// to //, since only // is special.
5152
5153 2012-02-04  Bruno Haible  <bruno@clisp.org>
5154
5155         ioctl: Fix test failure on native Windows.
5156         * lib/ioctl.c: Include msvc-nothrow.h.
5157         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5158
5159 2012-02-04  Bruno Haible  <bruno@clisp.org>
5160
5161         fsync: Avoid test failure on native Windows.
5162         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5163         read-only.
5164
5165 2012-02-04  Bruno Haible  <bruno@clisp.org>
5166
5167         sys_select: Avoid syntax error on OpenBSD 5.0.
5168         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5169         currently being included, just include the system's <sys/select.h>.
5170
5171 2012-02-04  Bruno Haible  <bruno@clisp.org>
5172
5173         sys_select: Avoid syntax error on OpenBSD 5.0.
5174         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5175         <sys/select.h>, not before.
5176         Reported by Jiri B <jirib@devio.us>.
5177
5178 2012-02-04  Bruno Haible  <bruno@clisp.org>
5179
5180         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5181         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5182         global variables.
5183         * tests/test-get-rusage-data.c (main): Likewise.
5184         Reported by Jim Meyering.
5185
5186 2012-02-04  Bruno Haible  <bruno@clisp.org>
5187
5188         stdioext: Fix last commit.
5189         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5190
5191 2012-02-03  Bruno Haible  <bruno@clisp.org>
5192
5193         stdioext: Add tentative support for Plan9.
5194         * lib/stdio-impl.h: Include <errno.h>.
5195         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5196         * lib/freadable.c (freadable): Likewise.
5197         * lib/fwritable.c (fwritable): Likewise.
5198         * lib/fbufmode.c (fbufmode): Likewise.
5199         * lib/freading.c (freading): Likewise.
5200         * lib/fwriting.c (fwriting): Likewise.
5201         * lib/freadptr.c (freadptr): Likewise.
5202         * lib/freadseek.c (freadptrinc): Likewise.
5203         * lib/freadahead.c (freadahead): Likewise.
5204         * lib/fpurge.c (fpurge): Likewise.
5205         * lib/fseeko.c (rpl_fseeko): Likewise.
5206         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5207         Reported by Jens Staal <staal1978@gmail.com>.
5208
5209 2012-02-02  Jim Meyering  <meyering@redhat.com>
5210
5211         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5212         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5213         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5214         not even to try to add the attribute.  Instead, add a pragma to suppress
5215         the suggestion/warning.
5216
5217 2012-01-31  Karl Berry  <karl@gnu.org>
5218
5219         setstate doc: typo.
5220         * doc/posix-functions/setstate.texi (setstate): { not (.
5221
5222 2012-01-31  Bruno Haible  <bruno@clisp.org>
5223
5224         popen: Make more robust on Windows.
5225         * lib/popen.c: On native Windows, use the _popen based code even if
5226         HAVE_POPEN is set.
5227         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5228         environment variable on native Windows.
5229
5230 2012-01-30  Bruno Haible  <bruno@clisp.org>
5231
5232         pclose: Fix typo.
5233         * lib/stdio.in.h (pclose): Fix typo in warning message.
5234
5235 2012-01-30  Bruno Haible  <bruno@clisp.org>
5236
5237         doc about getlogin_r, setstate.
5238         * doc/posix-functions/getlogin_r.texi: List the incompatible
5239         declaration problem under "not fixed by gnulib".
5240         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5241         problem on Solaris 11 and other platforms.
5242
5243 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5244             Bruno Haible  <bruno@clisp.org>
5245
5246         poll tests: Make test more robust.
5247         * tests/test-poll.c: Include macros.h.
5248         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5249         return value of various I/O operations.
5250         * modules/poll-tests (Files): Add tests/macros.h.
5251
5252 2012-01-30  Bruno Haible  <bruno@clisp.org>
5253
5254         sys_stat: Fix support for mingw64 and MSVC.
5255         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5256         header files already do it.
5257         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5258         stat itself.
5259         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5260
5261 2012-01-30  Bruno Haible  <bruno@clisp.org>
5262
5263         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5265         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5266
5267 2012-01-29  Bruno Haible  <bruno@clisp.org>
5268
5269         quotearg: Fix test failure on MacOS X 10.5.
5270         * tests/test-quotearg-simple.c: Include localcharset.h.
5271         (main): If the locale encoding is not ASCII, bypass the tests of
5272         locale_quoting_style and clocale_quoting_style.
5273         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5274
5275 2012-01-29  Jim Meyering  <meyering@redhat.com>
5276
5277         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5278         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5279         detect uses of canonicalize_file_name.
5280
5281 2012-01-28  Bruno Haible  <bruno@clisp.org>
5282
5283         test-framework-sh: Fix test failure with AIX 7.1 diff.
5284         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5285         in column 1, like 'diff -c' does.
5286         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5287         whether 'diff -u' is used. Instead, test whether the output contains
5288         some '@' character.
5289
5290 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5291
5292         strtoimax: eliminate need for stdint.h, inttypes.h checks
5293         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5294         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5295         the prerequisites for a recently-introduced strtoimax test.
5296         I guess this might cause strtoimax to be replaced when not
5297         strictly necessary on older hosts, but this shouldn't introduce
5298         any bugs and it should make Emacs 'configure' faster on typical
5299         modern hosts.  Problem discovered when importing the latest gnulib
5300         to an Emacs test version.
5301         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5302
5303 2012-01-28  Bruno Haible  <bruno@clisp.org>
5304
5305         sys_time: Override 'struct timeval' on some native Windows platforms.
5306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5307         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5308         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5309         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5310         needs to be overridden.
5311         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5312         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5313         * tests/test-sys_select.c: Check that the tv_sec member has the same
5314         size as a 'time_t'.
5315         * tests/test-sys_time.c: Likewise.
5316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5317         is set, set also REPLACE_GETTIMEOFDAY.
5318         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5319         convert the resulting 'struct timeval' before returning.
5320         * lib/select.c: Include <sys/time.h>.
5321         (select, timeval): Undefine at the right place.
5322         * modules/select (Depends-on): Add sys_time.
5323         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5324         some Windows platforms.
5325         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5326
5327 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5328
5329         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5330         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5331         an integer.
5332         * lib/fcntl.c (dupfd): Likewise.
5333         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5334
5335 2012-01-28  Bruno Haible  <bruno@clisp.org>
5336
5337         fcntl: Avoid compilation error on native Windows.
5338         * modules/fcntl (Depends-on): Add 'close'.
5339
5340 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5341
5342         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5343         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5344         pointer to an integer.
5345         * lib/poll.c (IsConsoleHandle): Likewise.
5346         * lib/isatty.c (IsConsoleHandle): Likewise.
5347
5348 2012-01-28  Jim Meyering  <meyering@redhat.com>
5349
5350         doc: clarify README-release
5351         * top/README-release: Clarify: you should make a point to have
5352         the latest stable versions of build tools in your PATH, and the
5353         reference to buildreq is solely for its list of tool names, not
5354         for its minimal-functional version numbers.
5355         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5356
5357         maint.mk: use more readable (yet functionally equivalent) quoting
5358         It is common to quote a single quote in a single quoted string like
5359         this:  '...'\''...'.  Unless you know the idiom, that looks like
5360         gibberish, so prefer to double-quote the string when possible.
5361         Then you can use a more readable, lone single quote: "...'..."
5362         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5363         "don't" is more readable than the equivalent 'don'\''t'.
5364         (sc_cast_of_x_alloc_return_value): Likewise.
5365         (sc_cast_of_alloca_return_value): Likewise.
5366         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5367         rather than '\'':'\''.
5368
5369 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5370
5371         stdalign: relax _Alignof and tighten _Alignas test
5372         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5373         as it was too strict: alignof must divide offsetof, but it need
5374         not equal offsetof.  Inspired by Joseph S. Myers's comment
5375         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5376         Conversely, tighten the _Alignas test a bit, as the resulting
5377         alignment must be exactly 8.
5378
5379 2012-01-27  Bruno Haible  <bruno@clisp.org>
5380
5381         stdalign: Document the last change.
5382         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5383
5384 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5385
5386         stdalign: check that alignof and offsetof are consistent
5387         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5388         Problem reported for gnulib by Richard W.M. Jones in
5389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5390
5391 2012-01-27  Jim Meyering  <meyering@redhat.com>
5392
5393         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5394         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5395         convert a sequence with gaps to the minimal containing range.
5396         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5397         * tests/test-update-copyright.sh: Test for this.
5398         The FSF confirmed it is ok to do this, assuming there is at
5399         least one significant change per year in the affected range:
5400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5401
5402 2012-01-26  Bruno Haible  <bruno@clisp.org>
5403
5404         pipe2: refine doc about thread-safety
5405         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5406         multithread-safety problem.
5407         * doc/glibc-functions/accept4.texi: Likewise.
5408
5409 2012-01-26  Bruno Haible  <bruno@clisp.org>
5410
5411         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5412         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5413         In the test program, include <fcntl.h>, for O_RDONLY.
5414
5415 2012-01-26  Eric Blake  <eblake@redhat.com>
5416
5417         pipe2: document lack of thread-safety in replacement
5418         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5419         issue in replacement.
5420         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5421         Based on a report by Eric Wong.
5422
5423 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5424             Bruno Haible  <bruno@clisp.org>
5425
5426         malloca: Avoid warnings on x86_64 mingw64.
5427         * lib/malloca.c: Include <stdint.h>.
5428         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5429         * modules/malloca (Depends-on): Add stdint.
5430         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5431
5432 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5433
5434         obstack: remove __STDC__ conditionals
5435         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5436         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5437         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5438         m4/include_next.m4 as the only gnulib-maintained places that still
5439         refer to __STDC__.
5440
5441 2012-01-24  Bruno Haible  <bruno@clisp.org>
5442
5443         havelib: Modern quoting.
5444         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5445         the recent change to the GNU coding standards.
5446
5447 2012-01-24  Bruno Haible  <bruno@clisp.org>
5448
5449         stdint: Improve support for Android.
5450         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5451         Reported by Simon Josefsson <simon@josefsson.org>.
5452
5453 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         doc: omit trailing empty lines from INSTALL etc.
5456         * doc/Makefile (INSTALL): Omit trailing empty lines.
5457         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5458         omit trailing empty lines.  This simplifies the build procedure.
5459
5460 2012-01-23  Jim Meyering  <meyering@redhat.com>
5461
5462         tests: avoid spurious warnings about gl_sockets_startup
5463         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5464         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5465         reporting a "statement with no effect".
5466         * tests/test-accept.c (main): Mark as "(void)".
5467         * tests/test-accept4.c (main): Likewise.
5468         * tests/test-bind.c (main): Likewise.
5469         * tests/test-connect.c (main): Likewise.
5470         * tests/test-getpeername.c (main): Likewise.
5471         * tests/test-getsockname.c (main): Likewise.
5472         * tests/test-getsockopt.c (main): Likewise.
5473         * tests/test-listen.c (main): Likewise.
5474         * tests/test-recv.c (main): Likewise.
5475         * tests/test-recvfrom.c (main): Likewise.
5476         * tests/test-send.c (main): Likewise.
5477         * tests/test-sendto.c (main): Likewise.
5478         * tests/test-setsockopt.c (main): Likewise.
5479         * tests/test-shutdown.c (main): Likewise.
5480
5481 2012-01-21  Bruno Haible  <bruno@clisp.org>
5482
5483         locale-fr.m4: Fix for Android.
5484         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5485         failure of the test program on Bionic libc.
5486
5487 2012-01-21  Jim Meyering  <meyering@redhat.com>
5488
5489         bootstrap: fail when bootstrap_post_import_hook fails
5490         Otherwise, it's far too easy to miss diagnostics emitted
5491         between gnulib-tool's output and that of running configure.
5492         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5493
5494 2012-01-17  Jim Meyering  <meyering@redhat.com>
5495
5496         maint: enable sc_trailing_blank
5497         * build-aux/pmccabe.css: Remove trailing blanks.
5498         * doc/acl-cygwin.txt: Likewise.
5499         * doc/gnu-oids.texi: Likewise
5500         * cfg.mk: Enable sc_trailing_blank.
5501         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5502
5503 2012-01-17  Jim Meyering  <meyering@redhat.com>
5504
5505         maint: enable sc_prohibit_openat_without_use
5506         * cfg.mk: Enable sc_prohibit_openat_without_use.
5507         Exempt lib/selinux-at.c.
5508
5509 2012-01-17  Jim Meyering  <meyering@redhat.com>
5510
5511         maint: enable sc_prohibit_cloexec_without_use
5512         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5513         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5514
5515 2012-01-17  Jim Meyering  <meyering@redhat.com>
5516
5517         maint: enable sc_prohibit_intprops_without_use
5518         * cfg.mk: Enable sc_prohibit_intprops_without_use
5519         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5520
5521 2012-01-17  Jim Meyering  <meyering@redhat.com>
5522
5523         maint: enable sc_prohibit_hash_pjw_without_use
5524         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5525         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5526         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5527         following " (".
5528
5529 2012-01-17  Jim Meyering  <meyering@redhat.com>
5530
5531         maint: enable double-word-prohibiting rule
5532         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5533         Exempt three files.
5534
5535 2012-01-17  Jim Meyering  <meyering@redhat.com>
5536
5537         maint: remove empty lines at EOF, but excluding modules/*
5538         Apply syntax rules at home as well as abroad.  Most changes
5539         were induced by running this:
5540           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5541             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5542             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5543         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5544         Exempt modules/* and two binary files.
5545         Also exempt doc/INSTALL*, per request from Bruno Haible.
5546         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5547         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5548         * doc/Copyright/request-assign.future: Likewise.
5549         * doc/Copyright/request-disclaim.changes: Likewise.
5550         * doc/INSTALL: Likewise.
5551         * doc/INSTALL.ISO: Likewise.
5552         * doc/INSTALL.UTF-8: Likewise.
5553         * doc/acl-cygwin.txt: Likewise.
5554         * doc/acl-resources.txt: Likewise.
5555         * doc/fdl-1.2.texi: Likewise.
5556         * doc/fdl-1.3.texi: Likewise.
5557         * doc/fdl.texi: Likewise.
5558         * lib/argp-pin.c: Likewise.
5559         * lib/round.c: Likewise.
5560         * lib/unicase/u16-totitle.c: Likewise.
5561         * lib/unictype/block_test.c: Likewise.
5562         * lib/uninorm/canonical-decomposition.c: Likewise.
5563         * m4/README: Likewise.
5564         * m4/relocatable-lib.m4: Likewise.
5565         * tests/test-isnand-nolibm.c: Likewise.
5566         * tests/test-isnand.c: Likewise.
5567         * tests/uninorm/NormalizationTest.txt: Likewise.
5568
5569 2012-01-17  Jim Meyering  <meyering@redhat.com>
5570
5571         maint: add framework to run syntax-check rules against gnulib sources
5572         * cfg.mk: New file, to disable all currently-failing tests.
5573         We'll enable them one by one, as they are made to pass.
5574         * Makefile (sc_maint): New rule.
5575
5576 2012-01-21  Bruno Haible  <bruno@clisp.org>
5577
5578         stdint: Add support for Android.
5579         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5580         include the system's <stdint.h>.
5581         Reported by Simon Josefsson <simon@josefsson.org>.
5582
5583 2012-01-19  Jim Meyering  <meyering@redhat.com>
5584
5585         bootstrap: add bootstrap_post_import_hook
5586         Bison does still need something like the gnulib_mk_hook whose
5587         invocation I had to remove along with slurp in commit 767ccd40.
5588         Technically, we could get along without it, but doing so would
5589         have required living with a warning and a mandatory post-bootstrap
5590         automake rerun.
5591         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5592         (bootstrap_post_import_hook): New function.
5593         Invoke it after gnulib-tool --import and before autoreconf.
5594
5595 2012-01-18  Jim Meyering  <meyering@redhat.com>
5596
5597         gitlog-to-changelog: don't use "no_"-prefixed variable name
5598         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5599         to enable both --cluster and --no-cluster.  Change variable name,
5600         s/\$no_cluster/$cluster/, and reverse usage to match.
5601
5602         gitlog-to-changelog: use "||", not "or" in expressions
5603         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5604         expressions.
5605
5606 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5607
5608         gitlog-to-changelog: new option --no-cluster
5609         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5610         clustering of adjacent commit messages.
5611
5612 2012-01-17  Jim Meyering  <meyering@redhat.com>
5613
5614         maint: spell file systems with two words, not one
5615         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5616         two words, not one.
5617
5618 2012-01-16  Jim Meyering  <meyering@redhat.com>
5619
5620         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5621         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5622
5623 2012-01-16  Eric Blake  <eblake@redhat.com>
5624
5625         bootstrap: cater to autoconf 2.59
5626         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5627         is not available.
5628
5629         bootstrap: properly check for libtool
5630         * build-aux/bootstrap (libtoolize): Also run libtool when older
5631         usage is detected.
5632
5633 2012-01-15  Bruno Haible  <bruno@clisp.org>
5634
5635         Improve support for MSVC 9.
5636         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5637         clashes on MSVC.
5638         * lib/fcntl.in.h: Likewise.
5639         * lib/stdlib.in.h: Likewise.
5640         * lib/sys_stat.in.h: Likewise.
5641
5642 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5643
5644         gnupload: we hold the master copy of this script now
5645         For motivation and more information, see:
5646         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5647         * build-aux/gnupload: Make it clear in the heading comments that the
5648         master copy of this file is maintained by gnulib.  Since we are at
5649         it, bump its copyright year and ...
5650         ($scriptversion): ... the date in its version.
5651         ($usage): Patches and bug reports should be sent to the gnulib list,
5652         not the automake one.
5653         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5654         anymore.
5655
5656 2012-01-15  Bruno Haible  <bruno@clisp.org>
5657
5658         Fix module 'random'.
5659         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5660         initstate, setstate are declared.
5661
5662 2012-01-14  Bruno Haible  <bruno@clisp.org>
5663
5664         Tests for module 'random'.
5665         * modules/random-tests: New file.
5666         * tests/test-random.c: New file, based on tests/test-random_r.c.
5667
5668         New module 'random'.
5669         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5670         declarations.
5671         * lib/random.c: New file, based on glibc/stdlib/random.c.
5672         * m4/random.m4: New file.
5673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5674         HAVE_RANDOM.
5675         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5676         * modules/random: New file.
5677         * config/srclist.txt: Add an entry for random.c.
5678         * doc/posix-functions/random.texi: Mention the 'random' module.
5679         * doc/posix-functions/initstate.texi: Likewise.
5680         * doc/posix-functions/setstate.texi: Likewise.
5681         * doc/posix-functions/srandom.texi: Likewise.
5682
5683 2012-01-12  Bruno Haible  <bruno@clisp.org>
5684
5685         random_r: Use common idioms.
5686         * lib/random_r.c: Include <stdlib.h> first.
5687
5688         random_r: Override incompatible API on AIX, OSF/1.
5689         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5690         Override the system function if REPLACE_RANDOM_R is 1.
5691         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5692         and OSF/1, set REPLACE_RANDOM_R.
5693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5694         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5695         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5696         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5697         * doc/glibc-functions/random_r.texi: Likewise.
5698         * doc/glibc-functions/setstate_r.texi: Likewise.
5699
5700         random_r: Support for MSVC 9.
5701         * lib/random_r.c: Include stdint.h, not inttypes.h.
5702
5703 2012-01-12  Eric Blake  <eblake@redhat.com>
5704
5705         inet_ntop: guard extra work by IF_LINT
5706         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5707         better code generation when not checking for warnings.
5708         Suggested by Paul Eggert and Jim Meyering.
5709
5710         strptime: fix regression on mingw
5711         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5712         Fix regression.  Reported by Bruno Haible.
5713
5714 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5715             Bruno Haible  <bruno@clisp.org>
5716
5717         copy-file: add error-code-returning variant.
5718         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5719         (qcopy_file_preserving): New declaration.
5720         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5721         copy_file_preserving. Change return type to 'int'. Don't emit an error
5722         message here.
5723         (copy_file_preserving): New function.
5724         * tests/test-copy-file.c: Include <stdlib.h>.
5725         (main): Test qcopy_file_preserving if the environment variable
5726         NO_STDERR_OUTPUT is set.
5727         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5728         with NO_STDERR_OUTPUT
5729         * tests/test-copy-file-2.sh: Likewise.
5730
5731 2012-01-10  Bruno Haible  <bruno@clisp.org>
5732
5733         copy-file: Use 'quote' module consistently.
5734         * lib/copy-file.c (copy_file_preserving): Use quote().
5735
5736         copy-file: Refactor.
5737         * lib/copy-file.c: Include quote.h.
5738         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5739         message here.
5740         * modules/copy-file (Depends-on): Add quote.
5741
5742         acl: Export qcopy_acl.
5743         * lib/acl.h (qcopy_acl): New declaration.
5744         * lib/copy-acl.c (qcopy_acl): Make non-static.
5745
5746         acl: Rename a local variable.
5747         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5748
5749         acl: Align return values of copy_acl and qcopy_acl.
5750         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5751         maybe < -1.
5752
5753 2012-01-11  Eric Blake  <eblake@redhat.com>
5754
5755         strptime: silence gcc warnings
5756         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5757         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5758         Reported by Daniel P. Berrange.
5759
5760         inet_ntop: silence gcc warning
5761         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5762         Reported by Daniel P. Berrange.
5763
5764 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5765
5766         getloadavg test: skip the test on GNU/Linux without /proc mounted
5767         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5768         file.  When /proc is not mounted, it always fails with ENOENT.
5769         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5770         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5771
5772 2012-01-10  Bruno Haible  <bruno@clisp.org>
5773
5774         regex: Avoid link error on MSVC 9.
5775         * modules/regex (Depends-on): Add wctype.
5776
5777 2012-01-10  Bruno Haible  <bruno@clisp.org>
5778
5779         doc: Mention --with-tests option.
5780         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5781         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5782         --with-tests.
5783         Reported by Reuben Thomas.
5784
5785 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5786
5787         users.txt: order package names lexicographically.
5788         * users.txt: Order package names lexicographically.
5789
5790 2012-01-10  Jim Meyering  <meyering@redhat.com>
5791
5792         maint.mk: fix description in comment
5793         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5794
5795         ignore-value: remove deprecated ignore_ptr function
5796         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5797         * NEWS: Note this.
5798
5799 2012-01-09  Jim Meyering  <meyering@redhat.com>
5800
5801         test-init.sh: avoid a subshell
5802         * tests/test-init.sh: Remove protective subshell.
5803         Suggested by Bernhard Voelker.  While a subshell is normally
5804         required to protect against older shells (Solaris, FreeBSD) that
5805         warn about a missing program before performing redirection, the
5806         shell-selection tests performed by init.sh probably exclude any
5807         offending shell.
5808
5809 2012-01-08  Bruno Haible  <bruno@clisp.org>
5810
5811         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5812         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5813         variable.
5814
5815 2012-01-08  Bruno Haible  <bruno@clisp.org>
5816
5817         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5818         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5819         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5820         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5821         macro.
5822         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5823         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5824         * lib/spawn_faction_addopen.c: Add workaround implementation if
5825         HAVE_WORKING_POSIX_SPAWN.
5826         * modules/spawn (Makefile): Substitute
5827         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5828         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5829         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5830         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5831         (Depends-on): Update conditions.
5832         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5833         the Solaris 11 bug.
5834
5835 2012-01-08  Bruno Haible  <bruno@clisp.org>
5836
5837         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5838         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5839         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5840         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5841         macro.
5842         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5843         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5844         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5845         HAVE_WORKING_POSIX_SPAWN.
5846         * modules/spawn (Makefile): Substitute
5847         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5848         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5849         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5851         (Depends-on): Update conditions.
5852         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5853         the Solaris 11 bug.
5854
5855 2012-01-08  Bruno Haible  <bruno@clisp.org>
5856
5857         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5858         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5859         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5860         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5861         HAVE_WORKING_POSIX_SPAWN.
5862         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5863         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5864         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5865         * lib/spawn_faction_addclose.c: Add workaround implementation if
5866         HAVE_WORKING_POSIX_SPAWN.
5867         * modules/spawn (Makefile): Substitute
5868         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5869         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5870         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5871         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5872         (Depends-on): Update conditions.
5873         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5874         the Solaris 11 bug.
5875
5876 2012-01-08  Bruno Haible  <bruno@clisp.org>
5877
5878         doc: Update for Solaris 11 2011-11.
5879         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5880         * m4/printf.m4: Update comments.
5881
5882 2012-01-08  Bruno Haible  <bruno@clisp.org>
5883
5884         mktime: Avoid compilation error on Solaris 11.
5885         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5886
5887 2012-01-08  Bruno Haible  <bruno@clisp.org>
5888
5889         doc: Small fix.
5890         * doc/posix-headers/nl_types.texi: Correct platforms list.
5891
5892 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5893
5894         Add lgpl-3.0 module.
5895         * MODULES.html.sh (Support for building documentation): Add
5896         lgpl-3.0.
5897         * modules/lgpl-3.0: New file.
5898
5899 2012-01-08  Jim Meyering  <meyering@redhat.com>
5900
5901         select.c: indent with spaces, not TABs
5902         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5903
5904 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5905
5906         quotearg: do not use grave accent for left quote
5907         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5908         locale_quoting_style.
5909         (quotearg_buffer_restyled): Fix example.
5910         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5911
5912 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5913
5914         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5915         Most programs do not have translation catalogs for English and much
5916         less separate catalogs for British and American English.  Drop the
5917         suggestion to translators about these two, and provide it
5918         automatically for Unicode locales.  Like most programs, even those
5919         using American English, we use single quotation marks.  This conflicts
5920         with the American typographic convention, but works better when you
5921         cite the entire error message within double quotes.  It also tries not
5922         to clash with established practice and with what non-gnulib programs
5923         will usually do.
5924         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5925         using an UTF-8 or GB-18030 locale.  The list of other locales with
5926         quotes was provided by Bruno Haible.
5927         (quotearg_buffer_restyled): Adjust instructions to translators.
5928         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5929         text, since this would be wrong when using Unicode.
5930         * modules/quotearg: Depend on c-strcaseeq.
5931
5932 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5933
5934         quotearg: fix Wikipedia link
5935         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5936
5937 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5938
5939         Fix for mingw with MSVC9.
5940         * m4/ld-version-script.m4: Check that compiler rejects version
5941         scripts with syntax errors.  Reported by Bruno Haible
5942         <bruno@clisp.org>.
5943
5944 2012-01-06  Bruno Haible  <bruno@clisp.org>
5945
5946         Talk about "native Windows API", not "Woe32".
5947         * lib/accept4.c: Update comments to mention native Windows.
5948         * lib/execute.c: Likewise.
5949         * lib/fatal-signal.c: Likewise.
5950         * lib/localcharset.c: Likewise.
5951         * lib/nanosleep.c: Likewise.
5952         * lib/nl_langinfo.c: Likewise.
5953         * lib/pclose.c: Likewise.
5954         * lib/pipe-filter-gi.c: Likewise.
5955         * lib/pipe-filter-ii.c: Likewise.
5956         * lib/pipe.c: Likewise.
5957         * lib/pipe2.c: Likewise.
5958         * lib/popen.c: Likewise.
5959         * lib/progreloc.c: Likewise.
5960         * lib/relocatable.c: Likewise.
5961         * lib/sigaction.c: Likewise.
5962         * lib/sigprocmask.c: Likewise.
5963         * lib/spawn-pipe.h: Likewise.
5964         * lib/spawn-pipe.c: Likewise.
5965         * lib/spawni.c: Likewise.
5966         * lib/stat-time.h: Likewise.
5967         * lib/w32spawn.h: Likewise.
5968         * tests/test-isatty.c: Likewise.
5969         * lib/config.charset: More comments.
5970         * doc/gnulib-intro.texi: Mention native Windows.
5971         * doc/posix-functions/_Exit_C99.texi: Likewise.
5972         * doc/posix-headers/fcntl.texi: Likewise.
5973
5974 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5975
5976         argp: Avoid crash if translator uses % characters in a translation.
5977         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5978         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5979
5980 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         doc: C11 and C++11 are now official
5983         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5984         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5985         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5986         * modules/stdalign:
5987         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5988
5989 2012-01-06  Bruno Haible  <bruno@clisp.org>
5990
5991         uc-is-grapheme-break tests: Tweak.
5992         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5993         message.
5994
5995 2012-01-06  Bruno Haible  <bruno@clisp.org>
5996
5997         test-init.sh: correct the test for diff -u
5998         * tests/test-init.sh: Also redirect stdout to /dev/null.
5999
6000 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6001
6002         Use ', not `, for quoting output.
6003         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6004         (print_changelog_deltas, get_tool_versions, main program):
6005         * build-aux/git-version-gen:
6006         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6007         * build-aux/move-if-change (help):
6008         * build-aux/useless-if-before-free (usage, main program):
6009         * check-module (parse_module_file, usage)
6010         (find_included_lib_files, check_module):
6011         * lib/argmatch.c (main) [TEST]:
6012         * lib/argp-help.c (_help):
6013         * lib/getopt1.c (main) [TEST]:
6014         * lib/git-merge-changelog.c (usage):
6015         * lib/xstrtol-error.c (xstrtol_error):
6016         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6017         * m4/argz.m4 (gl_FUNC_ARGZ):
6018         * m4/bison.m4 (gl_BISON):
6019         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6020         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6021         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6022         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6023         * m4/gc-random.m4 (gl_GC_RANDOM):
6024         * m4/intl.m4 (gt_CHECK_DECL):
6025         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6026         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6027         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6029         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6030         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6031         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6032         * tests/test-dirname.c (main):
6033         * tests/test-getpass.c (main):
6034         * tests/test-iconvme.c (main):
6035         * tests/test-parse-datetime.c (LOG):
6036         * tests/test-xstrtoimax.sh:
6037         * tests/test-xstrtol.sh:
6038         * tests/test-xstrtoll.sh:
6039         * tests/test-xstrtoumax.sh:
6040         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6041         * top/GNUmakefile (abort-due-to-no-makefile):
6042         Quote 'like this', not `like this', as per the recent change to
6043         the GNU coding standards.
6044
6045 2012-01-05  Bruno Haible  <bruno@clisp.org>
6046
6047         strtoimax: Don't force a replacement on systems where intmax_t is int.
6048         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6049         'intmax_t' is not larger than 'int'.
6050         Reported by Pádraig Brady <P@draigBrady.com>.
6051
6052 2012-01-05  Bruno Haible  <bruno@clisp.org>
6053
6054         doc: Mention NetBSD bugs.
6055         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6056         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6057
6058 2012-01-05  Bruno Haible  <bruno@clisp.org>
6059
6060         strtoumax tests: Enhance tests.
6061         * tests/test-strtoumax.c (main): Add tests for large values.
6062
6063 2012-01-05  Bruno Haible  <bruno@clisp.org>
6064
6065         strtoimax: Work around AIX 5.1 bug.
6066         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6067         definition.
6068         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6069         Set HAVE_STRTOIMAX.
6070         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6071         REPLACE_STRTOIMAX.
6072         * modules/inttypes-incomplete (Makefile.am): Substitute
6073         REPLACE_STRTOIMAX.
6074         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6075         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6076         (Depends-on): Update conditions.
6077         * tests/test-strtoimax.c (main): Add tests for large values.
6078         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6079
6080 2012-01-05  Bruno Haible  <bruno@clisp.org>
6081
6082         inttypes: Modernize.
6083         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6084         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6085         (Makefile.am): Update inttypes.h rule.
6086
6087 2012-01-05  Jim Meyering  <meyering@redhat.com>
6088
6089         init.sh: don't waste a subshell just to redirect stderr
6090         * tests/init.sh: In testing for diff -u and diff -c, use a
6091         stderr-redirecting exec inside `...` rather than a subshell.
6092
6093         test-init.sh: avoid failure on HP-UX 11.00
6094         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6095         resolves to diff -c or cmp.  Reported by Bruno Haible.
6096
6097 2012-01-05  Bruno Haible  <bruno@clisp.org>
6098
6099         Tests for module 'strtoull'.
6100         * modules/strtoull-tests: New file.
6101         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6102
6103 2012-01-05  Bruno Haible  <bruno@clisp.org>
6104
6105         Tests for module 'strtoll'.
6106         * modules/strtoll-tests: New file.
6107         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6108
6109 2012-01-05  Bruno Haible  <bruno@clisp.org>
6110
6111         Tests for module 'strtoul'.
6112         * modules/strtoul-tests: New file.
6113         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6114
6115 2012-01-05  Bruno Haible  <bruno@clisp.org>
6116
6117         Tests for module 'strtol'.
6118         * modules/strtol-tests: New file.
6119         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6120
6121 2012-01-04  Jim Meyering  <meyering@redhat.com>
6122
6123         test-init.sh: accommodate Solaris 5.10's different diff -u output
6124         * tests/test-init.sh: Also exempt @@ lines from the comparison
6125         of diff output, since Solaris 5.10 and GNU diff formats differ.
6126         Reported by Stefano Lattarini.
6127
6128 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         test-posixtm: don't assume signed integer wraparound
6131         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6132         after signed integer overflow.  Inspired by (though it may not
6133         fix) Bruno Haible's bug report in
6134         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6135
6136         Spell out "Windows 9x" and "Windows XP".
6137         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6138         "Windows 9x" and "WinXP" with "Windows XP".
6139
6140 2012-01-04  Jim Meyering  <meyering@redhat.com>
6141
6142         test-vc-list-files-cvs.sh: remove obsolete comment
6143         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6144         double exit.  Now that's all encapsulated via skip_ and Exit.
6145
6146 2012-01-04  Bruno Haible  <bruno@clisp.org>
6147
6148         Talk about "native Windows API", not "Win32".
6149         * lib/classpath.c: Update comments to mention native Windows.
6150         * lib/csharpexec.c: Likewise.
6151         * lib/dup2.c: Likewise.
6152         * lib/error.c: Likewise.
6153         * lib/fcntl.c: Likewise.
6154         * lib/filename.h: Likewise.
6155         * lib/findprog.c: Likewise.
6156         * lib/get-rusage-as.c: Likewise.
6157         * lib/get-rusage-data.c: Likewise.
6158         * lib/getpagesize.c: Likewise.
6159         * lib/javaexec.c: Likewise.
6160         * lib/msvc-inval.c: Likewise.
6161         * lib/msvc-nothrow.c: Likewise.
6162         * lib/nanosleep.c: Likewise.
6163         * lib/nonblocking.c: Likewise.
6164         * lib/printf-parse.c: Likewise.
6165         * lib/setlocale.c: Likewise.
6166         * lib/sigaction.c: Likewise.
6167         * lib/strerror_r.c: Likewise.
6168         * lib/tmpdir.c: Likewise.
6169         * lib/vasnprintf.c: Likewise.
6170         * lib/w32spawn.h: Likewise.
6171         * lib/waitpid.c: Likewise.
6172         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6173         * m4/locale-ar.m4: Likewise.
6174         * m4/locale-fr.m4: Likewise.
6175         * m4/locale-ja.m4: Likewise.
6176         * m4/locale-tr.m4: Likewise.
6177         * m4/locale-zh.m4: Likewise.
6178         * m4/printf.m4: Likewise.
6179         * tests/test-cloexec.c: Likewise.
6180         * tests/test-copy-acl.sh: Likewise.
6181         * tests/test-copy-file.sh: Likewise.
6182         * tests/test-file-has-acl.sh: Likewise.
6183         * tests/test-set-mode-acl.sh: Likewise.
6184         * tests/test-dup-safer.c: Likewise.
6185         * tests/test-dup2.c: Likewise.
6186         * tests/test-dup3.c: Likewise.
6187         * tests/test-fcntl.c: Likewise.
6188         * tests/test-nonblocking-pipe.h: Likewise.
6189         * tests/test-nonblocking-socket.h: Likewise.
6190         * tests/test-pipe.c: Likewise.
6191         * tests/test-pipe2.c: Likewise.
6192         * tests/test-spawn-pipe-child.c: Likewise.
6193         * doc/acl-resources.txt: Likewise.
6194         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6195         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6196         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6197         * lib/localcharset.c: Update comments to mention native Windows.
6198         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6199         * lib/localename.c: Likewise.
6200         * lib/progreloc.c: Likewise.
6201         * lib/relocatable.c: Likewise.
6202         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6203         (windows_compute_revents): Renamed from win32_compute_revents.
6204         (windows_compute_revents_socket): Renamed from
6205         win32_compute_revents_socket.
6206         * lib/select.c: Update comments to mention native Windows.
6207         (windows_poll_handle): Renamed from win32_poll_handle.
6208         * m4/threadlib.m4: Update comments to mention native Windows.
6209         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6210         --enable-threads=windows instead of --enable-threads=win32. Set
6211         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6212         * lib/glthread/lock.h: Update comments to mention native Windows.
6213         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6214         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6215         USE_WIN32_THREADS.
6216         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6217         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6218         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6219         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6220         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6221         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6222         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6223         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6224         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6225         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6226         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6227         * tests/test-tls.c: Likewise.
6228         Rationale:
6229         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6230         on both 32-bit and 64-bit Windows systems.
6231         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6232         line of distinction is between "native Windows" on one side and Unix/
6233         POSIX systems on the other side. More details in
6234         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6235         Suggested by Paul Eggert.
6236
6237 2012-01-03  Bruno Haible  <bruno@clisp.org>
6238
6239         isatty: Support for MSVC 9.
6240         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6241         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6242         (_isatty_nothrow): New function.
6243         (isatty): Use it instead of _isatty.
6244         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6245         * lib/poll.c (IsConsoleHandle): Likewise.
6246         * lib/select.c (IsConsoleHandle): Likewise.
6247         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6248         (gl_PREREQ_ISATTY): New macro.
6249         * modules/isatty (Depends-on): Add msvc-inval.
6250         (configure.ac): Invoke gl_PREREQ_ISATTY.
6251
6252 2012-01-03  Jim Meyering  <meyering@redhat.com>
6253
6254         maint.mk: remove temporary transition aid from over 1.5 years ago
6255         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6256         purpose was to aid in the transition (avoiding silent malfunction)
6257         from that old name to the new _sc_search_regexp.  This shim was
6258         added by commit 219c504b.
6259
6260         init.sh: do not try to accommodate compare arguments starting with "-"
6261         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6262         compare arguments that start with "-".  Besides, we do not worry
6263         about this when invoking diff or cmp; why start now with sed?
6264         Using "--" to separate options from argument would trigger sed
6265         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6266         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6267
6268 2012-01-02  Bruno Haible  <bruno@clisp.org>
6269
6270         Enhance tests for module 'isatty'.
6271         * modules/isatty-tests (Depends-on): Add pipe-posix.
6272         * tests/test-isatty.c: Include <fcntl.h>.
6273         (DEV_NULL): New macro.
6274         (main): Test the resut of isatty() also on regular files, pipes, and
6275         /dev/null.
6276
6277         New module 'isatty'.
6278         * lib/unistd.in.h (isatty): New declaration.
6279         * lib/isatty.c: New file, based on an idea of
6280         Bastien Roucariès <roucaries.bastien@gmail.com>.
6281         * m4/isatty.m4: New file.
6282         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6283         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6284         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6285         REPLACE_ISATTY.
6286         * modules/isatty: New file.
6287         * doc/posix-functions/isatty.texi: Mention the new module.
6288         Suggested by Paolo Bonzini.
6289
6290 2012-01-02  Bruno Haible  <bruno@clisp.org>
6291
6292         canonicalize: Tweak 2011-12-29 commit.
6293         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6294         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6295
6296 2012-01-02  Jim Meyering  <meyering@redhat.com>
6297
6298         gitlog-to-changelog: describe input syntax in --help output
6299         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6300
6301         gitlog-to-changelog: fix typo in --help: show backslash before email @
6302         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6303         in sources, but not in actual output.
6304
6305 2011-12-30  Jim Meyering  <meyering@redhat.com>
6306
6307         gitlog-to-changelog: don't malfunction when name contains %-directive
6308         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6309         in a name string cause trouble.  E.g., with a user name of "%s",
6310         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6311
6312 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6313
6314         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6315         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6316         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6317         the "  (tiny change)" notation that is appended to the standard
6318         ChangeLog "date  name  email" header line.
6319
6320 2012-01-01  Jim Meyering  <meyering@redhat.com>
6321
6322         test-framework-sh: init.sh: fix "make dist" failure
6323         When using gnulib-tool's --with-tests option and any module that
6324         depends on test-framework-sh, "make dist" would fail due to the
6325         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6326         in the gltests directory, and not in the gllib/ directory.
6327         One way to work around that is to move the EXTRA_DIST += init.sh
6328         from the primary module to the -tests one:
6329         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6330         * modules/test-framework-sh (Makefile.am): ...not here.
6331         Reported by Tom G. Christensen in
6332         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6333
6334         version-etc: update copyright year reported by --version
6335         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6336
6337 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6338
6339         canonicalize: only stat() if required
6340         * lib/canonicalize.c (canonicalize_filename_mode):
6341         Avoid calling l?stat() when both CAN_MISSING,
6342         and CAN_NOLINKS are set, as we neither need
6343         to resolve symlinks or test component existence.
6344
6345 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6346
6347         doc: cover st_ino issues once; add OpenVMS etc.
6348         * doc/posix-functions/stat.texi (stat):
6349         * doc/posix-functions/lstat.texi (lstat):
6350         * doc/posix-functions/fstatat.texi (fstatat):
6351         * doc/posix-functions/fstat.texi (fstat):
6352         Move general 'struct stat' stuff to sys_stat.texi,
6353         leaving behind a pointer.
6354         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6355         Merge duplicate info about 'struct stat' problems into here.
6356         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6357         and suggest partial workarounds.
6358
6359         same-inode: port to OpenVMS
6360         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6361         three st_ino values.
6362
6363 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6364
6365         canonicalize: fix references to stat() and lstat()
6366         * lib/canonicalize.c (canonicalize_filename_mode):
6367         Ensure references always resolve to a replacement
6368         function if required (even via a macro).
6369
6370 2011-12-30  Jim Meyering  <meyering@redhat.com>
6371
6372         gitlog-to-changelog: remove a little duplication
6373         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6374         rather than twice.
6375
6376 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6377
6378         canonicalize: add support for not resolving symlinks
6379         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6380         indicate we don't want to follow symlinks.  Also
6381         provide CAN_MODE_MASK to aid setting these existing
6382         mutually exclusive values.
6383         * lib/canonicalize.c (canonicalize_filename_mode):
6384         Extract the flags from can_mode parameter, which
6385         are currently just used to select between stat()
6386         and lstat().  Also ensure that mutually exclusive
6387         values are flagged immediately as invalid.
6388         * tests/test-canonicalize.c: Verify symlinks are
6389         not followed, and that invalid flag combinations
6390         are diagnosed.
6391
6392 2011-12-25  Jim Meyering  <meyering@redhat.com>
6393
6394         gitlog-to-changelog: do not clump multi-paragraph entries
6395         Identical header lines (date,name,email+coauthors) are suppressed,
6396         thus putting all entries with those same characteristics under
6397         a single header.  However, when a log entry consists of two or
6398         more paragraphs, it may not be clear where it starts and ends.
6399         This change makes it so that such an entry is always separated
6400         from others by a header line, even when that header would
6401         otherwise be suppressed.
6402         * build-aux/gitlog-to-changelog: Implement the above.
6403         Inspired by a related request from Stefano Lattarini in
6404         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6405
6406 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6407
6408         announce-gen: fix `cmd' typo in diagnostic
6409         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6410         diagnostic: a missing '$' meant that the command was not output.
6411
6412 2011-12-23  Jim Meyering  <meyering@redhat.com>
6413
6414         test-framework-sh: distribute init.sh
6415         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6416         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6417         fail due to the lack of init.sh.
6418
6419         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6420         * modules/atexit-tests: Rather than listing tests/init.sh,
6421         now that there's a module for it, simply depend on that new module.
6422         * modules/closein-tests: Likewise.
6423         * modules/exclude-tests: Likewise.
6424         * modules/getcwd-tests: Likewise.
6425         * modules/perror-tests: Likewise.
6426         * modules/pread-tests: Likewise.
6427         * modules/pwrite-tests: Likewise.
6428         * modules/vc-list-files-tests: Likewise.
6429         * modules/verify-tests: Likewise.
6430         * modules/xalloc-die-tests: Likewise.
6431         * modules/xstrtoimax-tests: Likewise.
6432         * modules/xstrtol-tests: Likewise.
6433         * modules/xstrtoll-tests: Likewise.
6434         * modules/xstrtoumax-tests: Likewise.
6435         * modules/yesno-tests: Likewise.
6436
6437 2011-12-22  Jim Meyering  <meyering@redhat.com>
6438
6439         test-framework-sh: add minimal tests of init.sh's compare function
6440         * modules/test-framework-sh-tests: New file.
6441         * tests/test-init.sh: New file.
6442
6443         test-framework-sh: new module
6444         * modules/test-framework-sh: New file.
6445         * MODULES.html.sh (Support for maintaining and releasing projects):
6446         List it.
6447
6448         init.sh: do not emit simulated diff output to stderr
6449         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6450
6451 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6452
6453         .gitignore: ignore gnulib.dvi and regex.info
6454         * doc/.gitignore:add gnulib.dvi and regex.info
6455
6456 2011-12-22  Jim Meyering  <meyering@redhat.com>
6457
6458         init.sh: correct previous change
6459         * tests/init.sh (compare): My previous change was wrong.
6460         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6461
6462         init.sh: avoid unwarranted test failure when using "set -e"
6463         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6464         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6465         a use like "compare exp out" would get evoke an unconditional failure.
6466
6467 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6468
6469         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6470         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6471         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6472         autoreconf that did not.
6473         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6474         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6475
6476 2011-12-17  Jim Meyering  <meyering@redhat.com>
6477
6478         bootstrap: remove some now-unneeded code
6479         This script arose back when gnulib-tool was young.
6480         Since then, it has seen improvements that render much of this
6481         script unnecessary.  In particular, it can now make symlinks
6482         to the files it uses.  Also, I no longer see as much value in
6483         marking files as read-only via comments.
6484         If you relied on the symlink-creation feature of the preceding
6485         version of this script, you can get most of that functionality
6486         by adding the --symlink option to the definition of
6487         gnulib_tool_option_extras in your bootstrap.conf file.
6488         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6489         Run autopoint and libtoolize *before* gnulib-tool.
6490         After it, run an abbreviated autoreconf, rather than a loop around
6491         all tools.
6492         (slirp, bt_mark_as_generated): Remove functions.
6493
6494 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6495
6496         ftoastr: fix typo
6497         * lib/ftoastr.h: Fix misspelling in comment.
6498
6499 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6500
6501         * top/README-release: fix punctuation.
6502
6503 2011-12-17  Jim Meyering  <meyering@redhat.com>
6504
6505         bootstrap: correct the recent buildreq change
6506         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6507         had no effect.
6508         * build-aux/bootstrap (buildreq): Bracket each search term with
6509         "*...*", so that the shell "case" statement works as intended.
6510         Add comments.
6511
6512 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6513
6514         build: let bootstrap resort to wget when downloading .po files
6515         * build-aux/bootstrap (download_po_files): Fallback to wget when
6516         downloading the .po files via rsync fails.  This is necessary to
6517         bootstrap from behind a strict firewall.
6518
6519 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         stdint: don't assume C++11 when compiling with g++
6522         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6524         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6525         work also in C++ before C++11, as that improperly inhibits
6526         generating a substitute stdint.h for that case.
6527
6528 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6529
6530         alloca: protect comment from gnulib-tool
6531         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6532         that gnulib-tool doesn't think it's a license, and munge it to
6533         say "GCC version 3".
6534
6535 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6536
6537         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6538         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6539         $(abs_top_builddir) instead of $(top_builddir).
6540
6541 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6542
6543         strftime-tests: also test nanoseconds
6544         * tests/test-strftime.c (T): Add a test of %N.
6545
6546 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         inttypes, stdint: add C++11 support
6549         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6550         when including inttypes.h and stdint.h.  Support this change to
6551         the standard.
6552         * doc/posix-headers/inttypes.texi (inttypes.h):
6553         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6554         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6555         Define if not defined already, for the benefit of pre-C++11 hosts.
6556         Define the standard format macros (e.g., PRId8) always.
6557         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6558         Likewise, if __cpluspus.  Define the standard constant and limit
6559         macros (e.g., INT8_C, INT8_MAX) always.
6560         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6561         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6562         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6563         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6564         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6565         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6566         Likewise.
6567
6568 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6569
6570         nonblocking tests: Fix test failure on Linux/PPC.
6571         Suggested by Prerna Saxena in
6572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6573         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6574         Set to 1100000.
6575
6576 2011-12-12  Jim Meyering  <meyering@redhat.com>
6577
6578         argmatch: don't hard-code `' when listing valid option arguments
6579         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6580         use the quote function to add quotes.  Use fputs rather than
6581         fprintf for the format string with no format directive.
6582
6583 2011-12-07  Eric Blake  <eblake@redhat.com>
6584
6585         bootstrap: detect tools required by gnulib-tool
6586         * build-aux/bootstrap (buildreq): Provide minimum implicit
6587         dependencies.
6588         * DEPENDENCIES: Mention patch as a prereq.
6589
6590 2011-12-04  Bruno Haible  <bruno@clisp.org>
6591
6592         sethostname: Port to Windows platforms.
6593         * lib/sethostname.c: Provide an alternate implementation for Windows
6594         platforms.
6595         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6596         (main): Skip the test if sethostname() fails with EPERM. On Windows
6597         platforms, don't check the result of gethostname().
6598
6599 2011-12-04  Bruno Haible  <bruno@clisp.org>
6600             Jim Meyering  <meyering@redhat.com>
6601
6602         tests: Avoid spurious error message on platforms without mktemp program.
6603         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6604
6605 2011-12-04  Bruno Haible  <bruno@clisp.org>
6606
6607         sethostname: Fix documentation.
6608         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6609         "not fixed" section.
6610
6611 2011-12-03  Bruno Haible  <bruno@clisp.org>
6612
6613         gnulib-tool: Verify that the License field is present and non-empty.
6614         * gnulib-tool (func_get_license_raw): New function, extracted from
6615         func_get_license.
6616         (func_get_license): Use it. Warn if the module is not a test module and
6617         has no license.
6618         Suggested by Jim Meyering.
6619
6620 2011-12-03  Bruno Haible  <bruno@clisp.org>
6621
6622         sethostname tests: Fix link error on mingw.
6623         * tests/test-sethostname1.c: New file, extracted from
6624         tests/test-sethostname.c.
6625         * tests/test-sethostname2.c: New file, extracted from
6626         tests/test-sethostname.c.
6627         * tests/test-sethostname.c: Remove file.
6628         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6629         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6630         (Depends-on): Add gethostname.
6631         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6632         Link the latter with $(GETHOSTNAME_LIB).
6633
6634         sethostname tests: Fix compilation error on mingw.
6635         * tests/test-sethostname.c: Don't include <sys/types.h>.
6636         (geteuid): Use a dummy value without uid_t.
6637         * modules/sethostname-tests (Depends-on): Remove sys_types.
6638
6639         sethostname tests: Avoid a gcc warning.
6640         * tests/test-sethostname.c (main): Remove an unused variable.
6641
6642         Tweak last commit.
6643         * modules/sethostname-tests (Files): Sort by decreasing importance.
6644         (configure.ac): Check for geteuid.
6645         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6646         the test when there's nothing to test. Drop an unnecessary cast.
6647         Improve an error message. Verify that the final sethostname() call
6648         succeeds.
6649
6650 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6651
6652         Add a test suite for the sethostname module.
6653         * modules/sethostname-tests: New file.  A test program
6654         for the sethostname module.
6655         * tests/test-sethostname.c: Likewise.
6656
6657 2011-12-03  Bruno Haible  <bruno@clisp.org>
6658
6659         Tweak last commit.
6660         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6661         Fix preprocessor directives indentation. Fix typos.
6662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6663         * modules/unistd (Makefile): Likewise.
6664
6665 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6666
6667         Integrate the sethostname module into unistd.
6668         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6669         into the unistd.h header.
6670         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6671         preprocessor directives.
6672         * modules/unistd: Setup the Makefile substitutions of the
6673         SETHOSTNAME preprocessor directives.
6674
6675 2011-12-03  Bruno Haible  <bruno@clisp.org>
6676
6677         Tweak last commit.
6678         * lib/sethostname.c: Don't include <string.h>.
6679         (sethostname): No need to copy the argument string to the stack. Don't
6680         call clearerr. Preserve errno when fprintf failed.
6681         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6682         Don't invoke AC_REPLACE_FUNCS.
6683         * modules/sethostname (Link): Remove empty section.
6684         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6685         failure problem.
6686
6687 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6688
6689         New module 'sethostname'.
6690         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6691         for systems that lack it.
6692         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6693         sethostname declaration and function.
6694         * modules/sethostname: New file.  Define the sethostname module.
6695
6696 2011-12-03  Bruno Haible  <bruno@clisp.org>
6697
6698         Tweak last commit.
6699         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6700
6701 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6702
6703         Split the HOST_NAME_MAX detection into a separate m4 macro.
6704         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6705         macro so it can be used by the pending sethostname module.
6706
6707 2011-12-03  Bruno Haible  <bruno@clisp.org>
6708
6709         Fix module descriptions syntax.
6710         * modules/argv-iter (License): Fix syntax.
6711         * modules/di-set (License): Likewise.
6712         * modules/ino-map (License): Likewise.
6713         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6714
6715 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6716
6717         stdalign: port to Clang 3.0
6718         Problem reported by Simon Josefsson in
6719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6720         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6721         which has <stdalign.h> but which does not define alignof.
6722         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6723
6724 2011-12-01  Eric Blake  <eblake@redhat.com>
6725
6726         mktempd: silence dd usage
6727         * build-aux/mktempd (rand_bytes): Silence dd.
6728
6729 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6730
6731         manywarnings: Don't mention gcc version in docstring.
6732         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6733         Jim Meyering <meyering@redhat.com>.
6734
6735 2011-11-30  Jim Meyering  <meyering@redhat.com>
6736
6737         hash: mark a few floating point constants with "f" suffix
6738         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6739         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6740         floating point constants with "f", since they're destined to be
6741         saved/used as "float"s.
6742
6743 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6744
6745         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6746         * tests/test-float.c (test_long_double): Correct and re-enable the
6747         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6748
6749 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6750
6751         Avoid subtracting two pointers that don't point into the same block.
6752         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6753         only pointers into the same memory block are subtracted. We cannot
6754         assume that sizeof (ptrdiff_t) == sizeof (void *).
6755
6756 2011-11-29  Eric Blake  <eblake@redhat.com>
6757
6758         maint.mk: add syntax check for use of compare from init.sh
6759         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6760         moved here from coreutils.
6761
6762         manywarnings: drop -Wunsuffixed-float-constants
6763         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6764         '1.0D', which is the only way to silence this warning for 'double'.
6765
6766 2011-11-29  Jim Meyering  <meyering@redhat.com>
6767
6768         hash: mark compute_bucket_size with the pure attribute
6769         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6770
6771         quotearg, propername: correct pragma guard expression
6772         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6773         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6774
6775 2011-11-28  Jim Meyering  <meyering@redhat.com>
6776
6777         propername: do not mark proper_name with the const attribute
6778         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6779         since it examines data pointed to by its parameter.
6780         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6781         the suggestion from -Wsuggest-attribute=const.
6782
6783         propername: mark one more function as const
6784         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6785
6786 2011-11-27  Jim Meyering  <meyering@redhat.com>
6787
6788         mark functions with const and pure attributes
6789
6790         Mark functions per suggestions from gcc-4.6 when using these options:
6791         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6792         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6793         Follow these guidelines: when possible, apply the attribute to
6794         an extern declaration, not to its definition.  Apply it to the
6795         definition only when the definition is static.
6796         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6797         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6798         * lib/base64.h (isbase64): Likewise.
6799         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6800         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6801         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6802         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6803         (c_tolower, c_toupper): Likewise.
6804         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6805         * lib/chdir-long.c (find_non_slash): Likewise.
6806         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6807         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6808         * lib/file-type.h (file_type): Likewise.
6809         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6810         * lib/filevercmp.c (verrevcmp): Likewise.
6811         * lib/freadahead.h (freadahead): Likewise.
6812         * lib/fts.c (fts_maxarglen): Likewise.
6813         * lib/hash-pjw.h (hash_pjw): Likewise.
6814         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6815         * lib/hash.c (is_prime, next_prime): Likewise.
6816         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6817         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6818         (hash_table_ok, hash_get_first, hash_string): Likewise.
6819         (compute_bucket_size): Likewise.
6820         * lib/i-ring.h (i_ring_empty): Likewise.
6821         * lib/isnan.c (isnanl): Likewise.
6822         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6823         * lib/memcasecmp.h (memcasecmp): Likewise.
6824         * lib/memchr2.h (memchr2): Likewise.
6825         * lib/memcmp2.h (memcmp2): Likewise.
6826         * lib/parse-datetime.y (lookup_zone): Likewise.
6827         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6828         [!WINDOWS_SOCKETS]: Likewise.
6829         * lib/strnlen1.h (strnlen1): Likewise.
6830         * lib/uniwidth.in.h (uc_width): Likewise.
6831         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6832         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6833         (quoting_options_from_style): Add a comment.
6834         * lib/propername.h (proper_name): Add a comment.
6835
6836 2011-11-27  Bruno Haible  <bruno@clisp.org>
6837
6838         Remove unused macros from !_LIBC code in glibc-borrowed files.
6839         * lib/fnmatch.c (STRCOLL): Remove macro.
6840         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6841         * lib/glob.c (__stat, __readdir64): Remove macros.
6842         * lib/tempname.c (__open64, __xstat64): Remove macros.
6843         Suggested by Paul Eggert.
6844
6845 2011-11-27  Bruno Haible  <bruno@clisp.org>
6846
6847         getcwd: Fix link error on MSVC 9.
6848         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6849
6850 2011-11-27  Bruno Haible  <bruno@clisp.org>
6851
6852         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6853         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6854         HAVE_OPENDIR is 0.
6855         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6856         HAVE_CLOSEDIR is 0.
6857         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6858         is 0.
6859         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6860
6861 2011-11-27  Bruno Haible  <bruno@clisp.org>
6862
6863         getcwd: Fix bug from 2011-08-17.
6864         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6865         platforms that need it.
6866         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6867         code of 4 to be a failure, not a success. This ensures that
6868         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6869
6870 2011-11-27  Bruno Haible  <bruno@clisp.org>
6871
6872         binary-io tests: Avoid test failure on mingw when libtool is used.
6873         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6874         Don't verify the size of t-bin-out1.tmp here.
6875         * tests/test-binary-io.sh: Verify it here.
6876         Reported by Simon Josefsson.
6877
6878 2011-11-26  Bruno Haible  <bruno@clisp.org>
6879
6880         Fix conflict between two instantiations of module 'unistd'.
6881         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6882         ${include_guard_prefix} also in the autoconf snippet.
6883         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6885         GNULIB_UNISTD_H_GETOPT.
6886         * modules/getopt-posix (configure.ac): Set the
6887         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6888         * modules/getopt-gnu (configure.ac): Likewise.
6889         * modules/unistd (Makefile.am): Change the substitution value of
6890         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6891         Reported by Simon Josefsson.
6892
6893 2011-11-25  Bruno Haible  <bruno@clisp.org>
6894
6895         pagealign_alloc: Doc and comments.
6896         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6897         module.
6898         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6899
6900 2011-11-25  Jim Meyering  <meyering@redhat.com>
6901
6902         test-update-copyright.sh: avoid false-positive failure
6903         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6904         around false positive failure on Cygwin/Windows.  The latter was
6905         matching erroneously-created files with names like
6906         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6907
6908 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6909
6910         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6911         * m4/valgrind-tests.m4: Check that the parameters that will be
6912         used works, not just a subset of them.  Reported by Bruno Haible
6913         <bruno@clisp.org>.
6914
6915 2011-11-24  Jim Meyering  <meyering@redhat.com>
6916
6917         test-stdalign.c: comment out long double tests
6918         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6919         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6920         error: '_Alignas' specifiers cannot reduce alignment of \
6921         'static_longdouble_alignas'.
6922
6923 2011-11-22  Jim Meyering  <meyering@redhat.com>
6924
6925         init.sh: make "compare /dev/null FILE" output more readable
6926         * tests/init.sh (compare_): Document the preferred order of arguments.
6927         (emit_diff_u_header_): New function.
6928         (compare_dev_null_): Emit a simulated diff, rather than just the
6929         contents of the unexpected file.  Suggestion from Bruno Haible.
6930
6931 2011-11-21  Jim Meyering  <meyering@redhat.com>
6932             Eric Blake  <eblake@redhat.com>
6933
6934         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6935         * tests/init.sh: Make our compare function slightly more portable.
6936         Reported by Bruno Haible in
6937         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6938
6939 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6940
6941         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6942         before using it, in code that ends up in config.h.
6943
6944 2011-11-20  Bruno Haible  <bruno@clisp.org>
6945
6946         getcwd: Work around getcwd bug on AIX 5..7.
6947         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6948         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6949         Use a different value for gl_cv_func_getcwd_path_max. Move the
6950         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6951         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6952         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6953         Define HAVE_MINIMALLY_WORKING_GETCWD.
6954         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6955         where it is not even minimally working, that is, on AIX.
6956         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6957         m4/getcwd-path-max.m4.
6958         (main): Update exit code computation.
6959         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6960         getcwd does not handle long file names.
6961
6962 2011-11-20  Bruno Haible  <bruno@clisp.org>
6963
6964         getcwd: Fix bug from 2009-09-10.
6965         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6966         like "no".
6967
6968 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6969
6970         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6971
6972 2011-11-20  Bruno Haible  <bruno@clisp.org>
6973
6974         fma tests: Avoid shadowing local variables.
6975         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6976         expected.
6977
6978 2011-11-20  Bruno Haible  <bruno@clisp.org>
6979
6980         copysignf tests: Fix.
6981         * tests/test-copysignf.c: Fix signature check.
6982
6983 2011-11-20  Bruno Haible  <bruno@clisp.org>
6984
6985         fma: Remove unused code.
6986         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6987         unused macros.
6988
6989 2011-11-20  Bruno Haible  <bruno@clisp.org>
6990
6991         sethostname: Fix doc about AIX.
6992         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6993         sethostname; it has it.
6994
6995         sethostname: Mention more portability problems.
6996         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6997         problem.
6998         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6999
7000 2011-11-19  Bruno Haible  <bruno@clisp.org>
7001
7002         Depend on module fcntl-h when AT_FDCWD is used.
7003         * modules/utimens (Depends-on): Add fcntl-h.
7004         * modules/areadlinkat (Depends-on): Likewise.
7005         * modules/areadlinkat-with-size (Depends-on): Likewise.
7006         * modules/faccessat (Depends-on): Likewise.
7007         * modules/fchmodat (Depends-on): Likewise.
7008         * modules/fchownat (Depends-on): Likewise.
7009         * modules/getcwd (Depends-on): Likewise.
7010         * modules/mkdirat (Depends-on): Likewise.
7011         * modules/mkfifoat (Depends-on): Likewise.
7012         * modules/readlinkat (Depends-on): Likewise.
7013         * modules/symlinkat (Depends-on): Likewise.
7014         * modules/dup2-tests (Depends-on): Likewise.
7015         * modules/fdutimensat-tests (Depends-on): Likewise.
7016         * modules/futimens-tests (Depends-on): Likewise.
7017
7018 2011-11-19  Bruno Haible  <bruno@clisp.org>
7019
7020         euidaccess: Update a comment.
7021         * lib/euidaccess.c: Update comment about platforms with faccessat.
7022
7023 2011-11-19  Bruno Haible  <bruno@clisp.org>
7024
7025         openat: Fix file list.
7026         * modules/openat (Files): Remove lib/at-func.c.
7027
7028 2011-11-19  Bruno Haible  <bruno@clisp.org>
7029
7030         fstatat: Simplify.
7031         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7032         gnulib should define rpl_fstatat, there is a
7033         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7034
7035 2011-11-19  Bruno Haible  <bruno@clisp.org>
7036
7037         Ensure 'inline' can be used in tests/test-utimens-common.h.
7038         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7039         * modules/futimens-tests (configure.ac): Likewise.
7040         * modules/utimens-tests (configure.ac): Likewise.
7041         * modules/utimensat-tests (configure.ac): Likewise.
7042
7043 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7044
7045         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7046         not hash_insert0.
7047         (hash_insert_if_absent): Doc fix.
7048
7049 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7050
7051         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7052
7053 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7054
7055         test-getcwd: disambiguate exit status
7056         * tests/test-getcwd.c (test_long_name): Return 0..7.
7057         (main): Exit with an unambiguous exit status.  The old
7058         code yielded a mysterious mixture of two failure codes.
7059
7060         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7061         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7062         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7063         rpl_fstatat or fstatat.  This should fix the other problem
7064         reported by Kai Habel in
7065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7066         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7068         and I reproduced it on a Solaris 8 host we still have in production.
7069
7070 2011-11-18  Jim Meyering  <meyering@redhat.com>
7071
7072         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7073         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7074         Add a sentence to the comment.
7075         (hash_insert0): New function that simply calls hash_insert_if_absent.
7076         * lib/hash.h (hash_insert_if_absent): Declare it.
7077         (hash_insert0): Add deprecation attribute.
7078         (_GL_ATTRIBUTE_DEPRECATED): Define.
7079         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7080         not hash_insert0.
7081         * NEWS: Mention it, even though it's not really an incompatible change.
7082
7083 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7084
7085         openat: avoid compilation failure due to lack of <errno.h> inclusion
7086         * lib/openat.c: Include <errno.h>.
7087
7088 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7089
7090         * modules/getcwd (Depends-on): Add fdopendir.
7091         This fixes one of the two problems reported by Kai Habel in
7092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7093
7094         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7095         stdalign problem reported by Ian Beckwith in
7096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7097         * modules/crypto/gc-arcfour (Depends-on):
7098         Depend conditionally on crypto/arcfour.
7099         * modules/crypto/gc-arctwo (Depends-on):
7100         Depend conditionally on crypto/arctwo.
7101         * modules/crypto/gc-des (Depends-on):
7102         Depend conditionally on crypto/des.
7103         * modules/crypto/gc-hmac-md5 (Depends-on):
7104         Depend conditionally on crypto/hmac-md5.
7105         * modules/crypto/gc-hmac-sha1 (Depends-on):
7106         Depend conditionally on crypto/hmac-sha1.
7107         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7108         * modules/crypto/gc-md4 (Depends-on):
7109         Depend conditionally on crypto/md4.
7110         * modules/crypto/gc-md5 (Depends-on):
7111         Depend conditionally on crypto/md5.
7112         * modules/crypto/gc-rijndael (Depends-on):
7113         Depend conditionally on crypto/rijndael.
7114         * modules/crypto/gc-sha1 (Depends-on):
7115         Depend conditionally on crypto/sha1.
7116         * modules/crypto/gc-arcfour:
7117         * modules/crypto/gc-arctwo:
7118         * modules/crypto/gc-des:
7119         * modules/crypto/gc-hmac-md5:
7120         * modules/crypto/gc-hmac-sha1:
7121         * modules/crypto/gc-md2:
7122         * modules/crypto/gc-md4:
7123         * modules/crypto/gc-md5:
7124         * modules/crypto/gc-rijndael:
7125         * modules/crypto/gc-sha1:
7126         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7127         now that the conditional dependencies do the work for us.
7128
7129 2011-11-17  Jim Meyering  <meyering@redhat.com>
7130
7131         tests: factor st_ctime-comparison out of two headers
7132         * tests/test-utimens-common.h (ctime_compare): Define.
7133         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7134         * tests/test-lutimens.h (test_lutimens): Likewise.
7135         * tests/test-utimens.h (test_utimens): Likewise.
7136
7137         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7138         Invoke the test program via an init.sh-using wrapper.
7139         * tests/test-getcwd.sh: New file.
7140         * modules/getcwd-tests (Files): Add it.
7141         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7142
7143 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7144
7145         gitlog-to-changelog: support multi-author commits.
7146         The FSF cares about keeping track of all authors of patches to its
7147         projects, but Git doesn't provide obvious support for multi-author
7148         changesets. Consensus seems to be forming around the use of extra
7149         Signed-off-by inspired lines in the log message formatted as
7150         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7151         multi-author commits between version control systems.
7152         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7153         log message and output in standard ChangeLog multi-author format.
7154         Reported by Peter Rosin <peda@lysator.liu.se>
7155
7156 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7157             Bruno Haible  <bruno@clisp.org>
7158
7159         Fix some modules' file list.
7160         * modules/fstatat (Files): Add m4/lstat.m4.
7161         * modules/openat (Files): Likewise.
7162         * modules/unlinkat (Files): Likewise.
7163
7164 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7165
7166         maint.mk: fix tight-scope.mk generation in VPATH builds.
7167         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7168         reference with $(srcdir) so that the file is found correctly even
7169         when running `make syntax-check' in a VPATH build.
7170
7171 2011-11-13  Bruno Haible  <bruno@clisp.org>
7172             Jim Meyering  <meyering@redhat.com>
7173
7174         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7175         * tests/init.sh (compare): Remove "No differences encountered" or
7176         synonymous output from the 'diff' program.
7177
7178 2011-11-13  Bruno Haible  <bruno@clisp.org>
7179
7180         Makefile: Tweak indentation.
7181         * Makefile: Use tab as first character in every line that contains rule
7182         commands.
7183
7184 2011-11-13  Bruno Haible  <bruno@clisp.org>
7185
7186         Syntax check for copyright statements.
7187         * check-copyright: New file.
7188         * Makefile (sc_check_copyright): New rule.
7189
7190 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7191
7192         * build-aux/git-version-gen: Add --prefix to configure the tag
7193         match string.
7194
7195 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7196
7197         * build-aux/git-version-gen: Add --help and --version.
7198
7199 2011-11-12  Jim Meyering  <meyering@redhat.com>
7200
7201         revamp the other test-exclude?.sh scripts to use init.sh, too
7202         * tests/test-exclude1.sh: Use init.sh.
7203         * tests/test-exclude2.sh: Likewise.
7204         * tests/test-exclude3.sh: Likewise.
7205         * tests/test-exclude4.sh: Likewise.
7206         * tests/test-exclude5.sh: Likewise.
7207         * tests/test-exclude6.sh: Likewise.
7208         * tests/test-exclude7.sh: Likewise.
7209         * tests/test-exclude8.sh: Likewise.
7210         * modules/exclude-tests (Files): List init.sh.
7211
7212         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7213         These shell scripts ignored failure of the binary test-exclude,
7214         so making the latter return 77 didn't cause them to be skipped.
7215         * tests/test-exclude5.sh: Exit with test-exclude's error status
7216         when that program fails.  Revamp to use init.sh.
7217         * tests/test-exclude2.sh: Likewise.
7218
7219         test-exclude: fix a typo
7220         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7221
7222 2011-11-11  Bruno Haible  <bruno@clisp.org>
7223
7224         obstack: Fix compilation error on MSVC 9.
7225         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7226
7227 2011-11-11  Jim Meyering  <meyering@redhat.com>
7228
7229         test-exclude: skip tests rather than failing on deficient systems
7230         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7231         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7232         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7233         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7234
7235 2011-11-10  Bruno Haible  <bruno@clisp.org>
7236
7237         ptsname_r test: Avoid gcc warning on glibc systems.
7238         * tests/test-ptsname_r.c (null_ptr): New function.
7239         (test_errors): Use it.
7240
7241 2011-11-10  Bruno Haible  <bruno@clisp.org>
7242
7243         ptsname_r: Avoid compilation error on OSF/1 5.1.
7244         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7246         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7247         function is not declared or incompatibly declared.
7248         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7249         * modules/ptsname_r (Depends-on, configure.ac): Update.
7250         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7251
7252 2011-11-10  Bruno Haible  <bruno@clisp.org>
7253
7254         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7255         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7256         When cross-compiling, guess yes on all platforms except AIX.
7257         Reported by Ludovic Courtès <ludo@gnu.org>.
7258
7259 2011-11-09  Bruno Haible  <bruno@clisp.org>
7260
7261         ptsname_r tests: Fix bugs.
7262         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7263         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7264
7265 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7266
7267         fstatat: work with cross-compilation
7268         Problem reported by Ludovic Courtès in
7269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7270         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7271         "cross-compiling" and assume the bug is present.  Replace
7272         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7273         an inverted sense, to be more conservative about our assumptions.
7274         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7275
7276 2011-11-09  Bruno Haible  <bruno@clisp.org>
7277
7278         Improve MODULES.html output.
7279         * modules/mkfifoat (Description): Use the word "function".
7280         * modules/readlinkat (Description): Likewise.
7281         * modules/symlinkat (Description): Likewise.
7282
7283 2011-11-09  Eric Blake  <eblake@redhat.com>
7284
7285         ptsname_r-tests: new test module
7286         * modules/ptsname_r-tests: New module.
7287         * tests/test-ptsname_r.c: New file.
7288
7289         ptsname_r: new module
7290         * modules/ptsname_r: New module.
7291         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7292         * lib/ptsname.c (__ptsname_r): Split...
7293         * lib/ptsname_r.c: ...into new file.
7294         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7295         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7296         * modules/stdlib (Makefile.am): Substitute witnesses.
7297         * lib/stdlib.in.h (ptsname_r): Declare it.
7298         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7299         * MODULES.html.sh (Misc): Likewise.
7300         * modules/ptsname (Depends-on): Alter dependency.
7301         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7302
7303 2011-11-09  Jim Meyering  <meyering@redhat.com>
7304
7305         announce-gen: be more concise when there's only one URL+tarball
7306         * build-aux/announce-gen (get_tool_versions): When you distribute
7307         only one type of tarball, combine the first two "Here are..."
7308         sections and make the key-checking grammar independent of
7309         how many tarballs there are.
7310
7311 2011-11-09  Eric Blake  <eblake@redhat.com>
7312
7313         openpty: provide a stub on mingw
7314         * lib/pty.in.h (includes): Provide forward declarations.
7315         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7316
7317         raise: fix mingw handling of SIGPIPE
7318         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7319
7320 2011-11-08  Bruno Haible  <bruno@clisp.org>
7321
7322         More conditional dependencies.
7323         * modules/faccessat (Depends-on): Add conditions.
7324         * modules/fchmodat (Depends-on): Likewise.
7325         * modules/fchownat (Depends-on): Likewise.
7326         * modules/fstatat (Depends-on): Likewise.
7327         * modules/mkfifoat (Depends-on): Likewise.
7328         * modules/readlinkat (Depends-on): Likewise.
7329         * modules/symlinkat (Depends-on): Likewise.
7330         * modules/unlinkat (Depends-on): Likewise.
7331         * modules/utimensat (Depends-on): Likewise.
7332         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7333         * modules/linkat (Depends-on): Refine the conditions.
7334         * modules/renameat (Depends-on): Likewise.
7335
7336 2011-11-08  Bruno Haible  <bruno@clisp.org>
7337
7338         faccessat: Move AC_LIBOBJ invocation to module description.
7339         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7340         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7341         invocation from here...
7342         * modules/faccessat (configure.ac): ... to here. Invoke
7343         gl_PREREQ_FACCESSAT.
7344
7345 2011-11-08  Bruno Haible  <bruno@clisp.org>
7346
7347         faccessat: Simplify autoconf macro.
7348         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7349         gl_FUNC_EUIDACCESS.
7350
7351 2011-11-08  Bruno Haible  <bruno@clisp.org>
7352
7353         renameat: Fix dependencies.
7354         * modules/renameat (Depends-on): Add stdbool.
7355
7356 2011-11-08  Bruno Haible  <bruno@clisp.org>
7357
7358         mkfifoat: Fix module description.
7359         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7360         not gl_UNISTD_MODULE_INDICATOR.
7361
7362 2011-11-08  Bruno Haible  <bruno@clisp.org>
7363
7364         fstatat: Remove unused dependency.
7365         * modules/fstatat (Depends-on): Remove fstat.
7366
7367 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7368
7369         GNUmakefile: behave when Makefile is missing.
7370         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7371
7372 2011-11-08  Bruno Haible  <bruno@clisp.org>
7373
7374         openat: Conditionalize dependencies.
7375         * lib/openat.c: Reduce the scope of some #includes.
7376         * modules/openat (Depends-on): Add conditions.
7377
7378 2011-11-07  Jim Meyering  <meyering@redhat.com>
7379
7380         maint.mk: extract GPG key ID without using a temporary file
7381         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7382         without using a temporary file.  Based on a suggestion from Werner Koch
7383         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7384
7385 2011-11-07  Eric Blake  <eblake@redhat.com>
7386
7387         grantpt: fix typo
7388         * lib/stdlib.in.h (grantpt): Check correct function.
7389
7390         maint.mk: silence new syntax check
7391         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7392
7393 2011-11-06  Bruno Haible  <bruno@clisp.org>
7394
7395         Doc about floating-point and math API.
7396         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7397         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7398
7399 2011-11-06  Bruno Haible  <bruno@clisp.org>
7400
7401         stdalign tests: Skip the test when compiled by Sun C.
7402         * tests/test-stdalign.c (main): Skip the test on Sun C.
7403
7404 2011-11-06  Bruno Haible  <bruno@clisp.org>
7405
7406         ansi-c++-opt: Complete the 2011-06-05 change.
7407         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7408         does not support namespaces, set the variable to "no", not to ":".
7409
7410 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7411
7412         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7413
7414 2011-11-06  Bruno Haible  <bruno@clisp.org>
7415
7416         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7417         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7418         (minus_zerol) [HP-UX]: New macro.
7419         (unary_minus) [HP-UX]: New function.
7420         (copysignl) [HP-UX]: Use unary_minus function.
7421
7422 2011-11-06  Bruno Haible  <bruno@clisp.org>
7423
7424         ldexp, ldexpf, ldexpl: Enhance tests.
7425         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7426         and tests/test-ldexpl.c.
7427         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7428         LDEXP, MIN_EXP, MAX_EXP): New macros.
7429         Include test-ldexp.h.
7430         (main): Just call test_function.
7431         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7432         infinity.h, nan.h.
7433         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7434         MAX_EXP): New macros.
7435         Include test-ldexp.h.
7436         (x, y): Remove variables.
7437         (main): Just call test_function.
7438         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7439         infinity.h, nan.h.
7440         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7441         MAX_EXP): New macros.
7442         Include test-ldexp.h.
7443         (x, y): Remove variables.
7444         (main): Just call test_function.
7445         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7446         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7447         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7448         (Depends-on): Add isnand-nolibm, signbit, float.
7449         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7450         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7451         (Depends-on): Add isnanf-nolibm, signbit, float.
7452
7453 2011-11-06  Bruno Haible  <bruno@clisp.org>
7454
7455         math tests: Cosmetics.
7456         * tests/test-math-c++.cc: Reorder declarations.
7457
7458 2011-11-05  Bruno Haible  <bruno@clisp.org>
7459
7460         fma*: Simplify test.
7461         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7462         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7463
7464         Tests for module 'fmal'.
7465         * modules/fmal-tests: New file.
7466         * tests/test-fmal1.c: New file.
7467         * tests/test-fmal2.c: New file.
7468
7469         New module 'fmal'.
7470         * lib/math.in.h (fmal): New declaration.
7471         * lib/fmal.c: New file.
7472         * m4/fmal.m4: New file.
7473         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7475         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7476         REPLACE_FMAL.
7477         * modules/fmal: New file.
7478         * doc/posix-functions/fmal.texi: Mention the new module and the various
7479         bugs.
7480
7481         Tests for module 'fmaf'.
7482         * modules/fmaf-tests: New file.
7483         * tests/test-fmaf1.c: New file.
7484         * tests/test-fmaf2.c: New file.
7485
7486         New module 'fmaf'.
7487         * lib/math.in.h (fmaf): New declaration.
7488         * lib/fmaf.c: New file.
7489         * m4/fmaf.m4: New file.
7490         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7492         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7493         REPLACE_FMAF.
7494         * modules/fmaf: New file.
7495         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7496         bugs.
7497
7498         Tests for module 'fma'.
7499         * modules/fma-tests: New file.
7500         * tests/test-fma1.c: New file.
7501         * tests/test-fma1.h: New file.
7502         * tests/test-fma2.c: New file.
7503         * tests/test-fma2.h: New file.
7504
7505         New module 'fma'.
7506         * lib/math.in.h (fma): New declaration.
7507         * lib/fma.c: New file.
7508         * m4/fma.m4: New file.
7509         * m4/fegetround.m4: New file.
7510         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7512         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7513         REPLACE_FMA.
7514         * modules/fma: New file.
7515         * doc/posix-functions/fma.texi: Mention the new module and the various
7516         bugs.
7517
7518         Extend gl_MATHFUNC.
7519         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7520         Support 'void' as argument type.
7521         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7522
7523 2011-11-05  Jim Meyering  <meyering@redhat.com>
7524
7525         maint.mk: also prohibit inclusion of dirent.h without use
7526         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7527
7528 2011-11-05  Bruno Haible  <bruno@clisp.org>
7529
7530         ldexpl tests: Avoid test failure on MSVC 9.
7531         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7532         value. Needed in order to enforce the conversion from a value greater
7533         than LDBL_MAX to Infinity.
7534
7535 2011-11-05  Bruno Haible  <bruno@clisp.org>
7536
7537         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7538         * modules/at-internal: New file, extracted from modules/openat.
7539         * modules/openat-h: New file.
7540         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7541         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7542         * modules/openat (Description): Add reference to POSIX function.
7543         (Files): Remove lib/openat.h, lib/openat-proc.c.
7544         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7545         intprops, unistd.
7546         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7547         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7548         gl_FCNTL_MODULE_INDICATOR.
7549         (Include): Remove unistd.h, openat.h.
7550         * modules/areadlinkat (Files): Add lib/at-func.c.
7551         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7552         openat-die, openat-h, save-cwd.
7553         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7554         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7555         openat-die, openat-h, save-cwd, unistd.
7556         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7557         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7558         openat-h, save-cwd. Remove fcntl-h, openat.
7559         * modules/fchmodat (Files): Remove lib/openat.h.
7560         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7561         openat, stdbool, unistd.
7562         * modules/fchownat (Files): Remove lib/openat.h.
7563         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7564         openat, stdbool, sys_stat.
7565         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7566         lib/openat-proc.c.
7567         (Depends-on): Add at-internal.
7568         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7569         * modules/fstatat (Files): Remove lib/openat.h.
7570         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7571         stdbool, unistd.
7572         * modules/fts (Depends-on): Add openat-h.
7573         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7574         openat.
7575         * modules/mkdirat (Files): Remove lib/openat.h.
7576         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7577         openat, stdbool, sys_stat.
7578         * modules/mkfifoat (Files): Add lib/at-func.c.
7579         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7580         openat-h, save-cwd. Remove fcntl-h, openat.
7581         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7582         * modules/readlinkat (Files): Add lib/at-func.c.
7583         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7584         openat-h, save-cwd. Remove fcntl-h, openat.
7585         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7586         openat.
7587         * modules/selinux-at (Files): Add lib/at-func.c.
7588         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7589         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7590         * modules/symlinkat (Files): Add lib/at-func.c.
7591         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7592         openat-h, save-cwd. Remove fcntl-h, openat.
7593         * modules/unlinkat (Files): Remove lib/openat.h.
7594         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7595         stdbool.
7596         * modules/utimensat (Files): Add lib/at-func.c.
7597         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7598         openat-die, openat-h, save-cwd.
7599         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7600         * modules/fdutimensat-tests (Depends-on): Add openat.
7601         * modules/fstatat-tests (Depends-on): Add openat-h.
7602         * modules/readlinkat-tests (Depends-on): Add openat.
7603         * modules/symlinkat-tests (Depends-on): Add openat.
7604
7605 2011-11-05  Bruno Haible  <bruno@clisp.org>
7606
7607         openat: Include <stdbool.h>.
7608         * lib/openat.c: Include <stdbool.h>.
7609
7610 2011-11-04  Bruno Haible  <bruno@clisp.org>
7611
7612         fchownat, renameat, unlinkat: Fix dependencies.
7613         * modules/fchownat (Depends-on): Add fstatat.
7614         * modules/renameat (Depends-on): Likewise.
7615         * modules/unlinkat (Depends-on): Likewise.
7616
7617 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7618
7619         openat: remove direct dependency on dirent
7620         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7621         and hasn't been needed ever since fdopendir was split into its own
7622         module on 2009-08-31.
7623         * modules/openat (Depends-on): Remove dirent.
7624
7625 2011-11-04  Bruno Haible  <bruno@clisp.org>
7626
7627         renameat: Optimize code size.
7628         * modules/renameat (configure.ac): Don't compile at-func2.c if
7629         REPLACE_RENAMEAT is 1.
7630
7631 2011-11-04  Bruno Haible  <bruno@clisp.org>
7632
7633         openat tests: Fix file list.
7634         * modules/openat-tests (Files): Add tests/test-open.h.
7635
7636 2011-11-04  Bruno Haible  <bruno@clisp.org>
7637
7638         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7639         * modules/fchmodat (Depends-on): Add openat-die.
7640         * modules/fchownat (Depends-on): Likewise.
7641         * modules/linkat (Depends-on): Likewise.
7642         * modules/renameat (Depends-on): Likewise.
7643         * modules/openat (Depends-on): Add dirent.
7644
7645 2011-11-04  Jim Meyering  <meyering@redhat.com>
7646
7647         at-func*.c: fix comments
7648         * lib/at-func2.c: Correct/improve first-line comment.
7649         * lib/at-func.c: Correct grammar in first-line comment.
7650
7651 2011-11-04  Bruno Haible  <bruno@clisp.org>
7652
7653         New module 'mkdirat', split off from module 'openat'.
7654         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7655         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7656         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7657         * modules/mkdirat: New file, extracted from modules/openat.
7658         * modules/openat (Files): Remove lib/mkdirat.c.
7659         (Depends-on): Remove mkdir.
7660         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7661         (Include): Remove <sys/stat.h>.
7662         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7663         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7664         tests/test-mkdir.h.
7665         (Depends-on): Remove ignore-value.
7666         (Makefile.am): Remove rules for test-mkdirat.
7667         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7668         of module 'openat'.
7669         * NEWS: Mention the change.
7670
7671 2011-11-04  Bruno Haible  <bruno@clisp.org>
7672
7673         closedir: Avoid warning on mingw.
7674         * lib/closedir.c: Include <unistd.h>.
7675
7676 2011-11-04  Bruno Haible  <bruno@clisp.org>
7677
7678         New module 'fstatat', split off from module 'openat'.
7679         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7680         defined.
7681         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7682         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7683         gl_FUNC_FSTATAT.
7684         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7685         * modules/fstatat: New file, extracted from modules/openat.
7686         * modules/openat (Files): Remove lib/fstatat.c.
7687         (Depends-on): Remove lstat.
7688         (configure.ac): Remove AC_LIBOBJ of fstatat.
7689         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7690         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7691         tests/test-lstat.h, tests/test-stat.h.
7692         (Depends-on): Remove getcwd-lgpl.
7693         (Makefile.am): Remove rules for test-fstatat.
7694         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7695         of module 'openat'.
7696         * NEWS: Mention the change.
7697         * modules/getcwd (Depends-on): Add fstatat.
7698         * modules/linkat (Depends-on): Likewise.
7699         * modules/mkfifoat-tests (Depends-on): Likewise.
7700         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7701
7702 2011-11-03  Bruno Haible  <bruno@clisp.org>
7703
7704         New module 'unlinkat', split off from module 'openat'.
7705         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7706         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7707         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7708         * modules/unlinkat: New file, extracted from modules/openat. Correct
7709         the dependency conditions.
7710         * modules/openat (Files): Remove lib/unlinkat.c.
7711         (Depends-on): Remove rmdir, unlink.
7712         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7713         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7714         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7715         tests/test-rmdir.h, tests/test-unlink.h.
7716         (Depends-on): Remove unlinkdir.
7717         (Makefile.am): Remove rules for test-unlinkat.
7718         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7719         of module 'openat'.
7720         * NEWS: Mention the change.
7721         * modules/linkat-tests (Depends-on): Add unlinkat.
7722         * modules/mkfifoat-tests (Depends-on): Likewise.
7723         * modules/readlinkat-tests (Depends-on): Likewise.
7724
7725 2011-11-02  Bruno Haible  <bruno@clisp.org>
7726
7727         New module 'fchmodat', split off from module 'openat'.
7728         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7729         defined.
7730         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7731         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7732         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7733         * modules/fchmodat: New file, extracted from modules/openat.
7734         * modules/openat (Files): Remove lib/fchmodat.c.
7735         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7736         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7737         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7738         (Makefile.am): Remove rules for test-fchmodat.
7739         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7740         of module 'openat'.
7741         * NEWS: Mention the change.
7742
7743 2011-11-02  Jim Meyering  <meyering@redhat.com>
7744
7745         putenv: indent #definition of "environ" to placate cppi
7746         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7747
7748         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7749         Git logs are often treated as immutable, because editing them
7750         changes the SHA1 checksums of all descendants.  Thus, errors in
7751         git logs tend to stay there forever.  However, when we generate
7752         a ChangeLog file -- typically for distribution -- from that git log,
7753         we can actually make corrections in the generated file.  The key
7754         lies in recording in machine-readable/applicable form the desired
7755         corrections.  See --help for description and an example.
7756         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7757         (usage): Describe it; alphabetize option descriptions.
7758         (main): Honor the new option, carefully.
7759
7760 2011-11-01  Jim Meyering  <meyering@redhat.com>
7761
7762         gitlog-to-changelog: avoid an infloop
7763         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7764         that ends up being empty.
7765
7766 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7767
7768         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7769         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7770         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7771         contains (possibly-quoted) backslashes.  This should avoid
7772         all-too-common shell bugs if COMPLICATED contains backslashes in
7773         the "wrong" places.  Reported by David Evans in
7774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7775         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7776         because we want ASCII ranges.  Is there some reason we don't use
7777         the C locale everywhere in this script?
7778         (func_module, top level): Avoid unwanted pathname expansion when
7779         $repo_url_prefix or $repo_url_suffix_repl contain shell
7780         metacharacters like '?' and '*'.
7781
7782 2011-11-01  Bruno Haible  <bruno@clisp.org>
7783
7784         fchownat: Improve description.
7785         * modules/fchownat (Description): Add link to function.
7786
7787 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7788
7789         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7790         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7792         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7793
7794 2011-11-01  Bruno Haible  <bruno@clisp.org>
7795
7796         alignof: Avoid collision with stdalign module.
7797         * lib/alignof.h (alignof): Remove macro.
7798         * NEWS: Mention the change.
7799         Reported by Paul Eggert.
7800
7801 2011-11-01  Bruno Haible  <bruno@clisp.org>
7802
7803         New module 'fchownat', split off from module 'openat'.
7804         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7805         defined.
7806         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7807         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7808         invoke gl_FUNC_FCHOWNAT.
7809         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7810         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7811         * modules/fchownat: New file, extracted from modules/openat.
7812         * modules/openat (Files): Remove lib/fchownat.c.
7813         (Depends-on): Remove lchown.
7814         (configure.ac): Remove AC_LIBOBJ of fchownat.
7815         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7816         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7817         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7818         (Depends-on): Remove mgetgroups, usleep, stat-time.
7819         (configure.ac): Remove test for getegid.
7820         (Makefile.am): Remove rules for test-fchownat.
7821         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7822         of module 'openat'.
7823         * NEWS: Mention the change.
7824
7825 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7826
7827         stdalign: port better to MSVC and to Sun C 5.11
7828         This fixes some of the problems reported by Bruno Haible in
7829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7830         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7831         shortcomings of MSVC and of Sun C 5.11.
7832         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7833         around __declspec arg.
7834         * modules/stdalign-tests (Files): Add tests/macros.h.
7835         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7836         Include macros.h, for ASSERT.
7837         (DECLARE_ALIGNED): Remove.
7838         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7839         to catch bug), and to 1 if not (simplifies the rest of the code).
7840         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7841         (CHECK_AUTO): Remove.
7842         (CHECK_ALIGNED): Check only the alignment of the static vars,
7843         since auto var alignment isn't supported by Sun C 5.11.
7844         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7845         ASSERT failures are easier to diagnose.
7846
7847 2011-10-31  Bruno Haible  <bruno@clisp.org>
7848
7849         doc about some IRIX 5.3 problems.
7850         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7851         on IRIX 5.3.
7852         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7853         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7854         5.3.
7855         * doc/posix-functions/grantpt.texi: Likewise.
7856         * doc/posix-functions/unlockpt.texi: Likewise.
7857         * doc/posix-functions/lgamma.texi: Likewise.
7858         * doc/posix-functions/nextafter.texi: Likewise.
7859         * doc/posix-functions/remainder.texi: Likewise.
7860         * doc/posix-functions/select.texi: Mention misplaced declaration on
7861         IRIX 5.3.
7862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7863
7864 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7865
7866         gitlog-to-changelog: fix git-log invocation.
7867         git-log mishandles date strings before 1970-01-01 UTC, and there is
7868         no use to specify --since=1970-01-01 by default anyway.
7869         * build-aux/gitlog-to-changelog: By default, when no --since option
7870         was given, do not specify explicit --since option to git-log.
7871
7872 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7873
7874         gitlog-to-changelog: new option --append-dot.
7875         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7876         first non-blank line of each commit message terminated with a dot.
7877
7878 2011-10-30  Bruno Haible  <bruno@clisp.org>
7879
7880         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7881         * lib/ffsl.h: Include <config.h>.
7882         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7883
7884 2011-10-30  Jim Meyering  <meyering@redhat.com>
7885
7886         GNUmakefile: reenable "make syntax-check" for most projects
7887         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7888         build-aux variable", "syntax-check" would do nothing but succeed with
7889         the "No version control files detected..." diagnostic (unless you
7890         happened to override _build-aux via cfg.mk).
7891         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7892         to precede inclusion of maint.mk.  Otherwise, these variables would
7893         be used undefined in any project that does not override the default.
7894
7895 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7896
7897         gitlog-to-changelog: treat a message with only blank lines as empty.
7898         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7899         trailing blank lines before the code that issues a warning about an
7900         empty commit message.
7901
7902 2011-10-30  Jim Meyering  <meyering@redhat.com>
7903
7904         test-parse-datetime.c: avoid new DST-related false positive test failure
7905         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7906         based on the time/date we'll convert, not the current time.
7907         Otherwise, the moment we cross a DST boundary like today's in
7908         Europe, (CEST to CET), that offset ends up being one hour off.
7909
7910 2011-10-27  Bruno Haible  <bruno@clisp.org>
7911
7912         fstat: Tweak documentation.
7913         * modules/fstat (Description): More precise description.
7914
7915 2011-10-27  Bruno Haible  <bruno@clisp.org>
7916
7917         Update documentation regarding 'largefile' module.
7918         * doc/posix-functions/fstat.texi: Tweak wording.
7919         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7920         problems with huge directories and/or small ino_t types.
7921         * doc/posix-functions/readdir.texi: Likewise.
7922         * doc/posix-functions/rewinddir.texi: Likewise.
7923
7924 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7925
7926         maint.mk: don't maintain a second build-aux variable.
7927         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7928         depends on GNUmakefile, which already maintains a cfg.mk
7929         overridable $(_build-aux) for projects with a non-standard
7930         build-aux directory location, although without the $(srcdir)
7931         prefix.  Use that variable consistently instead of introducing a
7932         second one.  Adjust all call sites.
7933
7934 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7935
7936         Add stdalign module and use it in other modules.
7937         This is based on a previous proposal by Bruno Haible
7938         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7939
7940         stdalign: new module
7941         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7942         * modules/stdalign: New files.
7943         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7944         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7945
7946         stdalign-tests: new module
7947         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7948
7949         argp: use stdalign
7950         * lib/argp-parse.c: Include <stdalign.h>.
7951         (alignof): Remove.
7952         * modules/argp (Depends-on): Add stdalign.
7953
7954         crypto libraries: use stdalign
7955         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7956         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7957         Do not include <stdlib.h> twice, in md4.c.
7958         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7959         because we are accessing a pointer's bit-pattern, not a size.
7960         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7961         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7962         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7963         * modules/crypto/sha512: Likewise.
7964
7965         sys_socket: use stdalign, not alignof
7966         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7967         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7968
7969 2011-10-27  Bruno Haible  <bruno@clisp.org>
7970
7971         raise test: Avoid a test failure on Linux/MIPS.
7972         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7973         because 99 is a valid signal on Linux/MIPS.
7974
7975 2011-10-27  Bruno Haible  <bruno@clisp.org>
7976
7977         nonblocking tests: Fix test failure on Linux/MIPS.
7978         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7979         Set to 270000.
7980
7981 2011-10-27  Bruno Haible  <bruno@clisp.org>
7982
7983         utimensat: Work around problem on Linux/hppa.
7984         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7985         values.
7986         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7987
7988 2011-10-25  Jim Meyering  <meyering@redhat.com>
7989
7990         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7991         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7992         after symbols like NULL, size_t, etc.
7993         Reported by Alfred M. Szmidt.
7994
7995         maint.mk: exempt ENODATA from a syntax-check rule
7996         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7997         from the sc_prohibit_always-defined_macros syntax-check rule.
7998         Add a comment.  See this for more details:
7999         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8000
8001 2011-10-23  Jim Meyering  <meyering@redhat.com>
8002
8003         fts: close parent dir FD before returning from post-traversal fts_read
8004         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8005         unlink A, even though an FD open on A remained.  This is suboptimal
8006         (holding a file descriptor open longer than needed), but otherwise not
8007         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8008         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8009         that represents a real problem: it causes the removal of A to fail
8010         with e.g., "rm: cannot remove `A': Device or resource busy"
8011
8012         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8013         directory file descriptors.  After completing the final, FTS_DP,
8014         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8015         cache, but then proceeded to add a new FD to it via the subsequent
8016         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8017         final file descriptor would be closed only via fts_close's call to
8018         fd_ring_clear.  Now, it is usually closed earlier, via the final
8019         FTS_DP-returning fts_read call.
8020         * lib/fts.c (restore_initial_cwd): New function, converted from
8021         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8022         Update callers.
8023         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8024         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8025
8026 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8027             Bruno Haible  <bruno@clisp.org>
8028             Jim Meyering  <jim@meyering.net>
8029
8030         readme-release: improve safety of release prep instructions.
8031         * README-release: Don't git pull all branches when only master
8032         is needed for the release process.
8033         Run make maintainer-clean before changing trees and merging.
8034         Don't try to run ./configure right after git pull in case files
8035         that influence the bootstrap process have changed, move the
8036         ./configure step to after running ./bootstrap.
8037         Don't bootstrap "one last time"... it's the first time!
8038
8039 2011-10-22  Bruno Haible  <bruno@clisp.org>
8040
8041         errno, strerror-override: Support for MSVC 10.
8042         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8043         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8044         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8045         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8046         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8047         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8048         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8049         Assign values compatible with MSVC 10.
8050         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8051         New macros.
8052         (GNULIB_defined_EWINSOCK): New macro.
8053         * lib/strerror-override.c (strerror_override): Update accordingly.
8054         * lib/strerror-override.h: Likewise.
8055         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8056         longer equal to the corresponding errno value.
8057         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8058
8059 2011-10-22  Bruno Haible  <bruno@clisp.org>
8060
8061         perror: Recognize when test program crashes.
8062         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8063         strerror, set gl_cv_func_perror_works to no.
8064         Reported by Daniel Richard G. <skunk@iskunk.org>.
8065
8066         perror: Fix indentation.
8067         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8068
8069 2011-10-22  Bruno Haible  <bruno@clisp.org>
8070
8071         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8072         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8073         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8074         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8075         functions, not as a macro.
8076         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8077         macros.
8078         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8079         absence of macro.
8080         Suggested by Eric Blake.
8081         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8082
8083 2011-10-21  Bruno Haible  <bruno@clisp.org>
8084
8085         relocatable-prog-wrapper: Don't leave object files behind.
8086         * build-aux/install-reloc: Re-synchronize list of .o files to be
8087         removed with list of compilation units.
8088
8089 2011-10-20  Bruno Haible  <bruno@clisp.org>
8090
8091         openpty, posix_openpt: Remove code duplication.
8092         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8093         * lib/openpty.c: Include <stdlib.h>.
8094         (openpty): Use posix_openpt on all platforms except IRIX.
8095         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8096
8097 2011-10-20  Bruno Haible  <bruno@clisp.org>
8098
8099         unlockpt: Detect invalid argument.
8100         * lib/unlockpt.c: Include <fcntl.h>.
8101         (unlockpt): Check whether fd is valid, using fcntl().
8102         * modules/unlockpt (Depends-on): Add fcntl-h.
8103
8104 2011-10-20  Bruno Haible  <bruno@clisp.org>
8105
8106         openpty: Avoid compilation error on AIX 6.1.
8107         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8108
8109 2011-10-20  Bruno Haible  <bruno@clisp.org>
8110
8111         posix_openpt: Support for OpenBSD.
8112         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8113         (posix_openpt) [OpenBSD]: New code.
8114         * lib/grantpt.c: Include <fcntl.h>.
8115         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8116         * modules/grantpt (Depends-on): Add fcntl-h.
8117
8118 2011-10-20  Bruno Haible  <bruno@clisp.org>
8119
8120         posix_openpt test: Coding style.
8121         * tests/test-posix_openpt.c: Use GNU coding style.
8122
8123 2011-10-20  Bruno Haible  <bruno@clisp.org>
8124
8125         grantpt: Support --avoid=pt_chown.
8126         * modules/grantpt (Files): Add lib/pty-private.h.
8127
8128 2011-10-20  Bruno Haible  <bruno@clisp.org>
8129
8130         posix_openpt: Fix autoconf macro.
8131         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8132         unneeded check for _getpty.
8133
8134 2011-10-20  Bruno Haible  <bruno@clisp.org>
8135
8136         openpty: Update comments.
8137         * lib/openpty.c: Add comments about Minix.
8138
8139 2011-10-19  Eric Blake  <eblake@redhat.com>
8140
8141         openpty: relax license
8142         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8143
8144         pt_chown: use configmake to simplify build
8145         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8146
8147         ptsname and others: relax license
8148         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8149         * modules/unlockpt (License): Likewise.
8150         * modules/pt_chown (License): Likewise.
8151         * modules/ptsname (License): Likewise.
8152         * modules/ttyname_r (License): Likewise.
8153
8154 2011-10-19  Jim Meyering  <meyering@redhat.com>
8155
8156         posix_openpt: remove spurious #endif
8157         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8158
8159 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8160
8161         maint.mk: Respect $(build_aux) in web-manual rule.
8162         * top/maint.mk (web-manual): Find gen-announce script in user's
8163         $(build_aux) directory instead of hard-coding 'build-aux'.
8164
8165 2011-10-19  Bruno Haible  <bruno@clisp.org>
8166
8167         posix_openpt: Fix compilation error.
8168         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8169         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8170         Mention the openpty module as an alternative.
8171
8172 2011-10-19  Bruno Haible  <bruno@clisp.org>
8173
8174         Support for old NeXTstep 3.3 frexp().
8175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8176         execution time of the test to 5 seconds.
8177         Reported by Daniel Richard G. <skunk@iskunk.org>.
8178
8179 2011-10-19  Bruno Haible  <bruno@clisp.org>
8180
8181         Support for old NeXTstep 3.3 sed.
8182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8183         part, use /.../, not \|...|. Escape periods in the header file name.
8184         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8185         Reported by Daniel Richard G. <skunk@iskunk.org>.
8186
8187 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8188
8189         Support for old NeXTstep 3.3 gcc.
8190         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8191         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8192         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8193         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8194         * lib/regex.h (_Restrict_arr_): Likewise.
8195         * lib/regex_internal.h (re_token_t): Likewise.
8196         * lib/regexec.c (check_node_accept_bytes): Likewise.
8197         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8198
8199 2011-10-18  Eric Blake  <eblake@redhat.com>
8200
8201         posix_openpt: new module
8202         * modules/posix_openpt: New module.
8203         * m4/posix_openpt.m4: New file.
8204         * lib/posix_openpt.c: Likewise.
8205         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8206         (gl_STDLIB_H_DEFAULTS): Set defaults.
8207         * modules/stdlib (Makefile.am): Substitute macros.
8208         * lib/stdlib.in.h (posix_openpt): Declare.
8209         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8210         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8211         * modules/posix_openpt-tests: New test module.
8212         * tests/test-posix_openpt.c: New test.
8213
8214 2011-10-15  Bruno Haible  <bruno@clisp.org>
8215
8216         xstrtoll: Fix compilation failure.
8217         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8218         from lib/strtol.c.
8219         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8220         some platforms.
8221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8222
8223 2011-10-15  Bruno Haible  <bruno@clisp.org>
8224
8225         vasnprintf: Optimize bit search operation.
8226         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8228         gl_DOUBLE_EXPONENT_LOCATION.
8229         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8230         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8231         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8232         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8233         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8234         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8235         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8236         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8237         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8238
8239 2011-10-15  Bruno Haible  <bruno@clisp.org>
8240
8241         vasnprintf: Fix comments.
8242         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8243
8244 2011-10-14  Bruno Haible  <bruno@clisp.org>
8245
8246         Tests for module 'integer_length_ll'.
8247         * modules/integer_length_ll-tests: New file.
8248         * tests/test-integer_length_ll.c: New file.
8249
8250         New module 'integer_length_ll'.
8251         * lib/integer_length_ll.c: New file.
8252         * modules/integer_length_ll: New file.
8253
8254 2011-10-14  Bruno Haible  <bruno@clisp.org>
8255
8256         Tests for module 'integer_length_l'.
8257         * modules/integer_length_l-tests: New file.
8258         * tests/test-integer_length_l.c: New file.
8259
8260         New module 'integer_length_l'.
8261         * lib/integer_length_l.c: New file.
8262         * modules/integer_length_l: New file.
8263
8264 2011-10-14  Bruno Haible  <bruno@clisp.org>
8265
8266         Tests for module 'integer_length'.
8267         * modules/integer_length-tests: New file.
8268         * tests/test-integer_length.c: New file.
8269
8270         New module 'integer_length'.
8271         * lib/integer_length.h: New file.
8272         * lib/integer_length.c: New file.
8273         * modules/integer_length: New file.
8274
8275 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8276
8277         popen: Fix dependency conditions.
8278         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8279
8280 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8281
8282         perror: Fix autoconf test.
8283         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8284         <stdlib.h> and <string.h>.
8285
8286 2011-10-14  Bruno Haible  <bruno@clisp.org>
8287
8288         ffsl: Optimize on 64-bit platforms.
8289         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8290         unrolling.
8291
8292 2011-10-13  Bruno Haible  <bruno@clisp.org>
8293
8294         ffsl: Optimize on 32-bit platforms.
8295         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8296         use ffs() without a loop.
8297
8298         ffsl, ffsll: Optimize for GCC.
8299         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8300         * lib/ffsl.c (GCC_BUILTIN): New macro.
8301         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8302
8303 2011-10-13  Bruno Haible  <bruno@clisp.org>
8304
8305         ffs, bcopy, memset: Support symbol renaming via config.h.
8306         * lib/ffs.c: Include <config.h>.
8307         * lib/bcopy.c: Likewise.
8308         * lib/memset.c: Likewise.
8309
8310 2011-10-10  Bruno Haible  <bruno@clisp.org>
8311
8312         atanl: Simplify for platforms where 'long double' == 'double'.
8313         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8314         alternative implementation.
8315         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8316         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8317         * modules/atanl (Depends-on): Add atan. Update conditions.
8318
8319 2011-10-10  Bruno Haible  <bruno@clisp.org>
8320
8321         acosl: Simplify for platforms where 'long double' == 'double'.
8322         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8323         alternative implementation.
8324         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8325         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8326         * modules/acosl (Depends-on): Add acos. Update conditions.
8327
8328 2011-10-10  Bruno Haible  <bruno@clisp.org>
8329
8330         asinl: Simplify for platforms where 'long double' == 'double'.
8331         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8332         alternative implementation.
8333         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8334         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8335         * modules/asinl (Depends-on): Add asin. Update conditions.
8336
8337 2011-10-10  Bruno Haible  <bruno@clisp.org>
8338
8339         tanl: Simplify for platforms where 'long double' == 'double'.
8340         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8341         implementation.
8342         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8343         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8344         * modules/tanl (Depends-on): Add tan. Update conditions.
8345         (configure.ac): Don't compile trigl.c if
8346         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8347
8348 2011-10-10  Bruno Haible  <bruno@clisp.org>
8349
8350         cosl: Simplify for platforms where 'long double' == 'double'.
8351         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8352         implementation.
8353         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8354         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8355         * modules/cosl (Depends-on): Add cos. Update conditions.
8356         (configure.ac): Don't compile sincosl.c and trigl.c if
8357         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8358
8359 2011-10-10  Bruno Haible  <bruno@clisp.org>
8360
8361         sinl: Simplify for platforms where 'long double' == 'double'.
8362         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8363         implementation.
8364         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8365         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8366         * modules/sinl (Depends-on): Add sin. Update conditions.
8367         (configure.ac): Don't compile sincosl.c and trigl.c if
8368         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8369
8370 2011-10-10  Bruno Haible  <bruno@clisp.org>
8371
8372         logl: Simplify for platforms where 'long double' == 'double'.
8373         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8374         implementation.
8375         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8376         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8377         * modules/logl (Depends-on): Add log. Update conditions.
8378
8379 2011-10-10  Bruno Haible  <bruno@clisp.org>
8380
8381         expl: Simplify for platforms where 'long double' == 'double'.
8382         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8383         implementation.
8384         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8385         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8386         * modules/expl (Depends-on): Add exp. Update conditions.
8387
8388 2011-10-10  Bruno Haible  <bruno@clisp.org>
8389
8390         sqrtl: Simplify for platforms where 'long double' == 'double'.
8391         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8392         alternative implementation.
8393         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8394         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8395         * modules/sqrtl (Depends-on): Update conditions.
8396
8397 2011-10-10  Bruno Haible  <bruno@clisp.org>
8398
8399         ldexpl: Simplify for platforms where 'long double' == 'double'.
8400         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8401         alternative implementation.
8402         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8403         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8404         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8405
8406 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8407
8408         ffsll: set correct witness
8409         * modules/ffsll (configure.ac): Fix typo.
8410
8411 2011-10-10  Bruno Haible  <bruno@clisp.org>
8412
8413         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8414         * lib/printf-frexpl.c: Include <config.h>.
8415         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8416         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8417         second time.
8418         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8419         gl_LONG_DOUBLE_VS_DOUBLE.
8420         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8421         conditions.
8422
8423 2011-10-10  Bruno Haible  <bruno@clisp.org>
8424
8425         frexpl: Simplify for platforms where 'long double' == 'double'.
8426         * lib/frexpl.c: Include <config.h>.
8427         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8428         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8429         time.
8430         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8431         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8432         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8433         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8434         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8435         conditions.
8436
8437 2011-10-10  Jim Meyering  <meyering@redhat.com>
8438
8439         test-renameat: don't leave behind a temporary file
8440         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8441           ERROR: files left in build directory after distclean:
8442           ./gltests/test-renameat.too
8443           make[1]: *** [distcleancheck] Error 1
8444         Reported by Tom G. Christensen.
8445
8446 2011-10-09  Bruno Haible  <bruno@clisp.org>
8447
8448         rint: Determine RINT_LIBM correctly on AIX 7.
8449         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8450         directly, not only through a function pointer. Also accept an optional
8451         4th argument with extra code.
8452         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8453         rintf() call by gcc when optimizing.
8454
8455         mathfunc.m4: Refactor.
8456         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8457         m4 variable.
8458
8459 2011-10-09  Bruno Haible  <bruno@clisp.org>
8460
8461         rintl: Simplify for platforms where 'long double' == 'double'.
8462         * lib/rintl.c: Include <config.h>.
8463         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8464         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8465         time.
8466         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8467         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8468         * modules/rintl (Depends-on): Add rint. Update conditions.
8469
8470 2011-10-09  Bruno Haible  <bruno@clisp.org>
8471
8472         roundl: Simplify for platforms where 'long double' == 'double'.
8473         * lib/roundl.c: Include <config.h>.
8474         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8475         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8476         time.
8477         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8478         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8479         * modules/roundl (Depends-on): Add round. Update conditions.
8480
8481 2011-10-09  Bruno Haible  <bruno@clisp.org>
8482
8483         truncl: Simplify for platforms where 'long double' == 'double'.
8484         * lib/truncl.c: Include <config.h>.
8485         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8486         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8487         time.
8488         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8489         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8490         * modules/truncl (Depends-on): Add trunc. Update conditions.
8491
8492 2011-10-09  Bruno Haible  <bruno@clisp.org>
8493
8494         ceill: Simplify for platforms where 'long double' == 'double'.
8495         * lib/ceill.c: Include <config.h>.
8496         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8497         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8498         time.
8499         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8500         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8501         * modules/ceill (Depends-on): Add ceil. Update conditions.
8502
8503 2011-10-09  Bruno Haible  <bruno@clisp.org>
8504
8505         floorl: Simplify for platforms where 'long double' == 'double'.
8506         * lib/floorl.c: Include <config.h>.
8507         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8508         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8509         time.
8510         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8511         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8512         * modules/floorl (Depends-on): Add floor. Update conditions.
8513
8514 2011-10-09  Bruno Haible  <bruno@clisp.org>
8515
8516         rint: Fix ordering constraints.
8517         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8518         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8519         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8520
8521 2011-10-09  Bruno Haible  <bruno@clisp.org>
8522
8523         copysignl: Simplify for platforms where 'long double' == 'double'.
8524         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8525         alternative.
8526         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8527         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8528         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8529
8530 2011-10-09  Bruno Haible  <bruno@clisp.org>
8531
8532         Tests for module 'rintl'.
8533         * modules/rintl-tests: New file.
8534         * tests/test-rintl.c: New file.
8535
8536         New module 'rintl'.
8537         * lib/math.in.h (rintl): New declaration.
8538         * lib/rintl.c: New file.
8539         * m4/rintl.m4: New file.
8540         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8542         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8543         * modules/rintl: New file.
8544         * tests/test-math-c++.cc: Check the declaration of rintl.
8545         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8546         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8547         * doc/posix-functions/rintl.texi: Mention the new module.
8548
8549 2011-10-09  Bruno Haible  <bruno@clisp.org>
8550
8551         Tests for module 'rintf'.
8552         * modules/rintf-tests: New file.
8553         * tests/test-rintf.c: New file.
8554
8555         New module 'rintf'.
8556         * lib/math.in.h (rintf): New declaration.
8557         * lib/rintf.c: New file.
8558         * m4/rintf.m4: New file.
8559         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8561         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8562         * modules/rintf: New file.
8563         * tests/test-math-c++.cc: Check the declaration of rintf.
8564         * doc/posix-functions/rintf.texi: Mention the new module.
8565
8566 2011-10-09  Bruno Haible  <bruno@clisp.org>
8567
8568         rint: Support for MSVC.
8569         * lib/math.in.h (rint): New declaration.
8570         * lib/rint.c: New file.
8571         * m4/rint.m4: New file.
8572         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8574         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8575         * modules/rint (Description): Fix.
8576         (Files): Add lib/rint.c, m4/rint.m4.
8577         (Depends-on): Add math.
8578         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8579         gl_MATH_MODULE_INDICATOR.
8580         * tests/test-math-c++.cc: Check the declaration of rint.
8581         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8582         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8583         * doc/posix-functions/rint.texi: Mention the replacement provided by
8584         the module.
8585
8586         rint tests: More tests.
8587         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8588         minus-zero.h, infinity.h, nan.h.
8589         (main): Skip the test if the current rounding mode is not standard. Add
8590         tests for negative numbers, minus zero, infinity, NaN.
8591         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8592         tests/nan.h.
8593         (Depends-on): Add isnand-nolibm.
8594
8595 2011-10-09  Bruno Haible  <bruno@clisp.org>
8596
8597         Tests for module 'copysignl'.
8598         * modules/copysignl-tests: New file.
8599         * tests/test-copysignl.c: New file.
8600
8601         New module 'copysignl'.
8602         * lib/math.in.h (copysignl): New declaration.
8603         * lib/copysignl.c: New file.
8604         * m4/copysignl.m4: New file.
8605         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8607         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8608         HAVE_COPYSIGNL.
8609         * modules/copysignl: New file.
8610         * tests/test-math-c++.cc: Check the declaration of copysignl.
8611         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8612         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8613         * doc/posix-functions/copysignl.texi: Mention the new module.
8614
8615 2011-10-09  Bruno Haible  <bruno@clisp.org>
8616
8617         Tests for module 'copysignf'.
8618         * modules/copysignf-tests: New file.
8619         * tests/test-copysignf.c: New file.
8620
8621         New module 'copysignf'.
8622         * lib/math.in.h (copysignf): New declaration.
8623         * lib/copysignf.c: New file.
8624         * m4/copysignf.m4: New file.
8625         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8627         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8628         HAVE_COPYSIGNF.
8629         * modules/copysignf: New file.
8630         * tests/test-math-c++.cc: Check the declaration of copysignf.
8631         * doc/posix-functions/copysignf.texi: Mention the new module.
8632
8633 2011-10-09  Bruno Haible  <bruno@clisp.org>
8634
8635         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8636         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8637         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8638         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8639         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8640         gl_SIGNAL_H_DEFAULTS.
8641
8642 2011-10-09  Bruno Haible  <bruno@clisp.org>
8643
8644         poll: Make macro safer.
8645         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8646         ac_cv_header_poll_h is not set.
8647
8648 2011-10-09  Bruno Haible  <bruno@clisp.org>
8649
8650         copysign: Provide replacement.
8651         * lib/math.in.h (copysign): New declaration.
8652         * lib/copysign.c: New file.
8653         * m4/copysign.m4: New file.
8654         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8656         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8657         HAVE_COPYSIGN.
8658         * modules/copysign (Description): Clarify.
8659         (Files): Add lib/copysign.c, m4/copysign.m4.
8660         (Depends-on): Add math, signbit.
8661         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8662         gl_MATH_MODULE_INDICATOR.
8663         * tests/test-math-c++.cc: Check the declaration of copysign.
8664         * doc/posix-functions/copysign.texi: Mention the effects of the module
8665         on Minix and MSVC.
8666
8667 2011-10-09  Bruno Haible  <bruno@clisp.org>
8668
8669         isinf: Ensure macro on AIX 5.1.
8670         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8671         macro.
8672         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8673
8674 2011-10-09  Bruno Haible  <bruno@clisp.org>
8675
8676         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8677         * modules/snprintf-posix-tests (configure.ac): Require
8678         gl_LONG_DOUBLE_VS_DOUBLE.
8679         * modules/sprintf-posix-tests (configure.ac): Likewise.
8680         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8681         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8682         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8683         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8684         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8685         tests on platforms where 'long double' is the same as 'double'.
8686         * tests/test-sprintf-posix.h (test_function): Likewise.
8687         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8688         * tests/test-vasprintf-posix.c (test_function): Likewise.
8689
8690         *printf: Fix for platforms where 'long double' == 'double'.
8691         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8692         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8693         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8694         * modules/fprintf-posix (Files): Likewise.
8695         * modules/obstack-printf-posix (Files): Likewise.
8696         * modules/snprintf-posix (Files): Likewise.
8697         * modules/sprintf-posix (Files): Likewise.
8698         * modules/vasnprintf (Files): Likewise.
8699         * modules/vasnprintf-posix (Files): Likewise.
8700         * modules/vasprintf-posix (Files): Likewise.
8701         * modules/vdprintf-posix (Files): Likewise.
8702         * modules/vfprintf-posix (Files): Likewise.
8703         * modules/vsnprintf-posix (Files): Likewise.
8704         * modules/vsprintf-posix (Files): Likewise.
8705         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8706         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8707         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8708         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8709         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8710         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8711         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8712
8713         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8714         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8715         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8716         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8717         'long double'.
8718         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8719
8720         isinf: Fix for platforms where 'long double' == 'double'.
8721         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8722         Don't blindly assume 80-bit 'long double'.
8723
8724         isfinite: Fix for platforms where 'long double' == 'double'.
8725         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8726         Don't blindly assume 80-bit 'long double'.
8727
8728         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8729         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8730         * modules/isfinite-tests (configure.ac): Require
8731         gl_LONG_DOUBLE_VS_DOUBLE.
8732         * modules/isinf-tests (configure.ac): Likewise.
8733         * modules/isnan-tests (configure.ac): Likewise.
8734         * modules/isnanl-tests (configure.ac): Likewise.
8735         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8736         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8737         tests on platforms where 'long double' is the same as 'double'.
8738         * tests/test-isinf.c (test_isinfl): Likewise.
8739         * tests/test-isnan.c (test_long_double): Likewise.
8740         * tests/test-isnanl.h (main): Likewise.
8741
8742 2011-10-08  Bruno Haible  <bruno@clisp.org>
8743
8744         Tests for module 'tanhf'.
8745         * modules/tanhf-tests: New file.
8746         * tests/test-tanhf.c: New file.
8747
8748         New module 'tanhf'.
8749         * lib/math.in.h (tanhf): New declaration.
8750         * lib/tanhf.c: New file.
8751         * m4/tanhf.m4: New file.
8752         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8754         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8755         * modules/tanhf: New file.
8756         * tests/test-math-c++.cc: Check the declaration of tanhf.
8757         * doc/posix-functions/tanhf.texi: Mention the new module.
8758
8759         tanh: Use a .m4 file.
8760         * m4/tanh.m4: New file.
8761         * modules/tanh (Files): Add it.
8762         (configure.ac): Just invoke gl_FUNC_TANH.
8763
8764 2011-10-08  Bruno Haible  <bruno@clisp.org>
8765
8766         Tests for module 'coshf'.
8767         * modules/coshf-tests: New file.
8768         * tests/test-coshf.c: New file.
8769
8770         New module 'coshf'.
8771         * lib/math.in.h (coshf): New declaration.
8772         * lib/coshf.c: New file.
8773         * m4/coshf.m4: New file.
8774         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8776         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8777         * modules/coshf: New file.
8778         * tests/test-math-c++.cc: Check the declaration of coshf.
8779         * doc/posix-functions/coshf.texi: Mention the new module.
8780
8781         cosh: Use a .m4 file.
8782         * m4/cosh.m4: New file.
8783         * modules/cosh (Files): Add it.
8784         (configure.ac): Just invoke gl_FUNC_COSH.
8785
8786 2011-10-08  Bruno Haible  <bruno@clisp.org>
8787
8788         Tests for module 'sinhf'.
8789         * modules/sinhf-tests: New file.
8790         * tests/test-sinhf.c: New file.
8791
8792         New module 'sinhf'.
8793         * lib/math.in.h (sinhf): New declaration.
8794         * lib/sinhf.c: New file.
8795         * m4/sinhf.m4: New file.
8796         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8798         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8799         * modules/sinhf: New file.
8800         * tests/test-math-c++.cc: Check the declaration of sinhf.
8801         * doc/posix-functions/sinhf.texi: Mention the new module.
8802
8803         sinh: Use a .m4 file.
8804         * m4/sinh.m4: New file.
8805         * modules/sinh (Files): Add it.
8806         (configure.ac): Just invoke gl_FUNC_SINH.
8807
8808 2011-10-08  Bruno Haible  <bruno@clisp.org>
8809
8810         Tests for module 'atan2f'.
8811         * modules/atan2f-tests: New file.
8812         * tests/test-atan2f.c: New file.
8813
8814         New module 'atan2f'.
8815         * lib/math.in.h (atan2f): New declaration.
8816         * lib/atan2f.c: New file.
8817         * m4/atan2f.m4: New file.
8818         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8820         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8821         * modules/atan2f: New file.
8822         * tests/test-math-c++.cc: Check the declaration of atan2f.
8823         * doc/posix-functions/atan2f.texi: Mention the new module.
8824
8825         atan2: Use a .m4 file.
8826         * m4/atan2.m4: New file.
8827         * modules/atan2 (Files): Add it.
8828         (configure.ac): Just invoke gl_FUNC_ATAN2.
8829
8830 2011-10-08  Bruno Haible  <bruno@clisp.org>
8831
8832         Tests for module 'atanf'.
8833         * modules/atanf-tests: New file.
8834         * tests/test-atanf.c: New file.
8835
8836         New module 'atanf'.
8837         * lib/math.in.h (atanf): New declaration.
8838         * lib/atanf.c: New file.
8839         * m4/atanf.m4: New file.
8840         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8842         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8843         * modules/atanf: New file.
8844         * tests/test-math-c++.cc: Check the declaration of atanf.
8845         * doc/posix-functions/atanf.texi: Mention the new module.
8846
8847         atan: Use a .m4 file.
8848         * m4/atan.m4: New file.
8849         * modules/atan (Files): Add it.
8850         (configure.ac): Just invoke gl_FUNC_ATAN.
8851
8852 2011-10-08  Bruno Haible  <bruno@clisp.org>
8853
8854         Tests for module 'acosf'.
8855         * modules/acosf-tests: New file.
8856         * tests/test-acosf.c: New file.
8857
8858         New module 'acosf'.
8859         * lib/math.in.h (acosf): New declaration.
8860         * lib/acosf.c: New file.
8861         * m4/acosf.m4: New file.
8862         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8864         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8865         * modules/acosf: New file.
8866         * tests/test-math-c++.cc: Check the declaration of acosf.
8867         * doc/posix-functions/acosf.texi: Mention the new module.
8868
8869         acos: Use a .m4 file.
8870         * m4/acos.m4: New file.
8871         * modules/acos (Files): Add it.
8872         (configure.ac): Just invoke gl_FUNC_ACOS.
8873
8874 2011-10-08  Bruno Haible  <bruno@clisp.org>
8875
8876         Tests for module 'asinf'.
8877         * modules/asinf-tests: New file.
8878         * tests/test-asinf.c: New file.
8879
8880         New module 'asinf'.
8881         * lib/math.in.h (asinf): New declaration.
8882         * lib/asinf.c: New file.
8883         * m4/asinf.m4: New file.
8884         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8886         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8887         * modules/asinf: New file.
8888         * tests/test-math-c++.cc: Check the declaration of asinf.
8889         * doc/posix-functions/asinf.texi: Mention the new module.
8890
8891         asin: Use a .m4 file.
8892         * m4/asin.m4: New file.
8893         * modules/asin (Files): Add it.
8894         (configure.ac): Just invoke gl_FUNC_ASIN.
8895
8896 2011-10-08  Bruno Haible  <bruno@clisp.org>
8897
8898         Tests for module 'tanf'.
8899         * modules/tanf-tests: New file.
8900         * tests/test-tanf.c: New file.
8901
8902         New module 'tanf'.
8903         * lib/math.in.h (tanf): New declaration.
8904         * lib/tanf.c: New file.
8905         * m4/tanf.m4: New file.
8906         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8908         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8909         * modules/tanf: New file.
8910         * tests/test-math-c++.cc: Check the declaration of tanf.
8911         * doc/posix-functions/tanf.texi: Mention the new module.
8912
8913         tan: Use a .m4 file.
8914         * m4/tan.m4: New file.
8915         * modules/tan (Files): Add it.
8916         (configure.ac): Just invoke gl_FUNC_TAN.
8917
8918 2011-10-08  Bruno Haible  <bruno@clisp.org>
8919
8920         Tests for module 'cosf'.
8921         * modules/cosf-tests: New file.
8922         * tests/test-cosf.c: New file.
8923
8924         New module 'cosf'.
8925         * lib/math.in.h (cosf): New declaration.
8926         * lib/cosf.c: New file.
8927         * m4/cosf.m4: New file.
8928         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8930         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8931         * modules/cosf: New file.
8932         * tests/test-math-c++.cc: Check the declaration of cosf.
8933         * doc/posix-functions/cosf.texi: Mention the new module.
8934
8935         cos: Use a .m4 file.
8936         * m4/cos.m4: New file.
8937         * modules/cos (Files): Add it.
8938         (configure.ac): Just invoke gl_FUNC_COS.
8939
8940 2011-10-08  Bruno Haible  <bruno@clisp.org>
8941
8942         Tests for module 'sinf'.
8943         * modules/sinf-tests: New file.
8944         * tests/test-sinf.c: New file.
8945
8946         New module 'sinf'.
8947         * lib/math.in.h (sinf): New declaration.
8948         * lib/sinf.c: New file.
8949         * m4/sinf.m4: New file.
8950         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8952         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8953         * modules/sinf: New file.
8954         * tests/test-math-c++.cc: Check the declaration of sinf.
8955         * doc/posix-functions/sinf.texi: Mention the new module.
8956
8957         sin: Use a .m4 file.
8958         * m4/sin.m4: New file.
8959         * modules/sin (Files): Add it.
8960         (configure.ac): Just invoke gl_FUNC_SIN.
8961
8962 2011-10-08  Bruno Haible  <bruno@clisp.org>
8963
8964         Tests for module 'powf'.
8965         * modules/powf-tests: New file.
8966         * tests/test-powf.c: New file.
8967
8968         New module 'powf'.
8969         * lib/math.in.h (powf): New declaration.
8970         * lib/powf.c: New file.
8971         * m4/powf.m4: New file.
8972         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8974         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8975         * modules/powf: New file.
8976         * tests/test-math-c++.cc: Check the declaration of powf.
8977         * doc/posix-functions/powf.texi: Mention the new module.
8978
8979         pow: Use a .m4 file.
8980         * m4/pow.m4: New file.
8981         * modules/pow (Files): Add it.
8982         (configure.ac): Just invoke gl_FUNC_POW.
8983
8984 2011-10-08  Bruno Haible  <bruno@clisp.org>
8985
8986         Tests for module 'log10f'.
8987         * modules/log10f-tests: New file.
8988         * tests/test-log10f.c: New file.
8989
8990         New module 'log10f'.
8991         * lib/math.in.h (log10f): New declaration.
8992         * lib/log10f.c: New file.
8993         * m4/log10f.m4: New file.
8994         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8996         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8997         * modules/log10f: New file.
8998         * tests/test-math-c++.cc: Check the declaration of log10f.
8999         * doc/posix-functions/log10f.texi: Mention the new module.
9000
9001         log10: Use a .m4 file.
9002         * m4/log10.m4: New file.
9003         * modules/log10 (Files): Add it.
9004         (configure.ac): Just invoke gl_FUNC_LOG10.
9005
9006 2011-10-08  Bruno Haible  <bruno@clisp.org>
9007
9008         Tests for module 'logf'.
9009         * modules/logf-tests: New file.
9010         * tests/test-logf.c: New file.
9011
9012         New module 'logf'.
9013         * lib/math.in.h (logf): New declaration.
9014         * lib/logf.c: New file.
9015         * m4/logf.m4: New file.
9016         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9018         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9019         * modules/logf: New file.
9020         * tests/test-math-c++.cc: Check the declaration of logf.
9021         * doc/posix-functions/logf.texi: Mention the new module.
9022
9023         log: Use a .m4 file.
9024         * m4/log.m4: New file.
9025         * modules/log (Files): Add it.
9026         (configure.ac): Just invoke gl_FUNC_LOG.
9027
9028 2011-10-08  Bruno Haible  <bruno@clisp.org>
9029
9030         Tests for module 'expf'.
9031         * modules/expf-tests: New file.
9032         * tests/test-expf.c: New file.
9033
9034         New module 'expf'.
9035         * lib/math.in.h (expf): New declaration.
9036         * lib/expf.c: New file.
9037         * m4/expf.m4: New file.
9038         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9040         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9041         * modules/expf: New file.
9042         * tests/test-math-c++.cc: Check the declaration of expf.
9043         * doc/posix-functions/expf.texi: Mention the new module.
9044
9045         exp: Use a .m4 file.
9046         * m4/exp.m4: New file.
9047         * modules/exp (Files): Add it.
9048         (configure.ac): Just invoke gl_FUNC_EXP.
9049
9050 2011-10-08  Bruno Haible  <bruno@clisp.org>
9051
9052         Tests for module 'sqrtf'.
9053         * modules/sqrtf-tests: New file.
9054         * tests/test-sqrtf.c: New file.
9055
9056         New module 'sqrtf'.
9057         * lib/math.in.h (sqrtf): New declaration.
9058         * lib/sqrtf.c: New file.
9059         * m4/sqrtf.m4: New file.
9060         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9062         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9063         * modules/sqrtf: New file.
9064         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9065         * doc/posix-functions/sqrtf.texi: Mention the new module.
9066
9067 2011-10-08  Bruno Haible  <bruno@clisp.org>
9068
9069         Tests: Avoid link failures w.r.t. libintl.
9070         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9071         $(LIBINTL).
9072         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9073         $(LIBINTL).
9074         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9075         against $(LIBINTL).
9076         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9077         $(LIBINTL).
9078         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9079         $(LIBINTL).
9080         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9081
9082 2011-10-08  Bruno Haible  <bruno@clisp.org>
9083
9084         pow tests: Defeat compiler optimizations.
9085         * tests/test-pow.c (main): Assign arguments to x and y before use.
9086
9087 2011-10-08  Bruno Haible  <bruno@clisp.org>
9088
9089         gnulib-tool: Improve last commit.
9090         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9091         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9092         ignore dependencies that are not among the modules list.
9093
9094 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9095
9096         gnulib-tool: don't follow dependencies to avoided modules
9097         This fixes a bug that is related to the previous one.
9098         * gnulib-tool (func_modules_transitive_closure)
9099         (func_emit_autoconf_snippets):
9100         Check whether a dependency is acceptable before using it.
9101         (--extract-dependencies): Report an error if --avoid is also used,
9102         since this combination of options is not yet supported.
9103
9104         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9105         Problem reported by Peter Dyballa in
9106         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9107         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9108         when echoing "$condition".
9109
9110 2011-10-07  Bruno Haible  <bruno@clisp.org>
9111
9112         Fix documentation about math functions on MacOS X.
9113         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9114         MacOS X 10.5.
9115         * doc/posix-functions/fdim.texi: Likewise.
9116         * doc/posix-functions/feclearexcept.texi: Likewise.
9117         * doc/posix-functions/fegetenv.texi: Likewise.
9118         * doc/posix-functions/fegetround.texi: Likewise.
9119         * doc/posix-functions/feholdexcept.texi: Likewise.
9120         * doc/posix-functions/feraiseexcept.texi: Likewise.
9121         * doc/posix-functions/fesetenv.texi: Likewise.
9122         * doc/posix-functions/fesetround.texi: Likewise.
9123         * doc/posix-functions/fetestexcept.texi: Likewise.
9124         * doc/posix-functions/feupdateenv.texi: Likewise.
9125         * doc/posix-functions/fmax.texi: Likewise.
9126         * doc/posix-functions/fmin.texi: Likewise.
9127         * doc/posix-functions/log2.texi: Likewise.
9128         * doc/posix-functions/modff.texi: Likewise.
9129         * doc/posix-functions/nan.texi: Likewise.
9130         * doc/posix-functions/nanf.texi: Likewise.
9131         * doc/posix-functions/nextafterf.texi: Likewise.
9132         * doc/posix-functions/remquo.texi: Likewise.
9133
9134 2011-10-07  Bruno Haible  <bruno@clisp.org>
9135
9136         modff: Drop assumption about library that defines modff.
9137         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9138         AC_CHECK_FUNCS.
9139         * modules/modff (Files): Add m4/mathfunc.m4.
9140
9141 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9142
9143         raise tests: Avoid a GCC warning.
9144         * tests/test-raise.c (handler): Use _Noreturn.
9145
9146 2011-10-07  Bruno Haible  <bruno@clisp.org>
9147
9148         Tests for module 'ldexpf'.
9149         * modules/ldexpf-tests: New file.
9150         * tests/test-ldexpf.c: New file.
9151
9152         New module 'ldexpf'.
9153         * lib/math.in.h (ldexpf): New declaration.
9154         * lib/ldexpf.c: New file.
9155         * m4/ldexpf.m4: New file.
9156         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9158         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9159         * modules/ldexpf: New file.
9160         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9161         * doc/posix-functions/ldexpf.texi: Mention the new module.
9162
9163 2011-10-06  Bruno Haible  <bruno@clisp.org>
9164
9165         frexpf: Work around problems on IRIX and mingw.
9166         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9168         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9169         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9170         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9171         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9172         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9173
9174 2011-10-06  Bruno Haible  <bruno@clisp.org>
9175
9176         fabsf: Drop assumption about library that defines fabsf.
9177         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9178         AC_CHECK_FUNCS.
9179         * modules/fabsf (Files): Add m4/mathfunc.m4.
9180
9181 2011-10-06  Bruno Haible  <bruno@clisp.org>
9182
9183         frexpf: Drop assumption about library that defines frexpf.
9184         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9185         'int *', 'float *', 'long double *', 'float', 'long double'.
9186         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9187         AC_CHECK_FUNCS.
9188         * modules/frexpf (Files): Add m4/mathfunc.m4.
9189
9190         Tests for module 'frexpf'.
9191         * modules/frexpf-tests: New file.
9192         * tests/test-frexpf.c: New file.
9193
9194         New module 'frexpf'.
9195         * lib/math.in.h (frexpf): New declaration.
9196         * lib/frexpf.c: New file.
9197         * m4/frexpf.m4: New file.
9198         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9200         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9201         * modules/frexpf: New file.
9202         * tests/test-math-c++.cc: Check the declaration of frexpf.
9203         * doc/posix-functions/frexpf.texi: Mention the new module.
9204
9205 2011-10-06  Bruno Haible  <bruno@clisp.org>
9206
9207         math: Sort function declarations of math.in.h.
9208         * lib/math.in.h (frexp, logb): Move declarations.
9209
9210 2011-10-05  Bruno Haible  <bruno@clisp.org>
9211
9212         Tests for module 'modff'.
9213         * modules/modff-tests: New file.
9214         * tests/test-modff.c: New file.
9215
9216         New module 'modff'.
9217         * lib/math.in.h (modff): New declaration.
9218         * lib/modff.c: New file.
9219         * m4/modff.m4: New file.
9220         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9222         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9223         * modules/modff: New file.
9224         * tests/test-math-c++.cc: Check the declaration of modff.
9225         * doc/posix-functions/modff.texi: Mention the new module.
9226
9227         modf tests: Make test sharper.
9228         * tests/test-modf.c (main): Strengthen upper bound.
9229
9230         modf: Use a .m4 file.
9231         * m4/modf.m4: New file.
9232         * modules/modf (Files): Add it.
9233         (configure.ac): Just invoke gl_FUNC_MODF.
9234
9235 2011-10-05  Bruno Haible  <bruno@clisp.org>
9236
9237         Tests for module 'fmodf'.
9238         * modules/fmodf-tests: New file.
9239         * tests/test-fmodf.c: New file.
9240
9241         New module 'fmodf'.
9242         * lib/math.in.h (fmodf): New declaration.
9243         * lib/fmodf.c: New file.
9244         * m4/fmodf.m4: New file.
9245         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9247         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9248         * modules/fmodf: New file.
9249         * tests/test-math-c++.cc: Check the declaration of fmodf.
9250         * doc/posix-functions/fmodf.texi: Mention the new module.
9251
9252         fmod: Use a .m4 file.
9253         * m4/fmod.m4: New file.
9254         * modules/fmod (Files): Add it.
9255         (configure.ac): Just invoke gl_FUNC_FMOD.
9256
9257 2011-10-05  Bruno Haible  <bruno@clisp.org>
9258
9259         Tests for module 'fabsf'.
9260         * modules/fabsf-tests: New file.
9261         * tests/test-fabsf.c: New file.
9262
9263         New module 'fabsf'.
9264         * lib/math.in.h (fabsf): New declaration.
9265         * lib/fabsf.c: New file.
9266         * m4/fabsf.m4: New file.
9267         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9269         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9270         * modules/fabsf: New file.
9271         * tests/test-math-c++.cc: Check the declaration of fabsf.
9272         * doc/posix-functions/fabsf.texi: Mention the new module.
9273
9274         fabs: Use a .m4 file.
9275         * m4/fabs.m4: New file.
9276         * modules/fabs (Files): Add it.
9277         (configure.ac): Just invoke gl_FUNC_FABS.
9278
9279 2011-10-05  Jim Meyering  <meyering@redhat.com>
9280
9281         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9282         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9283         ls -lL regression introduced in coreutils-8.12, it does so at the
9284         cost of an additional stat call in the common case.  Besides, now
9285         that the kernel change that prompted commit 95f7c57f has been reverted
9286         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9287         we have no use for commit 95f7c57f, "file-has-acl: use
9288         acl_extended_file_nofollow if available".
9289
9290 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9291
9292         file-has-acl: revert unintended change in behavior of ls -L
9293         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9294         derived from...
9295         (file_has_acl): ...code here.  Call it.
9296         This problem was introduced with 2011-07-22 commit 95f7c57f,
9297         "file-has-acl: use acl_extended_file_nofollow if available".
9298         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9299
9300 2011-10-03  Bruno Haible  <bruno@clisp.org>
9301
9302         poll: Avoid link errors on MSVC.
9303         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9304         * modules/poll (Depends-on): Add sockets.
9305         (Link): New section.
9306         * NEWS: Mention the change.
9307         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9308         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9309         $(LIB_POLL) instead of $(LIBSOCKET).
9310
9311 2011-10-03  Bruno Haible  <bruno@clisp.org>
9312
9313         sys_select tests: Fix link error on MSVC 9.
9314         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9315         with $(LIB_SELECT) instead of $(LIBSOCKET).
9316
9317 2011-10-03  Bruno Haible  <bruno@clisp.org>
9318
9319         sys_select: Fix compilation error on mingw.
9320         * lib/sys_select.in.h: On native Windows, include <io.h>.
9321
9322 2011-10-03  Bruno Haible  <bruno@clisp.org>
9323
9324         wmemset: Support for MSVC.
9325         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9326         whether wmemset() exists.
9327
9328 2011-10-03  Bruno Haible  <bruno@clisp.org>
9329
9330         wmemmove: Support for MSVC.
9331         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9332         whether wmemmove() exists.
9333
9334 2011-10-03  Bruno Haible  <bruno@clisp.org>
9335
9336         wmemcpy: Support for MSVC.
9337         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9338         whether wmemcpy() exists.
9339
9340 2011-10-03  Bruno Haible  <bruno@clisp.org>
9341
9342         wmemcmp: Support for MSVC.
9343         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9344         whether wmemcmp() exists.
9345
9346 2011-10-03  Bruno Haible  <bruno@clisp.org>
9347
9348         wmemchr: Support for MSVC.
9349         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9350         whether wmemchr() exists.
9351
9352 2011-10-03  Bruno Haible  <bruno@clisp.org>
9353
9354         glthread/*, strsignal: Support for MSVC.
9355         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9356         including <winsock.h> on MSVC 9.
9357         * lib/glthread/lock.h: Likewise.
9358         * lib/glthread/thread.h: Likewise.
9359         * lib/glthread/tls.h: Likewise.
9360         * lib/glthread/yield.h: Likewise.
9361         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9362         if HAVE_UNISTD_H is false.
9363         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9364
9365 2011-10-03  Bruno Haible  <bruno@clisp.org>
9366
9367         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9368         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9369         Set to 100000.
9370
9371 2011-10-03  Bruno Haible  <bruno@clisp.org>
9372
9373         acl: Fix specification.
9374         * lib/file-has-acl.c (file_has_acl): Fix specification.
9375
9376 2011-10-03  Bruno Haible  <bruno@clisp.org>
9377
9378         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9379         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9380         (compute_curr_prefix, shared_library_fullname,
9381         find_shared_library_fullname, get_shared_library_fullname, relocate):
9382         Use it together with PIC && INSTALLDIR.
9383         Reported by <jojelino@gmail.com>
9384         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9385
9386 2011-10-01  Jim Meyering  <meyering@redhat.com>
9387
9388         maint.mk: adjust a release-related rule not to require use of gzip
9389         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9390         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9391         projects that build only .tar.xz files.  Also fix an erroneous test.
9392
9393         test-linkat: don't leave behind a temporary file
9394         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9395         Otherwise, coreutils' "make distcheck" would fail with this:
9396           Only in /c/cu/tests/torture/coreutils/test/\
9397             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9398           make[2]: *** [my-distcheck] Error 1
9399
9400         float, math: add omitted file
9401         * lib/itold.c: Add file, required for yesterday's float change.
9402
9403 2011-10-01  Bruno Haible  <bruno@clisp.org>
9404
9405         isinf: Fix for OpenBSD/x86.
9406         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9407         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9408         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9409
9410 2011-10-01  Bruno Haible  <bruno@clisp.org>
9411
9412         isfinite: Fix syntax error in configure test.
9413         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9414
9415         isfinite: Fix typo.
9416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9417         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9418
9419 2011-10-01  Bruno Haible  <bruno@clisp.org>
9420
9421         nonblocking tests: Fix test failure on Linux/IA-64.
9422         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9423         Set to 270000.
9424
9425 2011-10-01  Bruno Haible  <bruno@clisp.org>
9426
9427         mkfifoat tests: Fix a test failure on mingw.
9428         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9429         with error ENOSYS.
9430
9431 2011-09-30  Bruno Haible  <bruno@clisp.org>
9432
9433         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9434         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9435         'long double'. Set REPLACE_ITOLD.
9436         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9437         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9438         * lib/itold.c: New file.
9439         * modules/float (Files): Add lib/itold.c.
9440         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9441         (Makefile.am): Substitute REPLACE_ITOLD.
9442         * modules/math (Depends-on): Add float.
9443         (Makefile.am): Substitute REPLACE_ITOLD.
9444         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9445         * doc/posix-headers/math.texi: Likewise.
9446         * doc/posix-functions/logl.texi: Likewise.
9447
9448 2011-09-30  Bruno Haible  <bruno@clisp.org>
9449
9450         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9451         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9452         Set to 140000.
9453
9454 2011-09-30  Bruno Haible  <bruno@clisp.org>
9455
9456         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9457         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9458         invocation, say "right after AC_PROG_CC_STDC", not "right after
9459         AC_PROG_CC".
9460         Reported by Gary V. Vaughan <gary@gnu.org>.
9461
9462 2011-09-30  Bruno Haible  <bruno@clisp.org>
9463
9464         Centralize C99 requirement.
9465         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9466         * modules/stdarg (configure.ac-early): Invoke it instead of
9467         AC_PROG_CC_STDC.
9468         Reported by Gary V. Vaughan and Paul Eggert.
9469
9470 2011-09-29  Bruno Haible  <bruno@clisp.org>
9471
9472         float: Fix LDBL_MAX value on Linux/PowerPC.
9473         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9474         on Linux/PowerPC.
9475         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9476         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9477         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9478         platform.
9479         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9480
9481 2011-09-29  Bruno Haible  <bruno@clisp.org>
9482
9483         doc: Improve doc about gl_EARLY.
9484         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9485         AC_PROG_CC_STDC invocation.
9486         Reported by Gary V. Vaughan <gary@gnu.org>.
9487
9488 2011-09-28  Bruno Haible  <bruno@clisp.org>
9489
9490         fgetc, fputc, fread, fwrite tests: Fix link error.
9491         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9492         on non-MSVC platforms.
9493         * tests/test-fputc.c (main): Likewise.
9494         * tests/test-fread.c (main): Likewise.
9495         * tests/test-fwrite.c (main): Likewise.
9496         Reported by Jim Meyering.
9497
9498 2011-09-27  Bruno Haible  <bruno@clisp.org>
9499
9500         fputc, fwrite tests: Avoid test failure on MSVC.
9501         * tests/test-fgetc.c: Include msvc-inval.h.
9502         (main): Invoke gl_msvc_inval_ensure_handler.
9503         * tests/test-fputc.c: Include msvc-inval.h.
9504         (main): Invoke gl_msvc_inval_ensure_handler.
9505         * tests/test-fread.c: Include msvc-inval.h.
9506         (main): Invoke gl_msvc_inval_ensure_handler.
9507         * tests/test-fwrite.c: Include msvc-inval.h.
9508         (main): Invoke gl_msvc_inval_ensure_handler.
9509         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9510         * modules/fputc-tests (Depends-on): Likewise.
9511         * modules/fread-tests (Depends-on): Likewise.
9512         * modules/fwrite-tests (Depends-on): Likewise.
9513
9514 2011-09-27  Bruno Haible  <bruno@clisp.org>
9515
9516         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9517         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9518         (raise): Remove older, duplicated declaration.
9519         (_gl_raise_SIGPIPE): New declaration.
9520         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9521         (rpl_raise): Remove function.
9522         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9523         a gnulib-defined SIGPIPE here.
9524         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9525         'sigprocmask' has detected missing signal-blocking and the module
9526         'sigpipe' is enabled.
9527         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9528
9529 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9530
9531         base64-tests: avoid memory leak
9532         * tests/test-base64.c (main): Plug memory leak.
9533
9534         base32: new module
9535         * modules/base32: New module.
9536         * lib/base32.c: New file.
9537         * lib/base32.h: Likewise.
9538         * m4/base32.m4: Likewise.
9539         * modules/base32-tests: New test.
9540         * tests/test-base32.c: Likewise.
9541         * MODULES.html.sh (Misc): Mention it.
9542
9543 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         gnulib: use more-standard license notice wording
9546         * gnulib-tool (func_emit_copyright_notice): When emitting a
9547         license notice into a file, use the standard wording as suggested
9548         by the current information for GNU maintainers, except say "file"
9549         rather than "program".  The new wording gives a license version
9550         number, which addresses an issue raised by Glenn Morris in
9551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9552         * m4/onceonly.m4: Use that same wording here, too.
9553
9554         dup2: minor simplification
9555         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9556         as lib/dup2.c no longer uses 'inline'.
9557
9558 2011-09-25  Bruno Haible  <bruno@clisp.org>
9559
9560         strings: Fix compilation error on MSVC.
9561         * lib/strings.in.h: Include <stddef.h> for size_t.
9562
9563 2011-09-25  Bruno Haible  <bruno@clisp.org>
9564
9565         fflush et al.: Document limitation on MSVC.
9566         * doc/posix-functions/fflush.texi: Document possible crash in handling
9567         mode other than DEFAULT_HANDLING.
9568         * doc/posix-functions/fgetc.texi: Likewise.
9569         * doc/posix-functions/fputc.texi: Likewise.
9570         * doc/posix-functions/fread.texi: Likewise.
9571         * doc/posix-functions/fwrite.texi: Likewise.
9572
9573 2011-09-25  Bruno Haible  <bruno@clisp.org>
9574
9575         msvc-inval: Allow three invalid parameter handling modes.
9576         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9577         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9578         macros.
9579         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9580         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9581         SANE_LIBRARY_HANDLING as a no-op.
9582         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9583         <stdlib.h>.
9584         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9585
9586 2011-09-25  Bruno Haible  <bruno@clisp.org>
9587
9588         msvc-inval: Make handler multithread-safe.
9589         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9590         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9591         declarations.
9592         (gl_msvc_inval_current): New declaration.
9593         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9594         Operate on the structure returned by gl_msvc_inval_current().
9595         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9596         Remove varaiables.
9597         (tls_index, tls_initialized): New variables.
9598         (not_per_thread): New variable.
9599         (gl_msvc_inval_current): New function.
9600         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9601         returned by gl_msvc_inval_current().
9602
9603 2011-09-25  Bruno Haible  <bruno@clisp.org>
9604
9605         msvc-inval: Install handler globally.
9606         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9607         !_MSC_VER.
9608         (gl_msvc_invalid_parameter_handler): Remove declaration.
9609         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9610         declarations.
9611         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9612         Install the handler globally, don't uninstall it.
9613         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9614         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9615         currently valid, call RaiseException instead.
9616         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9617         for !_MSC_VER.
9618
9619 2011-09-25  Bruno Haible  <bruno@clisp.org>
9620
9621         strerror_r-posix: Fix for MSVC 9.
9622         * lib/strerror_r.c (local_snprintf): New function.
9623         (snprintf): Define to local_snprintf, not to _snprintf.
9624
9625 2011-09-25  Bruno Haible  <bruno@clisp.org>
9626
9627         ftruncate: Support for MSVC 9.
9628         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9629         (chsize_nothrow): New function.
9630         (chsize): Redefine as a macro.
9631         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9632         * modules/ftruncate (Depends-on): Add msvc-inval.
9633
9634 2011-09-25  Bruno Haible  <bruno@clisp.org>
9635
9636         New module 'fstat'.
9637         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9638         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9639         * lib/fchdir.c (rpl_fstat): Remove function.
9640         * m4/fstat.m4: New file.
9641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9643         declared.
9644         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9645         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9646         * modules/fstat: New file.
9647         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9648         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9649         is set.
9650         * doc/posix-functions/fstat.texi: Mention the new module and the
9651         problem on MSVC.
9652         * NEWS: Mention the change.
9653         * modules/acl (Depends-on): Add fstat.
9654         * modules/chdir-safer (Depends-on): Likewise.
9655         * modules/chown (Depends-on): Likewise.
9656         * modules/copy-file (Depends-on): Likewise.
9657         * modules/fchdir (Depends-on): Likewise.
9658         * modules/fdopendir (Depends-on): Likewise.
9659         * modules/fopen (Depends-on): Likewise.
9660         * modules/fts (Depends-on): Likewise.
9661         * modules/getcwd (Depends-on): Likewise.
9662         * modules/isapipe (Depends-on): Likewise.
9663         * modules/linkat (Depends-on): Likewise.
9664         * modules/lseek (Depends-on): Likewise.
9665         * modules/mkdir-p (Depends-on): Likewise.
9666         * modules/open (Depends-on): Likewise.
9667         * modules/openat (Depends-on): Likewise.
9668         * modules/read-file (Depends-on): Likewise.
9669         * modules/renameat (Depends-on): Likewise.
9670         * modules/utimens (Depends-on): Likewise.
9671
9672 2011-09-25  Bruno Haible  <bruno@clisp.org>
9673
9674         linkat: Fix compilation on MSVC 9.
9675         * lib/linkat.c: Don't include <stdint.h>.
9676
9677 2011-09-25  Bruno Haible  <bruno@clisp.org>
9678
9679         fclose: Support for MSVC 9.
9680         * lib/fclose.c: Include msvc-inval.h.
9681         (fclose_nothrow): New function.
9682         (rpl_fclose): Use it.
9683         * modules/fclose (Depends-on): Add msvc-inval.
9684         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9685
9686 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9687
9688         dup2: minor simplifications
9689         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9690         that it's a performance win.
9691         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9692         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9693
9694 2011-09-24  Jim Meyering  <meyering@redhat.com>
9695
9696         test-futimens: avoid a warning from gcc -Wshadow
9697         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9698         to avoid a shadowing warning.
9699
9700 2011-09-24  Bruno Haible  <bruno@clisp.org>
9701
9702         fdopen: Support for MSVC 9.
9703         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9704         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9705         * lib/fdopen.c: Include msvc-inval.h.
9706         (fdopen_nothrow): New function.
9707         (rpl_fdopen): Use it.
9708         * modules/fdopen (Depends-on): Add msvc-inval.
9709         * modules/fclose-tests (Depends-on): Add fdopen.
9710         * modules/fflush-tests (Depends-on): Likewise.
9711         * modules/fgetc-tests (Depends-on): Likewise.
9712         * modules/fputc-tests (Depends-on): Likewise.
9713         * modules/fread-tests (Depends-on): Likewise.
9714         * modules/freopen-tests (Depends-on): Likewise.
9715         * modules/fseeko-tests (Depends-on): Likewise.
9716         * modules/ftello-tests (Depends-on): Likewise.
9717         * modules/fwrite-tests  (Depends-on): Likewise.
9718         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9719
9720 2011-09-24  Bruno Haible  <bruno@clisp.org>
9721
9722         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9723         * modules/fgetc-tests (Depends-on): Add unistd.
9724         * modules/fputc-tests (Depends-on): Likewise.
9725         * modules/fread-tests (Depends-on): Likewise.
9726         * modules/fwrite-tests (Depends-on): Likewise.
9727
9728 2011-09-24  Bruno Haible  <bruno@clisp.org>
9729
9730         dup: Simplify autoconf test.
9731         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9732         on gl_MSVC_INVAL's result.
9733
9734 2011-09-24  Bruno Haible  <bruno@clisp.org>
9735
9736         Tests for function fwrite().
9737         * modules/fwrite-tests: New file.
9738         * tests/test-fwrite.c: New file.
9739         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9740
9741         Tests for function fread().
9742         * modules/fread-tests: New file.
9743         * tests/test-fread.c: New file.
9744         * modules/stdio-tests (Depends-on): Add fread-tests.
9745
9746         Activate fputc tests.
9747         * modules/stdio-tests (Depends-on): Add fputc-tests.
9748
9749         Enhance fgetc, fputc tests.
9750         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9751         * tests/test-fputc.c (main): Likewise.
9752
9753 2011-09-24  Bruno Haible  <bruno@clisp.org>
9754
9755         write: Support for MSVC 9.
9756         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9757         is not 1.
9758         * lib/write.c (write_nothrow): New function.
9759         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9760         not 1. Use write_nothrow.
9761         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9762         invalid parameter handler.
9763         (gl_PREREQ_WRITE): New macro.
9764         * modules/write (Depends-on): Add msvc-inval.
9765         (configure.ac): Invoke gl_PREREQ_WRITE.
9766         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9767
9768 2011-09-24  Bruno Haible  <bruno@clisp.org>
9769
9770         read: Fix last commit.
9771         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9772
9773 2011-09-24  Bruno Haible  <bruno@clisp.org>
9774
9775         dup2: Fix last commit.
9776         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9777         (rpl_dup2): Disable fcntl workaround on native Windows.
9778
9779         sigprocmask: Make code safer.
9780         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9781         section that changes macro definitions for this compilation unit.
9782
9783 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9784
9785         dup2: clarify by coalescing Windows-specific material
9786         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9787         "msvc-nothrow.h"' to the Windows-specific section, so that the
9788         Emacs source need not contain these include files.
9789         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9790         Windows-specific fixes into this function rather than just the
9791         nothrow fix, as this shortens and clarifies the code.  Always
9792         define as a function, as that's a bit cleaner than having it be
9793         sometimes a function and sometimes a macro.
9794         (rpl_dup2): Move the Windows-specific stuff out of here and into
9795         ms_windows_dup2.  Don't protect the Haiku-related fix with
9796         "#if !defined __linux__", as the same code also works around
9797         a Linux kernel bug, and it doesn't add any system calls on any
9798         platform.  Add comment about FreeBSD 6.1.
9799
9800         sigprocmask: move #include directive
9801         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9802         Windows-specific section, so that the Emacs source need not
9803         contain msvc-inval.h.
9804
9805 2011-09-23  Bruno Haible  <bruno@clisp.org>
9806
9807         read: Support for MSVC 9.
9808         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9809         is not 1.
9810         * lib/read.c (read_nothrow): New function.
9811         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9812         read_nothrow.
9813         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9814         invalid parameter handler.
9815         (gl_PREREQ_READ): New macro.
9816         * modules/read (Depends-on): Add msvc-inval.
9817         (configure.ac): Invoke gl_PREREQ_READ.
9818         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9819
9820 2011-09-23  Bruno Haible  <bruno@clisp.org>
9821
9822         close: Support for MSVC 9.
9823         * lib/close.c: Include <errno.h>, msvc-inval.h.
9824         (close_nothrow): New function.
9825         (rpl_close): Use it.
9826         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9827         invalid parameter handler.
9828         * modules/close (Depends-on): Add msvc-inval.
9829         * modules/dup2-tests (Depends-on): Add close.
9830         * modules/dup3-tests (Depends-on): Likewise.
9831         * modules/fcntl-tests (Depends-on): Likewise.
9832         * modules/spawn-pipe-tests (Depends-on): Likewise.
9833         * modules/unistd-safer-tests (Depends-on): Likewise.
9834         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9835
9836 2011-09-23  Bruno Haible  <bruno@clisp.org>
9837
9838         New module 'dup'.
9839         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9840         Allow replacement.
9841         * lib/dup.c: New file.
9842         * lib/fchdir.c (rpl_dup): Remove function.
9843         * m4/dup.m4: New file.
9844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9845         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9846         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9847         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9848         * modules/dup: New file.
9849         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9850         'dup' module is in use.
9851         * modules/fdopendir (Depends-on): Add dup.
9852         * modules/fdutimensat-tests (Depends-on): Likewise.
9853         * modules/fts (Depends-on): Likewise.
9854         * modules/futimens-tests (Depends-on): Likewise.
9855         * modules/posix_spawnp-tests (Depends-on): Likewise.
9856         * modules/unistd-safer-tests (Depends-on): Likewise.
9857         * modules/utimens-tests (Depends-on): Likewise.
9858         * doc/posix-functions/dup.texi: Mention the new module and the problem
9859         on MSVC.
9860
9861 2011-09-23  Bruno Haible  <bruno@clisp.org>
9862
9863         getdtablesize: Support for MSVC 9.
9864         * lib/getdtablesize.c: Include msvc-inval.h.
9865         (_setmaxstdio_nothrow): New function.
9866         (_setmaxstdio): Redefine it.
9867         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9868         * modules/getdtablesize (Depends-on): Add msvc-inval.
9869         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9870
9871 2011-09-23  Bruno Haible  <bruno@clisp.org>
9872
9873         signal-h: Rename from signal.
9874         * modules/signal-h: Renamed from modules/signal.
9875         * modules/pthread_sigmask (Depends-on): Update.
9876         * modules/raise (Depends-on): Likewise.
9877         * modules/sigaction (Depends-on): Likewise.
9878         * modules/sigpipe (Depends-on): Likewise.
9879         * modules/sigprocmask (Depends-on): Likewise.
9880         * modules/sys_select (Depends-on): Likewise.
9881         * modules/signal-h-tests: Renamed from modules/signal-tests.
9882         (Files, Depends-on, Makefile.am): Update.
9883         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9884         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9885         (Files, Makefile.am): Update.
9886         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9887         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9888         * modules/signal: New placeholder file.
9889         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9890         * doc/posix-headers/signal.texi: Update.
9891         * NEWS: Mention the change.
9892
9893 2011-09-23  Bruno Haible  <bruno@clisp.org>
9894
9895         sigprocmask: Avoid crashes through signal() on MSVC 9.
9896         * lib/sigprocmask.c: Include msvc-inval.h.
9897         (signal_nothrow): New function.
9898         (signal): Redefine it.
9899         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9900         * modules/sigprocmask (Depends-on): Add msvc-inval.
9901         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9902
9903 2011-09-23  Bruno Haible  <bruno@clisp.org>
9904
9905         Tests for module 'raise'.
9906         * modules/raise-tests: New file.
9907         * tests/test-raise.c: New file.
9908
9909         raise: Support for MSVC.
9910         * lib/signal.in.h (raise): New declaration.
9911         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9912         for native Windows platforms.
9913         * m4/raise.m4: New file.
9914         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9915         HAVE_RAISE, REPLACE_RAISE.
9916         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9917         REPLACE_RAISE.
9918         * modules/raise (Status, Notice): Remove fields.
9919         (Files): Add m4/raise.m4.
9920         (Depends-on): Add signal, msvc-inval.
9921         (configure.ac): Use the common idioms.
9922         (Maintainer): Add me.
9923         * tests/test-signal-c++.cc: Check the signature of raise.
9924         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9925
9926 2011-09-23  Bruno Haible  <bruno@clisp.org>
9927
9928         pipe2: Fix compilation on pre-C99 compilers.
9929         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9930
9931 2011-09-23  Bruno Haible  <bruno@clisp.org>
9932
9933         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9934         * lib/msvc-nothrow.h: New file.
9935         * lib/msvc-nothrow.c: New file.
9936         * m4/msvc-nothrow.m4: New file.
9937         * modules/msvc-nothrow: New file.
9938         * lib/dup2.c: Include msvc-nothrow.h.
9939         (rpl_dup2): No need to protect _get_osfhandle call here.
9940         * lib/accept4.c: Include msvc-nothrow.h.
9941         * lib/error.c: Likewise.
9942         * lib/fcntl.c: Likewise.
9943         * lib/lseek.c: Likewise.
9944         * lib/nonblocking.c: Likewise.
9945         * lib/poll.c: Likewise.
9946         * lib/read.c: Likewise.
9947         * lib/select.c: Likewise.
9948         * lib/sockets.h: Likewise.
9949         * lib/sockets.c: Likewise.
9950         * lib/stdio-read.c: Likewise.
9951         * lib/stdio-write.c: Likewise.
9952         * lib/write.c: Likewise.
9953         * lib/w32sock.h: Likewise.
9954         * lib/w32spawn.h: Likewise.
9955         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9956         * lib/fsync.c: Likewise.
9957         * lib/isapipe.c: Likewise.
9958         * modules/dup2 (Depends-on): Add msvc-nothrow.
9959         * modules/accept4 (Depends-on): Likewise.
9960         * modules/error (Depends-on): Likewise.
9961         * modules/fcntl (Depends-on): Likewise.
9962         * modules/lseek (Depends-on): Likewise.
9963         * modules/nonblocking (Depends-on): Likewise.
9964         * modules/poll (Depends-on): Likewise.
9965         * modules/read (Depends-on): Likewise.
9966         * modules/select (Depends-on): Likewise.
9967         * modules/sockets (Depends-on): Likewise.
9968         * modules/sigpipe (Depends-on): Likewise.
9969         * modules/write (Depends-on): Likewise.
9970         * modules/accept (Depends-on): Likewise.
9971         * modules/bind (Depends-on): Likewise.
9972         * modules/connect (Depends-on): Likewise.
9973         * modules/gethostname (Depends-on): Likewise.
9974         * modules/getpeername (Depends-on): Likewise.
9975         * modules/getsockname (Depends-on): Likewise.
9976         * modules/getsockopt (Depends-on): Likewise.
9977         * modules/ioctl (Depends-on): Likewise.
9978         * modules/listen (Depends-on): Likewise.
9979         * modules/recv (Depends-on): Likewise.
9980         * modules/recvfrom (Depends-on): Likewise.
9981         * modules/send (Depends-on): Likewise.
9982         * modules/sendto (Depends-on): Likewise.
9983         * modules/setsockopt (Depends-on): Likewise.
9984         * modules/shutdown (Depends-on): Likewise.
9985         * modules/socket (Depends-on): Likewise.
9986         * modules/execute (Depends-on): Likewise.
9987         * modules/spawn-pipe (Depends-on): Likewise.
9988         * modules/flock (Depends-on): Likewise.
9989         * modules/fsync (Depends-on): Likewise.
9990         * modules/isapipe (Depends-on): Likewise.
9991         * tests/test-cloexec.c: Include msvc-nothrow.h.
9992         * tests/test-dup-safer.c: Likewise.
9993         * tests/test-dup2.c: Likewise.
9994         * tests/test-dup3.c: Likewise.
9995         * tests/test-fcntl.c: Likewise.
9996         * tests/test-pipe.c: Likewise.
9997         * tests/test-pipe2.c: Likewise.
9998         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9999         * modules/unistd-safer-tests (Depends-on): Likewise.
10000         * modules/dup2-tests (Depends-on): Likewise.
10001         * modules/dup3-tests (Depends-on): Likewise.
10002         * modules/fcntl-tests (Depends-on): Likewise.
10003         * modules/pipe-posix-tests (Depends-on): Likewise.
10004         * modules/pipe2-tests (Depends-on): Likewise.
10005
10006 2011-09-23  Bruno Haible  <bruno@clisp.org>
10007
10008         dup2: Make code more maintainable.
10009         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10010         (rpl_dup2): Use it.
10011         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10012         * modules/dup2 (configure.ac): Invoke it.
10013         Reported by Paul Eggert.
10014
10015 2011-09-23  Bruno Haible  <bruno@clisp.org>
10016
10017         msvc-inval: Fix compilation error.
10018         * lib/msvc-inval.h: Include <excpt.h>.
10019
10020 2011-09-23  Bruno Haible  <bruno@clisp.org>
10021
10022         mkdir: Tweak for MSVC 9.
10023         * lib/sys_stat.in.h: Update comments.
10024         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10025
10026         Tests for module 'chdir'.
10027         * modules/chdir-tests: New file.
10028         * tests/test-chdir.c: New file.
10029
10030         New module 'chdir'.
10031         * modules/chdir: New file.
10032         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10033         (chdir): New declaration.
10034         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10035         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10036         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10037         * tests/test-unistd-c++.cc: Check signature of chdir.
10038         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10039         * modules/chdir-long (Depends-on): Add chdir.
10040         * modules/fchdir (Depends-on): Likewise.
10041         * modules/rename (Depends-on): Likewise.
10042         * modules/savewd (Depends-on): Likewise.
10043
10044         rmdir: Support for mingw, MSVC 9.
10045         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10046         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10047
10048         getcwd: Tweak for MSVC 9.
10049         * lib/unistd.in.h: Update comments.
10050         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10051
10052 2011-09-22  Bruno Haible  <bruno@clisp.org>
10053
10054         strerror_r-posix: Avoid a link error on MSVC.
10055         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10056         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10057
10058 2011-09-22  Bruno Haible  <bruno@clisp.org>
10059
10060         select: Avoid link errors on MSVC.
10061         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10062         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10063         * modules/pselect (Link): Likewise.
10064         * NEWS: Mention the change.
10065         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10066         test-select-stdin against $(LIB_SELECT).
10067         * modules/pselect-tests (Makefile.am): Link test-pselect against
10068         $(LIB_SELECT).
10069
10070 2011-09-22  Bruno Haible  <bruno@clisp.org>
10071
10072         select: Avoid compilation error on MSVC.
10073         * lib/select.c: Don't include <stdbool.h>.
10074
10075 2011-09-21  Bruno Haible  <bruno@clisp.org>
10076
10077         Consolidate all uses of PATH_MAX in *.m4 files.
10078         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10079         macros.
10080         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10081         and gl_PATHMAX_SNIPPET.
10082         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10083         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10084         * modules/chdir-long (Files): Add m4/pathmax.m4.
10085         * modules/getcwd (Files): Likewise.
10086
10087 2011-09-21  Bruno Haible  <bruno@clisp.org>
10088
10089         ftruncate: Un-deprecate, concentrate on Win32 support.
10090         * modules/ftruncate (Status, Notice): Remove sections.
10091         (Depends-on): Add largefile.
10092         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10093         non-mingw platforms.
10094         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10095         include <io.h>.
10096         * modules/perror-tests (Depends-on): Add ftruncate.
10097         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10098         'ftruncate' module.
10099
10100 2011-09-21  Bruno Haible  <bruno@clisp.org>
10101
10102         Add dependencies to new dirent related modules.
10103         * modules/opendir (Depends-on): Add closedir.
10104         * modules/getcwd (Depends-on): Add opendir, closedir.
10105         * modules/dirent-safer-tests (Depends-on): Likewise.
10106         * modules/fdopendir-tests (Depends-on): Likewise.
10107         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10108         * modules/renameat-tests (Depends-on): Likewise.
10109
10110 2011-09-21  Bruno Haible  <bruno@clisp.org>
10111
10112         opendir: Avoid compilation error on mingw.
10113         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10114         * modules/opendir (Depends-on): Add unistd.
10115
10116 2011-09-21  Bruno Haible  <bruno@clisp.org>
10117
10118         ftruncate tests: Avoid a test failure on mingw.
10119         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10120
10121 2011-09-21  Bruno Haible  <bruno@clisp.org>
10122
10123         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10124         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10125         native Windows.
10126
10127 2011-09-21  Bruno Haible  <bruno@clisp.org>
10128
10129         New module 'fdopen'.
10130         * lib/stdio.in.h (fdopen): New declaration.
10131         * lib/fdopen.c: New file.
10132         * m4/fdopen.m4: New file.
10133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10134         REPLACE_FDOPEN.
10135         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10136         REPLACE_FDOPEN.
10137         * modules/fdopen: New file.
10138         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10139         * tests/test-stdio-c++.cc: Check signature of fdopen.
10140         * doc/posix-functions/fdopen.texi: Mention the new module.
10141
10142 2011-09-21  Bruno Haible  <bruno@clisp.org>
10143
10144         unlockpt tests: Avoid test failure on NetBSD 5.1.
10145         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10146         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10147
10148 2011-09-21  Bruno Haible  <bruno@clisp.org>
10149
10150         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10151         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10152         * tests/test-getlogin_r.c (main): Likewise.
10153
10154 2011-09-20  Bruno Haible  <bruno@clisp.org>
10155
10156         time tests: Don't require pid_t.
10157         * doc/posix-headers/time.texi: Revert last change.
10158         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10159         * tests/test-time.c: Comment out the check for pid_t.
10160
10161 2011-09-20  Bruno Haible  <bruno@clisp.org>
10162
10163         fsync tests: Avoid a test failure on mingw.
10164         * tests/test-fsync.c (main): Allow a failure with EIO.
10165
10166 2011-09-20  Bruno Haible  <bruno@clisp.org>
10167
10168         euidaccess: Update comments.
10169         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10170
10171 2011-09-20  Bruno Haible  <bruno@clisp.org>
10172
10173         Ensure EBADF returns for socket functions on mingw.
10174         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10175         descriptor is invalid.
10176         * lib/bind.c (rpl_bind): Likewise.
10177         * lib/connect.c (rpl_connect): Likewise.
10178         * lib/getpeername.c (rpl_getpeername): Likewise.
10179         * lib/getsockname.c (rpl_getsockname): Likewise.
10180         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10181         * lib/listen.c (rpl_listen): Likewise.
10182         * lib/recv.c (rpl_recv): Likewise.
10183         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10184         * lib/send.c (rpl_send): Likewise.
10185         * lib/sendto.c (rpl_sendto): Likewise.
10186         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10187         * lib/shutdown.c (rpl_shutdown): Likewise.
10188
10189 2011-09-20  Bruno Haible  <bruno@clisp.org>
10190
10191         select tests: EBADF tests.
10192         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10193         test_bad_fd): New functions.
10194         (test_function): Invoke also test_bad_fd.
10195
10196 2011-09-20  Bruno Haible  <bruno@clisp.org>
10197
10198         Tests for module 'posix_spawn_file_actions_addopen.
10199         * modules/posix_spawn_file_actions_addopen-tests: New file.
10200         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10201
10202         Tests for module 'posix_spawn_file_actions_adddup2'.
10203         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10204         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10205
10206         Tests for module 'posix_spawn_file_actions_addclose'.
10207         * modules/posix_spawn_file_actions_addclose-tests: New file.
10208         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10209
10210 2011-09-20  Bruno Haible  <bruno@clisp.org>
10211
10212         Tests for module 'unlockpt'.
10213         * modules/unlockpt-tests: New file.
10214         * tests/test-unlockpt.c: New file.
10215         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10216
10217         Tests for module 'grantpt'.
10218         * modules/grantpt-tests: New file.
10219         * tests/test-grantpt.c: New file.
10220         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10221
10222 2011-09-20  Bruno Haible  <bruno@clisp.org>
10223
10224         freopen tests: EBADF tests.
10225         * tests/test-freopen.c: Include errno.h, unistd.h.
10226         (main): Add tests for EBADF, commented out for the moment.
10227
10228         fclose tests: EBADF tests.
10229         * tests/test-fclose.c (main): Add tests for EBADF.
10230
10231         fflush tests: EBADF tests.
10232         * tests/test-fflush.c: Include errno.h, macros.h.
10233         (main): Add tests for EBADF.
10234
10235         ftello tests: EBADF tests.
10236         * tests/test-ftello4.sh: New file.
10237         * tests/test-ftello4.c: New file.
10238         * modules/ftello-tests (Files): Add them.
10239         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10240
10241         fseeko tests: EBADF tests.
10242         * tests/test-fseeko4.sh: New file.
10243         * tests/test-fseeko4.c: New file.
10244         * modules/fseeko-tests (Files): Add them.
10245         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10246
10247         Tests for function fputc().
10248         * modules/fputc-tests: New file.
10249         * tests/test-fputc.c: New file.
10250         * modules/stdio-tests (Depends-on): Add fputc-tests.
10251
10252         Tests for function fgetc().
10253         * modules/fgetc-tests: New file.
10254         * tests/test-fgetc.c: New file.
10255         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10256
10257         Tests for function fdopen().
10258         * modules/fdopen-tests: New file.
10259         * tests/test-fdopen.c: New file.
10260         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10261
10262         Tests for module 'vdprintf'.
10263         * modules/vdprintf-tests: New file.
10264         * tests/test-vdprintf.c: New file.
10265
10266         Tests for module 'dprintf'.
10267         * modules/dprintf-tests: New file.
10268         * tests/test-dprintf.c: New file.
10269
10270 2011-09-20  Bruno Haible  <bruno@clisp.org>
10271
10272         Tests for module 'ioctl'.
10273         * modules/ioctl-tests: New file.
10274         * tests/test-ioctl.c: New file.
10275
10276 2011-09-20  Bruno Haible  <bruno@clisp.org>
10277
10278         fcntl tests: EBADF tests.
10279         * tests/test-fcntl.c (main): Add more tests for EBADF.
10280
10281 2011-09-20  Bruno Haible  <bruno@clisp.org>
10282
10283         utimensat tests: EBADF tests.
10284         * tests/test-utimensat.c (main): Add tests for EBADF.
10285
10286         renameat tests: EBADF tests.
10287         * tests/test-renameat.c (main): Add tests for EBADF.
10288
10289         mkfifoat tests: EBADF tests.
10290         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10291
10292         readlinkat tests: EBADF tests.
10293         * tests/test-readlinkat.c (main): Add tests for EBADF.
10294
10295         symlinkat tests: EBADF tests.
10296         * tests/test-symlinkat.c (main): Add tests for EBADF.
10297
10298         linkat tests: EBADF tests.
10299         * tests/test-linkat.c (main): Add tests for EBADF.
10300
10301         Tests for module 'faccessat'.
10302         * modules/faccessat-tests: New file.
10303         * tests/test-faccessat.c: New file.
10304
10305         fdopendir tests: EBADF tests.
10306         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10307
10308         openat tests: EBADF tests.
10309         * tests/test-fchownat.c (main): Add tests for EBADF.
10310         * tests/test-fstatat.c (main): Likewise.
10311         * tests/test-mkdirat.c (main): Likewise.
10312         * tests/test-openat.c (main): Likewise.
10313         * tests/test-unlinkat.c (main): Likewise.
10314         * tests/test-fchmodat.c: New file.
10315         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10316         (Makefile.am): Also run 'test-fchmodat'.
10317
10318 2011-09-20  Bruno Haible  <bruno@clisp.org>
10319
10320         utimens, futimens, fdutimensat tests: EBADF tests.
10321         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10322
10323         Tests for function fstat().
10324         * modules/fstat-tests: New file.
10325         * tests/test-fstat.c: New file.
10326         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10327
10328 2011-09-20  Bruno Haible  <bruno@clisp.org>
10329
10330         test-ttyname_r tests: EBADF tests.
10331         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10332
10333         Tests for module 'isatty'.
10334         * modules/isatty-tests: New file.
10335         * tests/test-isatty.c: New file.
10336
10337         Tests for module 'write'.
10338         * modules/write-tests: New file.
10339         * tests/test-write.c: New file.
10340
10341         Tests for module 'read'.
10342         * modules/read-tests: New file.
10343         * tests/test-read.c: New file.
10344
10345         pwrite tests: EBADF tests.
10346         * tests/test-pwrite.c (main): Add tests for EBADF.
10347
10348         pread tests: EBADF tests.
10349         * tests/test-pread.c (main): Add tests for EBADF.
10350
10351         lseek tests: EBADF tests.
10352         * tests/test-lseek.c (main): Add more tests for EBADF.
10353
10354         Tests for module 'ftruncate'.
10355         * modules/ftruncate-tests: New file.
10356         * tests/test-ftruncate.sh: New file.
10357         * tests/test-ftruncate.c: New file.
10358
10359         fsync tests: EBADF tests.
10360         * tests/test-fsync.c (main): Add more tests for EBADF.
10361
10362         fdatasync tests: EBADF tests.
10363         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10364
10365         Tests for module 'fchown'.
10366         * modules/fchown-tests: New file.
10367         * tests/test-fchown.c: New file.
10368
10369         Tests for module 'fchmod'.
10370         * modules/fchmod-tests: New file.
10371         * tests/test-fchmod.c: New file.
10372
10373         fchdir tests: EBADF tests.
10374         * tests/test-fchdir.c (main): Add more tests for EBADF.
10375
10376         dup2 tests: EBADF tests.
10377         * tests/test-dup2.c (main): Add more tests for EBADF.
10378
10379         Tests for module 'dup'.
10380         * modules/dup-tests: New file.
10381         * tests/test-dup.c: New file.
10382
10383         Tests for module 'close'.
10384         * modules/close-tests: New file.
10385         * tests/test-close.c: New file.
10386
10387 2011-09-20  Bruno Haible  <bruno@clisp.org>
10388
10389         Tests for module 'shutdown'.
10390         * modules/shutdown-tests: New file.
10391         * tests/test-shutdown.c: New file.
10392
10393         Tests for module 'setsockopt'.
10394         * modules/setsockopt-tests: New file.
10395         * tests/test-setsockopt.c: New file.
10396
10397         Tests for module 'sendto'.
10398         * modules/sendto-tests: New file.
10399         * tests/test-sendto.c: New file.
10400
10401         Tests for module 'send'.
10402         * modules/send-tests: New file.
10403         * tests/test-send.c: New file.
10404
10405         Tests for module 'recvfrom'.
10406         * modules/recvfrom-tests: New file.
10407         * tests/test-recvfrom.c: New file.
10408
10409         Tests for module 'recv'.
10410         * modules/recv-tests: New file.
10411         * tests/test-recv.c: New file.
10412
10413         Tests for module 'listen'.
10414         * modules/listen-tests: New file.
10415         * tests/test-listen.c: New file.
10416
10417         Tests for module 'getsockopt'.
10418         * modules/getsockopt-tests: New file.
10419         * tests/test-getsockopt.c: New file.
10420
10421         Tests for module 'getsockname'.
10422         * modules/getsockname-tests: New file.
10423         * tests/test-getsockname.c: New file.
10424
10425         Tests for module 'getpeername'.
10426         * modules/getpeername-tests: New file.
10427         * tests/test-getpeername.c: New file.
10428
10429         Tests for module 'connect'.
10430         * modules/connect-tests: New file.
10431         * tests/test-connect.c: New file.
10432
10433         Tests for module 'bind'.
10434         * modules/bind-tests: New file.
10435         * tests/test-bind.c: New file.
10436
10437         accept4 tests: Fix for native Windows.
10438         * tests/test-accept4.c: Include sockets.h.
10439         (main): Invoke gl_sockets_startup.
10440         * modules/accept4-tests (Depends-on): Add sockets.
10441
10442         accept tests: Fix for native Windows.
10443         * tests/test-accept.c: Include sockets.h.
10444         (main): Invoke gl_sockets_startup.
10445         * modules/accept-tests (Depends-on): Add sockets.
10446
10447 2011-09-19  Bruno Haible  <bruno@clisp.org>
10448
10449         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10450         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10451         do...while(0).
10452         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10453         Suggested by Paul Eggert.
10454
10455 2011-09-19  Bruno Haible  <bruno@clisp.org>
10456
10457         sched: Ensure pid_t is defined.
10458         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10459         not define pid_t.
10460         * lib/sched.in.h: Include <sys/types.h>.
10461         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10463
10464 2011-09-19  Bruno Haible  <bruno@clisp.org>
10465
10466         msvc-inval: Ensure the entire expansion is a single statement.
10467         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10468         of braces.
10469
10470 2011-09-19  Jim Meyering  <meyering@redhat.com>
10471
10472         tests: use printf, not echo in init.sh's warn_ function
10473         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10474         misbehave when given strings containing a backslash or starting
10475         with e.g., -n.  James Youngman suggested setting IFS.
10476
10477 2011-09-19  Eric Blake  <eblake@redhat.com>
10478
10479         futimens: enhance test
10480         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10481         closed non-negative fd.
10482
10483         date: accept 'hence' as opposite of 'ago'
10484         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10485         * tests/test-parse-datetime.c (main): Enhance test.
10486         Suggested by Jesse Wilson.
10487
10488 2011-09-19  Jim Meyering  <meyering@redhat.com>
10489
10490         getcwd: don't fail in a deep directory on a system without openat
10491         Before this change, getcwd would fail when called from a directory
10492         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10493         the non-openat implementation used "..", "../..", "../../..", etc.
10494         to access ancestor directories.  With too many, that string would
10495         be longer than PATH_MAX.
10496         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10497         using gnulib's openat replacement.
10498         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10499         we're using the replacement function.
10500
10501 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10502
10503         maint.mk: avoid warnings from perl about missing files
10504         * top/maint.mk (def_sym_regex): Ignore files listed in
10505         $(gl_other_headers_) that do not exist, say because a project
10506         does not use a corresponding module.
10507
10508 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10509
10510         stat: use pathmax.h only if needed
10511         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10512         This is better for Emacs, which does not have a mingw port and
10513         therefore can avoid the pathmax module.
10514
10515         utimens: remove dependency on dup2
10516         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10517         to work around the Linux kernel bug.
10518         * modules/utimens (Depends-on): Remove dup2.
10519
10520 2011-09-18  Bruno Haible  <bruno@clisp.org>
10521
10522         inet_ntop, inet_pton: Look for it also in libresolv.
10523         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10524         libnsl, search for it in libresolv.
10525         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10526         Needed on Solaris 7.
10527
10528 2011-09-18  Bruno Haible  <bruno@clisp.org>
10529
10530         accept, accept4 tests: Avoid link error on Solaris.
10531         * modules/accept-tests (Makefile.am): Link test-accept against
10532         $(LIBSOCKET).
10533         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10534         $(LIBSOCKET).
10535
10536         accept4: Avoid link error on Solaris.
10537         * modules/accept4 (Link): New section.
10538
10539         socket functions: Avoid link errors on Solaris.
10540         * modules/accept (Depends-on): Add socketlib.
10541         (Link): New section.
10542         * modules/bind (Depends-on): Add socketlib.
10543         (Link): New section.
10544         * modules/connect (Depends-on): Add socketlib.
10545         (Link): New section.
10546         * modules/getpeername (Depends-on): Add socketlib.
10547         (Link): New section.
10548         * modules/getsockname (Depends-on): Add socketlib.
10549         (Link): New section.
10550         * modules/getsockopt (Depends-on): Add socketlib.
10551         (Link): New section.
10552         * modules/listen (Depends-on): Add socketlib.
10553         (Link): New section.
10554         * modules/recv (Depends-on): Add socketlib.
10555         (Link): New section.
10556         * modules/recvfrom (Depends-on): Add socketlib.
10557         (Link): New section.
10558         * modules/send (Depends-on): Add socketlib.
10559         (Link): New section.
10560         * modules/sendto (Depends-on): Add socketlib.
10561         (Link): New section.
10562         * modules/setsockopt (Depends-on): Add socketlib.
10563         (Link): New section.
10564         * modules/shutdown (Depends-on): Add socketlib.
10565         (Link): New section.
10566         * modules/socket (Depends-on): Add socketlib.
10567         (Link): New section.
10568
10569 2011-09-18  Bruno Haible  <bruno@clisp.org>
10570
10571         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10572         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10573         than 5 seconds.
10574         * modules/ptsname-tests (configure.ac): Test for alarm.
10575
10576 2011-09-18  Bruno Haible  <bruno@clisp.org>
10577
10578         posix_spawn_file_actions_add*: Fix module dependencies.
10579         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10580         posix_spawn_file_actions_init.
10581         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10582         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10583
10584 2011-09-18  Bruno Haible  <bruno@clisp.org>
10585
10586         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10587         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10588         * tests/test-renameat.c (main): Likewise.
10589
10590 2011-09-18  Bruno Haible  <bruno@clisp.org>
10591
10592         Tests for module 'accept4'.
10593         * modules/accept4-tests: New file.
10594         * tests/test-accept4.c: New file.
10595
10596 2011-09-18  Bruno Haible  <bruno@clisp.org>
10597
10598         Tests for module 'accept'.
10599         * modules/accept-tests: New file.
10600         * tests/test-accept.c: New file.
10601
10602 2011-09-18  Bruno Haible  <bruno@clisp.org>
10603
10604         dup2: Support for MSVC.
10605         * lib/dup2.c: Include msvc-inval.h.
10606         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10607         _get_osfhandle calls.
10608         * modules/dup2 (Depends-on): Add msvc-inval.
10609         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10610
10611         New module 'msvc-inval'.
10612         * lib/msvc-inval.h: New file.
10613         * lib/msvc-inval.c: New file.
10614         * m4/msvc-inval.m4: New file.
10615         * modules/msvc-inval: New file.
10616
10617 2011-09-17  Bruno Haible  <bruno@clisp.org>
10618
10619         Tests for module 'pclose'.
10620         * modules/pclose-tests: New file.
10621
10622         New module 'pclose'.
10623         * lib/stdio.in.h (pclose): New declaration.
10624         * lib/pclose.c: New file.
10625         * m4/pclose.m4: New file.
10626         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10627         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10628         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10629         * modules/pclose: New file.
10630         * modules/popen-tests (Depends-on): Add pclose.
10631         * modules/popen-safer-tests (Depends-on): Likewise.
10632         * doc/posix-functions/pclose.texi: Mention the new module.
10633
10634 2011-09-17  Bruno Haible  <bruno@clisp.org>
10635
10636         popen: Support for MSVC.
10637         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10638         * lib/popen.c (popen): Provide alternate definition for native Windows.
10639         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10641         * modules/popen (Depends-on, configure.ac): Update condition.
10642         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10643         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10644         fixed.
10645
10646 2011-09-17  Bruno Haible  <bruno@clisp.org>
10647
10648         isnanl, isnand, isnanf: Work around MSVC bug.
10649         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10650
10651 2011-09-17  Bruno Haible  <bruno@clisp.org>
10652
10653         sys_socket tests: Fix recent mistake.
10654         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10655
10656 2011-09-17  Bruno Haible  <bruno@clisp.org>
10657
10658         putenv: Support for MSVC.
10659         * modules/putenv (Depends-on): Add environ.
10660         * lib/putenv.c (environ): Disable declaration.
10661         * lib/unistd.in.h: Update comment.
10662
10663 2011-09-17  Bruno Haible  <bruno@clisp.org>
10664
10665         math: Avoid macro redefinition warnings on MSVC.
10666         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10667         Undefine before redefining.
10668
10669 2011-09-17  Bruno Haible  <bruno@clisp.org>
10670
10671         doc: Mention functions which are declared as macros.
10672         * doc/posix-functions/*[fl].texi: Mention that some functions are
10673         defined as macros with arguments only.
10674
10675 2011-09-17  Bruno Haible  <bruno@clisp.org>
10676
10677         Add dependencies to new dirent related modules.
10678         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10679         * modules/fts (Depends-on): Likewise.
10680         * modules/glob (Depends-on): Likewise.
10681         * modules/savedir (Depends-on): Likewise.
10682         * modules/scandir (Depends-on): Likewise.
10683         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10684         * modules/fdopendir (Depends-on): Add opendir.
10685
10686 2011-09-17  Bruno Haible  <bruno@clisp.org>
10687
10688         inet_pton: Support for MSVC on Windows Vista or newer.
10689         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10690         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10691         HAVE_DECL_INET_PTON is defined.
10692         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10693         On platforms with <winsock2.h>, test whether inet_pton is declared in
10694         <ws2tcpip.h>. If so, arrange to replace it.
10695         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10696         REPLACE_INET_PTON.
10697         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10698         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10699         (Depends-on, configure.ac): Update condition.
10700         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10701
10702 2011-09-17  Bruno Haible  <bruno@clisp.org>
10703
10704         inet_ntop: Support for MSVC on Windows Vista or newer.
10705         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10706         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10707         HAVE_DECL_INET_NTOP is defined.
10708         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10709         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10710         <ws2tcpip.h>. If so, arrange to replace it.
10711         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10712         REPLACE_INET_NTOP.
10713         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10714         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10715         (Depends-on, configure.ac): Update condition.
10716         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10717
10718 2011-09-16  Eric Blake  <eblake@redhat.com>
10719
10720         test-fsync: yet another enhancement
10721         * tests/test-fsync.c (main): Also test behavior on read-only text
10722         file.
10723
10724 2011-09-16  Bruno Haible  <bruno@clisp.org>
10725
10726         Enhance fsync, fdatasync tests.
10727         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10728         * tests/test-fdatasync.c (main): Likewise.
10729
10730 2011-09-16  Bruno Haible  <bruno@clisp.org>
10731
10732         Support for MSVC compiler: Ensure mode_t gets defined.
10733         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10734         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10736         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10737         * tests/test-fcntl-h.c: Check that mode_t is defined.
10738         * tests/test-sys_stat.c: Likewise.
10739         * tests/test-sys_types.c: Likewise.
10740         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10741         * doc/posix-headers/sys_stat.texi: Likewise.
10742         * doc/posix-headers/sys_types.texi: Likewise.
10743
10744 2011-09-16  Bruno Haible  <bruno@clisp.org>
10745
10746         sys_stat: Support for MSVC.
10747         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10748         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10749         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10750         MSVC.
10751
10752 2011-09-16  Bruno Haible  <bruno@clisp.org>
10753
10754         Support for MSVC compiler: Ensure off_t gets defined.
10755         * lib/unistd.in.h: Include <sys/types.h>.
10756         * tests/test-fcntl-h.c: Check that off_t is defined.
10757         * tests/test-sys_stat.c: Likewise.
10758         * tests/test-sys_types.c: Likewise.
10759
10760 2011-09-16  Eric Blake  <eblake@redhat.com>
10761
10762         fdatasync: port to Solaris
10763         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10764         * modules/fdatasync (Link): Document it.
10765         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10766
10767         fdatasync: port to MacOS X 10.7
10768         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10769         declared.
10770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10771         * modules/unistd (Makefile.am): Substitute it.
10772         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10773         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10774
10775         fdatasync: minor improvements
10776         * modules/fdatasync (Depends-on): Add condition for fsync.
10777         * lib/fdatasync.c (fdatasync): Add comment.
10778         * tests/test-unistd-c++.cc: Test fdatasync.
10779
10780         unistd: update refs to newer POSIX
10781         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10782         Suggested by Bruno Haible.
10783
10784         fdatasync: new module
10785         * modules/fsync (Description): Document difference to fdatasync.
10786         * modules/fdatasync: New module.
10787         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10788         * lib/fdatasync.c (fdatasync): Likewise.
10789         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10790         defaults.
10791         * modules/unistd (Makefile.am): Set witnesses.
10792         * lib/unistd.in.h (fdatasync): Declare.
10793         * MODULES.html.sh: Document it.
10794         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10795         * modules/fdatasync-tests: New test.
10796         * tests/test-fdatasync.c: Likewise.
10797
10798 2011-09-16  Eric Blake  <eblake@redhat.com>
10799
10800         test-fsync: enhance tests
10801         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10802         * tests/test-fsync.c (main): Enhance test.
10803
10804 2011-09-15  Bruno Haible  <bruno@clisp.org>
10805
10806         Support for MSVC compiler: Ensure ssize_t gets defined.
10807         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10808         * doc/posix-headers/stdio.texi: Likewise.
10809         * modules/stdio (Depends-on): Add ssize_t.
10810         * modules/sys_socket (Depends-on): Likewise.
10811         * modules/sys_types (Depends-on): Likewise.
10812         * modules/sys_uio (Depends-on): Likewise.
10813         * modules/unistd (Depends-on): Likewise.
10814         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10815         * tests/test-sys_types.c: Check that ssize_t is defined.
10816
10817 2011-09-14  Bruno Haible  <bruno@clisp.org>
10818
10819         Avoid using #, the m4 comment starter character, near brackets.
10820         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10821         delimiter character in sed expressions.
10822         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10823         Suggested by Eric Blake.
10824
10825         Properly quote AC_CHECK_DECLS' 4th argument.
10826         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10827         argument.
10828         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10829         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10830         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10831         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10832         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10833         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10835         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10836         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10838         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10839         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10840         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10841         * m4/isinf.m4 (gl_ISINF): Likewise.
10842         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10843         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10844         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10845         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10846         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10847         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10848         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10849         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10850         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10851         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10852         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10853         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10855         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10857         Reported by Eric Blake.
10858
10859         Properly quote AC_CHECK_DECL's 4th argument.
10860         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10861         argument.
10862         * m4/argp.m4 (gl_ARGP): Likewise.
10863         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10864         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10865         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10866         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10867         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10868         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10870         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10871         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10872         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10873         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10874         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10875         Reported by Eric Blake.
10876
10877 2011-09-14  Eric Blake  <eblake@redhat.com>
10878
10879         opendir: avoid compile warning
10880         * lib/opendir.c (includes): Always include errno.h.
10881         Reported by Tatsuro MATSUOKA.
10882
10883 2011-09-14  Jim Meyering  <meyering@redhat.com>
10884
10885         maint.mk: sc_tight_scope: propagate failure from sub-make
10886         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10887         Reported by Martin von Gagern.
10888
10889 2011-09-13  Bruno Haible  <bruno@clisp.org>
10890
10891         tempname: Support for MSVC.
10892         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10893         MSVC.
10894         * modules/tempname (Depends-on): Add fcntl-h.
10895
10896 2011-09-13  Bruno Haible  <bruno@clisp.org>
10897
10898         sys_time: Support for MSVC.
10899         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10900         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10901         include <winsock2.h>.
10902         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10903         function declarations that collide with POSIX.
10904         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10905         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10906
10907 2011-09-13  Bruno Haible  <bruno@clisp.org>
10908
10909         stat: Support for MSVC.
10910         * lib/stat.c: Include pathmax.h.
10911         * modules/stat (Depends-on): Add pathmax.
10912
10913         pathmax: Support for native Windows.
10914         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10915
10916 2011-09-12  Bruno Haible  <bruno@clisp.org>
10917
10918         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10919         * lib/dirent.in.h (struct dirent): New type.
10920         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10921         DT_WHT): New macros.
10922         (DIR): New type.
10923         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10924         (readdir, rewinddir): New declarations.
10925         * lib/dirent-private.h: New file.
10926         * lib/opendir.c: New file.
10927         * lib/readdir.c: New file.
10928         * lib/rewinddir.c: New file.
10929         * lib/closedir.c: New file.
10930         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10931         * m4/opendir.m4: New file.
10932         * m4/readdir.m4: New file.
10933         * m4/rewinddir.m4: New file.
10934         * m4/closedir.m4: New file.
10935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10936         REPLACE_CLOSEDIR here.
10937         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10938         readdir, rewinddir are declared.
10939         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10940         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10941         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10942         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10943         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10944         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10945         * modules/opendir: New file.
10946         * modules/readdir: New file.
10947         * modules/rewinddir: New file.
10948         * modules/closedir: New file.
10949         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10950         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10951         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10952         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10953         * NEWS: Mention the 'fchdir' change.
10954
10955 2011-09-11  Bruno Haible  <bruno@clisp.org>
10956
10957         asm-underscore.m4: Support for MSVC.
10958         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10959         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10960
10961 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10962
10963         Doc about crypt functions.
10964         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10965         needing for _GNU_SOURCE to get crypt.
10966         * doc/posix-functions/encrypt.texi: Likewise.
10967         * doc/posix-functions/setkey.texi: Likewise.
10968
10969 2011-09-11  Bruno Haible  <bruno@clisp.org>
10970
10971         doc: Update regarding MSVC 9.
10972         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10973         tested".
10974         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10975         * doc/posix-headers/*.texi: Likewise.
10976         * doc/pastposix-functions/*.texi: Likewise.
10977         * doc/glibc-functions/*.texi: Likewise.
10978         * doc/glibc-headers/*.texi: Likewise.
10979
10980 2011-09-11  Bruno Haible  <bruno@clisp.org>
10981
10982         unistd et al.: Don't assume <unistd.h> exists.
10983         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10984         does not exist.
10985         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10986         exist. But include <stdlib.h>.
10987         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10988         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10989         symlink() does not exist.
10990         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10991         include <io.h> instead.
10992         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10993         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10994         include <direct.h> instead.
10995         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10996         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10997         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10998         <io.h> instead.
10999         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11000         correctly if the system does not have hard links.
11001         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11002         <direct.h> instead.
11003         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11004         it when looking for function declarations.
11005         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11006         <direct.h> and <io.h> instead.
11007         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11008
11009 2011-09-11  Bruno Haible  <bruno@clisp.org>
11010
11011         strcase: Support for MSVC.
11012         * modules/strcase (Status, Notice): Remove obsoletion mark.
11013         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11014         * doc/posix-functions/strncasecmp.texi: Likewise.
11015
11016         strings: Don't assume <strings.h> exists.
11017         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11018         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11019         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11020         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11021
11022 2011-09-11  Bruno Haible  <bruno@clisp.org>
11023
11024         dirent: Don't assume <dirent.h> exists.
11025         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11026         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11027         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11028         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11029
11030 2011-09-11  Bruno Haible  <bruno@clisp.org>
11031
11032         Fix wint_t on MSVC.
11033         * lib/wchar.in.h (wint_t): On MSVC, override it.
11034         * lib/wctype.in.h (wint_t): Likewise.
11035         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11036         MSVC.
11037         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11038         * doc/posix-headers/wctype.texi: Likewise.
11039
11040 2011-09-11  Bruno Haible  <bruno@clisp.org>
11041
11042         sys_types: Fix typo.
11043         * lib/sys_types.in.h: Fix typo in comment.
11044         Reported by Paul Eggert.
11045
11046         Support for MSVC compiler: Ensure size_t gets defined.
11047         * modules/strings (Depends-on): Add 'sys_types'.
11048         * modules/sys_uio (Depends-on): Likewise.
11049         * lib/sys_uio.in.h: Update comment.
11050
11051         C++ tests for module 'sys_types'.
11052         * modules/sys_types-c++-tests: New file.
11053         * tests/test-sys_types-c++.cc: New file.
11054
11055         Tests for module 'sys_types'.
11056         * modules/sys_types-tests: New file.
11057         * tests/test-sys_types.c: New file.
11058
11059         New module 'sys_types'.
11060         * lib/sys_types.in.h: New file.
11061         * m4/sys_types_h.m4: New file.
11062         * modules/sys_types: New file.
11063         * doc/posix-headers/sys_types.texi: Mention the new module and the
11064         size_t problem on MSVC 9.
11065
11066 2011-09-11  Bruno Haible  <bruno@clisp.org>
11067
11068         Support for MSVC compiler: Avoid division by a literal 0.
11069         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11070         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11071         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11072         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11073         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11074         * tests/infinity.h: New file.
11075         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11076         on MSVC.
11077         * tests/test-ceilf1.c: Include infinity.h.
11078         (main): Use Infinityf.
11079         * tests/test-ceil1.c: Include infinity.h.
11080         (main): Use Infinityd.
11081         * tests/test-ceill.c: Include infinity.h.
11082         (main): Use Infinityl.
11083         * tests/test-dprintf-posix.c: Include infinity.h.
11084         (test_function): Use Infinityd.
11085         * tests/test-floorf1.c: Include infinity.h.
11086         (main): Use Infinityf.
11087         * tests/test-floor1.c: Include infinity.h.
11088         (main): Use Infinityd.
11089         * tests/test-floorl.c: Include infinity.h.
11090         (main): Use Infinityl.
11091         * tests/test-fprintf-posix.c: Include infinity.h.
11092         (test_function): Use Infinityd.
11093         * tests/test-frexp.c: Include infinity.h.
11094         (main): Use Infinityd.
11095         * tests/test-frexpl.c: Include infinity.h.
11096         (main): Use Infinityl.
11097         * tests/test-isfinite.c: Include infinity.h.
11098         (test_isfinitef): Use Infinityf.
11099         (test_isfinited): Use Infinityd.
11100         (test_isfinitel): Use Infinityl.
11101         * tests/test-isinf.c: Include infinity.h.
11102         (test_isinff): Use Infinityf.
11103         (test_isinfd): Use Infinityd.
11104         (test_isinfl): Use Infinityl.
11105         * tests/test-isnan.c: Include infinity.h.
11106         (test_float): Use Infinityf.
11107         (test_double): Use Infinityd.
11108         (test_long_double): Use Infinityl.
11109         * tests/test-isnanf.h: Include infinity.h.
11110         (main): Use Infinityf.
11111         * tests/test-isnand.h: Include infinity.h.
11112         (main): Use Infinityd.
11113         * tests/test-isnanl.h: Include infinity.h.
11114         (main): Use Infinityl.
11115         * tests/test-ldexpl.c: Include infinity.h.
11116         (main): Use Infinityl.
11117         * tests/test-printf-posix.h: Include infinity.h.
11118         (test_function): Use Infinityd.
11119         * tests/test-roundf1.c: Include infinity.h.
11120         (main): Use Infinityf.
11121         * tests/test-round1.c: Include infinity.h.
11122         (main): Use Infinityd.
11123         * tests/test-roundl.c: Include infinity.h.
11124         (main): Use Infinityl.
11125         * tests/test-signbit.c: Include infinity.h.
11126         (test_signbitf): Use Infinityf.
11127         (test_signbitd): Use Infinityd.
11128         (test_signbitl): Use Infinityl.
11129         * tests/test-snprintf-posix.h: Include infinity.h.
11130         (test_function): Use Infinityd, Infinityl.
11131         * tests/test-sprintf-posix.h: Include infinity.h.
11132         (test_function): Use Infinityd, Infinityl.
11133         * tests/test-truncf1.c: Include infinity.h.
11134         (main): Use Infinityf.
11135         * tests/test-trunc1.c: Include infinity.h.
11136         (main): Use Infinityd.
11137         * tests/test-truncl.c: Include infinity.h.
11138         (main): Use Infinityl.
11139         * tests/test-vasnprintf-posix.c: Include infinity.h.
11140         (test_function): Use Infinityd, Infinityl.
11141         * tests/test-vasprintf-posix.c: Include infinity.h.
11142         (test_function): Use Infinityd, Infinityl.
11143         * modules/ceilf-tests (Files): Add tests/infinity.h.
11144         * modules/ceil-tests (Files): Likewise.
11145         * modules/ceill-tests (Files): Likewise.
11146         * modules/dprintf-posix-tests (Files): Likewise.
11147         * modules/floorf-tests (Files): Likewise.
11148         * modules/floor-tests (Files): Likewise.
11149         * modules/floorl-tests (Files): Likewise.
11150         * modules/fprintf-posix-tests (Files): Likewise.
11151         * modules/frexp-tests (Files): Likewise.
11152         * modules/frexp-nolibm-tests (Files): Likewise.
11153         * modules/frexpl-tests (Files): Likewise.
11154         * modules/frexpl-nolibm-tests (Files): Likewise.
11155         * modules/isfinite-tests (Files): Likewise.
11156         * modules/isinf-tests (Files): Likewise.
11157         * modules/isnan-tests (Files): Likewise.
11158         * modules/isnanf-tests (Files): Likewise.
11159         * modules/isnanf-nolibm-tests (Files): Likewise.
11160         * modules/isnand-tests (Files): Likewise.
11161         * modules/isnand-nolibm-tests (Files): Likewise.
11162         * modules/isnanl-tests (Files): Likewise.
11163         * modules/isnanl-nolibm-tests (Files): Likewise.
11164         * modules/ldexpl-tests (Files): Likewise.
11165         * modules/printf-posix-tests (Files): Likewise.
11166         * modules/roundf-tests (Files): Likewise.
11167         * modules/round-tests (Files): Likewise.
11168         * modules/roundl-tests (Files): Likewise.
11169         * modules/signbit-tests (Files): Likewise.
11170         * modules/snprintf-posix-tests (Files): Likewise.
11171         * modules/sprintf-posix-tests (Files): Likewise.
11172         * modules/truncf-tests (Files): Likewise.
11173         * modules/trunc-tests (Files): Likewise.
11174         * modules/truncl-tests (Files): Likewise.
11175         * modules/vasnprintf-posix-tests (Files): Likewise.
11176         * modules/vasprintf-posix-tests (Files): Likewise.
11177         * modules/vdprintf-posix-tests (Files): Likewise.
11178         * modules/vfprintf-posix-tests (Files): Likewise.
11179         * modules/vprintf-posix-tests (Files): Likewise.
11180         * modules/vsnprintf-posix-tests (Files): Likewise.
11181         * modules/vsprintf-posix-tests (Files): Likewise.
11182         * modules/xprintf-posix-tests (Files): Likewise.
11183
11184 2011-09-11  Bruno Haible  <bruno@clisp.org>
11185
11186         Ensure pid_t gets defined.
11187         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11188         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11189         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11190         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11191         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11192         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11193         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11194         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11195         * tests/test-fcntl-h.c: Check that pid_t is defined.
11196         * tests/test-sched.c: Likewise.
11197         * tests/test-termios.c: Likewise.
11198         * tests/test-time.c: Likewise.
11199         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11200         * doc/posix-headers/signal.texi: Likewise.
11201         * doc/posix-headers/sys_types.texi: Likewise.
11202         * doc/posix-headers/time.texi: Likewise.
11203
11204 2011-09-11  Bruno Haible  <bruno@clisp.org>
11205
11206         acl: Fix compilation on Solaris 10 (older version).
11207         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11208         of ACE_EVERYONE.
11209         * lib/set-mode-acl.c (qset_acl): Likewise.
11210         Reported by Christian Jullien <eligis@orange.fr>.
11211
11212 2011-09-10  Bruno Haible  <bruno@clisp.org>
11213
11214         iconv, unsetenv: Add support for MSVC compiler.
11215         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11216         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11217
11218 2011-09-10  Bruno Haible  <bruno@clisp.org>
11219
11220         *printf: Add support for MSVC compiler.
11221         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11222         handles the exception caused by the %n directive. When cross-compiling,
11223         guess no on native Windows.
11224         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11225         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11226         emulate it through vsnprintf.
11227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11228         * doc/posix-functions/dprintf.texi: Update documentation regarding
11229         MSVC 9.
11230         * doc/posix-functions/fprintf.texi: Likewise.
11231         * doc/posix-functions/printf.texi: Likewise.
11232         * doc/posix-functions/snprintf.texi: Likewise.
11233         * doc/posix-functions/sprintf.texi: Likewise.
11234         * doc/posix-functions/swprintf.texi: Likewise.
11235         * doc/posix-functions/vdprintf.texi: Likewise.
11236         * doc/posix-functions/vfprintf.texi: Likewise.
11237         * doc/posix-functions/vprintf.texi: Likewise.
11238         * doc/posix-functions/vsnprintf.texi: Likewise.
11239         * doc/posix-functions/vsprintf.texi: Likewise.
11240         * doc/glibc-functions/asprintf.texi: Likewise.
11241         * doc/glibc-functions/obstack_printf.texi: Likewise.
11242         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11243         * doc/glibc-functions/vasprintf.texi: Likewise.
11244
11245 2011-09-10  Bruno Haible  <bruno@clisp.org>
11246
11247         nocrash: Add support for native Windows.
11248         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11249
11250 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11251             Bruno Haible  <bruno@clisp.org>
11252
11253         absolute-header, include-next: Add support for MSVC compiler.
11254         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11255         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11256         directory separator in #line directives.
11257         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11258         recognize also backslash as directory separator in #line directives.
11259
11260 2011-09-08  Jim Meyering  <meyering@redhat.com>
11261
11262         maint.mk: mark the post-release commit log with "maint: " prefix
11263         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11264         one-line commit-log summary.
11265
11266 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11267             Bruno Haible  <bruno@clisp.org>
11268
11269         Doc about crypt functions.
11270         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11271         systems.
11272         * doc/posix-functions/encrypt.texi: Likewise.
11273         * doc/posix-functions/setkey.texi: Likewise.
11274
11275 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11276
11277         * lib/gc.h: Fix copyright header.
11278
11279 2011-09-07  Bruno Haible  <bruno@clisp.org>
11280
11281         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11282         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11283         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11284
11285 2011-09-07  Bruno Haible  <bruno@clisp.org>
11286
11287         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11288         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11289         * lib/freopen.c: Likewise.
11290         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11291         * lib/lstat.c: Likewise.
11292         * lib/stat.c: Likewise.
11293         * lib/open.c: Use different syntax for include of <fcntl.h>.
11294         * lib/openat.c: Include fcntl.h again, explicitly.
11295
11296 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11297
11298         parse-datetime: document the newly accepted format
11299         * doc/parse-datetime.texi (Combined date and time of day items):
11300         New section.
11301
11302 2011-09-06  Bruno Haible  <bruno@clisp.org>
11303
11304         acl: Fix a test failure on newer Solaris 10 with ZFS.
11305         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11306         ENOSYS as no ACL.
11307         Reported by Jim Meyering.
11308
11309 2011-09-06  Bruno Haible  <bruno@clisp.org>
11310
11311         acl: Update for AIX >= 5.3 with NFS.
11312         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11313         ENOSYS as no ACL.
11314
11315         acl: Fix a test failure on AIX >= 5.3 with NFS.
11316         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11317         as no ACL.
11318
11319 2011-09-06  Bruno Haible  <bruno@clisp.org>
11320
11321         acl: Fix a test failure on IRIX 6.5 with NFS.
11322         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11323         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11324         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11325         * lib/copy-acl.c (qcopy_acl): Likewise.
11326
11327 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11328
11329         openat: port to AIX 7.1 with large files
11330         AIX 7.1 does a "#define openat open64at" if large files are in use,
11331         so we can't simply #undef openat.  Use the orig_openat trick (similar
11332         to orig_open in lib/open.c) to work around the problem.  Problem
11333         reported by Kevin Brott for GNU tar, in the thread containing
11334         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11335         * lib/openat.c (__need_system_fcntl_h): Define first.
11336         Include <fcntl.h> and <sys/types.h> before undefining.
11337         (orig_openat) [HAVE_OPENAT]: New inline function.
11338         (openat) [HAVE_OPENAT]: Do not undef.
11339         (rpl_openat): Use orig_openat, not openat.
11340
11341 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11342             Bruno Haible  <bruno@clisp.org>
11343
11344         acl: Avoid errors on NonStop Kernel.
11345         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11346         ENOTSUP errors.
11347
11348 2011-09-05  Bruno Haible  <bruno@clisp.org>
11349
11350         acl: Clean up Solaris code.
11351         * lib/acl-internal.h: Remove no-op #if.
11352         * lib/file-has-acl.c: Likewise.
11353         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11354         * lib/copy-acl.c (qcopy_acl): Likewise.
11355
11356 2011-09-05  Bruno Haible  <bruno@clisp.org>
11357
11358         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11359         binaries built on the original Solaris 10.
11360         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11361         trivial.
11362
11363 2011-09-05  Bruno Haible  <bruno@clisp.org>
11364
11365         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11366         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11367         10.
11368         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11369         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11370         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11371         instead of acl_get, facl_get, acl_set, facl_set.
11372
11373 2011-09-05  Bruno Haible  <bruno@clisp.org>
11374
11375         copy-file: Try unit tests on more file systems.
11376         * tests/test-copy-file-1.sh: New file.
11377         * tests/test-copy-file-2.sh: New file.
11378         * modules/copy-file-tests (Files): Add them.
11379         (Makefile.am): Add them to TESTS.
11380
11381         acl: Try unit tests on more file systems.
11382         * tests/test-file-has-acl-1.sh: New file.
11383         * tests/test-file-has-acl-2.sh: New file.
11384         * tests/test-set-mode-acl-1.sh: New file.
11385         * tests/test-set-mode-acl-2.sh: New file.
11386         * tests/test-copy-acl-1.sh: New file.
11387         * tests/test-copy-acl-2.sh: New file.
11388         * modules/acl-tests (Files): Add them.
11389         (Makefile.am): Add them to TESTS.
11390
11391 2011-09-04  Bruno Haible  <bruno@clisp.org>
11392
11393         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11394         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11395         10.
11396         (OLD_ALLOW, OLD_DENY): New macros.
11397         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11398         ACE_ACCESS_ALLOWED_ACE_TYPE.
11399         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11400         ACE_ACCESS_DENIED_ACE_TYPE.
11401         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11402         (NEW_ACE_EXECUTE): Fix value.
11403         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11404         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11405         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11406         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11407         NEW_ACE_SYNCHRONIZE): New macros.
11408         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11409         instead of acl_fromtext, acl_set, facl_set.
11410         Fixes a coreutils/tests/cp/perm failure.
11411
11412 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11413
11414         openat: test for fstatat (..., 0) bug
11415         Further testing with tar suggests that fstatat (..., 0)
11416         does not work in general, on AIX 7.1; see
11417         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11418         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11419         replacement fstatat (which is what older AIX releases were using
11420         anyway).
11421         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11422         use is now changed to orig_fstatat.  This was probably the right
11423         thing to do anyway.
11424         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11425         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11426         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11427         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11428         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11429         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11430         if the bug is found.
11431
11432         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11433         This tests for another fstatat bug on AIX 7.1:
11434         fstatat (AT_FDCWD, ..., 0) does not work.  See
11435         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11436         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11437         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11438         (rpl_fstatat): Adjust so that it works around either (or both)
11439         bugs if present.
11440         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11441
11442 2011-09-03  Karl Berry  <karl@gnu.org>
11443
11444         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11445         in index entries.
11446
11447 2011-09-02  Bruno Haible  <bruno@clisp.org>
11448
11449         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11450         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11451         values of AR, ARFLAGS, RANLIB.
11452         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11453
11454 2011-09-02  Bruno Haible  <bruno@clisp.org>
11455
11456         Find 'ar' program that fits with --host argument.
11457         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11458
11459 2011-09-02  Bruno Haible  <bruno@clisp.org>
11460
11461         tests: init.sh: Support any non-GNU diff.
11462         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11463         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11464         Solaris 8.
11465
11466 2011-09-02  Bruno Haible  <bruno@clisp.org>
11467
11468         tests: init.sh: work also with any non-GNU diff that supports -u
11469         * tests/init.sh: Relax check for diff -u support.
11470         Rather than checking for GNU diff via --version, simply check
11471         for support for -u itself.  Useful at least on OpenBSD 4.9,
11472         AIX 7.1, IRIX 6.5, and Solaris 10.
11473
11474 2011-09-01  Bruno Haible  <bruno@clisp.org>
11475
11476         strtoimax, strtoumax: Document problem on HP-UX 11.
11477         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11478         * doc/posix-functions/strtoumax.texi: Likewise.
11479
11480 2011-09-01  Bruno Haible  <bruno@clisp.org>
11481
11482         strtoumax: Avoid link error on OSF/1 with DTK cc.
11483         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11484         defined as a function.
11485         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11486         strtoumax is defined, not whether it is declared.
11487
11488 2011-09-01  Bruno Haible  <bruno@clisp.org>
11489
11490         strtoimax: Avoid link error on OSF/1 with DTK cc.
11491         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11492         defined as a function.
11493         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11494         strtoimax is defined, not whether it is declared.
11495
11496 2011-09-01  Bruno Haible  <bruno@clisp.org>
11497
11498         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11499         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11500         as a function.
11501         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11502         whether it is declared.
11503
11504 2011-09-01  Bruno Haible  <bruno@clisp.org>
11505
11506         imaxabs: Avoid link error on OSF/1 with DTK cc.
11507         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11508         as a function.
11509         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11510         whether it is declared.
11511
11512 2011-09-01  Bruno Haible  <bruno@clisp.org>
11513
11514         Tests for module 'strtoumax'.
11515         * modules/strtoumax-tests: New file.
11516         * tests/test-strtoumax.c: New file.
11517
11518         Tests for module 'strtoimax'.
11519         * modules/strtoimax-tests: New file.
11520         * tests/test-strtoimax.c: New file.
11521
11522         Tests for module 'imaxdiv'.
11523         * modules/imaxdiv-tests: New file.
11524         * tests/test-imaxdiv.c: New file.
11525
11526         Tests for module 'imaxabs'.
11527         * modules/imaxabs-tests: New file.
11528         * tests/test-imaxabs.c: New file.
11529
11530 2011-09-01  Bruno Haible  <bruno@clisp.org>
11531
11532         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11533         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11534         pthread_create.
11535
11536 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11537
11538         openat: work around AIX 7.1 fstatat issue
11539         This should fix the problem that was not properly fixed
11540         in the previous change, dated 2011-08-30.
11541         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11542         __need_system_stat_h defined.
11543         (orig_fstatat) [HAVE_FSTATAT]: New function.
11544         (rpl_fstatat): Go back to the old way of doing things,
11545         except call orig_fstatat instead of fstatat.
11546         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11547         Remove unnecessary check whether fstatat fills in st_size etc.
11548
11549 2011-09-01  Bruno Haible  <bruno@clisp.org>
11550
11551         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11552         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11553         just include the system's header.
11554
11555 2011-08-31  Jim Meyering  <meyering@redhat.com>
11556
11557         tests: avoid spurious assertion failure in test-float.c on ppc64
11558         * tests/test-float.c (test_long_double): Comment out an assertion,
11559         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11560         with gcc-4.4.4.
11561
11562         maint: indent with spaces, not TABs
11563         I need to get in the habit of running gnulib's "make check".
11564         Both of these would have been caught.
11565         * m4/largefile.m4: Indent with spaces, not TABs.
11566         * lib/parse-datetime.y (iso_8601_time): Likewise.
11567         Spotted by Pádraig Brady.
11568
11569         test-parse-datetime.c: accommodate a relatively strict gcc warning
11570         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11571         to avoid a warning from gcc's -Werror=missing-declarations.
11572         Insert a few spaces-before-funcall-parenthesis.
11573
11574 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11575
11576         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11577         The parser now accepts ISO 8601 date-time strings with "T" as the
11578         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11579         with a space between the date and time strings.  Now it also parses
11580         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11581         variants like "2004-02-29T16:21:42.333-07:00"
11582         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11583         of day representation using the 'T' separator character.
11584         * doc/parse-datetime.texi (General date syntax): replace use of
11585         deprecated --iso-8601 option with --rfc-3339 in example of date
11586         command output formats that can be parsed.
11587         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11588         lib/parse-datetime.y.
11589         (gmt_offset): New function.
11590         (main): Add additional test cases to validate ISO8601 extended
11591         date and time of day parsing.
11592
11593 2011-08-31  Bruno Haible  <bruno@clisp.org>
11594
11595         freopen: Documentation.
11596         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11597         name.
11598         Reported by Claudio Bley <claudio.bley@gmail.com>.
11599
11600 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11601
11602         freopen: Don't crash if the filename argument is NULL.
11603         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11604         NULL.
11605
11606 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11607
11608         openat: work around AIX 7.1 fstatat bug
11609         Problem reported by Kevin Brott for GNU tar, in the thread containing
11610         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11611         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11612         FSTATAT_ST_SIZE_ETC_BROKEN.
11613         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11614         rpl_fstatat.
11615         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11616         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11617         AC_CHECK_FUNCS_ONCE for fstatat.
11618         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11619         fchmodat, mkdirat, openat and unlinkat.
11620
11621 2011-08-30  Bruno Haible  <bruno@clisp.org>
11622
11623         Avoid endless recursions if config.h includes some header files.
11624         * lib/fopen.c (__need_FILE): Define already before including config.h.
11625         * lib/freopen.c (__need_FILE): Likewise.
11626         * lib/open.c (__need_system_fcntl_h): Likewise.
11627         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11628         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11629         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11630
11631 2011-08-25  Karl Berry  <karl@gnu.org>
11632
11633         * config/srclist.txt (ylwrap): new try.
11634         * build-aux/ylwrap: new file.
11635
11636 2011-08-23  Bruno Haible  <bruno@clisp.org>
11637
11638         tmpdir: Use a good default directory on native Windows.
11639         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11640         (P_tmpdir): Default to _P_tmpdir on native Windows.
11641         (path_search): On native Windows, try the value returned by GetTempPath
11642         before trying P_tmpdir.
11643         * modules/tmpdir (Depends-on): Add pathmax.
11644         Suggested by John Darrington <john@darrington.wattle.id.au>.
11645
11646 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11647
11648         doc: fix typo in README-release
11649         * top/README-release: Capitalize first word of a sentence.
11650
11651 2011-08-19  Jim Meyering  <meyering@redhat.com>
11652
11653         fts: do not exhaust memory when processing million-entry directories
11654         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11655         directory would require about 256*N bytes of memory.  Thus, it was
11656         easy to construct a directory too large to be processed by any of
11657         those tools.  With this change, fts' maximum memory utilization is
11658         now limited to around 30MB.
11659         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11660         (fts_read): When we've processed the final entry (i.e., when
11661         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11662         using the parent entry to read any remaining entries.  Dispatch
11663         depending on what fts_build returns:
11664         - NULL+stop, aka failure: stop
11665         - NULL otherwise: move up in the dir hierarchy
11666         - non-NULL: handle this new entry
11667         (fts_build): Declare and use new local, continue_readdir.
11668         Prepare to be called from fts_read, when the entries
11669         from a partially-read directory have just been exhausted.
11670         In that case, we'll skip the opendir and instead use the parent's
11671         fts_dirp and derive dir_fd from that.
11672         Finally, in the readdir loop, if we read max_entries entries,
11673         exit the loop ensuring *not* to call closedir.  This is required
11674         so that fts_dirp can be reused on a subsequent call.
11675         Prompted by Ben England's report of memory exhaustion in find
11676         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11677
11678         maint: fts: move decl of `dp' down into while loop; split a long line
11679         * lib/fts.c (fts_build): No semantic change.
11680
11681         fts: add/use new struct member, fts_dirp
11682         We are about to use this to manage any directory with
11683         too many entries to read all of them into memory at once.
11684         To do that, we'll need to save the DIR* pointer in each
11685         affected FTSENT struct.
11686         * lib/fts_.h: Include <dirent.h>.
11687         (struct FTSENT) [fts_dirp]: New member.
11688         * lib/fts.c (closedir_and_clear): Define.
11689         Use it in place of closedir so that we are sure to
11690         clear the new fts_dirp member when done with it.
11691         (fts_alloc): Initialize the new member.
11692         (fts_lfree): Free, if needed.
11693
11694         maint: fts: give __opendir2 a new parameter and rename
11695         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11696         than surreptitiously using sole caller's "dir_fd".
11697         (fts_opendir): Rename from __opendir2.
11698
11699         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11700         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11701
11702         maint: fts.c: correct off-by-one indentation
11703         * lib/fts.c (fts_build): Correct indentation, change style
11704         of a couple of block comments, and bracing style.
11705
11706         maint: fts.c: move __opendir2 #define "up" out of function body
11707         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11708
11709         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11710         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11711         out for a long time and besides was useful only on BSD systems.
11712
11713 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11714
11715         regex: port to Stratus OpenVOS
11716         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11717         define to empty, rather than attempting nonportable optimizations.
11718         Problem reported by Paul Green in:
11719         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11720         and fix suggested by Eric Blake in:
11721         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11722
11723 2011-08-17  Eric Blake  <eblake@redhat.com>
11724
11725         getcwd: fix test failures on mingw
11726         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11727         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11728         test if long directory cannot be created, and allow mingw errno.
11729
11730         getcwd-lgpl: fix m4 to match relaxed test for BSD
11731         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11732         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11733         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11734         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11735         signature problem.
11736
11737         getcwd: fix compilation on mingw64
11738         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11739         getcwd.
11740         Reported by Marc-André Lureau.
11741
11742         pipe2: silence compiler warning
11743         * lib/pipe2.c (pipe2): Hide label if it is not used.
11744
11745 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11746
11747         relocatable-prog: fix link error
11748         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11749         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11750         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11751         into modules/relocatable-lib without noticing that
11752         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11753         also needs to build relocatable.c.
11754
11755 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11756
11757         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11759         shell code: it contained a 'break' that was not in a loop.
11760         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11761         via a shell-language loop; this may have been true in old Autoconf
11762         versions, but it's not true in Autoconf 2.68.  I found this bug
11763         when testing coreutils git on Solaris 8, whose shell complains
11764         about the syntax error.
11765
11766 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11767
11768         * lib/base64.c: Fix comment to reference RFC 4648.
11769         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11770         <gvtulder@gmail.com>.
11771
11772 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11773
11774         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11775
11776         po/Makefile.in.in: fix make -q problem
11777         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11778         rule, since there's no file named 'check-macro-version' and its
11779         use as a file breaks make -q.
11780         (all): Don't depend on check-macro-version.
11781         (CHECK_MACRO_VERSION): New macro.
11782         (stamp-po): Use it.
11783
11784         configmake: fix make -q problem
11785         * modules/configmake (configmake.h): Update configmake.h's time stamp
11786         even if the file does not change.  Otherwise, 'make -q' fails.
11787         Problem reported by Simon Josefsson in
11788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11789
11790 2011-08-11  Jim Meyering  <meyering@redhat.com>
11791
11792         git-version-gen: correct the advice in a comment
11793         * build-aux/git-version-gen: Correct comment.
11794         Don't recommend to list .tarball-version in .gitignore.
11795
11796 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11797
11798         base64: fix off-by-one buffer size bug
11799         Problem and (trivial) fix reported by Gijs van Tulder in
11800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11801         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11802         * tests/test-base64.c (main): Catch the bug.
11803
11804 2011-08-10  Eric Blake  <eblake@redhat.com>
11805
11806         closein: correct comments
11807         * lib/closein.c (close_stdin): Improve comments.
11808
11809 2011-08-09  Bruno Haible  <bruno@clisp.org>
11810
11811         More tests for 'fseeko'.
11812         * tests/test-fseeko3.c: New file, from Eric Blake.
11813         * tests/test-fseeko3.sh: New file.
11814         * modules/fseeko-tests (Files): Add them.
11815         (TESTS): Add test-fseeko3.sh.
11816         (check_PROGRAMS): Add test-fseeko3.
11817
11818 2011-08-09  Eric Blake  <eblake@redhat.com>
11819
11820         fseeko: remove unneeded hack
11821         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11822
11823         fseeko: fix bug on glibc
11824         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11825         Reported by John W. Eaton.
11826
11827 2011-08-08  Bruno Haible  <bruno@clisp.org>
11828
11829         unictype/base: Fix interoperability with preinstalled libunistring.
11830         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11831         Reported by Simon Josefsson.
11832
11833 2011-08-08  Bruno Haible  <bruno@clisp.org>
11834
11835         iswblank: Detect declaration correctly.
11836         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11837         AC_CHECK_DECLS invocation.
11838
11839 2011-08-08  Bruno Haible  <bruno@clisp.org>
11840
11841         tcgetsid: Detect declaration correctly.
11842         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11843         AC_CHECK_DECLS invocation.
11844         Reported by Simon Josefsson.
11845
11846 2011-08-08  Eric Blake  <eblake@redhat.com>
11847
11848         largefile: fix typo that regressed large file support
11849         * modules/largefile (configure.ac-early): Fix section name.
11850
11851 2011-08-06  Karl Berry  <karl@gnu.org>
11852
11853         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11854         a separate module.
11855
11856 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11857
11858         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11859         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11860         get prototype for free.
11861
11862 2011-08-04  Bruno Haible  <bruno@clisp.org>
11863
11864         Tests for module 'pathmax'.
11865         * modules/pathmax-tests: New file.
11866         * tests/test-pathmax.c: New file.
11867
11868         canonicalize-lgpl: Support larger filenames on the Hurd.
11869         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11870         Reported by Paul Eggert.
11871
11872         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11873         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11874         * lib/chdir-long.h: Include pathmax.h.
11875         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11876         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11877         (PATH_MAX): Remove code that is done by pathmax.h.
11878         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11879         * lib/tmpfile.c: Add a comment.
11880         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11881         * modules/chdir-long (Depends-on): Add pathmax.
11882         * modules/getcwd (Depends-on): Add pathmax.
11883         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11884         is not defined.
11885         * doc/posix-headers/limits.texi: Mention the pathmax module.
11886         * NEWS: Mention the change.
11887
11888 2011-08-02  Bruno Haible  <bruno@clisp.org>
11889
11890         pthread_sigmask: Actually use results of gl_THREADLIB.
11891         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11892         gl_THREADLIB, not gl_[]THREADLIB.
11893         Reported by Eric Blake.
11894
11895 2011-08-02  Jim Meyering  <meyering@redhat.com>
11896
11897         maint.mk: relax the default _gl_TS_function_match regexp
11898         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11899         space between function name and "(" in an "extern" declaration.
11900         That would fail to match a decl with no space there: extern void foo();
11901
11902 2011-07-31  Iain Nicol  <iain@thenicols.net>
11903
11904         git-version-gen: document that EXTRA_DIST must include .version
11905         * build-aux/git-version-gen: In the how-to-use comment, document
11906         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11907         will fail when run from an unpacked distribution tarball.
11908
11909 2011-08-01  Bruno Haible  <bruno@clisp.org>
11910
11911         wctype-h: Fix last change.
11912         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11913         REPLACE_TOWLOWER to 0.
11914         Reported by Sam Steingold <sds@gnu.org>.
11915
11916 2011-07-31  Bruno Haible  <bruno@clisp.org>
11917
11918         frexpl: Update autoconf test.
11919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11920         according to changes of 2011-06-20.
11921
11922 2011-07-31  Bruno Haible  <bruno@clisp.org>
11923
11924         sys_utsname: Add support for Minix.
11925         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11926         <sys/utsname.h>.
11927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11928         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11929
11930 2011-07-31  Bruno Haible  <bruno@clisp.org>
11931
11932         strings: Add support for Minix.
11933         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11934         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11935         * doc/posix-headers/strings.texi: Document the Minix problem.
11936
11937 2011-07-31  Bruno Haible  <bruno@clisp.org>
11938
11939         wctype-h: Add support for Minix.
11940         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11941         REPLACE_TOWLOWER.
11942         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11943         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11944         REPLACE_ISWCNTRL.
11945
11946 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11947
11948         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11949         This is a performance improvement for 64-bit hosts: it causes the
11950         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11951
11952 2011-07-31  Bruno Haible  <bruno@clisp.org>
11953
11954         stdioext: Add support for Minix.
11955         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11956         * lib/fpurge.c (fpurge): Likewise.
11957         * lib/freadahead.c (freadahead): Likewise.
11958         * lib/freadable.c (freadable): Likewise.
11959         * lib/freading.c (freading): Likewise.
11960         * lib/freadptr.c (freadptr): Likewise.
11961         * lib/freadseek.c (freadptrinc): Likewise.
11962         * lib/fseeko.c (rpl_fseeko): Likewise.
11963         * lib/fseterr.c (fseterr): Likewise.
11964         * lib/fwritable.c (fwritable): Likewise.
11965         * lib/fwriting.c (fwriting): Likewise.
11966         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11967         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11968
11969 2011-07-31  Bruno Haible  <bruno@clisp.org>
11970
11971         errno: Port to Minix.
11972         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11973         ECONNABORTED are defined.
11974         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11975         GNULIB_defined_ECONNABORTED): New macros.
11976         * lib/strerror-override.h (strerror_override): Test also
11977         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11978         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11979         ECONNABORTED.
11980         * doc/posix-headers/errno.texi: Mention the Minix problem.
11981
11982 2011-07-31  Bruno Haible  <bruno@clisp.org>
11983
11984         Work around declaration collisions on Minix.
11985         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11986         defined, set REPLACE_MBSINIT.
11987         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11988         defined, set REPLACE_MBRTOWC.
11989         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11990         set REPLACE_MBRLEN.
11991         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11992         defined, set REPLACE_MBSRTOWCS.
11993         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11994         defined, set REPLACE_WCRTOMB.
11995         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11996         defined, set REPLACE_WCSRTOMBS.
11997
11998 2011-07-31  Bruno Haible  <bruno@clisp.org>
11999
12000         Add support for Minix with ACK compiler.
12001         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12002         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12003         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12004
12005 2011-07-31  Bruno Haible  <bruno@clisp.org>
12006
12007         Documentation about Minix.
12008         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12009         * doc/glibc-headers/*.texi: Likewise.
12010         * doc/posix-functions/*.texi: Likewise.
12011         * doc/glibc-functions/*.texi: Likewise.
12012
12013 2011-07-31  Bruno Haible  <bruno@clisp.org>
12014
12015         snippet/warn-on-use: Fix indentation.
12016         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12017
12018 2011-07-25  Jim Meyering  <meyering@redhat.com>
12019
12020         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12021         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12022         commands.
12023
12024 2011-07-27  Jim Meyering  <meyering@redhat.com>
12025
12026         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12027         * top/maint.mk (gl_extract_significant_defines_): Now that
12028         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12029         gnulib/lib/signal.in.h, and now that we recommend to
12030         define-if-undefined those two symbols in application code,
12031         we must filter them out of the "significant" list.
12032         This avoids a "make syntax-check" failure in coreutils.
12033
12034 2011-07-26  Eric Blake  <eblake@redhat.com>
12035
12036         warnings: add comments about previous patch
12037         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12038         * m4/include_next.m4: Likewise.
12039         * m4/warn-on-use.m4: Likewise.
12040         * m4/warnings.m4: Likewise, and simplify use.
12041         Suggested by Stefano Lattarini.
12042
12043         include-next, warnings: support older autoconf
12044         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12045         AS_VAR_PUSHDEF in a way that works with older autoconf.
12046         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12047         Reported by Daniel P. Berrange.
12048
12049 2011-07-25  Bruno Haible  <bruno@clisp.org>
12050
12051         fseek, ftell: Fix doc.
12052         * doc/posix-functions/fseek.texi: Reword statement about
12053         AC_SYS_LARGEFILE.
12054         * doc/posix-functions/ftell.texi: Likewise.
12055
12056 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12057             Bruno Haible  <bruno@clisp.org>
12058
12059         Add dependencies to the 'largefile' module.
12060         * modules/fopen (Depends-on): Add 'largefile'.
12061         * modules/freopen (Depends-on): Likewise.
12062         * modules/fseeko (Depends-on): Likewise.
12063         * modules/ftello (Depends-on): Likewise.
12064         * modules/glob (Depends-on): Likewise.
12065         * modules/lseek (Depends-on): Likewise.
12066         * modules/lstat (Depends-on): Likewise.
12067         * modules/mkostemp (Depends-on): Likewise.
12068         * modules/mkostemps (Depends-on): Likewise.
12069         * modules/mkstemp (Depends-on): Likewise.
12070         * modules/mkstemps (Depends-on): Likewise.
12071         * modules/open (Depends-on): Likewise.
12072         * modules/openat (Depends-on): Likewise.
12073         * modules/pread (Depends-on): Likewise.
12074         * modules/pwrite (Depends-on): Likewise.
12075         * modules/scandir (Depends-on): Likewise.
12076         * modules/stat (Depends-on): Likewise.
12077         * modules/tmpfile (Depends-on): Likewise.
12078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12079         since the containing module now depends on the largefile module.
12080         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12081         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12082         off_t is fixed by gnulib.
12083         * doc/posix-functions/freopen.texi: Likewise.
12084         * doc/posix-functions/fseeko.texi: Likewise.
12085         * doc/posix-functions/fstatat.texi: Likewise.
12086         * doc/posix-functions/ftello.texi: Likewise.
12087         * doc/posix-functions/glob.texi: Likewise.
12088         * doc/posix-functions/lseek.texi: Likewise.
12089         * doc/posix-functions/lstat.texi: Likewise.
12090         * doc/posix-functions/mkstemp.texi: Likewise.
12091         * doc/posix-functions/open.texi: Likewise.
12092         * doc/posix-functions/openat.texi: Likewise.
12093         * doc/posix-functions/pread.texi: Likewise.
12094         * doc/posix-functions/pwrite.texi: Likewise.
12095         * doc/posix-functions/scandir.texi: Likewise.
12096         * doc/posix-functions/stat.texi: Likewise.
12097         * doc/posix-functions/tmpfile.texi: Likewise.
12098         * doc/glibc-functions/mkostemp.texi: Likewise.
12099         * doc/glibc-functions/mkostemps.texi: Likewise.
12100         * doc/glibc-functions/mkstemps.texi: Likewise.
12101
12102 2011-07-25  Bruno Haible  <bruno@clisp.org>
12103
12104         fcntl: Move AC_LIBOBJ invocation to module description.
12105         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12106         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12107
12108         fcntl: Remove call-in from fchdir.m4.
12109         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12111
12112         dup3: Remove potential call-in from fchdir.m4.
12113         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12115
12116         dup2: Move AC_LIBOBJ invocation to module description.
12117         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12118         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12119         Don't invoke AC_LIBOBJ.
12120         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12121
12122         dup2: Remove call-in from fchdir.m4.
12123         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12125
12126         fclose: Move AC_LIBOBJ invocation to module description.
12127         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12128         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12129         to 1.
12130         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12131
12132         fclose: Remove call-in from close.m4.
12133         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12134         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12135
12136         close: Move AC_LIBOBJ invocation to module description.
12137         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12138         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12139         1.
12140         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12141
12142         close: Remove call-in from fchdir.m4.
12143         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12145
12146         open: Move AC_LIBOBJ invocation to module description.
12147         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12148         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12149         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12150
12151         open: Remove call-in from fchdir.m4.
12152         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12154
12155         fchdir: Start to remove gl_REPLACE_* idiom.
12156         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12157         (gl_FUNC_FCHDIR): Invoke it.
12158
12159 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12160
12161         * lib/ftell.c (ftell): Comment out cast.
12162
12163         close: use gl_REPLACE_FCLOSE only if defined
12164         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12165         is defined.  The close module doesn't depend on the fclose module
12166         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12168         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12169
12170 2011-07-24  Jim Meyering  <meyering@redhat.com>
12171
12172         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12173         * tests/test-select.h (test_function): Declare as "static".
12174
12175 2011-07-24  Bruno Haible  <bruno@clisp.org>
12176
12177         doc: Mention the effects of AC_SYS_LARGEFILE.
12178         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12179         on this function.
12180         * doc/posix-functions/aio_error.texi: Likewise.
12181         * doc/posix-functions/aio_fsync.texi: Likewise.
12182         * doc/posix-functions/aio_read.texi: Likewise.
12183         * doc/posix-functions/aio_return.texi: Likewise.
12184         * doc/posix-functions/aio_suspend.texi: Likewise.
12185         * doc/posix-functions/aio_write.texi: Likewise.
12186         * doc/posix-functions/fgetpos.texi: Likewise.
12187         * doc/posix-functions/fopen.texi: Likewise.
12188         * doc/posix-functions/freopen.texi: Likewise.
12189         * doc/posix-functions/fsetpos.texi: Likewise.
12190         * doc/posix-functions/fstatvfs.texi: Likewise.
12191         * doc/posix-functions/ftruncate.texi: Likewise.
12192         * doc/posix-functions/ftw.texi: Likewise.
12193         * doc/posix-functions/getrlimit.texi: Likewise.
12194         * doc/posix-functions/glob.texi: Likewise.
12195         * doc/posix-functions/lio_listio.texi: Likewise.
12196         * doc/posix-functions/lockf.texi: Likewise.
12197         * doc/posix-functions/mkstemp.texi: Likewise.
12198         * doc/posix-functions/mmap.texi: Likewise.
12199         * doc/posix-functions/nftw.texi: Likewise.
12200         * doc/posix-functions/openat.texi: Likewise.
12201         * doc/posix-functions/opendir.texi: Likewise.
12202         * doc/posix-functions/posix_fadvise.texi: Likewise.
12203         * doc/posix-functions/posix_fallocate.texi: Likewise.
12204         * doc/posix-functions/pread.texi: Likewise.
12205         * doc/posix-functions/pwrite.texi: Likewise.
12206         * doc/posix-functions/readdir.texi: Likewise.
12207         * doc/posix-functions/readdir_r.texi: Likewise.
12208         * doc/posix-functions/rewinddir.texi: Likewise.
12209         * doc/posix-functions/scandir.texi: Likewise.
12210         * doc/posix-functions/seekdir.texi: Likewise.
12211         * doc/posix-functions/setrlimit.texi: Likewise.
12212         * doc/posix-functions/statvfs.texi: Likewise.
12213         * doc/posix-functions/telldir.texi: Likewise.
12214         * doc/posix-functions/tmpfile.texi: Likewise.
12215         * doc/posix-functions/truncate.texi: Likewise.
12216         * doc/glibc-functions/fallocate.texi: Likewise.
12217         * doc/glibc-functions/fstatfs.texi: Likewise.
12218         * doc/glibc-functions/fts_children.texi: Likewise.
12219         * doc/glibc-functions/fts_read.texi: Likewise.
12220         * doc/glibc-functions/getdirentries.texi: Likewise.
12221         * doc/glibc-functions/mkostemp.texi: Likewise.
12222         * doc/glibc-functions/mkostemps.texi: Likewise.
12223         * doc/glibc-functions/mkstemps.texi: Likewise.
12224         * doc/glibc-functions/preadv.texi: Likewise.
12225         * doc/glibc-functions/pwritev.texi: Likewise.
12226         * doc/glibc-functions/sendfile.texi: Likewise.
12227         * doc/glibc-functions/statfs.texi: Likewise.
12228
12229 2011-07-24  Bruno Haible  <bruno@clisp.org>
12230
12231         doc: Fix typo.
12232         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12233
12234 2011-07-24  Bruno Haible  <bruno@clisp.org>
12235
12236         doc: Mention fsusage.
12237         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12238
12239 2011-07-24  Bruno Haible  <bruno@clisp.org>
12240
12241         doc: Mention new glibc headers and functions.
12242         * doc/glibc-headers/gshadow.texi: New file.
12243         * doc/glibc-functions/endsgent.texi: New file.
12244         * doc/glibc-functions/fgetsgent.texi: New file.
12245         * doc/glibc-functions/fgetsgent_r.texi: New file.
12246         * doc/glibc-functions/getsgent.texi: New file.
12247         * doc/glibc-functions/getsgent_r.texi: New file.
12248         * doc/glibc-functions/getsgnam.texi: New file.
12249         * doc/glibc-functions/getsgnam_r.texi: New file.
12250         * doc/glibc-functions/putsgent.texi: New file.
12251         * doc/glibc-functions/setsgent.texi: New file.
12252         * doc/glibc-functions/sgetsgent.texi: New file.
12253         * doc/glibc-functions/sgetsgent_r.texi: New file.
12254         * doc/glibc-functions/malloc_info.texi: New file.
12255         * doc/glibc-functions/preadv.texi: New file.
12256         * doc/glibc-functions/pwritev.texi: New file.
12257         * doc/glibc-functions/register_printf_modifier.texi: New file.
12258         * doc/glibc-functions/register_printf_specifier.texi: New file.
12259         * doc/glibc-functions/register_printf_type.texi: New file.
12260         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12261         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12262         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12263         * doc/glibc-functions/pthread_getname_np.texi: New file.
12264         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12265         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12266         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12267         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12268         * doc/glibc-functions/pthread_setname_np.texi: New file.
12269         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12270         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12271         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12272         * doc/glibc-functions/qsort_r.texi: New file.
12273         * doc/glibc-functions/quick_exit.texi: New file.
12274         * doc/glibc-functions/syncfs.texi: New file.
12275         * doc/gnulib.texi: Include them.
12276         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12277         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12278         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12279         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12280         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12281         * doc/glibc-functions/execvpe.texi: Likewise.
12282
12283 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12284
12285         ftell: don't include <unistd.h>
12286         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12287         guaranteed to define off_t, and the ftell module depends on the
12288         stdio module.
12289
12290         ftell: do not assume wraparound signed arithmetic
12291         * lib/ftell.c: Include <limits.h>.
12292         (ftell): Don't assume wraparound signed arithmetic.
12293
12294 2011-07-24  Bruno Haible  <bruno@clisp.org>
12295
12296         close: No longer depend on module 'fclose'.
12297         * modules/close (Depends-on): Remove fclose.
12298         * NEWS: Mention the change.
12299         Suggested by Sam Steingold <sds@gnu.org>.
12300
12301 2011-07-24  Bruno Haible  <bruno@clisp.org>
12302
12303         fsusage: Enable large volume support on AIX >= 5.2.
12304         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12305         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12306         instead of STAT_STATVFS.
12307         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12308
12309         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12310         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12311         f_blocks field only on MacOS X.
12312
12313         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12315         * modules/fsusage (Depends-on): Add largefile.
12316
12317 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12318
12319         * README: Modernize discussion of signed integers.
12320         Assuming overflow wraparound is no longer safe.
12321         Mention ones' complement and signed magnitude.
12322
12323 2011-07-22  Bruno Haible  <bruno@clisp.org>
12324
12325         select tests, pselect tests: Refactor.
12326         * tests/test-select.h: New file, extracted from tests/test-select.c.
12327         (select_fn): New type.
12328         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12329         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12330         test_pipe): Add my_select argument.
12331         (test_function): Renamed from main. Add my_select argument.
12332         * tests/test-select.c: Move most code to tests/test-select.h. Include
12333         test-select.h.
12334         * modules/select-tests (Files): Add tests/test-select.h.
12335         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12336         (my_select, main): New functions.
12337         * modules/pselect-tests (Files): Add tests/test-select.h,
12338         tests/macros.h, tests/signature.h.
12339         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12340         (configure.ac): Check for <sys/wait.h>.
12341
12342 2011-07-22  Bruno Haible  <bruno@clisp.org>
12343
12344         sys_select tests: Check the signature of FD_*.
12345         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12346         signature tests from here...
12347         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12348         here.
12349         * modules/sys_select-tests (Files): Add tests/signature.h.
12350
12351 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12352
12353         largefile: new module, replacing large-inode
12354         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12355         * MODULES.html.sh: Add largefile, remove large-inode.
12356         * modules/largefile, m4/largefile.m4: New files.
12357         * modules/large-inode, m4/large-inode.m4: Remove.
12358
12359         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12361         implementations that use only 32 bits to count blocks.
12362         On typical hosts with 1024-byte blocks, this fails with file
12363         systems as small as 4 TiB.  Problem reported by Herb Wartens
12364         <http://debbugs.gnu.org/9140> and this should also fix a similar
12365         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12366
12367         large-inode: New module
12368         * MODULES.html.sh: Add it.
12369         * modules/large-inode, m4/large-inode.m4: New files.
12370
12371         extensions: Enable extensions on MacOS X 10.5 and later.
12372         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12373
12374 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12375
12376         file-has-acl: use acl_extended_file_nofollow if available
12377         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12378         (acl_extended_file): New macro.
12379         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12380         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12381
12382 2011-07-21  Bruno Haible  <bruno@clisp.org>
12383
12384         Declare system functions in a way that works with C++.
12385         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12386         declare fdopendir as extern "C".
12387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12388         declare frexpl as extern "C".
12389         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12390         declare gai_strerror as extern "C".
12391         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12392         programs, declare gai_strerror as extern "C".
12393         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12394         declare getlogin_r as extern "C".
12395         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12396         as extern "C".
12397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12398         declare ldexpl as extern "C".
12399         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12400         as extern "C".
12401         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12402         program, declare getmntinfo as extern "C".
12403         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12404         stpncpy as extern "C".
12405         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12406         program, declare __xpg_strerror_r as extern "C".
12407         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12408         strndup as extern "C".
12409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12410         declare memset and bzero as extern "C".
12411         Reported by Sam Steingold <sds@gnu.org>.
12412
12413 2011-07-12  Jim Meyering  <meyering@redhat.com>
12414
12415         maint.mk: prohibit inclusion of "verify.h" without use
12416         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12417
12418 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12419
12420         timer-time: A new module to check for timer_settime()
12421         * m4/timer_time.m4: Check for the posix function.
12422         * modules/timer-time: Add the new module.
12423         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12424         Mention it.
12425
12426 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12427             Bruno Haible  <bruno@clisp.org>
12428
12429         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12431         not defined, assume POSIX threads and look for pthread_sigmask in
12432         $LIBS, without changing $CPPFLAGS.
12433
12434 2011-07-19  Bruno Haible  <bruno@clisp.org>
12435
12436         strstr: Update cross-compilation guess.
12437         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12438         CPUs, guess no, in view of glibc
12439         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12440         Suggested by Eric Blake. Reported by Reuben Thomas.
12441
12442 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12443
12444         getopt-gnu: suppress core dumps from detection code
12445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12446         to suppress core dumps that may well occur on glibc systems.
12447         * modules/getopt-gnu: Depend on nocrash.
12448
12449 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12450
12451         pthread_sigmask: ensure usleep is declared
12452         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12453         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12454
12455 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12456
12457         doc: Document NonStop portability issues.
12458         * doc/posix-functions/sigaction.texi (sigaction):
12459         * doc/posix-headers/signal.texi (signal.h):
12460         Document NonStop.  See Joachim Schmitz in
12461         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12462
12463 2011-07-15  Bruno Haible  <bruno@clisp.org>
12464
12465         ffsl, ffsll: Avoid unportable behaviour.
12466         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12467
12468 2011-07-15  Bruno Haible  <bruno@clisp.org>
12469
12470         ffs: More tests.
12471         * tests/test-ffs.c (NBITS): New macro.
12472         (main): Add more tests.
12473         * tests/test-ffsl.c (NBITS): New macro.
12474         (main): Add more tests.
12475         * tests/test-ffsll.c (NBITS): New macro.
12476         (main): Add more tests.
12477
12478 2011-07-15  Eric Blake  <eblake@redhat.com>
12479
12480         ffsl, ffsll: new modules
12481         * modules/ffsl: New file.
12482         * modules/ffsll: Likewise.
12483         * m4/ffsl.m4: Likewise.
12484         * m4/ffsll.m4: Likewise.
12485         * lib/ffsl.c: Likewise.
12486         * lib/ffsl.h: Likewise.
12487         * lib/ffsll.c: Likewise.
12488         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12489         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12490         * modules/string (Makefile.am): Substitute witnesses.
12491         * lib/strings.in.h (ffsl, ffsll): Declare.
12492         * modules/ffsl-tests: New test file.
12493         * modules/ffsll-tests: Likewise.
12494         * tests/test-ffsl.c: Likewise.
12495         * tests/test-ffsll.c: Likewise.
12496         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12497         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12498         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12499
12500         ffs: fix m4 prerequisite
12501         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12502
12503         ffs: avoid undefined behavior
12504         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12505         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12506         Reported by Bruno Haible.
12507
12508 2011-07-12  Bruno Haible  <bruno@clisp.org>
12509
12510         pthread_sigmask: Rely on module 'threadlib'.
12511         * modules/pthread_sigmask (Depends-on): Add threadlib.
12512         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12513         is defined.
12514
12515 2011-07-12  Bruno Haible  <bruno@clisp.org>
12516
12517         regex: Depend on module 'strcase'.
12518         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12519
12520 2011-07-12  Jim Meyering  <meyering@redhat.com>
12521
12522         warn-on-use: fix typo in file name
12523         * modules/snippet/warn-on-use (Files): Correct file name:
12524         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12525
12526 2011-07-12  Bruno Haible  <bruno@clisp.org>
12527
12528         strings: Document module.
12529         * doc/posix-headers/strings.texi: Mention module 'strings'.
12530
12531 2011-07-12  Bruno Haible  <bruno@clisp.org>
12532
12533         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12534         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12535         (Files, Makefile.am): Update.
12536         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12537         * modules/stdlib (Depends-on): Update.
12538
12539 2011-07-12  Bruno Haible  <bruno@clisp.org>
12540
12541         * NEWS: Mention the changes.
12542
12543         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12544         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12545         (Files, Makefile.am): Update.
12546         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12547         * modules/arpa_inet (Depends-on): Update.
12548         * modules/ctype (Depends-on): Update.
12549         * modules/dirent (Depends-on): Update.
12550         * modules/fcntl-h (Depends-on): Update.
12551         * modules/glob (Depends-on): Update.
12552         * modules/iconv-h (Depends-on): Update.
12553         * modules/inttypes-incomplete (Depends-on): Update.
12554         * modules/langinfo (Depends-on): Update.
12555         * modules/locale (Depends-on): Update.
12556         * modules/math (Depends-on): Update.
12557         * modules/netdb (Depends-on): Update.
12558         * modules/poll-h (Depends-on): Update.
12559         * modules/pty (Depends-on): Update.
12560         * modules/search (Depends-on): Update.
12561         * modules/signal (Depends-on): Update.
12562         * modules/spawn (Depends-on): Update.
12563         * modules/stdio (Depends-on): Update.
12564         * modules/stdlib (Depends-on): Update.
12565         * modules/string (Depends-on): Update.
12566         * modules/strings (Depends-on): Update.
12567         * modules/sys_file (Depends-on): Update.
12568         * modules/sys_ioctl (Depends-on): Update.
12569         * modules/sys_select (Depends-on): Update.
12570         * modules/sys_socket (Depends-on): Update.
12571         * modules/sys_stat (Depends-on): Update.
12572         * modules/sys_time (Depends-on): Update.
12573         * modules/sys_times (Depends-on): Update.
12574         * modules/sys_utsname (Depends-on): Update.
12575         * modules/sys_wait (Depends-on): Update.
12576         * modules/termios (Depends-on): Update.
12577         * modules/time (Depends-on): Update.
12578         * modules/unistd (Depends-on): Update.
12579         * modules/wchar (Depends-on): Update.
12580         * modules/wctype-h (Depends-on): Update.
12581         * MODULES.html.sh (Support for building libraries and executables):
12582         Update.
12583
12584         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12585         * modules/snippet/unused-parameter: Renamed from
12586         modules/unused-parameter.
12587         (Files, Makefile.am): Update.
12588         * build-aux/snippet/unused-parameter.h: Renamed from
12589         build-aux/unused-parameter.h.
12590         * modules/selinux-h (Depends-on): Update.
12591         * modules/unistr/base (Depends-on): Update.
12592         * MODULES.html.sh (Core language properties): Update.
12593
12594         Rename module 'link-warning' to 'snippet/link-warning'.
12595         * modules/snippet/link-warning: Renamed from modules/link-warning.
12596         (Files, Makefile.am): Update.
12597         * build-aux/snippet/link-warning.h: Renamed from
12598         build-aux/link-warning.h.
12599         * MODULES.html.sh (Support for building libraries and executables):
12600         Update.
12601
12602         Rename module 'c++defs' to 'snippet/c++defs'.
12603         * modules/snippet/c++defs: Renamed from modules/c++defs.
12604         (Files, Makefile.am): Update.
12605         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12606         * modules/arpa_inet (Depends-on): Update.
12607         * modules/ctype (Depends-on): Update.
12608         * modules/dirent (Depends-on): Update.
12609         * modules/fcntl-h (Depends-on): Update.
12610         * modules/glob (Depends-on): Update.
12611         * modules/iconv-h (Depends-on): Update.
12612         * modules/langinfo (Depends-on): Update.
12613         * modules/locale (Depends-on): Update.
12614         * modules/math (Depends-on): Update.
12615         * modules/netdb (Depends-on): Update.
12616         * modules/poll-h (Depends-on): Update.
12617         * modules/pty (Depends-on): Update.
12618         * modules/search (Depends-on): Update.
12619         * modules/signal (Depends-on): Update.
12620         * modules/spawn (Depends-on): Update.
12621         * modules/stdio (Depends-on): Update.
12622         * modules/stdlib (Depends-on): Update.
12623         * modules/string (Depends-on): Update.
12624         * modules/strings (Depends-on): Update.
12625         * modules/sys_ioctl (Depends-on): Update.
12626         * modules/sys_select (Depends-on): Update.
12627         * modules/sys_socket (Depends-on): Update.
12628         * modules/sys_stat (Depends-on): Update.
12629         * modules/sys_time (Depends-on): Update.
12630         * modules/sys_wait (Depends-on): Update.
12631         * modules/termios (Depends-on): Update.
12632         * modules/time (Depends-on): Update.
12633         * modules/unistd (Depends-on): Update.
12634         * modules/wchar (Depends-on): Update.
12635         * modules/wctype-h (Depends-on): Update.
12636
12637         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12638         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12639         (Files, Makefile.am): Update.
12640         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12641         * modules/argv-iter (Depends-on): Update.
12642         * modules/arpa_inet (Depends-on): Update.
12643         * modules/dirent (Depends-on): Update.
12644         * modules/fcntl-h (Depends-on): Update.
12645         * modules/fnmatch (Depends-on): Update.
12646         * modules/getopt-posix (Depends-on): Update.
12647         * modules/glob (Depends-on): Update.
12648         * modules/iconv-h (Depends-on): Update.
12649         * modules/inttypes-incomplete (Depends-on): Update.
12650         * modules/locale (Depends-on): Update.
12651         * modules/math (Depends-on): Update.
12652         * modules/netdb (Depends-on): Update.
12653         * modules/search (Depends-on): Update.
12654         * modules/signal (Depends-on): Update.
12655         * modules/spawn (Depends-on): Update.
12656         * modules/stdio (Depends-on): Update.
12657         * modules/stdlib (Depends-on): Update.
12658         * modules/string (Depends-on): Update.
12659         * modules/strings (Depends-on): Update.
12660         * modules/sys_socket (Depends-on): Update.
12661         * modules/sys_stat (Depends-on): Update.
12662         * modules/sys_time (Depends-on): Update.
12663         * modules/sys_times (Depends-on): Update.
12664         * modules/sys_utsname (Depends-on): Update.
12665         * modules/time (Depends-on): Update.
12666         * modules/unistd (Depends-on): Update.
12667         * modules/wchar (Depends-on): Update.
12668         * MODULES.html.sh (Support for building libraries and executables):
12669         Update.
12670
12671 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12672
12673         Improvements on _Noreturn and related modules.
12674
12675         modules/_Exit-tests: test _Noreturn too
12676         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12677         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12678         (main): Use them.
12679
12680         stdnoreturn, stdnoreturn-tests: remove modules
12681         They're not needed here and a bit premature for use elsewhere.  See
12682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12683         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12684         * tests/test-stdnoreturn.c: Remove files.
12685         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12686         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12687         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12688         and using noreturn.
12689         * modules/openat, modules/sigpipe-die, modules/xalloc:
12690         * modules/xmemdup0, modules/xstrtol:
12691         Remove dependency on stdnoreturn.
12692
12693         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12694         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12695         Reparenthesize to avoid GCC warning.
12696         Support Microsoft's syntax.
12697         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12698
12699         _Noreturn-tests: remove module
12700         * modules/_Noreturn-tests: Remove.
12701         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12702         * tests/test-_Noreturn.c: Remove.
12703         * tests/test-stdnoreturn.c: Merge from the old
12704         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12705
12706 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12707
12708         _Noreturn, stdnoreturn, and related modules.
12709
12710         * top/maint.mk: Adjust to new noreturn support.
12711         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12712         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12713
12714         xalloc: use stdnoreturn.h
12715         * lib/xalloc.h: Include <stdnoreturn.h>.
12716         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12717         * modules/xalloc (Depends-on): Add stdnoreturn.
12718
12719         xstrtol: use stdnoreturn.h
12720         * lib/xstrtol.h: Include <stdnoreturn.h>.
12721         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12722         * modules/xstrtol (Depends-on): Add stdnoreturn.
12723
12724         xmemdup0: use stdnoreturn.h
12725         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12726         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12727         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12728
12729         sigpipe-die: use stdnoreturn.h
12730         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12731         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12732         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12733
12734         openat: use stdnoreturn.h
12735         * lib/openat.h: Include <stdnoreturn.h>.
12736         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12737         * modules/openat (Depends-on): Add stdnoreturn.
12738
12739         * lib/openat-die.c (openat_save_fail): Modernize comment.
12740
12741         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12742
12743         * lib/glthread/thread.h: Modernize comment.
12744
12745         obstack: use _Noreturn
12746         * lib/obstack.c (__attribute__): Remove macro.
12747         (print_and_abort): Use _Noreturn.
12748
12749         c-stack: use _Noreturn
12750         * lib/c-stack.c (die, overflow_handler, segv_handler):
12751         Use _Noreturn rather than __attribute__((noreturn)).
12752
12753         argmatch-tests, exclude_tests: use _Noreturn
12754         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12755         Remove.
12756         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12757
12758         stdlib: use _Noreturn
12759         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12760         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12761         * modules/stdlib (Depends-on): Add _Noreturn.
12762         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12763
12764         stdnoreturn-tests: new module
12765         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12766
12767         stdnoreturn: new module
12768         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12769         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12770
12771         _Noreturn-tests: new module
12772         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12773
12774         _Noreturn: new module
12775         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12776         New section, mentioning it.
12777         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12778
12779         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12780
12781 2011-07-11  Eric Blake  <eblake@redhat.com>
12782
12783         ffs: new module
12784         * modules/ffs: New file.
12785         * m4/ffs.m4: Likewise.
12786         * lib/ffs.c: Likewise.
12787         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12788         * modules/strings (Makefile.am): Substitute witness.
12789         (Depends-on): Add c++defs.
12790         * lib/strings.in.h (ffs): Declare.
12791         * modules/ffs-tests: New test file.
12792         * tests/test-ffs.c: Test new module.
12793         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12794         * doc/posix-functions/ffs.texi (ffs): Likewise.
12795
12796         regex: avoid compiler warning
12797         * lib/regex.c (includes): Include <strings.h>, for use of
12798         strcasecmp in regcomp.c.
12799         Reported by Joachim Schmitz.
12800
12801 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12802
12803         stdint: respect system's intmax_t if INTMAX_MAX
12804         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12805         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12806         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12807         long but int64_t is long long, and where we will clash with the
12808         system intmax_t if we override it.  See
12809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12810         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12811         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12812         similarly for UINTMAX_C.
12813
12814 2011-07-08  Bruno Haible  <bruno@clisp.org>
12815
12816         pthread_sigmask tests: Avoid a compiler warning.
12817         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12818         non-zero.
12819
12820         sigprocmask tests: A better way to avoid a compiler warning.
12821         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12822         (main): Complain if system() returns non-zero.
12823         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12824
12825 2011-07-08  Bruno Haible  <bruno@clisp.org>
12826
12827         pthread_sigmask: Work around IRIX bug.
12828         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12829         bug.
12830         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12831         there may be unblocked pending signals.
12832         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12833
12834 2011-07-08  Bruno Haible  <bruno@clisp.org>
12835
12836         pthread_sigmask: Work around Cygwin bug.
12837         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12838         bug.
12839         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12840         the system's pthread_sigmask function.
12841         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12842
12843 2011-07-08  Bruno Haible  <bruno@clisp.org>
12844
12845         pthread_sigmask: Work around bug in single-threaded implementation.
12846         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12847         FreeBSD, HP-UX, Solaris bug.
12848         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12849         * lib/pthread_sigmask.c: Include <stddef.h>.
12850         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12851         the system's pthread_sigmask function.
12852         * modules/pthread_sigmask (configure.ac): Invoke
12853         gl_PREREQ_PTHREAD_SIGMASK.
12854         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12855         HP-UX, Solaris.
12856
12857 2011-07-08  Eric Blake  <eblake@redhat.com>
12858
12859         test-sigprocmask: avoid compiler warning
12860         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12861         * tests/test-sigprocmask.c (main): Use it to silence warning.
12862         Reported by Jim Meyering.
12863
12864         test-snprintf: avoid compiler warning
12865         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12866         * tests/test-vsnprintf.c (main): Likewise.
12867         Reported by Jim Meyering.
12868
12869 2011-07-08  Bruno Haible  <bruno@clisp.org>
12870
12871         Tests for module 'pthread_sigmask'.
12872         * modules/pthread_sigmask-tests: New file.
12873         * tests/test-pthread_sigmask1.c: New file, based on
12874         tests/test-sigprocmask.c.
12875         * tests/test-pthread_sigmask2.c: New file.
12876
12877 2011-07-08  Jim Meyering  <meyering@redhat.com>
12878
12879         test-getopt.h: avoid warning about an unused variable
12880         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12881
12882 2011-07-07  Jim Meyering  <meyering@redhat.com>
12883
12884         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12885         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12886         now that it no longer contains leading TABs.
12887         Remove unused "url=FIXME" statement.
12888
12889 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12890
12891         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12892         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12893         When gl_THREADLIB is not in use, assume that the POSIX sematics
12894         are desired.  This is better for Emacs, which uses POSIX semantics
12895         on GNUish and/or POSIXish platforms, and does not use threads at
12896         all otherwise.
12897
12898         pthread_sigmask: fix typo when testing for libraries
12899         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12900         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12901
12902 2011-07-08  Eric Blake  <eblake@redhat.com>
12903
12904         fts: introduce FTS_NOATIME
12905         * lib/fts_.h (FTS_NOATIME): New bit flag.
12906         (FTS_OPTIONMASK): Adjust.
12907         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12908         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12909
12910 2011-07-08  Bruno Haible  <bruno@clisp.org>
12911
12912         Tests for module 'thread'.
12913         * modules/thread-tests: New file.
12914         * tests/test-thread_self.c: New file.
12915         * tests/test-thread_create.cc: New file.
12916
12917 2011-07-08  Bruno Haible  <bruno@clisp.org>
12918
12919         thread: Avoid gcc warnings when using gl_thread_self().
12920         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12921         'void *'.
12922         (gl_thread_self_pointer): Update.
12923
12924 2011-07-07  Bruno Haible  <bruno@clisp.org>
12925
12926         signal-c++-tests: Check declaration of pthread_sigmask.
12927         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12928         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12929         $(LIB_PTHREAD_SIGMASK).
12930
12931 2011-07-07  Bruno Haible  <bruno@clisp.org>
12932
12933         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12934         * lib/signal.in.h (pthread_sigmask): Override if
12935         REPLACE_PTHREAD_SIGMASK is 1.
12936         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12937         REPLACE_PTHREAD_SIGMASK.
12938         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12939         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12940         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12941         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12942         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12943
12944 2011-07-07  Bruno Haible  <bruno@clisp.org>
12945
12946         pthread_sigmask: Ensure declaration in <signal.h>.
12947         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12948         include <pthread.h>.
12949         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12950         problem.
12951
12952 2011-07-07  Bruno Haible  <bruno@clisp.org>
12953
12954         pthread_sigmask: Document the module.
12955         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12956
12957 2011-07-07  Bruno Haible  <bruno@clisp.org>
12958
12959         pthread_sigmask: Follow gnulib conventions.
12960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12961         gl_PTHREAD_SIGMASK.
12962         * modules/pthread_sigmask (configure.ac): Update.
12963
12964 2011-07-07  Bruno Haible  <bruno@clisp.org>
12965
12966         pthread_sigmask: Make declaration C++ safe.
12967         * lib/signal.in.h: In two special conditions, just do an #include_next.
12968         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12969         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12970         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12971         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12972         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12973         not REPLACE_PTHREAD_MASK.
12974         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12975         not REPLACE_PTHREAD_MASK.
12976         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12977
12978 2011-07-07  Bruno Haible  <bruno@clisp.org>
12979
12980         pthread_sigmask: Fix return value.
12981         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12982         * lib/pthread_sigmask.c: New file.
12983         * modules/pthread_sigmask (Files): Add it.
12984         (configure.ac): Invoke AC_LIBOBJ.
12985
12986 2011-07-07  Eric Blake  <eblake@redhat.com>
12987
12988         getopt: more portable argv creation
12989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12990         const, use char arrays rather than strings.
12991         Suggested by Paul Eggert.
12992
12993 2011-07-07  Bruno Haible  <bruno@clisp.org>
12994
12995         Tests for module 'sigprocmask'.
12996         * modules/sigprocmask-tests: New file.
12997         * tests/test-sigprocmask.c: New file.
12998
12999 2011-07-07  Bruno Haible  <bruno@clisp.org>
13000
13001         float tests: Tweak.
13002         * tests/test-float.c (main): Tweak skip message.
13003
13004 2011-07-07  Eric Blake  <eblake@redhat.com>
13005
13006         getopt: avoid compiler warning during configure
13007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13008         assigning string literals to non-const pointer.
13009
13010         getopt-gnu: avoid crash in glibc getopt
13011         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13012         * tests/test-getopt.h (test_getopt): Enhance test.
13013         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13014         * doc/posix-functions/getopt.texi (getopt): Document it.
13015         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13016         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13017         Likewise.
13018
13019 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13020
13021         getopt: handle W; without long options in getopt [BZ #12922]
13022         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13023         but no long options are defined, just return 'W'.
13024
13025 2011-07-07  Bruno Haible  <bruno@clisp.org>
13026
13027         Avoid literal tabs.
13028         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13029         variable containing a tab instead of a literal tab.
13030         Reported by Jim Meyering.
13031
13032 2011-07-07  Bruno Haible  <bruno@clisp.org>
13033
13034         Comments.
13035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13036
13037 2011-07-06  Bruno Haible  <bruno@clisp.org>
13038
13039         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13040         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13041         <winsock2.h>.
13042         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13043         lib/sys_socket.in.h.
13044         (close, gethostname): Hide declarations from <winsock2.h>.
13045         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13046         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13047         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13048         (select): Don't override if gnulib's <sys/select.h> was already
13049         included.
13050         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13051         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13052         setsockopt, shutdown, select): Tweak indentation.
13053
13054 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13057         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13058         in an application that does not use the sys_select module.
13059
13060 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13061
13062         poll: do not return 0 on timeout=-1
13063         * lib/poll.c: Loop with yield if no events occured
13064
13065 2011-07-06  Eric Blake  <eblake@redhat.com>
13066
13067         pthread_sigmask: always replace when not using pthread
13068         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13069         replacement when using some threading other than pthread.  Fix
13070         logic bug.
13071
13072 2011-07-06  Bruno Haible  <bruno@clisp.org>
13073
13074         Comments.
13075         * m4/printf.m4: Update comments about mingw.
13076
13077 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13078
13079         sys_select: define sigset_t more portably
13080         * lib/sys_select.in.h: Always include <sys/types.h>, since
13081         we now need sigset_t and mingw defines it there.
13082         Include <signal.h> before split inclusion guard, to avoid
13083         mishaps on Solaris, whose <signal.h> eventually includes us.
13084         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13085         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13086         which come from ...
13087         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13088         gl_CHECK_TYPE_SIGSET_T.
13089         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13090         does the real work.
13091         * modules/sys_select (Depends-on): Add 'signal'.
13092
13093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13094         Suggested by Bruno Haible.
13095
13096         pselect: Use pthread_sigmask, not sigprocmask.
13097         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13098         multithreaded apps better than sigprocmask does.
13099         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13100         sigprocmask directly.
13101
13102 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13103
13104         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13105         Don't #undef,  since we don't need any underlying pselect.
13106         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13107         (Depends-on): Add select.
13108         (Link): Add $(LIBSOCKET).
13109         These changes suggested by Bruno Haible.
13110
13111         pselect: document better
13112         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13113         * doc/posix-functions/pselect.texi (pselect): Document new module.
13114
13115         pthread_sigmask: new module
13116         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13117         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13118         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13119         This is done only as a macro; I don't know how well that'll
13120         work for C++.  Move <sys/types.h> include before the include_next,
13121         to avoid mishap on Solaris.
13122         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13123         * modules/signal (Makefile.am): Substitute the check's results.
13124         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13125
13126         test-pselect: new module
13127         * modules/pselect-tests, tests/test-pselect.c: New files.
13128         * tests/test-select.c, tests/test-sys_select-c++.cc:
13129         If TEST_PSELECT is defined, test pselect instead of testing select.
13130
13131         * tests/test-sys_select.c (sigset_t): Test for it, too.
13132         Suggested by Bruno Haible.
13133
13134 2011-07-05  Eric Blake  <eblake@redhat.com>
13135
13136         snprintf: guarantee %1$d, for libintl
13137         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13138         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13139         * doc/posix-functions/snprintf.texi (snprintf): Update.
13140         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13141         * tests/test-snprintf.c (main): Enhance test.
13142         * tests/test-vsnprintf.c (main): Likewise.
13143
13144 2011-07-05  Jim Meyering  <meyering@redhat.com>
13145
13146         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13147         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13148         per Bruno's request, to accommodate this idiom (no space after "#")
13149         even when the function is inside an #if block:
13150         char *
13151         gets (char *s)
13152         #undef gets
13153         {
13154           ...
13155         }
13156
13157 2011-07-04  Jim Meyering  <meyering@redhat.com>
13158
13159         maint: indent with spaces, not TABs, and add a rule to check this
13160         * tests/test-userspec.c: Indent with spaces, not TABs.
13161         * tests/test-argp.c: Likewise.
13162         * tests/test-c-stack2.sh: Likewise.
13163         * tests/test-parse-duration.sh: Likewise
13164         * m4/strtod.m4: Likewise.
13165         * m4/alloca.m4: Likewise.
13166         * m4/pselect.m4: Likewise.
13167         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13168
13169 2011-07-03  Jim Meyering  <meyering@redhat.com>
13170
13171         maint.mk: correct omissions in prohibit_argmatch_without_use check
13172         This rule would mistakenly report that argmatch.h is included without
13173         use even when both the argmatch and invalid_arg macro were used.
13174         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13175         of argmatch and invalid_arg.
13176
13177 2011-07-03  Bruno Haible  <bruno@clisp.org>
13178
13179         Comments about EINTR.
13180         * lib/safe-read.h: Explain the purpose of this module.
13181         * lib/safe-write.h: Likewise.
13182         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13183         module.
13184         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13185         module.
13186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13187
13188 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13189
13190         xnanosleep: Rewrite to use new dtotimespec module.
13191         It has the conversion code that used to be in xnanosleep.
13192         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13193         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13194         (TIME_T_MAX): Remove.
13195         (xnanosleep): Rewrite in terms of dtotimespec.
13196         * modules/xnanosleep (Depends-on): Add dtotimespec.
13197         Remove intprops, stdbool.
13198
13199         timespec-add, timespec-sub: new modules
13200         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13201         * lib/timespec-add.c, lib/timespec-sub.c:
13202         * modules/timespec-add, modules/timespec-sub: New files.
13203
13204         dtotimespec: new module
13205         * lib/timespec.h (dtotimespec): New decl.
13206         * lib/dtotimespec.c, modules/dtotimespec: New files.
13207
13208         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13209
13210         pselect: new module
13211         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13212         (pselect): New decls.
13213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13214         since the standard pselect decl uses 'restrict'.
13215         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13216         HAVE_PSELECT, REPLACE_PSELECT.
13217         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13218         HAVE_PSELECT, REPLACE_PSELECT.
13219         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13220
13221         sys_select: don't depend on sys_socket
13222         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13224         This fix works on GNU and GNU-like platforms, but has not been tested
13225         on native Windows.
13226         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13228         gl_HEADER_SYS_SOCKET.
13229         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13230         gl_PREREQ_SYS_H_WINSOCK2.
13231
13232 2011-06-29  Eric Blake  <eblake@redhat.com>
13233
13234         pipe2: fix C89 compile problem
13235         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13236         Reported by Bruno Haible.
13237
13238         pipe, pipe2: don't corrupt fd on error
13239         * lib/pipe.c (pipe): Leave fd unchanged on error.
13240         * lib/pipe2.c (pipe2): Likewise.
13241         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13242         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13243
13244 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13245
13246         mmap-anon: do not use regular expressions inadvertently
13247         * m4/mmap-anon.m4: Remove trailing period from strings sought
13248         in the output.
13249
13250 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13251
13252         nanosleep: fix integer overflow problem
13253         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13254         arithmetic wraps around on overflow.
13255
13256         nanosleep: simplify carrying
13257         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13258         first call to the underyling nanosleep, not for the last one.
13259         This doesn't fix any bugs, but it simplifies the computation of
13260         the remaining delay.  Found while auditing integer overflow issues.
13261
13262         dup2: remove test for existence of fcntl
13263         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13264         "#if HAVE_FCNTL", in the configure-time test program.
13265         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13266         and therefore speeds up "configure" a bit.  Found while
13267         adding the dup2 module to Emacs.
13268
13269 2011-06-24  Eric Blake  <eblake@redhat.com>
13270
13271         maint.mk: enhance useless header checks
13272         * top/maint.mk (_sc_header_without_use): Check both include
13273         styles.
13274         (sc_prohibit_assert_without_use)
13275         (sc_prohibit_close_stream_without_use)
13276         (sc_prohibit_getopt_without_use)
13277         (sc_prohibit_quotearg_without_use)
13278         (sc_prohibit_quote_without_use)
13279         (sc_prohibit_long_options_without_use)
13280         (sc_prohibit_inttostr_without_use)
13281         (sc_prohibit_ignore_value_without_use)
13282         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13283         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13284         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13285         (sc_prohibit_hash_pjw_without_use)
13286         (sc_prohibit_safe_read_without_use)
13287         (sc_prohibit_argmatch_without_use)
13288         (sc_prohibit_canonicalize_without_use)
13289         (sc_prohibit_root_dev_ino_without_use)
13290         (sc_prohibit_openat_without_use)
13291         (sc_prohibit_c_ctype_without_use)
13292         (sc_prohibit_signal_without_use)
13293         (sc_prohibit_stdio--_without_use)
13294         (sc_prohibit_stdio-safer_without_use)
13295         (sc_prohibit_strings_without_use)
13296         (sc_prohibit_intprops_without_use)
13297         (sc_prohibit_stddef_without_use)
13298         (sc_prohibit_xfreopen_without_use): Update clients.
13299
13300 2011-06-24  Jim Meyering  <meyering@redhat.com>
13301
13302         syntax-check: keep one maint.mk rule in sync with its header
13303         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13304         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13305         I prefer to avoid temporary files here, so use <(...), but that
13306         is not supported by /bin/sh, so...
13307         (SHELL): Define to /bin/bash.
13308
13309 2011-06-24  Eric Blake  <eblake@redhat.com>
13310
13311         maint.mk: update sc_prohibit_intprops_without_use
13312         * top/maint.mk (_intprops_names): Match recent changes.
13313
13314 2011-06-24  Bruno Haible  <bruno@clisp.org>
13315
13316         strerror-override: No-op tweak.
13317         * lib/strerror-override.h (strerror_override): Reorder conditions,
13318         for consistency with lib/strerror-override.c.
13319
13320 2011-06-23  Eric Blake  <eblake@redhat.com>
13321
13322         maint.mk: test further PATH_MAX issues
13323         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13324         (sc_prohibit_path_max_allocation): ...and also test alloca.
13325         Suggested by Jim Meyering.
13326
13327 2011-06-22  Eric Blake  <eblake@redhat.com>
13328
13329         maint.mk: add syntax-check to avoid char[PATH_MAX]
13330         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13331
13332         stat: be robust to PATH_MAX definition
13333         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13334         * modules/stat (Depends-on): Add verify.
13335
13336         link: work around IRIX bug
13337         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13338         * lib/link.c (rpl_link): Work around it.
13339         * tests/test-link.h (test_link): Enhance test.
13340         * doc/posix-functions/link.texi (link): Document the bug.
13341
13342         getopt: silence clang warning
13343         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13344         dereference.
13345         Reported by Gustavo Martin Domato.
13346
13347 2011-06-22  Jim Meyering  <meyering@redhat.com>
13348
13349         bootstrap: do not insert a blank line into each .gitignore file
13350         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13351
13352 2011-06-21  Eric Blake  <eblake@redhat.com>
13353
13354         perror: test for output mismatch
13355         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13356         perror on IRIX.
13357
13358         strerror_r: fix OpenBSD behavior on out-of-range
13359         * lib/strerror_r.c (strerror_r): Always use maximal string.
13360         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13361
13362         strerror_r: fix OpenBSD behavior on 0
13363         * lib/strerror-override.c (strerror_override): Also override 0
13364         when needed.
13365         * lib/strerror-override.h (strerror_override): Likewise.
13366         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13367         earlier.
13368         * lib/strerror_r.c (strerror_r): Likewise.
13369         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13370         behavior...
13371         (gl_FUNC_STRERROR_0): ...into new macro.
13372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13373         is overridden.
13374         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13375         * modules/strerror-override (Files): Add strerror.m4.
13376         (configure.ac): Also provide override for 0 when needed.
13377         * doc/posix-functions/strerror.texi (strerror): Document this.
13378         * doc/posix-functions/perror.texi (perror): Likewise.
13379
13380         perror: adjust array size
13381         * modules/perror (Depends-on): Add strerror-override.
13382         * lib/perror.c (perror): Use it to avoid magic number.
13383
13384         strerror-override: reduce size
13385         * lib/strerror-override.c (strerror_override): Use fewer lines.
13386
13387 2011-06-20  Bruno Haible  <bruno@clisp.org>
13388
13389         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13390         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13391
13392 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13393
13394         alloca: port to compilers that can optimize like GCC 4.6.0
13395         * lib/alloca.c (find_stack_direction): New signature, taken from
13396         Autoconf git.  This works with GCC 4.6.0.  This code should never
13397         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13398         be used with other compilers that optimize as well as GCC 4.6.0 does.
13399         (alloca): Adjust to new signature.
13400         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13401         New macro, which patches Autoconf in a similar way.
13402
13403         c-stack: stop worrying about stack direction
13404         * lib/c-stack.c (find_stack_direction): Remove.
13405         (segv_handler): Don't worry about stack direction growth, as it's
13406         too much of a pain to configure this correctly, given how compilers
13407         are optimizing-away our stack-growth detection code.  Instead, assume
13408         that any access to just before or just after the stack is OK.
13409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13410         Don't require AC_FUNC_ALLOCA; no longer needed.
13411
13412 2011-06-20  Eric Blake  <eblake@redhat.com>
13413
13414         test-stat: don't allocate PATH_MAX bytes
13415         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13416         PATH_MAX-sized buffer.
13417         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13418         * modules/stat-tests (Depends-on): Likewise.
13419         * tests/test-fstatat.c (includes): Drop pathmax.h.
13420         * tests/test-stat.c (includes): Likewise.
13421         Reported by Bruno Haible.
13422
13423 2011-06-20  Bruno Haible  <bruno@clisp.org>
13424
13425         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13426         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13427         * lib/float.c: New file.
13428         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13429         REPLACE_FLOAT_LDBL.
13430         * modules/float (Files): Add lib/float.c.
13431         (configure.ac): Invoke AC_LIBOBJ.
13432         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13433
13434 2011-06-20  Bruno Haible  <bruno@clisp.org>
13435
13436         Tests for module 'float'.
13437         * modules/float-tests: New file.
13438         * tests/test-float.c: New file.
13439
13440 2011-06-19  Bruno Haible  <bruno@clisp.org>
13441
13442         isinf: Coding style.
13443         * lib/isinf.c: Use GNU coding style.
13444
13445 2011-06-19  Bruno Haible  <bruno@clisp.org>
13446
13447         linkat test: Avoid test failure on AIX 7.1.
13448         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13449         * tests/test-link.h (test_link): Likewise.
13450
13451 2011-06-19  Bruno Haible  <bruno@clisp.org>
13452
13453         pread test: Avoid test failure on OpenBSD 4.9.
13454         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13455
13456 2011-06-19  Bruno Haible  <bruno@clisp.org>
13457
13458         sprintf-posix: Fix test failure on AIX 7.1.
13459         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13460         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13461         on AIX.
13462         * doc/posix-functions/fprintf.texi: Likewise.
13463         * doc/posix-functions/printf.texi: Likewise.
13464         * doc/posix-functions/snprintf.texi: Likewise.
13465         * doc/posix-functions/sprintf.texi: Likewise.
13466         * doc/posix-functions/vdprintf.texi: Likewise.
13467         * doc/posix-functions/vfprintf.texi: Likewise.
13468         * doc/posix-functions/vprintf.texi: Likewise.
13469         * doc/posix-functions/vsnprintf.texi: Likewise.
13470         * doc/posix-functions/vsprintf.texi: Likewise.
13471
13472 2011-06-19  Bruno Haible  <bruno@clisp.org>
13473
13474         roundl-ieee: Fix test failure on AIX 7.1.
13475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13476         * doc/posix-functions/roundl.texi: Mention problem with negative
13477         arguments.
13478
13479 2011-06-19  Bruno Haible  <bruno@clisp.org>
13480
13481         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13482         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13483         * doc/posix-functions/round.texi: Mention problem with negative
13484         arguments.
13485         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13486
13487 2011-06-19  Bruno Haible  <bruno@clisp.org>
13488
13489         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13491         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13492         * doc/posix-functions/roundf.texi: Mention problem with negative
13493         arguments.
13494         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13495
13496 2011-06-19  Bruno Haible  <bruno@clisp.org>
13497
13498         ceilf-ieee: Work around bug on MacOS X 10.5.
13499         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13500
13501         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13502         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13503         IEEE compliant, avoid compiler optimizations.
13504         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13505         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13506         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13507         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13508         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13509         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13510         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13512         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13513         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13514
13515 2011-06-19  Bruno Haible  <bruno@clisp.org>
13516
13517         ceilf-ieee: Work around bug on AIX 7.1.
13518         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13519         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13520
13521 2011-06-19  Bruno Haible  <bruno@clisp.org>
13522
13523         ceil-ieee: Work around bug on AIX 7.1.
13524         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13525         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13526
13527 2011-06-18  Bruno Haible  <bruno@clisp.org>
13528
13529         fsync test: Avoid test failure on MacOS X and AIX.
13530         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13531         EINVAL.
13532
13533 2011-06-18  Bruno Haible  <bruno@clisp.org>
13534
13535         openat, fdopendir tests: Fix link errors.
13536         * modules/openat-tests (Depends-on): Add progname.
13537         * modules/fdopendir-tests (Depends-on): Likewise.
13538         * tests/test-fchownat.c: Include progname.h.
13539         (main): Call set_program_name.
13540         * tests/test-fstatat.c: Include progname.h.
13541         (main): Call set_program_name.
13542         * tests/test-mkdirat.c: Include progname.h.
13543         (main): Call set_program_name.
13544         * tests/test-openat.c: Include progname.h.
13545         (main): Call set_program_name.
13546         * tests/test-unlinkat.c: Include progname.h.
13547         (main): Call set_program_name.
13548         * tests/test-fdopendir.c: Include progname.h.
13549         (main): Call set_program_name.
13550
13551 2011-06-18  Bruno Haible  <bruno@clisp.org>
13552
13553         Doc update.
13554         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13555         HP-UX.
13556         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13557
13558 2011-06-18  Bruno Haible  <bruno@clisp.org>
13559
13560         getcwd tests: Avoid compilation error on HP-UX 11.31.
13561         * modules/getcwd-tests (Depends-on): Add pathmax.
13562         * tests/test-getcwd.c: Include pathmax.h.
13563
13564 2011-06-18  Bruno Haible  <bruno@clisp.org>
13565
13566         isfinite, isinf: Fix link error on AIX 6 and 7.
13567         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13568         needed, also test the macro with a 'float' argument.
13569         * m4/isinf.m4 (gl_ISINF): Likewise.
13570
13571 2011-06-18  Bruno Haible  <bruno@clisp.org>
13572
13573         getloadavg: Don't clobber LIBS. Regression from previous commit.
13574         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13575         AC_CHECK_LIB from here...
13576         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13577         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13578         gl_func_getloadavg_done.
13579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13580
13581 2011-06-18  Bruno Haible  <bruno@clisp.org>
13582
13583         clean-temp: Improve documentation.
13584         * lib/clean-temp.h: Explain better how to use this module.
13585         Reported by John Darrington <john@darrington.wattle.id.au>.
13586
13587 2011-06-17  Bruno Haible  <bruno@clisp.org>
13588
13589         pread, pwrite: Avoid cc warning on AIX.
13590         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13591         (pwrite): Likewise.
13592
13593 2011-06-17  Bruno Haible  <bruno@clisp.org>
13594
13595         spawn-pipe tests: Fix link error.
13596         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13598
13599 2011-06-17  Bruno Haible  <bruno@clisp.org>
13600
13601         Tests: Remove unnecessary dependency.
13602         * modules/canonicalize-tests (Depends-on): Remove progname.
13603         * modules/chown-tests (Depends-on): Likewise.
13604         * modules/dirname-tests (Depends-on): Likewise.
13605         * modules/fdopendir-tests (Depends-on): Likewise.
13606         * modules/fdutimensat-tests (Depends-on): Likewise.
13607         * modules/hash-tests (Depends-on): Likewise.
13608         * modules/lchown-tests (Depends-on): Likewise.
13609         * modules/linkat-tests (Depends-on): Likewise.
13610         * modules/renameat-tests (Depends-on): Likewise.
13611         * modules/spawn-pipe-tests (Depends-on): Likewise.
13612         * modules/utimensat-tests (Depends-on): Likewise.
13613
13614 2011-06-17  Bruno Haible  <bruno@clisp.org>
13615
13616         spawn-pipe tests: Fix link error.
13617         * tests/test-spawn-pipe-child.c: Undefine fflush.
13618
13619 2011-06-17  Bruno Haible  <bruno@clisp.org>
13620
13621         Fix tests link errors.
13622         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13623         * modules/chown-tests (Makefile.am): Don't link test-chown with
13624         LIBINTL.
13625         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13626         LIBINTL.
13627         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13628         LIBINTL.
13629         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13630         LIBINTL.
13631
13632 2011-06-16  Bruno Haible  <bruno@clisp.org>
13633
13634         crypto/gc-sha1: Fix recent regression.
13635         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13636         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13637
13638         crypto/gc-md5: Fix recent regression.
13639         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13640
13641         crypto/gc-md4: Fix recent regression.
13642         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13643         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13644
13645         crypto/gc-arctwo: Fix recent regression.
13646         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13647         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13648
13649         crypto/gc-rijndael: Fix recent regression.
13650         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13651         (configure.ac): Invoke AC_LIBOBJ here.
13652         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13654
13655         crypto/gc-hmac-sha1: Fix recent regression.
13656         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13657         (configure.ac): Invoke AC_LIBOBJ here.
13658         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13660
13661         crypto/gc-hmac-md5: Fix recent regression.
13662         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13663         (configure.ac): Invoke AC_LIBOBJ here.
13664         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13666
13667         crypto/gc-des: Fix recent regression.
13668         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13669         (configure.ac): Invoke AC_LIBOBJ here.
13670         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13672
13673         crypto/gc-arcfour: Fix recent regression.
13674         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13675         (configure.ac): Invoke AC_LIBOBJ here.
13676         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13678
13679 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13680
13681         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13682         After the 2011-05-21 change, this macro requires
13683         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13684         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13685
13686 2011-06-16  Bruno Haible  <bruno@clisp.org>
13687
13688         fprintftime: Move AC_LIBOBJ invocations to module description.
13689         * m4/fprintftime.m4: Remove file.
13690         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13691         (configure.ac): Remove gl_FPRINTFTIME call.
13692         (Makefile.am): Augment lib_SOURCES.
13693         Reported by Jim Meyering.
13694
13695 2011-06-16  Bruno Haible  <bruno@clisp.org>
13696
13697         tmpfile-safer: Finish 2011-05-23 commit.
13698         * m4/stdio-safer.m4: Really remove file.
13699         Reported by Jim Meyering.
13700
13701 2011-06-16  Bruno Haible  <bruno@clisp.org>
13702
13703         syntax-check: Fix typo.
13704         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13705         printf-posix.m4.
13706         Reported by Jim Meyering.
13707
13708 2011-06-13  Jim Meyering  <meyering@redhat.com>
13709
13710         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13711         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13712
13713 2011-05-23  Bruno Haible  <bruno@clisp.org>
13714
13715         yesno: Move AC_LIBOBJ invocations to module description.
13716         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13717         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13718
13719 2011-05-23  Bruno Haible  <bruno@clisp.org>
13720
13721         xstrtol: Move AC_LIBOBJ invocations to module description.
13722         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13723         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13724
13725 2011-05-23  Bruno Haible  <bruno@clisp.org>
13726
13727         xstrtold: Move AC_LIBOBJ invocations to module description.
13728         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13729         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13730
13731 2011-05-23  Bruno Haible  <bruno@clisp.org>
13732
13733         xstrtod: Move AC_LIBOBJ invocations to module description.
13734         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13735         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13736
13737 2011-05-23  Bruno Haible  <bruno@clisp.org>
13738
13739         xnanosleep: Move AC_LIBOBJ invocations to module description.
13740         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13741         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13742
13743 2011-05-23  Bruno Haible  <bruno@clisp.org>
13744
13745         xgetcwd: Move AC_LIBOBJ invocations to module description.
13746         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13747         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13748
13749 2011-05-23  Bruno Haible  <bruno@clisp.org>
13750
13751         xalloc: Move AC_LIBOBJ invocations to module description.
13752         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13753         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13754
13755 2011-05-23  Bruno Haible  <bruno@clisp.org>
13756
13757         write-any-file: Move AC_LIBOBJ invocations to module description.
13758         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13759         invocation.
13760         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13761
13762 2011-05-23  Bruno Haible  <bruno@clisp.org>
13763
13764         utimens: Move AC_LIBOBJ invocations to module description.
13765         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13766         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13767
13768 2011-05-23  Bruno Haible  <bruno@clisp.org>
13769
13770         utimecmp: Move AC_LIBOBJ invocations to module description.
13771         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13772         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13773
13774 2011-05-23  Bruno Haible  <bruno@clisp.org>
13775
13776         userspec: Move AC_LIBOBJ invocations to module description.
13777         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13778         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13779
13780 2011-05-23  Bruno Haible  <bruno@clisp.org>
13781
13782         unlinkdir: Move AC_LIBOBJ invocations to module description.
13783         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13784         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13785
13786 2011-05-23  Bruno Haible  <bruno@clisp.org>
13787
13788         unistd-safer: Move AC_LIBOBJ invocations to module description.
13789         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13790         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13791
13792 2011-05-23  Bruno Haible  <bruno@clisp.org>
13793
13794         tempname: Move AC_LIBOBJ invocations to module description.
13795         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13796         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13797
13798 2011-05-23  Bruno Haible  <bruno@clisp.org>
13799
13800         strftime: Move AC_LIBOBJ invocations to module description.
13801         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13802         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13803
13804 2011-05-23  Bruno Haible  <bruno@clisp.org>
13805
13806         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13807         * m4/stdlib-safer.m4: Remove file.
13808         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13809         (configure.ac): Remove gl_STDLIB_SAFER call.
13810         (Makefile.am): Augment lib_SOURCES.
13811
13812 2011-05-23  Bruno Haible  <bruno@clisp.org>
13813
13814         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13815         * m4/stdio-safer.m4: Remove file.
13816         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13817         (configure.ac): Remove gl_TMPFILE_SAFER call.
13818         (Makefile.am): Augment lib_SOURCES.
13819
13820 2011-05-23  Bruno Haible  <bruno@clisp.org>
13821
13822         popen-safer: Move AC_LIBOBJ invocations to module description.
13823         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13824         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13825         (configure.ac): Remove gl_POPEN_SAFER call.
13826         (Makefile.am): Augment lib_SOURCES.
13827
13828 2011-05-23  Bruno Haible  <bruno@clisp.org>
13829
13830         freopen-safer: Move AC_LIBOBJ invocations to module description.
13831         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13832         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13833         (configure.ac): Remove gl_FREOPEN_SAFER call.
13834         (Makefile.am): Augment lib_SOURCES.
13835
13836 2011-05-23  Bruno Haible  <bruno@clisp.org>
13837
13838         fopen-safer: Move AC_LIBOBJ invocations to module description.
13839         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13840         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13841         (configure.ac): Remove gl_FOPEN_SAFER call.
13842         (Makefile.am): Augment lib_SOURCES.
13843
13844 2011-05-23  Bruno Haible  <bruno@clisp.org>
13845
13846         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13847         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13848         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13849
13850 2011-05-23  Bruno Haible  <bruno@clisp.org>
13851
13852         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13853         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13854         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13855
13856 2011-05-23  Bruno Haible  <bruno@clisp.org>
13857
13858         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13859         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13860         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13861
13862 2011-05-23  Bruno Haible  <bruno@clisp.org>
13863
13864         settime: Move AC_LIBOBJ invocations to module description.
13865         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13866         * modules/settime (Makefile.am): Augment lib_SOURCES.
13867
13868 2011-05-23  Bruno Haible  <bruno@clisp.org>
13869
13870         savedir: Move AC_LIBOBJ invocations to module description.
13871         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13872         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13873
13874 2011-05-23  Bruno Haible  <bruno@clisp.org>
13875
13876         save-cwd: Move AC_LIBOBJ invocations to module description.
13877         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13878         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13879
13880 2011-05-23  Bruno Haible  <bruno@clisp.org>
13881
13882         same: Move AC_LIBOBJ invocations to module description.
13883         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13884         * modules/same (Makefile.am): Augment lib_SOURCES.
13885
13886 2011-05-23  Bruno Haible  <bruno@clisp.org>
13887
13888         safe-write: Move AC_LIBOBJ invocations to module description.
13889         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13890         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13891         instead of gl_SAFE_WRITE.
13892         (Makefile.am): Augment lib_SOURCES.
13893
13894 2011-05-23  Bruno Haible  <bruno@clisp.org>
13895
13896         safe-read: Move AC_LIBOBJ invocations to module description.
13897         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13898         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13899         of gl_SAFE_READ.
13900         (Makefile.am): Augment lib_SOURCES.
13901
13902 2011-05-23  Bruno Haible  <bruno@clisp.org>
13903
13904         safe-alloc: Move AC_LIBOBJ invocations to module description.
13905         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13906         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13907
13908 2011-05-23  Bruno Haible  <bruno@clisp.org>
13909
13910         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13911         * m4/rijndael.m4: Remove file.
13912         * modules/crypto/rijndael (Files): Remove it.
13913         (configure.ac): Remove gl_RIJNDAEL call.
13914         (Makefile.am): Augment lib_SOURCES.
13915
13916 2011-05-23  Bruno Haible  <bruno@clisp.org>
13917
13918         readtokens: Move AC_LIBOBJ invocations to module description.
13919         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13920         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13921
13922 2011-05-23  Bruno Haible  <bruno@clisp.org>
13923
13924         read-file: Move AC_LIBOBJ invocations to module description.
13925         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13926         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13927         of gl_FUNC_READ_FILE.
13928         (Makefile.am): Augment lib_SOURCES.
13929
13930 2011-05-23  Bruno Haible  <bruno@clisp.org>
13931
13932         quotearg: Move AC_LIBOBJ invocations to module description.
13933         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13934         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13935
13936 2011-05-23  Bruno Haible  <bruno@clisp.org>
13937
13938         quote: Move AC_LIBOBJ invocations to module description.
13939         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13940         * modules/quote (Makefile.am): Augment lib_SOURCES.
13941
13942 2011-05-23  Bruno Haible  <bruno@clisp.org>
13943
13944         posixver: Move AC_LIBOBJ invocations to module description.
13945         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13946         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13947
13948 2011-05-23  Bruno Haible  <bruno@clisp.org>
13949
13950         posixtm: Move AC_LIBOBJ invocations to module description.
13951         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13952         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13953
13954 2011-05-23  Bruno Haible  <bruno@clisp.org>
13955
13956         physmem: Move AC_LIBOBJ invocations to module description.
13957         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13958         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13959
13960 2011-05-23  Bruno Haible  <bruno@clisp.org>
13961
13962         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13964         invocation.
13965         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13966
13967 2011-05-23  Bruno Haible  <bruno@clisp.org>
13968
13969         mpsort: Move AC_LIBOBJ invocations to module description.
13970         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13971         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13972
13973 2011-05-23  Bruno Haible  <bruno@clisp.org>
13974
13975         modechange: Move AC_LIBOBJ invocations to module description.
13976         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13977         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13978
13979 2011-05-23  Bruno Haible  <bruno@clisp.org>
13980
13981         mkdir-p: Move AC_LIBOBJ invocations to module description.
13982         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13983         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13984
13985 2011-05-23  Bruno Haible  <bruno@clisp.org>
13986
13987         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13988         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13989         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13990
13991 2011-05-23  Bruno Haible  <bruno@clisp.org>
13992
13993         mgetgroups: Move AC_LIBOBJ invocations to module description.
13994         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13995         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13996
13997 2011-05-23  Bruno Haible  <bruno@clisp.org>
13998
13999         memxor: Move AC_LIBOBJ invocations to module description.
14000         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14001         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14002
14003 2011-05-23  Bruno Haible  <bruno@clisp.org>
14004
14005         memcoll: Move AC_LIBOBJ invocations to module description.
14006         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14007         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14008
14009 2011-05-23  Bruno Haible  <bruno@clisp.org>
14010
14011         memcasecmp: Move AC_LIBOBJ invocations to module description.
14012         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14013         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14014
14015 2011-05-23  Bruno Haible  <bruno@clisp.org>
14016
14017         crypto/md5: Move AC_LIBOBJ invocations to module description.
14018         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14019         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14020
14021 2011-05-23  Bruno Haible  <bruno@clisp.org>
14022
14023         crypto/md4: Move AC_LIBOBJ invocations to module description.
14024         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14025         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14026
14027 2011-05-23  Bruno Haible  <bruno@clisp.org>
14028
14029         crypto/md2: Move AC_LIBOBJ invocations to module description.
14030         * m4/md2.m4: Remove file.
14031         * modules/crypto/md2 (Files): Remove it.
14032         (configure.ac): Remove gl_MD2 call.
14033         (Makefile.am): Augment lib_SOURCES.
14034
14035 2011-05-23  Bruno Haible  <bruno@clisp.org>
14036
14037         long-options: Move AC_LIBOBJ invocations to module description.
14038         * m4/long-options.m4: Remove file.
14039         * modules/long-options (Files): Remove it.
14040         (configure.ac): Remove gl_LONG_OPTIONS call.
14041         (Makefile.am): Augment lib_SOURCES.
14042
14043 2011-05-23  Bruno Haible  <bruno@clisp.org>
14044
14045         i-ring: Move AC_LIBOBJ invocations to module description.
14046         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14047         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14048
14049 2011-05-23  Bruno Haible  <bruno@clisp.org>
14050
14051         idcache: Move AC_LIBOBJ invocations to module description.
14052         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14053         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14054
14055 2011-05-23  Bruno Haible  <bruno@clisp.org>
14056
14057         human: Move AC_LIBOBJ invocations to module description.
14058         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14059         * modules/human (Makefile.am): Augment lib_SOURCES.
14060
14061 2011-05-23  Bruno Haible  <bruno@clisp.org>
14062
14063         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14064         * m4/hmac-sha1.m4: Remove file.
14065         * modules/crypto/hmac-sha1 (Files): Remove it.
14066         (configure.ac): Remove gl_HMAC_SHA1 call.
14067         (Makefile.am): Augment lib_SOURCES.
14068
14069 2011-05-23  Bruno Haible  <bruno@clisp.org>
14070
14071         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14072         * m4/hmac-md5.m4: Remove file.
14073         * modules/crypto/hmac-md5 (Files): Remove it.
14074         (configure.ac): Remove gl_HMAC_MD5 call.
14075         (Makefile.am): Augment lib_SOURCES.
14076
14077 2011-05-23  Bruno Haible  <bruno@clisp.org>
14078
14079         hash: Move AC_LIBOBJ invocations to module description.
14080         * m4/hash.m4: Remove file.
14081         * modules/hash (Files): Remove it.
14082         (configure.ac): Remove gl_HASH call.
14083         (Makefile.am): Augment lib_SOURCES.
14084
14085 2011-05-23  Bruno Haible  <bruno@clisp.org>
14086
14087         hard-locale: Move AC_LIBOBJ invocations to module description.
14088         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14089         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14090
14091 2011-05-23  Bruno Haible  <bruno@clisp.org>
14092
14093         getugroups: Move AC_LIBOBJ invocations to module description.
14094         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14095         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14096
14097 2011-05-23  Bruno Haible  <bruno@clisp.org>
14098
14099         gettime: Move AC_LIBOBJ invocations to module description.
14100         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14101         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14102
14103 2011-05-23  Bruno Haible  <bruno@clisp.org>
14104
14105         getndelim2: Move AC_LIBOBJ invocations to module description.
14106         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14107         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14108
14109 2011-05-23  Bruno Haible  <bruno@clisp.org>
14110
14111         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14112         * m4/gc-pbkdf2-sha1.m4: Remove file.
14113         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14114         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14115         (Makefile.am): Augment lib_SOURCES.
14116
14117 2011-05-23  Bruno Haible  <bruno@clisp.org>
14118
14119         fts: Move AC_LIBOBJ invocations to module description.
14120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14121         * modules/fts (configure.ac): ... to here.
14122
14123 2011-05-23  Bruno Haible  <bruno@clisp.org>
14124
14125         file-type: Move AC_LIBOBJ invocations to module description.
14126         * m4/file-type.m4: Remove file.
14127         * modules/file-type (Files): Remove it.
14128         (configure.ac): Remove gl_FILE_TYPE call.
14129         (Makefile.am): Augment lib_SOURCES.
14130
14131 2011-05-23  Bruno Haible  <bruno@clisp.org>
14132
14133         filenamecat*: Respect rules for use of AC_LIBOBJ.
14134         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14135         Remove AC_LIBOBJ invocation.
14136         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14137         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14138
14139 2011-05-23  Bruno Haible  <bruno@clisp.org>
14140
14141         filemode: Move AC_LIBOBJ invocations to module description.
14142         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14143         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14144
14145 2011-05-23  Bruno Haible  <bruno@clisp.org>
14146
14147         openat-safer: Move AC_LIBOBJ invocations to module description.
14148         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14149         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14150
14151 2011-05-23  Bruno Haible  <bruno@clisp.org>
14152
14153         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14154         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14155         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14156
14157 2011-05-23  Bruno Haible  <bruno@clisp.org>
14158
14159         exclude: Move AC_LIBOBJ invocations to module description.
14160         * m4/exclude.m4: Remove file.
14161         * modules/exclude (Files): Remove it.
14162         (configure.ac): Remove gl_EXCLUDE call.
14163         (Makefile.am): Augment lib_SOURCES.
14164
14165 2011-05-23  Bruno Haible  <bruno@clisp.org>
14166
14167         dirname*: Respect rules for use of AC_LIBOBJ.
14168         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14169         invocations.
14170         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14171         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14172
14173 2011-05-23  Bruno Haible  <bruno@clisp.org>
14174
14175         dirent-safer: Move AC_LIBOBJ invocations to module description.
14176         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14177         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14178
14179 2011-05-23  Bruno Haible  <bruno@clisp.org>
14180
14181         crypto/des: Move AC_LIBOBJ invocations to module description.
14182         * m4/des.m4: Remove file.
14183         * modules/crypto/des (Files): Remove it.
14184         (configure.ac): Remove gl_DES call.
14185         (Makefile.am): Augment lib_SOURCES.
14186
14187 2011-05-23  Bruno Haible  <bruno@clisp.org>
14188
14189         cycle-check: Move AC_LIBOBJ invocations to module description.
14190         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14191         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14192
14193 2011-05-23  Bruno Haible  <bruno@clisp.org>
14194
14195         c-strtold: Move AC_LIBOBJ invocations to module description.
14196         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14197         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14198
14199 2011-05-23  Bruno Haible  <bruno@clisp.org>
14200
14201         c-strtod: Move AC_LIBOBJ invocations to module description.
14202         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14203         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14204
14205 2011-05-23  Bruno Haible  <bruno@clisp.org>
14206
14207         crc: Move AC_LIBOBJ invocations to module description.
14208         * m4/crc.m4: Remove file.
14209         * modules/crc (Files): Remove it.
14210         (configure.ac): Remove gl_CRC call.
14211         (Makefile.am): Augment lib_SOURCES.
14212
14213 2011-05-23  Bruno Haible  <bruno@clisp.org>
14214
14215         close-stream: Move AC_LIBOBJ invocations to module description.
14216         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14217         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14218
14219 2011-05-23  Bruno Haible  <bruno@clisp.org>
14220
14221         closeout: Move AC_LIBOBJ invocations to module description.
14222         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14223         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14224
14225 2011-05-23  Bruno Haible  <bruno@clisp.org>
14226
14227         closein: Move AC_LIBOBJ invocations to module description.
14228         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14229         * modules/closein (Makefile.am): Augment lib_SOURCES.
14230
14231 2011-05-23  Bruno Haible  <bruno@clisp.org>
14232
14233         cloexec: Move AC_LIBOBJ invocations to module description.
14234         * m4/cloexec.m4: Remove file.
14235         * modules/cloexec (Files): Remove it.
14236         (configure.ac): Remove gl_CLOEXEC call.
14237         (Makefile.am): Augment lib_SOURCES.
14238
14239 2011-05-23  Bruno Haible  <bruno@clisp.org>
14240
14241         check-version: Move AC_LIBOBJ invocations to module description.
14242         * m4/check-version.m4: Remove file.
14243         * modules/check-version (Files): Remove it.
14244         (configure.ac): Remove gl_CHECK_VERSION call.
14245         (Makefile.am): Augment lib_SOURCES.
14246
14247 2011-05-23  Bruno Haible  <bruno@clisp.org>
14248
14249         chdir-safer: Move AC_LIBOBJ invocations to module description.
14250         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14251         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14252
14253 2011-05-23  Bruno Haible  <bruno@clisp.org>
14254
14255         canonicalize: Move AC_LIBOBJ invocations to module description.
14256         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14257         AC_LIBOBJ invocation.
14258         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14259
14260 2011-05-23  Bruno Haible  <bruno@clisp.org>
14261
14262         canon-host: Move AC_LIBOBJ invocations to module description.
14263         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14264         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14265         instead of gl_CANON_HOST.
14266         (Makefile.am): Augment lib_SOURCES.
14267
14268 2011-05-23  Bruno Haible  <bruno@clisp.org>
14269
14270         backupfile: Move AC_LIBOBJ invocations to module description.
14271         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14272         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14273
14274 2011-05-23  Bruno Haible  <bruno@clisp.org>
14275
14276         argmatch: Move AC_LIBOBJ invocations to module description.
14277         * m4/argmatch.m4: Remove file.
14278         * modules/argmatch (Files): Remove it.
14279         (configure.ac): Remove gl_ARGMATCH call.
14280         (Makefile.am): Augment lib_SOURCES.
14281
14282 2011-05-23  Bruno Haible  <bruno@clisp.org>
14283
14284         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14285         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14286         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14287
14288 2011-05-23  Bruno Haible  <bruno@clisp.org>
14289
14290         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14291         * m4/arcfour.m4: Remove file.
14292         * modules/crypto/arcfour (Files): Remove it.
14293         (configure.ac): Remove gl_ARCFOUR call.
14294         (Makefile.am): Augment lib_SOURCES.
14295
14296 2011-05-22  Bruno Haible  <bruno@clisp.org>
14297
14298         write: Move AC_LIBOBJ invocations to module description.
14299         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14300         * modules/write (configure.ac): ... to here.
14301
14302 2011-05-22  Bruno Haible  <bruno@clisp.org>
14303
14304         wmemset: Move AC_LIBOBJ invocations to module description.
14305         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14306         here...
14307         * modules/wmemset (configure.ac): ... to here.
14308
14309 2011-05-22  Bruno Haible  <bruno@clisp.org>
14310
14311         wmemmove: Move AC_LIBOBJ invocations to module description.
14312         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14313         here...
14314         * modules/wmemmove (configure.ac): ... to here.
14315
14316 2011-05-22  Bruno Haible  <bruno@clisp.org>
14317
14318         wmemcpy: Move AC_LIBOBJ invocations to module description.
14319         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14320         here...
14321         * modules/wmemcpy (configure.ac): ... to here.
14322
14323 2011-05-22  Bruno Haible  <bruno@clisp.org>
14324
14325         wmemcmp: Move AC_LIBOBJ invocations to module description.
14326         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14327         here...
14328         * modules/wmemcmp (configure.ac): ... to here.
14329
14330 2011-05-22  Bruno Haible  <bruno@clisp.org>
14331
14332         wmemchr: Move AC_LIBOBJ invocations to module description.
14333         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14334         here...
14335         * modules/wmemchr (configure.ac): ... to here.
14336
14337 2011-05-22  Bruno Haible  <bruno@clisp.org>
14338
14339         wcswidth: Move AC_LIBOBJ invocations to module description.
14340         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14341         here...
14342         * modules/wcswidth (configure.ac): ... to here.
14343
14344 2011-05-22  Bruno Haible  <bruno@clisp.org>
14345
14346         wcwidth: Respect rules for use of AC_LIBOBJ.
14347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14348         invocation from here...
14349         * modules/wcwidth (configure.ac): ... to here.
14350         (Depends-on): Update conditions.
14351
14352 2011-05-22  Bruno Haible  <bruno@clisp.org>
14353
14354         wctype: Move AC_LIBOBJ invocations to module description.
14355         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14356         invocation from here...
14357         * modules/wctype (configure.ac): ... to here.
14358         (Depends-on): Update conditions.
14359
14360 2011-05-22  Bruno Haible  <bruno@clisp.org>
14361
14362         wctrans: Move AC_LIBOBJ invocations to module description.
14363         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14364         invocation from here...
14365         * modules/wctrans (configure.ac): ... to here.
14366
14367 2011-05-22  Bruno Haible  <bruno@clisp.org>
14368
14369         wctomb: Move AC_LIBOBJ invocations to module description.
14370         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14371         invocations from here...
14372         * modules/wctomb (configure.ac): ... to here.
14373
14374 2011-05-22  Bruno Haible  <bruno@clisp.org>
14375
14376         wctob: Move AC_LIBOBJ invocations to module description.
14377         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14378         gl_PREREQ_WCTOB invocations from here...
14379         * modules/wctob (configure.ac): ... to here.
14380         (Depends-on): Update conditions.
14381
14382 2011-05-22  Bruno Haible  <bruno@clisp.org>
14383
14384         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14385         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14386         here...
14387         * modules/wcsxfrm (configure.ac): ... to here.
14388
14389 2011-05-22  Bruno Haible  <bruno@clisp.org>
14390
14391         wcstok: Move AC_LIBOBJ invocations to module description.
14392         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14393         * modules/wcstok (configure.ac): ... to here.
14394
14395 2011-05-22  Bruno Haible  <bruno@clisp.org>
14396
14397         wcsstr: Move AC_LIBOBJ invocations to module description.
14398         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14399         * modules/wcsstr (configure.ac): ... to here.
14400
14401 2011-05-22  Bruno Haible  <bruno@clisp.org>
14402
14403         wcsspn: Move AC_LIBOBJ invocations to module description.
14404         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14405         * modules/wcsspn (configure.ac): ... to here.
14406
14407 2011-05-22  Bruno Haible  <bruno@clisp.org>
14408
14409         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14410         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14411         gl_PREREQ_WCSRTOMBS invocations from here...
14412         * modules/wcsrtombs (configure.ac): ... to here.
14413
14414 2011-05-22  Bruno Haible  <bruno@clisp.org>
14415
14416         wcsrchr: Move AC_LIBOBJ invocations to module description.
14417         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14418         here...
14419         * modules/wcsrchr (configure.ac): ... to here.
14420
14421 2011-05-22  Bruno Haible  <bruno@clisp.org>
14422
14423         wcspbrk: Move AC_LIBOBJ invocations to module description.
14424         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14425         here...
14426         * modules/wcspbrk (configure.ac): ... to here.
14427
14428 2011-05-22  Bruno Haible  <bruno@clisp.org>
14429
14430         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14431         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14432         gl_PREREQ_WCSNRTOMBS invocations from here...
14433         * modules/wcsnrtombs (configure.ac): ... to here.
14434
14435 2011-05-22  Bruno Haible  <bruno@clisp.org>
14436
14437         wcsnlen: Move AC_LIBOBJ invocations to module description.
14438         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14439         here...
14440         * modules/wcsnlen (configure.ac): ... to here.
14441
14442 2011-05-22  Bruno Haible  <bruno@clisp.org>
14443
14444         wcsncpy: Move AC_LIBOBJ invocations to module description.
14445         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14446         here...
14447         * modules/wcsncpy (configure.ac): ... to here.
14448
14449 2011-05-22  Bruno Haible  <bruno@clisp.org>
14450
14451         wcsncmp: Move AC_LIBOBJ invocations to module description.
14452         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14453         here...
14454         * modules/wcsncmp (configure.ac): ... to here.
14455
14456 2011-05-22  Bruno Haible  <bruno@clisp.org>
14457
14458         wcsncat: Move AC_LIBOBJ invocations to module description.
14459         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14460         here...
14461         * modules/wcsncat (configure.ac): ... to here.
14462
14463 2011-05-22  Bruno Haible  <bruno@clisp.org>
14464
14465         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14466         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14467         from here...
14468         * modules/wcsncasecmp (configure.ac): ... to here.
14469
14470 2011-05-22  Bruno Haible  <bruno@clisp.org>
14471
14472         wcslen: Move AC_LIBOBJ invocations to module description.
14473         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14474         * modules/wcslen (configure.ac): ... to here.
14475
14476 2011-05-22  Bruno Haible  <bruno@clisp.org>
14477
14478         wcsdup: Move AC_LIBOBJ invocations to module description.
14479         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14480         * modules/wcsdup (configure.ac): ... to here.
14481
14482 2011-05-22  Bruno Haible  <bruno@clisp.org>
14483
14484         wcscspn: Move AC_LIBOBJ invocations to module description.
14485         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14486         here...
14487         * modules/wcscspn (configure.ac): ... to here.
14488
14489 2011-05-22  Bruno Haible  <bruno@clisp.org>
14490
14491         wcscpy: Move AC_LIBOBJ invocations to module description.
14492         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14493         * modules/wcscpy (configure.ac): ... to here.
14494
14495 2011-05-22  Bruno Haible  <bruno@clisp.org>
14496
14497         wcscoll: Move AC_LIBOBJ invocations to module description.
14498         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14499         here...
14500         * modules/wcscoll (configure.ac): ... to here.
14501
14502 2011-05-22  Bruno Haible  <bruno@clisp.org>
14503
14504         wcscmp: Move AC_LIBOBJ invocations to module description.
14505         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14506         * modules/wcscmp (configure.ac): ... to here.
14507
14508 2011-05-22  Bruno Haible  <bruno@clisp.org>
14509
14510         wcschr: Move AC_LIBOBJ invocations to module description.
14511         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14512         * modules/wcschr (configure.ac): ... to here.
14513
14514 2011-05-22  Bruno Haible  <bruno@clisp.org>
14515
14516         wcscat: Move AC_LIBOBJ invocations to module description.
14517         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14518         * modules/wcscat (configure.ac): ... to here.
14519
14520 2011-05-22  Bruno Haible  <bruno@clisp.org>
14521
14522         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14523         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14524         here...
14525         * modules/wcscasecmp (configure.ac): ... to here.
14526
14527 2011-05-22  Bruno Haible  <bruno@clisp.org>
14528
14529         wcrtomb: Move AC_LIBOBJ invocations to module description.
14530         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14531         invocations from here...
14532         * modules/wcrtomb (configure.ac): ... to here.
14533
14534 2011-05-22  Bruno Haible  <bruno@clisp.org>
14535
14536         wcpncpy: Move AC_LIBOBJ invocations to module description.
14537         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14538         here...
14539         * modules/wcpncpy (configure.ac): ... to here.
14540
14541 2011-05-22  Bruno Haible  <bruno@clisp.org>
14542
14543         wcpcpy: Move AC_LIBOBJ invocations to module description.
14544         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14545         * modules/wcpcpy (configure.ac): ... to here.
14546
14547 2011-05-22  Bruno Haible  <bruno@clisp.org>
14548
14549         waitpid: Move AC_LIBOBJ invocations to module description.
14550         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14551         invocation from here...
14552         * modules/waitpid (configure.ac): ... to here.
14553
14554 2011-05-22  Bruno Haible  <bruno@clisp.org>
14555
14556         utimensat: Move AC_LIBOBJ invocations to module description.
14557         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14558         here...
14559         * modules/utimensat (configure.ac): ... to here.
14560
14561 2011-05-22  Bruno Haible  <bruno@clisp.org>
14562
14563         usleep: Move AC_LIBOBJ invocations to module description.
14564         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14565         here...
14566         * modules/usleep (configure.ac): ... to here.
14567
14568 2011-05-22  Bruno Haible  <bruno@clisp.org>
14569
14570         unlockpt: Move AC_LIBOBJ invocations to module description.
14571         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14572         gl_PREREQ_UNLOCKPT invocations from here...
14573         * modules/unlockpt (configure.ac): ... to here.
14574
14575 2011-05-22  Bruno Haible  <bruno@clisp.org>
14576
14577         unlink: Respect rules for use of AC_LIBOBJ.
14578         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14579         * modules/unlink (configure.ac): ... to here.
14580
14581 2011-05-22  Bruno Haible  <bruno@clisp.org>
14582
14583         uname: Move AC_LIBOBJ invocations to module description.
14584         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14585         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14586         here...
14587         * modules/uname (configure.ac): ... to here.
14588
14589 2011-05-22  Bruno Haible  <bruno@clisp.org>
14590
14591         ttyname_r: Move AC_LIBOBJ invocations to module description.
14592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14593         gl_PREREQ_TTYNAME_R invocations from here...
14594         * modules/ttyname_r (configure.ac): ... to here.
14595
14596 2011-05-22  Bruno Haible  <bruno@clisp.org>
14597
14598         tsearch: Move AC_LIBOBJ invocations to module description.
14599         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14600         invocations from here...
14601         * modules/tsearch (configure.ac): ... to here.
14602
14603 2011-05-22  Bruno Haible  <bruno@clisp.org>
14604
14605         towctrans: Move AC_LIBOBJ invocations to module description.
14606         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14607         AC_LIBOBJ invocation from here...
14608         * modules/towctrans (configure.ac): ... to here.
14609
14610 2011-05-22  Bruno Haible  <bruno@clisp.org>
14611
14612         tmpfile: Move AC_LIBOBJ invocations to module description.
14613         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14614         invocations from here...
14615         * modules/tmpfile (configure.ac): ... to here.
14616
14617 2011-05-22  Bruno Haible  <bruno@clisp.org>
14618
14619         times: Move AC_LIBOBJ invocations to module description.
14620         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14621         * modules/times (configure.ac): ... to here.
14622
14623 2011-05-22  Bruno Haible  <bruno@clisp.org>
14624
14625         time_r: Move AC_LIBOBJ invocations to module description.
14626         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14627         invocations from here...
14628         * modules/time_r (configure.ac): ... to here.
14629
14630 2011-05-22  Bruno Haible  <bruno@clisp.org>
14631
14632         timegm: Move AC_LIBOBJ invocations to module description.
14633         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14634         invocations from here...
14635         * modules/timegm (configure.ac): ... to here.
14636
14637 2011-05-22  Bruno Haible  <bruno@clisp.org>
14638
14639         tcgetsid: Move AC_LIBOBJ invocations to module description.
14640         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14641         and gl_PREREQ_TCGETSID invocations from here...
14642         * modules/tcgetsid (configure.ac): ... to here.
14643         (Depends-on): Update conditions.
14644
14645 2011-05-22  Bruno Haible  <bruno@clisp.org>
14646
14647         symlinkat: Move AC_LIBOBJ invocations to module description.
14648         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14649         here...
14650         * modules/symlinkat (configure.ac): ... to here.
14651
14652 2011-05-22  Bruno Haible  <bruno@clisp.org>
14653
14654         symlink: Move AC_LIBOBJ invocations to module description.
14655         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14656         here...
14657         * modules/symlink (configure.ac): ... to here.
14658
14659 2011-05-22  Bruno Haible  <bruno@clisp.org>
14660
14661         strverscmp: Move AC_LIBOBJ invocations to module description.
14662         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14664         from here...
14665         * modules/strverscmp (configure.ac): ... to here.
14666
14667 2011-05-22  Bruno Haible  <bruno@clisp.org>
14668
14669         strtok_r: Move AC_LIBOBJ invocations to module description.
14670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14671         and gl_PREREQ_STRTOK_R invocations from here...
14672         * modules/strtok_r (configure.ac): ... to here.
14673         (Depends-on): Update conditions.
14674
14675 2011-05-22  Bruno Haible  <bruno@clisp.org>
14676
14677         strtoumax: Move AC_LIBOBJ invocations to module description.
14678         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14680         from here...
14681         * modules/strtoumax (configure.ac): ... to here.
14682
14683 2011-05-22  Bruno Haible  <bruno@clisp.org>
14684
14685         strtoimax: Move AC_LIBOBJ invocations to module description.
14686         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14687         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14688         from here...
14689         * modules/strtoimax (configure.ac): ... to here.
14690
14691 2011-05-22  Bruno Haible  <bruno@clisp.org>
14692
14693         strtoull: Move AC_LIBOBJ invocations to module description.
14694         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14696         from here...
14697         * modules/strtoull (configure.ac): ... to here.
14698
14699 2011-05-22  Bruno Haible  <bruno@clisp.org>
14700
14701         strtoll: Move AC_LIBOBJ invocations to module description.
14702         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14704         here...
14705         * modules/strtoll (configure.ac): ... to here.
14706
14707 2011-05-22  Bruno Haible  <bruno@clisp.org>
14708
14709         strtoul: Move AC_LIBOBJ invocations to module description.
14710         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14711         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14712         * modules/strtoul (configure.ac): ... to here.
14713
14714 2011-05-22  Bruno Haible  <bruno@clisp.org>
14715
14716         strtol: Move AC_LIBOBJ invocations to module description.
14717         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14718         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14719         * modules/strtol (configure.ac): ... to here.
14720
14721 2011-05-22  Bruno Haible  <bruno@clisp.org>
14722
14723         strtod: Move AC_LIBOBJ invocations to module description.
14724         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14725         invocations from here...
14726         * modules/strtod (configure.ac): ... to here.
14727
14728 2011-05-22  Bruno Haible  <bruno@clisp.org>
14729
14730         strstr*: Move AC_LIBOBJ invocations to module description.
14731         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14732         invocations from here...
14733         * modules/strstr-simple (configure.ac): ... to here.
14734         * modules/strstr (configure.ac): ... and here.
14735
14736 2011-05-22  Bruno Haible  <bruno@clisp.org>
14737
14738         strsignal: Move AC_LIBOBJ invocations to module description.
14739         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14740         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14741         * modules/strsignal (configure.ac): ... to here.
14742         (Depends-on): Update conditions.
14743
14744 2011-05-22  Bruno Haible  <bruno@clisp.org>
14745
14746         strsep: Move AC_LIBOBJ invocations to module description.
14747         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14748         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14749         here...
14750         * modules/strsep (configure.ac): ... to here.
14751
14752 2011-05-22  Bruno Haible  <bruno@clisp.org>
14753
14754         strptime: Move AC_LIBOBJ invocations to module description.
14755         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14756         gl_PREREQ_STRPTIME invocations from here...
14757         * modules/strptime (configure.ac): ... to here.
14758
14759 2011-05-22  Bruno Haible  <bruno@clisp.org>
14760
14761         strpbrk: Move AC_LIBOBJ invocations to module description.
14762         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14764         here...
14765         * modules/strpbrk (configure.ac): ... to here.
14766
14767 2011-05-22  Bruno Haible  <bruno@clisp.org>
14768
14769         strnlen: Move AC_LIBOBJ invocations to module description.
14770         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14771         invocations from here...
14772         * modules/strnlen (configure.ac): ... to here.
14773
14774 2011-05-22  Bruno Haible  <bruno@clisp.org>
14775
14776         strndup: Move AC_LIBOBJ invocations to module description.
14777         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14778         invocations from here...
14779         * modules/strndup (configure.ac): ... to here.
14780         (Depends-on): Update conditions.
14781
14782 2011-05-22  Bruno Haible  <bruno@clisp.org>
14783
14784         strncat: Move AC_LIBOBJ invocations to module description.
14785         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14786         invocations from here...
14787         * modules/strncat (configure.ac): ... to here.
14788
14789 2011-05-22  Bruno Haible  <bruno@clisp.org>
14790
14791         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14792         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14793         invocations from here...
14794         * modules/strdup (configure.ac): ... to here.
14795         * modules/strdup-posix (configure.ac): ... and here.
14796
14797 2011-05-22  Bruno Haible  <bruno@clisp.org>
14798
14799         strcspn: Move AC_LIBOBJ invocations to module description.
14800         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14802         here...
14803         * modules/strcspn (configure.ac): ... to here.
14804
14805 2011-05-22  Bruno Haible  <bruno@clisp.org>
14806
14807         strchrnul: Move AC_LIBOBJ invocations to module description.
14808         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14809         gl_PREREQ_STRCHRNUL invocations from here...
14810         * modules/strchrnul (configure.ac): ... to here.
14811
14812 2011-05-22  Bruno Haible  <bruno@clisp.org>
14813
14814         strcasestr*: Move AC_LIBOBJ invocations to module description.
14815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14816         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14817         * modules/strcasestr-simple (configure.ac): ... to here.
14818         * modules/strcasestr (configure.ac): ... and here.
14819
14820 2011-05-22  Bruno Haible  <bruno@clisp.org>
14821
14822         strcase: Move AC_LIBOBJ invocations to module description.
14823         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14824         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14825         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14826         gl_PREREQ_STRNCASECMP invocations from here...
14827         * modules/strcase (configure.ac): ... to here.
14828
14829 2011-05-22  Bruno Haible  <bruno@clisp.org>
14830
14831         stpncpy: Move AC_LIBOBJ invocations to module description.
14832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14833         here...
14834         * modules/stpncpy (configure.ac): ... to here.
14835
14836 2011-05-22  Bruno Haible  <bruno@clisp.org>
14837
14838         stpcpy: Move AC_LIBOBJ invocations to module description.
14839         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14841         here...
14842         * modules/stpcpy (configure.ac): ... to here.
14843
14844 2011-05-21  Bruno Haible  <bruno@clisp.org>
14845
14846         stat: Move AC_LIBOBJ invocations to module description.
14847         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14848         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14849         here...
14850         * modules/stat (configure.ac): ... to here.
14851
14852 2011-05-21  Bruno Haible  <bruno@clisp.org>
14853
14854         sleep: Move AC_LIBOBJ invocations to module description.
14855         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14856         * modules/sleep (configure.ac): ... to here.
14857
14858 2011-05-21  Bruno Haible  <bruno@clisp.org>
14859
14860         signbit: Move AC_LIBOBJ invocations to module description.
14861         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14862         * modules/signbit (configure.ac): ... to here.
14863
14864 2011-05-21  Bruno Haible  <bruno@clisp.org>
14865
14866         sigprocmask: Move AC_LIBOBJ invocations to module description.
14867         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14868         gl_PREREQ_SIGPROMASK invocations from here...
14869         * modules/sigprocmask (configure.ac): ... to here.
14870
14871 2011-05-21  Bruno Haible  <bruno@clisp.org>
14872
14873         sigaction: Move AC_LIBOBJ invocations to module description.
14874         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14875         gl_PREREQ_SIGACTION invocations from here...
14876         * modules/sigaction (configure.ac): ... to here.
14877
14878 2011-05-21  Bruno Haible  <bruno@clisp.org>
14879
14880         sig2str: Move AC_LIBOBJ invocations to module description.
14881         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14883         here...
14884         * modules/sig2str (configure.ac): ... to here.
14885
14886 2011-05-21  Bruno Haible  <bruno@clisp.org>
14887
14888         setlocale: Move AC_LIBOBJ invocations to module description.
14889         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14890         gl_PREREQ_SETLOCALE invocations from here...
14891         * modules/setlocale (configure.ac): ... to here.
14892
14893 2011-05-21  Bruno Haible  <bruno@clisp.org>
14894
14895         unsetenv: Move AC_LIBOBJ invocations to module description.
14896         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14897         and gl_PREREQ_UNSETENV invocations from here...
14898         * modules/unsetenv (configure.ac): ... to here.
14899         (Depends-on): Update.
14900
14901 2011-05-21  Bruno Haible  <bruno@clisp.org>
14902
14903         setenv: Move AC_LIBOBJ invocations to module description.
14904         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14905         here...
14906         * modules/setenv (configure.ac): ... to here.
14907
14908 2011-05-21  Bruno Haible  <bruno@clisp.org>
14909
14910         selinux-h: Move AC_LIBOBJ invocations to module description.
14911         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14912         AC_LIBOBJ invocation from here...
14913         * modules/selinux-h (configure.ac): ... to here.
14914
14915 2011-05-21  Bruno Haible  <bruno@clisp.org>
14916
14917         select: Respect rules for use of AC_LIBOBJ.
14918         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14919         here...
14920         * modules/select (configure.ac): ... to here.
14921
14922 2011-05-21  Bruno Haible  <bruno@clisp.org>
14923
14924         scandir: Move AC_LIBOBJ invocations to module description.
14925         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14926         invocations from here...
14927         * modules/scandir (configure.ac): ... to here.
14928
14929 2011-05-21  Bruno Haible  <bruno@clisp.org>
14930
14931         rpmatch: Move AC_LIBOBJ invocations to module description.
14932         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14934         here...
14935         * modules/rpmatch (configure.ac): ... to here.
14936
14937 2011-05-21  Bruno Haible  <bruno@clisp.org>
14938
14939         rmdir: Respect rules for use of AC_LIBOBJ.
14940         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14941         * modules/rmdir (configure.ac): ... to here.
14942
14943 2011-05-21  Bruno Haible  <bruno@clisp.org>
14944
14945         renameat: Move AC_LIBOBJ invocations to module description.
14946         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14947         here...
14948         * modules/renameat (configure.ac): ... to here.
14949
14950 2011-05-21  Bruno Haible  <bruno@clisp.org>
14951
14952         rename: Respect rules for use of AC_LIBOBJ.
14953         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14954         here...
14955         * modules/rename (configure.ac): ... to here.
14956
14957 2011-05-21  Bruno Haible  <bruno@clisp.org>
14958
14959         remove: Move AC_LIBOBJ invocations to module description.
14960         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14961         here...
14962         * modules/remove (configure.ac): ... to here.
14963
14964 2011-05-21  Bruno Haible  <bruno@clisp.org>
14965
14966         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14967         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14968         macro.
14969         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14970         * modules/relocatable-lib (configure.ac): ... to here.
14971         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14972         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14973
14974 2011-05-21  Bruno Haible  <bruno@clisp.org>
14975
14976         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14977         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14978         here...
14979         * modules/relocatable-prog (configure.ac): ... to here.
14980
14981 2011-05-21  Bruno Haible  <bruno@clisp.org>
14982
14983         regex: Move AC_LIBOBJ invocations to module description.
14984         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14985         invocations from here...
14986         * modules/regex (configure.ac): ... to here.
14987
14988 2011-05-21  Bruno Haible  <bruno@clisp.org>
14989
14990         realloc-*: Move AC_LIBOBJ invocations to module description.
14991         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14992         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14993         AC_LIBOBJ invocations from here...
14994         * modules/realloc-gnu (configure.ac): ... to here.
14995         * modules/realloc-posix (configure.ac): ... and here.
14996
14997 2011-05-21  Bruno Haible  <bruno@clisp.org>
14998
14999         readutmp: Move AC_LIBOBJ invocations to module description.
15000         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15001         * modules/readutmp (configure.ac): ... to here.
15002
15003 2011-05-21  Bruno Haible  <bruno@clisp.org>
15004
15005         readlinkat: Move AC_LIBOBJ invocations to module description.
15006         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15007         here...
15008         * modules/readlinkat (configure.ac): ... to here.
15009
15010 2011-05-21  Bruno Haible  <bruno@clisp.org>
15011
15012         readlink: Move AC_LIBOBJ invocations to module description.
15013         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15014         gl_PREREQ_READLINK invocations from here...
15015         * modules/readlink (configure.ac): ... to here.
15016
15017 2011-05-21  Bruno Haible  <bruno@clisp.org>
15018
15019         readline: Move AC_LIBOBJ invocations to module description.
15020         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15021         gl_PREREQ_READLINE invocations from here...
15022         * modules/readline (configure.ac): ... to here.
15023
15024 2011-05-21  Bruno Haible  <bruno@clisp.org>
15025
15026         read: Move AC_LIBOBJ invocations to module description.
15027         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15028         * modules/read (configure.ac): ... to here.
15029
15030 2011-05-21  Bruno Haible  <bruno@clisp.org>
15031
15032         rawmemchr: Move AC_LIBOBJ invocations to module description.
15033         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15035         from here...
15036         * modules/rawmemchr (configure.ac): ... to here.
15037
15038 2011-05-21  Bruno Haible  <bruno@clisp.org>
15039
15040         random_r: Move AC_LIBOBJ invocations to module description.
15041         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15042         gl_PREREQ_RANDOM_R invocations from here...
15043         * modules/random_r (configure.ac): ... to here.
15044
15045 2011-05-21  Bruno Haible  <bruno@clisp.org>
15046
15047         pwrite: Move AC_LIBOBJ invocations to module description.
15048         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15049         * modules/pwrite (configure.ac): ... to here.
15050
15051 2011-05-21  Bruno Haible  <bruno@clisp.org>
15052
15053         putenv: Move AC_LIBOBJ invocations to module description.
15054         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15055         * modules/putenv (configure.ac): ... to here.
15056
15057 2011-05-21  Bruno Haible  <bruno@clisp.org>
15058
15059         login_tty: Move AC_LIBOBJ invocations to module description.
15060         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15061         * modules/login_tty (configure.ac): ... to here.
15062
15063 2011-05-21  Bruno Haible  <bruno@clisp.org>
15064
15065         openpty: Move AC_LIBOBJ invocations to module description.
15066         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15067         * modules/openpty (configure.ac): ... to here.
15068
15069 2011-05-21  Bruno Haible  <bruno@clisp.org>
15070
15071         forkpty: Move AC_LIBOBJ invocations to module description.
15072         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15073         * modules/forkpty (configure.ac): ... to here.
15074
15075 2011-05-21  Bruno Haible  <bruno@clisp.org>
15076
15077         ptsname: Move AC_LIBOBJ invocations to module description.
15078         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15079         invocations from here...
15080         * modules/ptsname (configure.ac): ... to here.
15081
15082 2011-05-21  Bruno Haible  <bruno@clisp.org>
15083
15084         pread: Move AC_LIBOBJ invocations to module description.
15085         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15086         * modules/pread (configure.ac): ... to here.
15087
15088 2011-05-21  Bruno Haible  <bruno@clisp.org>
15089
15090         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15091         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15092         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15093         * modules/posix_spawn (configure.ac): ... to here.
15094         * modules/posix_spawnp (configure.ac): ... and here.
15095
15096 2011-05-21  Bruno Haible  <bruno@clisp.org>
15097
15098         popen: Move AC_LIBOBJ invocations to module description.
15099         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15100         invocations from here...
15101         * modules/popen (configure.ac): ... to here.
15102
15103 2011-05-21  Bruno Haible  <bruno@clisp.org>
15104
15105         poll: Move AC_LIBOBJ invocations to module description.
15106         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15107         invocations from here...
15108         * modules/poll (configure.ac): ... to here.
15109
15110 2011-05-21  Bruno Haible  <bruno@clisp.org>
15111
15112         pipe-posix: Move AC_LIBOBJ invocations to module description.
15113         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15114         * modules/pipe-posix (configure.ac): ... to here.
15115
15116 2011-05-21  Bruno Haible  <bruno@clisp.org>
15117
15118         openat: Respect rules for use of AC_LIBOBJ.
15119         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15120         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15121         * modules/openat (configure.ac): ... to here.
15122
15123 2011-05-21  Bruno Haible  <bruno@clisp.org>
15124
15125         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15126         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15127         invocation from here...
15128         * modules/obstack-printf (configure.ac): ... to here.
15129         * modules/obstack-printf-posix (configure.ac): ... and here.
15130
15131 2011-05-21  Bruno Haible  <bruno@clisp.org>
15132
15133         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15134         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15135         from here...
15136         * modules/nl_langinfo (configure.ac): ... to here.
15137
15138 2011-05-21  Bruno Haible  <bruno@clisp.org>
15139
15140         nanosleep: Move AC_LIBOBJ invocations to module description.
15141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15142         gl_PREREQ_NANOSLEEP invocations from here...
15143         * modules/nanosleep (configure.ac): ... to here.
15144
15145 2011-05-21  Bruno Haible  <bruno@clisp.org>
15146
15147         mountlist: Move AC_LIBOBJ invocations to module description.
15148         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15149         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15150         * modules/mountlist (configure.ac): ... to here.
15151
15152 2011-05-21  Bruno Haible  <bruno@clisp.org>
15153
15154         mktime: Respect rules for use of AC_LIBOBJ.
15155         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15156         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15157         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15158         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15159         * modules/mktime (configure.ac): ... to here.
15160         * modules/mktime-internal (configure.ac): ... and here.
15161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15162
15163 2011-05-21  Bruno Haible  <bruno@clisp.org>
15164
15165         mkstemps: Move AC_LIBOBJ invocations to module description.
15166         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15167         here...
15168         * modules/mkstemps (configure.ac): ... to here.
15169
15170 2011-05-21  Bruno Haible  <bruno@clisp.org>
15171
15172         mkstemp: Move AC_LIBOBJ invocations to module description.
15173         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15174         gl_PREREQ_MKSTEMP invocations from here...
15175         * modules/mkstemp (configure.ac): ... to here.
15176
15177 2011-05-21  Bruno Haible  <bruno@clisp.org>
15178
15179         mkostemps: Move AC_LIBOBJ invocations to module description.
15180         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15181         here...
15182         * modules/mkostemps (configure.ac): ... to here.
15183
15184 2011-05-21  Bruno Haible  <bruno@clisp.org>
15185
15186         mkostemp: Move AC_LIBOBJ invocations to module description.
15187         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15188         gl_PREREQ_MKOSTEMP invocations from here...
15189         * modules/mkostemp (configure.ac): ... to here.
15190
15191 2011-05-21  Bruno Haible  <bruno@clisp.org>
15192
15193         mknod: Move AC_LIBOBJ invocations to module description.
15194         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15195         * modules/mknod (configure.ac): ... to here.
15196
15197 2011-05-21  Bruno Haible  <bruno@clisp.org>
15198
15199         mkfifoat: Move AC_LIBOBJ invocations to module description.
15200         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15201         here...
15202         * modules/mkfifoat (configure.ac): ... to here.
15203
15204 2011-05-21  Bruno Haible  <bruno@clisp.org>
15205
15206         mkfifo: Respect rules for use of AC_LIBOBJ.
15207         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15208         here...
15209         * modules/mkfifo (configure.ac): ... to here.
15210
15211 2011-05-21  Bruno Haible  <bruno@clisp.org>
15212
15213         mkdtemp: Move AC_LIBOBJ invocations to module description.
15214         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15215         invocations from here...
15216         * modules/mkdtemp (configure.ac): ... to here.
15217
15218 2011-05-21  Bruno Haible  <bruno@clisp.org>
15219
15220         mkdir: Move AC_LIBOBJ invocations to module description.
15221         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15222         * modules/mkdir (configure.ac): ... to here.
15223
15224 2011-05-21  Bruno Haible  <bruno@clisp.org>
15225
15226         memset: Move AC_LIBOBJ invocations to module description.
15227         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15228         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15229         here...
15230         * modules/memset (configure.ac): ... to here.
15231
15232 2011-05-21  Bruno Haible  <bruno@clisp.org>
15233
15234         memrchr: Move AC_LIBOBJ invocations to module description.
15235         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15236         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15237         here...
15238         * modules/memrchr (configure.ac): ... to here.
15239
15240 2011-05-21  Bruno Haible  <bruno@clisp.org>
15241
15242         mempcpy: Move AC_LIBOBJ invocations to module description.
15243         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15244         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15245         here...
15246         * modules/mempcpy (configure.ac): ... to here.
15247
15248 2011-05-21  Bruno Haible  <bruno@clisp.org>
15249
15250         memmove: Move AC_LIBOBJ invocations to module description.
15251         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15253         here...
15254         * modules/memmove (configure.ac): ... to here.
15255
15256 2011-05-21  Bruno Haible  <bruno@clisp.org>
15257
15258         memmem*: Move AC_LIBOBJ invocations to module description.
15259         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15260         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15261         here...
15262         (gl_FUNC_MEMMEM): ... and here...
15263         * modules/memmem-simple (configure.ac): ... to here.
15264         * modules/memmem (configure.ac): ... and here.
15265
15266 2011-05-21  Bruno Haible  <bruno@clisp.org>
15267
15268         memcpy: Move AC_LIBOBJ invocations to module description.
15269         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15271         here...
15272         * modules/memcpy (configure.ac): ... to here.
15273
15274 2011-05-21  Bruno Haible  <bruno@clisp.org>
15275
15276         memcmp: Simplify autoconf macro.
15277         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15278         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15279         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15280
15281 2011-05-21  Bruno Haible  <bruno@clisp.org>
15282
15283         memcmp: Move AC_LIBOBJ invocations to module description.
15284         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15285         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15286         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15287         * modules/memcmp (configure.ac): ... to here.
15288         (Depends-on): Update conditions.
15289
15290 2011-05-21  Bruno Haible  <bruno@clisp.org>
15291
15292         memchr: Respect rules for use of AC_LIBOBJ.
15293         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15294         invocations from here...
15295         * modules/memchr (configure.ac): ... to here.
15296
15297 2011-05-21  Bruno Haible  <bruno@clisp.org>
15298
15299         mbtowc: Move AC_LIBOBJ invocations to module description.
15300         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15301         invocations from here...
15302         * modules/mbtowc (configure.ac): ... to here.
15303
15304 2011-05-21  Bruno Haible  <bruno@clisp.org>
15305
15306         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15307         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15308         gl_PREREQ_MBSRTOWCS invocations from here...
15309         * modules/mbsrtowcs (configure.ac): ... to here.
15310
15311 2011-05-21  Bruno Haible  <bruno@clisp.org>
15312
15313         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15314         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15315         gl_PREREQ_MBSNRTOWCS invocations from here...
15316         * modules/mbsnrtowcs (configure.ac): ... to here.
15317
15318 2011-05-21  Bruno Haible  <bruno@clisp.org>
15319
15320         mbsinit: Move AC_LIBOBJ invocations to module description.
15321         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15322         invocations from here...
15323         * modules/mbsinit (configure.ac): ... to here.
15324
15325 2011-05-21  Bruno Haible  <bruno@clisp.org>
15326
15327         mbrlen: Move AC_LIBOBJ invocations to module description.
15328         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15329         invocations from here...
15330         * modules/mbrlen (configure.ac): ... to here.
15331
15332 2011-05-21  Bruno Haible  <bruno@clisp.org>
15333
15334         mbrtowc: Respect rules for use of AC_LIBOBJ.
15335         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15336         invocations from here...
15337         * modules/mbrtowc (configure.ac): ... to here.
15338
15339 2011-05-21  Bruno Haible  <bruno@clisp.org>
15340
15341         malloc-*: Move AC_LIBOBJ invocations to module description.
15342         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15343         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15344         AC_LIBOBJ invocations from here...
15345         * modules/malloc-gnu (configure.ac): ... to here.
15346         * modules/malloc-posix (configure.ac): ... and here.
15347
15348 2011-05-21  Bruno Haible  <bruno@clisp.org>
15349
15350         lstat, openat: Respect rules for use of AC_LIBOBJ.
15351         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15352         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15353         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15354         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15355         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15356         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15357         here.
15358         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15359
15360 2011-05-21  Bruno Haible  <bruno@clisp.org>
15361
15362         lseek: Move AC_LIBOBJ invocations to module description.
15363         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15364         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15365         * modules/lseek (configure.ac): ... to here.
15366
15367 2011-05-21  Bruno Haible  <bruno@clisp.org>
15368
15369         linkat: Move AC_LIBOBJ invocations to module description.
15370         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15371         here...
15372         * modules/linkat (configure.ac): ... to here.
15373
15374 2011-05-21  Bruno Haible  <bruno@clisp.org>
15375
15376         link: Respect rules for use of AC_LIBOBJ.
15377         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15378         * modules/link (configure.ac): ... to here.
15379
15380 2011-05-21  Bruno Haible  <bruno@clisp.org>
15381
15382         lchown: Move AC_LIBOBJ invocations to module description.
15383         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15384         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15385         * modules/lchown (configure.ac): ... to here.
15386
15387 2011-05-21  Bruno Haible  <bruno@clisp.org>
15388
15389         iswctype: Move AC_LIBOBJ invocations to module description.
15390         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15391         here...
15392         * modules/iswctype (configure.ac): ... to here.
15393
15394 2011-05-21  Bruno Haible  <bruno@clisp.org>
15395
15396         iswblank: Move AC_LIBOBJ invocations to module description.
15397         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15398         here...
15399         * modules/iswblank (configure.ac): ... to here.
15400
15401 2011-05-21  Bruno Haible  <bruno@clisp.org>
15402
15403         atanl: Move AC_LIBOBJ invocations to module description.
15404         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15405         * modules/atanl (configure.ac): ... to here.
15406
15407 2011-05-21  Bruno Haible  <bruno@clisp.org>
15408
15409         acosl: Move AC_LIBOBJ invocations to module description.
15410         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15411         * modules/acosl (configure.ac): ... to here.
15412
15413 2011-05-21  Bruno Haible  <bruno@clisp.org>
15414
15415         asinl: Respect rules for use of AC_LIBOBJ.
15416         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15417         * modules/asinl (configure.ac): ... to here.
15418
15419 2011-05-21  Bruno Haible  <bruno@clisp.org>
15420
15421         tanl: Move AC_LIBOBJ invocations to module description.
15422         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15423         * modules/tanl (configure.ac): ... to here.
15424
15425 2011-05-21  Bruno Haible  <bruno@clisp.org>
15426
15427         cosl: Move AC_LIBOBJ invocations to module description.
15428         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15429         * modules/cosl (configure.ac): ... to here.
15430
15431 2011-05-21  Bruno Haible  <bruno@clisp.org>
15432
15433         sinl: Move AC_LIBOBJ invocations to module description.
15434         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15435         * modules/sinl (configure.ac): ... to here.
15436
15437 2011-05-21  Bruno Haible  <bruno@clisp.org>
15438
15439         logl: Move AC_LIBOBJ invocations to module description.
15440         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15441         * modules/logl (configure.ac): ... to here.
15442
15443 2011-05-21  Bruno Haible  <bruno@clisp.org>
15444
15445         expl: Move AC_LIBOBJ invocations to module description.
15446         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15447         * modules/expl (configure.ac): ... to here.
15448
15449 2011-05-21  Bruno Haible  <bruno@clisp.org>
15450
15451         roundl: Move AC_LIBOBJ invocations to module description.
15452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15453         * modules/roundl (configure.ac): ... to here.
15454
15455 2011-05-21  Bruno Haible  <bruno@clisp.org>
15456
15457         round: Move AC_LIBOBJ invocations to module description.
15458         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15459         * modules/round (configure.ac): ... to here.
15460
15461 2011-05-21  Bruno Haible  <bruno@clisp.org>
15462
15463         roundf: Move AC_LIBOBJ invocations to module description.
15464         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15465         * modules/roundf (configure.ac): ... to here.
15466
15467 2011-05-21  Bruno Haible  <bruno@clisp.org>
15468
15469         truncl: Move AC_LIBOBJ invocations to module description.
15470         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15471         * modules/truncl (configure.ac): ... to here.
15472
15473 2011-05-21  Bruno Haible  <bruno@clisp.org>
15474
15475         trunc: Move AC_LIBOBJ invocations to module description.
15476         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15477         * modules/trunc (configure.ac): ... to here.
15478
15479 2011-05-21  Bruno Haible  <bruno@clisp.org>
15480
15481         truncf: Move AC_LIBOBJ invocations to module description.
15482         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15483         * modules/truncf (configure.ac): ... to here.
15484
15485 2011-05-21  Bruno Haible  <bruno@clisp.org>
15486
15487         ceill: Move AC_LIBOBJ invocations to module description.
15488         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15489         * modules/ceill (configure.ac): ... to here.
15490
15491 2011-05-21  Bruno Haible  <bruno@clisp.org>
15492
15493         ceil: Move AC_LIBOBJ invocations to module description.
15494         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15495         * modules/ceil (configure.ac): ... to here.
15496
15497 2011-05-21  Bruno Haible  <bruno@clisp.org>
15498
15499         ceilf: Move AC_LIBOBJ invocations to module description.
15500         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15501         * modules/ceilf (configure.ac): ... to here.
15502
15503 2011-05-21  Bruno Haible  <bruno@clisp.org>
15504
15505         floorl: Respect rules for use of AC_LIBOBJ.
15506         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15507         * modules/floorl (configure.ac): ... to here.
15508
15509 2011-05-21  Bruno Haible  <bruno@clisp.org>
15510
15511         floor: Respect rules for use of AC_LIBOBJ.
15512         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15513         * modules/floor (configure.ac): ... to here.
15514
15515 2011-05-21  Bruno Haible  <bruno@clisp.org>
15516
15517         floorf: Move AC_LIBOBJ invocations to module description.
15518         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15519         * modules/floorf (configure.ac): ... to here.
15520
15521 2011-05-20  Bruno Haible  <bruno@clisp.org>
15522
15523         sqrtl: Respect rules for use of AC_LIBOBJ.
15524         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15525         * modules/sqrtl (configure.ac): ... to here.
15526
15527 2011-05-20  Bruno Haible  <bruno@clisp.org>
15528
15529         ldexpl: Respect rules for use of AC_LIBOBJ.
15530         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15531         * modules/ldexpl (configure.ac): ... to here.
15532
15533 2011-05-20  Bruno Haible  <bruno@clisp.org>
15534
15535         frexpl*: Respect rules for use of AC_LIBOBJ.
15536         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15537         invocation from here...
15538         * modules/frexpl (configure.ac): ... to here.
15539         * modules/frexpl-nolibm (configure.ac): ... and here.
15540
15541 2011-05-20  Bruno Haible  <bruno@clisp.org>
15542
15543         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15544         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15545         invocation from here...
15546         * modules/frexp (configure.ac): ... to here.
15547         * modules/frexp-nolibm (configure.ac): ... and here.
15548
15549 2011-05-20  Bruno Haible  <bruno@clisp.org>
15550
15551         isnan: Respect rules for use of AC_LIBOBJ.
15552         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15553         invocations here.
15554         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15555         REPLACE_ISNAN.
15556         * modules/isnand (configure.ac): Likewise.
15557         * modules/isnanl (configure.ac): Likewise.
15558
15559 2011-05-20  Bruno Haible  <bruno@clisp.org>
15560
15561         isnanl*: Respect rules for use of AC_LIBOBJ.
15562         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15563         invocation from here...
15564         * modules/isnanl (configure.ac): ... to here.
15565         * modules/isnanl-nolibm (configure.ac): ... and here.
15566
15567 2011-05-20  Bruno Haible  <bruno@clisp.org>
15568
15569         isnand*: Move AC_LIBOBJ invocations to module description.
15570         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15571         invocation from here...
15572         * modules/isnand (configure.ac): ... to here.
15573         * modules/isnand-nolibm (configure.ac): ... and here.
15574
15575 2011-05-20  Bruno Haible  <bruno@clisp.org>
15576
15577         isnanf*: Move AC_LIBOBJ invocations to module description.
15578         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15579         invocation from here...
15580         * modules/isnanf (configure.ac): ... to here.
15581         * modules/isnanf-nolibm (configure.ac): ... and here.
15582
15583 2011-05-20  Bruno Haible  <bruno@clisp.org>
15584
15585         isnan*: Separate the AC_LIBOBJ invocations.
15586         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15587         AC_LIBOBJ invocation.
15588         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15589         here.
15590         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15591         AC_LIBOBJ invocation.
15592         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15593         here.
15594         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15595         AC_LIBOBJ invocation.
15596         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15597         here.
15598         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15599
15600 2011-05-08  Bruno Haible  <bruno@clisp.org>
15601
15602         isinf: Move AC_LIBOBJ invocations to module description.
15603         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15604         * modules/isinf (configure.ac): ... to here.
15605
15606 2011-05-08  Bruno Haible  <bruno@clisp.org>
15607
15608         isfinite: Move AC_LIBOBJ invocations to module description.
15609         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15610         * modules/isfinite (configure.ac): ... to here.
15611
15612 2011-05-08  Bruno Haible  <bruno@clisp.org>
15613
15614         isblank: Move AC_LIBOBJ invocations to module description.
15615         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15616         here...
15617         * modules/isblank (configure.ac): ... to here.
15618
15619 2011-05-08  Bruno Haible  <bruno@clisp.org>
15620
15621         isapipe: Move AC_LIBOBJ invocations to module description.
15622         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15623         gl_PREREQ_ISAPIPE invocations from here...
15624         * modules/isapipe (configure.ac): ... to here.
15625         (Depends-on): Update condition.
15626
15627 2011-05-08  Bruno Haible  <bruno@clisp.org>
15628
15629         ioctl: Move AC_LIBOBJ invocations to module description.
15630         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15631         invocations from here...
15632         * modules/ioctl (configure.ac): ... to here.
15633         (Depends-on): Update condition.
15634
15635 2011-05-08  Bruno Haible  <bruno@clisp.org>
15636
15637         imaxdiv: Move AC_LIBOBJ invocations to module description.
15638         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15639         invocations from here...
15640         * modules/imaxdiv (configure.ac): ... to here.
15641
15642 2011-05-08  Bruno Haible  <bruno@clisp.org>
15643
15644         imaxabs: Move AC_LIBOBJ invocations to module description.
15645         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15646         invocations from here...
15647         * modules/imaxabs (configure.ac): ... to here.
15648
15649 2011-05-08  Bruno Haible  <bruno@clisp.org>
15650
15651         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15652         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15653         AC_LIBOBJ invocations from here...
15654         * modules/getaddrinfo (configure.ac): ... to here.
15655         (Depends-on): Add conditions.
15656
15657 2011-05-08  Bruno Haible  <bruno@clisp.org>
15658
15659         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15660         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15661         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15662         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15663         (gl_PREREQ_INET_PTON): ... from here.
15664         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15665         gl_PREREQ_INET_PTON here.
15666         (Depends-on): Update condition.
15667
15668 2011-05-08  Bruno Haible  <bruno@clisp.org>
15669
15670         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15671         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15672         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15673         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15674         (gl_PREREQ_INET_NTOP): ... from here.
15675         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15676         gl_PREREQ_INET_NTOP here.
15677         (Depends-on): Update condition.
15678
15679 2011-05-08  Bruno Haible  <bruno@clisp.org>
15680
15681         iconv_open: Move AC_LIBOBJ invocations to module description.
15682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15683         AC_LIBOBJ invocations from here...
15684         * modules/iconv_open (configure.ac): ... to here.
15685
15686 2011-05-08  Bruno Haible  <bruno@clisp.org>
15687
15688         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15689         If module 'iconv_open' is among the main modules and module
15690         'iconv_open-utf' is among the tests dependencies, then
15691         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15692         return the special iconv_t values. Therefore iconv() and iconv_close()
15693         must support these special iconv_t values, already in lib, not only in
15694         tests.
15695         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15697         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15698         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15699         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15700         (Depends-on): Add the dependencies of iconv_open-utf.
15701         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15702         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15703         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15704
15705 2011-05-08  Bruno Haible  <bruno@clisp.org>
15706
15707         group-member: Move AC_LIBOBJ invocations to module description.
15708         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15709         gl_PREREQ_GROUP_MEMBER invocations from here...
15710         * modules/group-member (configure.ac): ... to here.
15711
15712 2011-05-08  Bruno Haible  <bruno@clisp.org>
15713
15714         grantpt: Move AC_LIBOBJ invocations to module description.
15715         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15716         invocations from here...
15717         * modules/grantpt (configure.ac): ... to here.
15718
15719 2011-05-08  Bruno Haible  <bruno@clisp.org>
15720
15721         glob: Move AC_LIBOBJ invocations to module description.
15722         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15723         from here...
15724         * modules/glob (configure.ac): ... to here.
15725
15726 2011-05-08  Bruno Haible  <bruno@clisp.org>
15727
15728         getusershell: Move AC_LIBOBJ invocations to module description.
15729         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15730         Move AC_LIBOBJ invocation from here...
15731         * modules/getusershell (configure.ac): ... to here.
15732         (Depends-on): Update condition.
15733
15734 2011-05-08  Bruno Haible  <bruno@clisp.org>
15735
15736         gettimeofday: Move AC_LIBOBJ invocations to module description.
15737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15738         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15739         gl_PREREQ_GETTIMEOFDAY invocations from here...
15740         * modules/gettimeofday (configure.ac): ... to here.
15741
15742 2011-05-08  Bruno Haible  <bruno@clisp.org>
15743
15744         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15745         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15746         just gl_FUNC_TZSET.
15747         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15748         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15749         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15750         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15751
15752 2011-05-08  Bruno Haible  <bruno@clisp.org>
15753
15754         getsubopt: Move AC_LIBOBJ invocations to module description.
15755         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15756         gl_PREREQ_GETSUBOPT invocations from here...
15757         * modules/getsubopt (configure.ac): ... to here.
15758
15759 2011-05-08  Bruno Haible  <bruno@clisp.org>
15760
15761         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15762         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15763         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15764         * modules/getpass-gnu (configure.ac): ... to here.
15765
15766 2011-05-08  Bruno Haible  <bruno@clisp.org>
15767
15768         getpass: Move AC_LIBOBJ invocations to module description.
15769         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15770         gl_PREREQ_GETPASS invocations from here...
15771         * modules/getpass (configure.ac): ... to here.
15772
15773 2011-05-08  Bruno Haible  <bruno@clisp.org>
15774
15775         getpagesize: Move AC_LIBOBJ invocations to module description.
15776         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15777         from here...
15778         * modules/getpagesize (configure.ac): ... to here.
15779
15780 2011-05-08  Bruno Haible  <bruno@clisp.org>
15781
15782         getopt: Move AC_LIBOBJ invocations to module description.
15783         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15784         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15785         invocations from here...
15786         * modules/getopt-gnu (configure.ac): ... to here.
15787         * modules/getopt-posix (configure.ac): ... and here.
15788         (Depends-on): Update condition.
15789
15790 2011-05-08  Bruno Haible  <bruno@clisp.org>
15791
15792         getopt, argp: Respect rules for use of AC_LIBOBJ.
15793         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15794         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15795         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15796         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15797
15798 2011-05-08  Bruno Haible  <bruno@clisp.org>
15799
15800         getlogin_r: Move AC_LIBOBJ invocations to module description.
15801         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15802         gl_PREREQ_GETLOGIN_R invocations from here...
15803         * modules/getlogin_r (configure.ac): ... to here.
15804
15805 2011-05-08  Bruno Haible  <bruno@clisp.org>
15806
15807         getlogin: Move AC_LIBOBJ invocations to module description.
15808         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15809         here...
15810         * modules/getlogin (configure.ac): ... to here.
15811
15812 2011-05-08  Bruno Haible  <bruno@clisp.org>
15813
15814         getloadavg: Move AC_LIBOBJ invocations to module description.
15815         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15816         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15817         * modules/getloadavg (configure.ac): ... to here.
15818
15819 2011-05-08  Bruno Haible  <bruno@clisp.org>
15820
15821         gethrxtime: Move AC_LIBOBJ invocations to module description.
15822         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15823         LIB_GETHRXTIME from here...
15824         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15825         invocations from here...
15826         * modules/gethrxtime (configure.ac): ... to here.
15827
15828 2011-05-08  Bruno Haible  <bruno@clisp.org>
15829
15830         gethostname: Move AC_LIBOBJ invocations to module description.
15831         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15832         gl_PREREQ_GETHOSTNAME invocations from here...
15833         * modules/gethostname (configure.ac): ... to here.
15834
15835 2011-05-08  Bruno Haible  <bruno@clisp.org>
15836
15837         getgroups: Move AC_LIBOBJ invocations to module description.
15838         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15839         here...
15840         * modules/getgroups (configure.ac): ... to here.
15841
15842 2011-05-08  Bruno Haible  <bruno@clisp.org>
15843
15844         getdtablesize: Move AC_LIBOBJ invocations to module description.
15845         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15846         invocation from here...
15847         * modules/getdtablesize (configure.ac): ... to here.
15848
15849 2011-05-08  Bruno Haible  <bruno@clisp.org>
15850
15851         getdomainname: Move AC_LIBOBJ invocations to module description.
15852         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15853         gl_PREREQ_GETDOMAINNAME invocations from here...
15854         * modules/getdomainname (configure.ac): ... to here.
15855
15856 2011-05-08  Bruno Haible  <bruno@clisp.org>
15857
15858         getline: Move AC_LIBOBJ invocations to module description.
15859         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15860         invocations from here...
15861         * modules/getline (configure.ac): ... to here.
15862
15863 2011-05-08  Bruno Haible  <bruno@clisp.org>
15864
15865         getline: Simplify.
15866         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15867         It's already handled through the module dependency.
15868
15869 2011-05-08  Bruno Haible  <bruno@clisp.org>
15870
15871         getdelim: Move AC_LIBOBJ invocations to module description.
15872         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15873         and gl_PREREQ_GETDELIM invocations from here...
15874         * modules/getdelim (configure.ac): ... to here.
15875         (Depends-on): Fix condition.
15876
15877 2011-05-08  Bruno Haible  <bruno@clisp.org>
15878
15879         getcwd: Move AC_LIBOBJ invocations to module description.
15880         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15881         invocations from here...
15882         * modules/getcwd (configure.ac): ... to here.
15883
15884 2011-05-08  Bruno Haible  <bruno@clisp.org>
15885
15886         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15887         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15888         here...
15889         * modules/getcwd-lgpl (configure.ac): ... to here.
15890
15891 2011-05-07  Bruno Haible  <bruno@clisp.org>
15892
15893         crypto/gc: Move AC_LIBOBJ invocations to module description.
15894         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15895         * modules/crypto/gc (configure.ac): ... to here.
15896
15897 2011-05-07  Bruno Haible  <bruno@clisp.org>
15898
15899         fwriting: Move AC_LIBOBJ invocations to module description.
15900         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15901         here...
15902         * modules/fwriting (configure.ac): ... to here.
15903
15904 2011-05-07  Bruno Haible  <bruno@clisp.org>
15905
15906         fwritable: Move AC_LIBOBJ invocations to module description.
15907         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15908         here...
15909         * modules/fwritable (configure.ac): ... to here.
15910
15911 2011-05-07  Bruno Haible  <bruno@clisp.org>
15912
15913         futimens: Move AC_LIBOBJ invocations to module description.
15914         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15915         here...
15916         * modules/futimens (configure.ac): ... to here.
15917
15918 2011-05-07  Bruno Haible  <bruno@clisp.org>
15919
15920         ftruncate: Move AC_LIBOBJ invocations to module description.
15921         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15922         gl_PREREQ_FTRUNCATE invocations from here...
15923         * modules/ftruncate (configure.ac): ... to here.
15924
15925 2011-05-07  Bruno Haible  <bruno@clisp.org>
15926
15927         fsync: Move AC_LIBOBJ invocations to module description.
15928         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15929         invocations from here...
15930         * modules/fsync (configure.ac): ... to here.
15931
15932 2011-05-07  Bruno Haible  <bruno@clisp.org>
15933
15934         fsusage: Move AC_LIBOBJ invocations to module description.
15935         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15936         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15937         * modules/fsusage (configure.ac): ... to here.
15938
15939 2011-05-07  Bruno Haible  <bruno@clisp.org>
15940
15941         freopen: Move AC_LIBOBJ invocations to module description.
15942         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15943         invocations from here...
15944         * modules/freopen (configure.ac): ... to here.
15945
15946 2011-05-07  Bruno Haible  <bruno@clisp.org>
15947
15948         free: Move AC_LIBOBJ invocations to module description.
15949         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15950         invocations from here...
15951         * modules/free (configure.ac): ... to here.
15952
15953 2011-05-07  Bruno Haible  <bruno@clisp.org>
15954
15955         freadable: Move AC_LIBOBJ invocations to module description.
15956         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15957         here...
15958         * modules/freadable (configure.ac): ... to here.
15959
15960 2011-05-07  Bruno Haible  <bruno@clisp.org>
15961
15962         fpurge: Move AC_LIBOBJ invocations to module description.
15963         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15964         invocations from here...
15965         * modules/fpurge (configure.ac): ... to here.
15966
15967 2011-05-07  Bruno Haible  <bruno@clisp.org>
15968
15969         fpending: Move AC_LIBOBJ invocations to module description.
15970         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15971         gl_FUNC_FPENDING.
15972         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15973         invocations from here...
15974         * modules/fpending (configure.ac): ... to here.
15975
15976 2011-05-07  Bruno Haible  <bruno@clisp.org>
15977
15978         fopen: Move AC_LIBOBJ invocations to module description.
15979         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15980         invocations from here...
15981         * modules/fopen (configure.ac): ... to here.
15982
15983 2011-05-07  Bruno Haible  <bruno@clisp.org>
15984
15985         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15986         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15987         gl_FUNC_FNMATCH_POSIX.
15988         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15989         invocations from here...
15990         * modules/fnmatch (configure.ac): ... to here.
15991         * modules/fnmatch-gnu (configure.ac): ... and here.
15992
15993 2011-05-07  Bruno Haible  <bruno@clisp.org>
15994
15995         flock: Move AC_LIBOBJ invocations to module description.
15996         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15997         invocations from here...
15998         * modules/flock (configure.ac): ... to here.
15999
16000 2011-05-07  Bruno Haible  <bruno@clisp.org>
16001
16002         fileblocks: Move AC_LIBOBJ invocations to module description.
16003         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16004         gl_PREREQ_FILEBLOCKS invocations from here...
16005         * modules/fileblocks (configure.ac): ... to here.
16006
16007 2011-05-06  Bruno Haible  <bruno@clisp.org>
16008
16009         fflush: Move AC_LIBOBJ invocations to module description.
16010         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16011         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16012         invocations from here...
16013         * modules/fflush (configure.ac): ... to here.
16014
16015 2011-05-06  Bruno Haible  <bruno@clisp.org>
16016
16017         fdopendir: Move AC_LIBOBJ invocations to module description.
16018         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16019         here...
16020         * modules/fdopendir (configure.ac): ... to here.
16021         (Depends-on): Improve conditions.
16022
16023 2011-05-06  Bruno Haible  <bruno@clisp.org>
16024
16025         _Exit: Move AC_LIBOBJ invocations to module description.
16026         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16027         invocations from here...
16028         * modules/_Exit (configure.ac): ... to here.
16029
16030 2011-05-21  Bruno Haible  <bruno@clisp.org>
16031
16032         euidaccess: Respect rules for use of AC_LIBOBJ.
16033         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16035         from here...
16036         * modules/euidaccess (configure.ac): ... to here.
16037
16038 2011-05-06  Bruno Haible  <bruno@clisp.org>
16039
16040         error: Move AC_LIBOBJ invocations to module description.
16041         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16042         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16043         invocations from here...
16044         * modules/error (configure.ac): ... to here.
16045
16046 2011-05-06  Bruno Haible  <bruno@clisp.org>
16047
16048         duplocale: Move AC_LIBOBJ invocations to module description.
16049         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16050         gl_PREREQ_DUPLOCALE invocations from here...
16051         * modules/duplocale (configure.ac): ... to here.
16052
16053 2011-05-05  Bruno Haible  <bruno@clisp.org>
16054
16055         dirfd: Move AC_LIBOBJ invocations to module description.
16056         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16057         gl_FUNC_DIRFD.
16058         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16059         here...
16060         * modules/dirfd (configure.ac): ... to here.
16061         (Depends-on): Fix condition.
16062
16063 2011-05-05  Bruno Haible  <bruno@clisp.org>
16064
16065         chown: Respect rules for use of AC_LIBOBJ.
16066         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16067         * modules/chown (configure.ac): ... to here.
16068
16069 2011-05-05  Bruno Haible  <bruno@clisp.org>
16070
16071         chdir-long: Move AC_LIBOBJ invocations to module description.
16072         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16073         gl_PREREQ_CHDIR_LONG invocations from here...
16074         * modules/chdir-long (configure.ac): ... to here.
16075
16076 2011-05-05  Bruno Haible  <bruno@clisp.org>
16077
16078         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16079         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16080         from here...
16081         * modules/canonicalize-lgpl (configure.ac): ... to here.
16082
16083 2011-05-05  Bruno Haible  <bruno@clisp.org>
16084
16085         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16086         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16087         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16088         REPLACE_CALLOC.
16089         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16090         * modules/calloc-gnu (configure.ac): Likewise.
16091
16092 2011-05-05  Bruno Haible  <bruno@clisp.org>
16093
16094         btowc: Move AC_LIBOBJ invocations to module description.
16095         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16096         invocations from here...
16097         * modules/btowc (configure.ac): ... to here.
16098
16099 2011-05-21  Bruno Haible  <bruno@clisp.org>
16100
16101         atexit: Move AC_LIBOBJ invocations to module description.
16102         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16104         here...
16105         * modules/atexit (configure.ac): ... to here.
16106
16107 2011-05-05  Bruno Haible  <bruno@clisp.org>
16108
16109         atoll: Move AC_LIBOBJ invocations to module description.
16110         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16111         invocations from here...
16112         * modules/atoll (configure.ac): ... to here.
16113
16114 2011-05-05  Bruno Haible  <bruno@clisp.org>
16115
16116         argz: Move AC_LIBOBJ invocations to module description.
16117         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16118         * modules/argz (configure.ac): ... to here.
16119
16120 2011-05-05  Bruno Haible  <bruno@clisp.org>
16121
16122         alphasort: Move AC_LIBOBJ invocations to module description.
16123         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16124         gl_PREREQ_ALPHASORT invocations from here...
16125         * modules/alphasort (configure.ac): ... to here.
16126
16127 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16128
16129         verify: new macro verify_expr; verify_true deprecated
16130         * NEWS: Mention this.
16131         * doc/verify.texi (Compile-time Assertions): Document this.
16132         * lib/verify.h (verify_true): Deprecate.
16133         (verify_expr): New macro.
16134         * tests/test-verify.c (function): Test verify_expr.
16135
16136 2011-06-14  Jim Meyering  <meyering@redhat.com>
16137
16138         init.sh: give more portable redirection-related advice in a comment
16139         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16140         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16141         for lots of discussion.  Stefano Lattarini suggested the solution
16142         of putting "9>&2" after the command.  Reported by Bruno Haible.
16143
16144 2011-06-13  Bruno Haible  <bruno@clisp.org>
16145
16146         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16148         'none'.
16149
16150 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16151
16152         ftoastr: use strtof only if HAVE_STRTOF
16153         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16155         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16156         * modules/ftoastr (configure.ac): Check for strtof.
16157
16158 2011-06-13  Bruno Haible  <bruno@clisp.org>
16159
16160         gnulib-tool: Addendum to 2011-06-08 commit.
16161         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16162         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16163
16164 2011-06-13  Bruno Haible  <bruno@clisp.org>
16165
16166         fseeko: Provide a non-inline replacement of fseek().
16167         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16168         * modules/fseeko (Depends-on): Add fseek.
16169         * modules/fseek (License): Change to LGPLv2+.
16170
16171 2011-06-13  Bruno Haible  <bruno@clisp.org>
16172
16173         ftello: Provide a non-inline replacement of ftell().
16174         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16175         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16176         not have ftello() (such as on mingw).
16177         * modules/ftello (Depends-on): Add ftell.
16178         * modules/ftell (License): Change to LGPLv2+.
16179
16180 2011-05-07  Bruno Haible  <bruno@clisp.org>
16181
16182         ftell: Move AC_LIBOBJ invocations to module description.
16183         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16184         * modules/ftell (configure.ac): ... to here.
16185
16186 2011-05-07  Bruno Haible  <bruno@clisp.org>
16187
16188         ftello: Respect rules for use of AC_LIBOBJ.
16189         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16190         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16191         here...
16192         * modules/ftello (configure.ac): ... to here.
16193
16194 2011-05-07  Bruno Haible  <bruno@clisp.org>
16195
16196         fseeko: Simplify.
16197         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16198         (gl_FUNC_FSEEKO): Inline it here.
16199
16200 2011-05-07  Bruno Haible  <bruno@clisp.org>
16201
16202         fseek: Move AC_LIBOBJ invocations to module description.
16203         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16204         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16205         * modules/fseek (configure.ac): ... to here.
16206
16207 2011-05-07  Bruno Haible  <bruno@clisp.org>
16208
16209         fseek: Respect rules for use of AC_LIBOBJ.
16210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16211         here...
16212         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16213
16214 2011-05-07  Bruno Haible  <bruno@clisp.org>
16215
16216         fseeko: Respect rules for use of AC_LIBOBJ.
16217         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16218         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16219         here...
16220         * modules/fseeko (configure.ac): ... to here.
16221
16222 2011-06-13  Bruno Haible  <bruno@clisp.org>
16223
16224         gnulib-tool: Allow comments in the 'Depends-on' section.
16225         * doc/gnulib.texi (Module description): Mention comment syntax in the
16226         Depends-on section.
16227         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16228
16229 2011-06-13  Bruno Haible  <bruno@clisp.org>
16230
16231         file-set.h: guard __attibute__ use, now that it's not always defined
16232         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16233         versions that support it.  This fixes a coreutils build failure with
16234         the vendor cc on HP-UX 11.31.
16235
16236 2011-06-12  Bruno Haible  <bruno@clisp.org>
16237
16238         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16239         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16240         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16241         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16242         (acl, aclsort): New declarations.
16243         (aclv_nontrivial): New declaration.
16244         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16245         (file_has_acl): Read also the second kind of HP-UX ACLs.
16246         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16247         kind of HP-UX ACLs if the first kind fails.
16248         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16249         second kind of HP-UX ACLs.
16250         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16251         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16252         agree.
16253         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16254         hpuxjfs.
16255         Handle hpuxjfs.
16256         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16257         hpuxjfs.
16258         Handle hpuxjfs.
16259         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16260         (func_test_same_acls): Use both lsacl and getacl.
16261         Handle hpuxjfs.
16262         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16263         (func_test_same_acls): Use both lsacl and getacl.
16264         Handle hpuxjfs.
16265
16266 2011-06-12  Bruno Haible  <bruno@clisp.org>
16267
16268         acl: Complete the 2010-08-10 fix.
16269         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16270         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16271         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16272         explicitly.
16273         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16274         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16275
16276 2011-06-12  Bruno Haible  <bruno@clisp.org>
16277
16278         spawn-pipe tests: Comments.
16279         * tests/test-spawn-pipe-child.c (main): Update comment.
16280         Reported by James Youngman <jay@gnu.org>.
16281
16282 2011-06-11  James Youngman  <jay@gnu.org>
16283
16284         New module 'stat-size'.
16285         * modules/stat-size: New module.  Provides macros for accessing
16286         file size information in instances of struct stat.  Depends on the
16287         fileblocks module because it calls st_blocks.
16288         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16289         * doc/gnulib.texi: Include stat-size.texi.
16290         * doc/stat-size.texi: Documentation for this module.
16291         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16292         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16293         AC_STRUCT_ST_BLOCKS.
16294
16295 2011-06-09  Bruno Haible  <bruno@clisp.org>
16296
16297         thread: Support pthreads-win32.
16298         * lib/glthread/thread.h (gl_thread_self): Define differently on
16299         pthreads-win32.
16300         (gl_null_thread): New declaration.
16301         (gl_thread_self_pointer): New macro.
16302         * lib/glthread/thread.c (gl_null_thread): New constant.
16303         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16304         gl_thread_self.
16305         * tests/test-tls.c: Likewise.
16306         Suggested by Paul Eggert. Reported by Eric Blake.
16307
16308 2011-06-09  Bruno Haible  <bruno@clisp.org>
16309
16310         thread: Fix confusion between NULL and 0.
16311         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16312         Reported by Paul Eggert.
16313
16314 2011-06-09  Bruno Haible  <bruno@clisp.org>
16315
16316         spawn-pipe tests: Avoid test failure on HP-UX 11.
16317         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16318         is closed.
16319
16320 2011-06-09  Bruno Haible  <bruno@clisp.org>
16321
16322         acl tests: Fix compilation error on HP-UX 11.
16323         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16324
16325 2011-06-09  Bruno Haible  <bruno@clisp.org>
16326
16327         rmdir: Avoid test failure on HP-UX 10.20.
16328         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16329         EEXIST.
16330
16331 2011-06-08  Eric Blake  <eblake@redhat.com>
16332
16333         perror: fix test on mingw
16334         * modules/perror-tests (Depends-on): Add dup2.
16335
16336         strerror_r-posix: fix on MacOS
16337         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16338         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16339         logic bug.
16340         * lib/strerror_r.c (strerror_r): Fix the bug.
16341         * lib/strerror.c (strerror): Likewise.
16342         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16343         problem.
16344         * doc/posix-functions/strerror.texi (strerror): Likewise.
16345         * doc/posix-functions/perror.texi (perror): Likewise.
16346         * tests/test-strerror.c (main): Enhance test.
16347         * tests/test-strerror_r.c (main): Likewise.
16348
16349 2011-06-08  Bruno Haible  <bruno@clisp.org>
16350
16351         gnulib-tool: Better isolation between different gnulib-tool invocations.
16352         * gnulib-tool: New option --witness-c-macro.
16353         (witness_c_macro): New variable.
16354         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16355         AM_CPPFLAGS define it as a C macro.
16356         (func_emit_tests_Makefile_am): Likewise.
16357         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16358         read it from there.
16359         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16360         m4_define, not AC_DEFUN.
16361         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16362         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16363         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16364         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16365         s|...|...|, to substitute the values of the GNULIB_* module indicator
16366         variables.
16367         * modules/dirent (Makefile.am): Likewise.
16368         * modules/fcntl-h (Makefile.am): Likewise.
16369         * modules/iconv-h (Makefile.am): Likewise.
16370         * modules/langinfo (Makefile.am): Likewise.
16371         * modules/locale (Makefile.am): Likewise.
16372         * modules/math (Makefile.am): Likewise.
16373         * modules/netdb (Makefile.am): Likewise.
16374         * modules/poll-h (Makefile.am): Likewise.
16375         * modules/pty (Makefile.am): Likewise.
16376         * modules/search (Makefile.am): Likewise.
16377         * modules/signal (Makefile.am): Likewise.
16378         * modules/spawn (Makefile.am): Likewise.
16379         * modules/stdio (Makefile.am): Likewise.
16380         * modules/stdlib (Makefile.am): Likewise.
16381         * modules/string (Makefile.am): Likewise.
16382         * modules/sys_ioctl (Makefile.am): Likewise.
16383         * modules/sys_select (Makefile.am): Likewise.
16384         * modules/sys_socket (Makefile.am): Likewise.
16385         * modules/sys_stat (Makefile.am): Likewise.
16386         * modules/sys_times (Makefile.am): Likewise.
16387         * modules/sys_utsname (Makefile.am): Likewise.
16388         * modules/sys_wait (Makefile.am): Likewise.
16389         * modules/termios (Makefile.am): Likewise.
16390         * modules/time (Makefile.am): Likewise.
16391         * modules/unistd (Makefile.am): Likewise.
16392         * modules/wchar (Makefile.am): Likewise.
16393
16394 2011-06-08  Eric Blake  <eblake@redhat.com>
16395
16396         strerror: simplify replacement
16397         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16398         * modules/strerror (configure.ac): No prereqs needed here...
16399         * modules/strerror-override (configure.ac): ...but this needs it.
16400         (Files): Add file for needed prereq macro.
16401
16402 2011-06-08  Bruno Haible  <bruno@clisp.org>
16403
16404         strerror_r-posix: Tweaks.
16405         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16406         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16408         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16409         (gl_FUNC_STRERROR_R): ... to here.
16410         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16411
16412 2011-06-07  Eric Blake  <eblake@redhat.com>
16413
16414         perror: document fixed bugs
16415         * doc/posix-functions/perror.texi (perror): Document recent
16416         patches.
16417
16418 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16419
16420         stat-time: get_stat_birthtime failure is better-defined
16421         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16422         return a timestamp whose tv_sec and tv_nsec values are both -1.
16423         Previously, the spec said only that the tv_nsec value was negative.
16424         This upward-compatible change simplifies GNU tar a bit.
16425
16426 2011-06-07  Eric Blake  <eblake@redhat.com>
16427
16428         strerror_r-posix: work around cygwin 1.7.9
16429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16430         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16431         bug without replacing strerror_r.
16432         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16433         strerror_r is buggy, but without requiring strerror_r compilation.
16434         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16435
16436         test-perror: relax test to ignore cygwin bug
16437         * tests/test-perror2.c (main): Relax test on requiring detection
16438         of stream errors, and use unbuffered stream.
16439         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16440         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16441         * doc/posix-functions/fputc.texi (fputc): Likewise.
16442         * doc/posix-functions/fputs.texi (fputs): Likewise.
16443         * doc/posix-functions/fputws.texi (fputws): Likewise.
16444         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16445         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16446         * doc/posix-functions/getopt.texi (getopt): Likewise.
16447         * doc/posix-functions/perror.texi (perror): Likewise.
16448         * doc/posix-functions/printf.texi (printf): Likewise.
16449         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16450         * doc/posix-functions/psignal.texi (psignal): Likewise.
16451         * doc/posix-functions/putc.texi (putc): Likewise.
16452         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16453         Likewise.
16454         * doc/posix-functions/putchar.texi (putchar): Likewise.
16455         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16456         Likewise.
16457         * doc/posix-functions/puts.texi (puts): Likewise.
16458         * doc/posix-functions/putwc.texi (putwc): Likewise.
16459         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16460         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16461         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16462         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16463         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16464         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16465         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16466         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16467
16468 2011-05-22  Bruno Haible  <bruno@clisp.org>
16469
16470         strerror: Move AC_LIBOBJ invocations to module description.
16471         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16472         gl_PREREQ_STRERROR invocations from here...
16473         * modules/strerror (configure.ac): ... to here.
16474
16475 2011-05-21  Bruno Haible  <bruno@clisp.org>
16476
16477         perror: Use common idiom.
16478         * modules/perror (configure.ac): Reorder statements.
16479
16480 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16481
16482         tests: fix usage message in 'mktempd_'
16483         * tests/init.sh (mktempd_): In the usage message, use literal
16484         'mktempd_', not '$ME' (which is even undefined), as the name of
16485         the subroutine.
16486
16487 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16488
16489         tests init: new function 'fatal_', for hard errors
16490         Before this patch, the only way offered by tests/init.sh to
16491         properly signal a hard error was the `framework_failure_'
16492         function.  But the error message issued by that function,
16493         as its name would suggest, refers to a set-up failure in the
16494         testsuite, while hard errors can obviously also be due to
16495         other reasons.  The best way to fix this inconsistency is to
16496         introduce a new function with a more general error message.
16497         * tests/init.sh (fatal_): New function.
16498
16499 2011-06-06  Eric Blake  <eblake@redhat.com>
16500
16501         canonicalize-lgpl: use common idiom
16502         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16503         over newer POSIX -Rf.
16504         Reported by Bruno Haible.
16505
16506         canonicalize-lgpl: work around AIX realpath bug
16507         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16508         * doc/posix-functions/realpath.texi (realpath): Document it.
16509         Reported by Bruno Haible.
16510
16511         strerror: work around FreeBSD bug
16512         * lib/strerror.c (strerror): Special case 0.
16513         Reported by Bruno Haible.
16514
16515         strerror-override: avoid bloating errno module
16516         * modules/errno (Files, configure.ac): Move replacement strings...
16517         * modules/strerror-override: ...to new module.
16518         * modules/strerror (Depends-on): Add strerror-override.
16519         * modules/strerror_r-posix (Depends-on): Likewise.
16520         * MODULES.html.sh: Document new module.
16521         Reported by Bruno Haible.
16522
16523 2011-06-06  Bruno Haible  <bruno@clisp.org>
16524
16525         spawn-pipe tests: Rename program.
16526         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16527         * tests/test-spawn-pipe-child.c: Update comment.
16528         * tests/test-spawn-pipe.sh: Update.
16529         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16530
16531         spawn-pipe tests: Link the child program only against libc.
16532         * tests/test-spawn-pipe-child.c: New file, extracted from
16533         tests/test-spawn-pipe.c.
16534         (main): Expect only one argument.
16535         (is_open): New function, copied from tests/test-pipe.c.
16536         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16537         (child_main): Remove function.
16538         (test_pipe): Pass only one argument to the child program.
16539         (main): Remove child process code. Expect the child program's name as
16540         first argument.
16541         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16542         argument.
16543         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16544         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16545         test-spawn-pipe-child against no libraries.
16546
16547 2011-06-06  Bruno Haible  <bruno@clisp.org>
16548
16549         careadlinkat: Avoid mismatch between ssize_t and int.
16550         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16551         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16552
16553 2011-06-06  Jim Meyering  <meyering@redhat.com>
16554
16555         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16556         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16557         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16558
16559 2011-06-05  Bruno Haible  <bruno@clisp.org>
16560
16561         ansi-c++-opt: Interoperability with libtool.
16562         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16563         set the variable to "no", not to ":".
16564         * NEWS: Mention the change.
16565
16566 2011-06-05  Bruno Haible  <bruno@clisp.org>
16567
16568         acl: Fix test failure on AIX 7.
16569         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16570         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16571
16572 2011-06-05  Bruno Haible  <bruno@clisp.org>
16573
16574         pipe-filter-ii: Fix test failure on AIX and IRIX.
16575         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16576         with EAGAIN, retry with a smaller buffer size.
16577
16578 2011-06-05  Bruno Haible  <bruno@clisp.org>
16579
16580         localename: Fix link dependencies.
16581         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16582         * modules/localename-tests (Makefile.am): Link test-localename with
16583         $(LIBTHREAD).
16584
16585 2011-06-05  Bruno Haible  <bruno@clisp.org>
16586
16587         error: Avoid gcc warning.
16588         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16589
16590 2011-06-05  Bruno Haible  <bruno@clisp.org>
16591
16592         unsetenv: Avoid gcc warning.
16593         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16594
16595 2011-06-05  Bruno Haible  <bruno@clisp.org>
16596
16597         setenv: Avoid gcc warning.
16598         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16599
16600 2011-06-05  Bruno Haible  <bruno@clisp.org>
16601
16602         sys_select: Ensure memset is declared also on AIX 7.
16603         * lib/sys_select.in.h: Include <string.h> also on AIX.
16604         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16605         self-contained also on AIX 7.1.
16606
16607 2011-06-04  Jim Meyering  <meyering@redhat.com>
16608
16609         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16610         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16611         function name, "error".
16612         (_gl_translatable_diag_func_re): New configurable variable.
16613
16614 2011-06-04  Bruno Haible  <bruno@clisp.org>
16615
16616         getopt: Avoid gcc warning.
16617         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16618
16619 2011-06-04  Bruno Haible  <bruno@clisp.org>
16620
16621         strerror_r: Fix comments.
16622         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16623         commit.
16624
16625 2011-06-04  Bruno Haible  <bruno@clisp.org>
16626
16627         perror: Fix compilation error.
16628         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16629         Undefine fprintf, not sprintf.
16630         * modules/perror (Depends-on): Remove intprops, verify.
16631
16632 2011-06-04  Bruno Haible  <bruno@clisp.org>
16633
16634         setlocale: Enable replacement on Cygwin 1.5.
16635         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16636         Cygwin 1.5.x.
16637         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16638         LC_CTYPE category also exists on Cygwin 1.5.x.
16639
16640 2011-06-04  Bruno Haible  <bruno@clisp.org>
16641
16642         strerror-override: Don't disable symbol renamings.
16643         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16644         * lib/strerror-override.c: Include config.h.
16645         (strerror_override): Don't undefine.
16646
16647 2011-06-03  Bruno Haible  <bruno@clisp.org>
16648
16649         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16650         * lib/localename.h: Update copyright header.
16651         * lib/localename.c: Likewise.
16652         * lib/relocatable.h: Likewise.
16653         * lib/relocatable.c: Likewise.
16654
16655 2011-06-02  Bruno Haible  <bruno@clisp.org>
16656
16657         doc: Fix a module name.
16658         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16659
16660 2011-06-02  Bruno Haible  <bruno@clisp.org>
16661
16662         pipe2: Remove dependency on 'nonblocking' module.
16663         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16664         O_NONBLOCK is defined by gnulib.
16665         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16666         is zero.
16667         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16668         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16669         defined by gnulib.
16670         (get_nonblocking_flag): New function.
16671         (main): Test O_NONBLOCK flag only if it is nonzero.
16672         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16673
16674 2011-06-03  Jim Meyering  <meyering@redhat.com>
16675
16676         maint: three new prohibit-header-without-use rules
16677         Prohibit use of cloexec.h, posixver.h, same.h without use.
16678         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16679         (sc_prohibit_posixver_without_use): Likewise.
16680         (sc_prohibit_same_without_use): Likewise.
16681
16682 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         allocator: 'die' routine is now given requested size
16685         * lib/allocator.h (struct allocator.die): New size arg.
16686         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16687         If the actual problem is an ssize_t limitation, not a size_t or
16688         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16689
16690 2011-06-01  Eric Blake  <eblake@redhat.com>
16691
16692         strerror: drop strerror_r dependency
16693         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16694         * lib/strerror-override.c (strerror_override): ...to new file.
16695         * lib/strerror-override.h: Add prototype.
16696         * lib/strerror-impl.h: Delete.
16697         * lib/strerror.c (strerror): New implementation.
16698         * modules/errno (Files): Add new files.
16699         (configure.ac): Compile new file as appropriate.
16700         * modules/strerror (Files): Drop unused file.
16701         (Depends-on): Drop strerror_r-posix.
16702         * MODULES.html.sh: Document strerror_r-posix.
16703         Requested by Sam Steingold.
16704
16705         perror: call strerror_r directly
16706         * modules/perror (Files): Drop strerror-impl.h.
16707         * lib/perror.c (perror): Use our own stack buffer, rather than
16708         calling a wrapper that uses static storage.
16709         * doc/posix-functions/perror.texi (perror): Document a limitation
16710         of our replacement.
16711
16712         strerror_r: fix includes for FreeBSD
16713         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16714         since we use abort on some platforms.
16715         Reported by Matthias Bolte.
16716
16717 2011-05-31  Bruno Haible  <bruno@clisp.org>
16718
16719         Fix link errors in tests: openat-die uses gettext-h.
16720         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16721         against $(LIBINTL).
16722         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16723         against $(LIBINTL).
16724         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16725         $(LIBINTL).
16726         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16727         against $(LIBINTL).
16728         * modules/linkat-tests (Makefile.am): Link test-linkat against
16729         $(LIBINTL).
16730         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16731         $(LIBINTL).
16732         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16733         against $(LIBINTL).
16734         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16735         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16736         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16737         $(LIBINTL).
16738         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16739         $(LIBINTL).
16740         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16741         $(LIBINTL).
16742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16743
16744 2011-05-31  Bruno Haible  <bruno@clisp.org>
16745
16746         Fix link errors in tests: wait-process uses gettext-h.
16747         * modules/nonblocking-pipe-tests (Makefile.am): Set
16748         test_nonblocking_pipe_main_LDADD.
16749         * modules/nonblocking-socket-tests (Makefile.am): Link
16750         test-nonblocking-socket-main against $(LIBINTL).
16751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16752
16753 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16754
16755         assert-h: work around 'verify' incompatibility
16756         * lib/verify.h: Use @...@ directives, not ifdef.
16757         * modules/assert-h (assert.h): Implement the directives.
16758         (assert.h): Substitute the symbol-prefix more consistently.
16759
16760 2011-05-29  Jim Meyering  <meyering@redhat.com>
16761
16762         trim: remove three superfluous assignments
16763         * lib/trim.c (trim2): Remove three superfluous assignments
16764         and correct brace positioning.
16765
16766 2011-05-29  Bruno Haible  <bruno@clisp.org>
16767
16768         wctype-h: Avoid namespace pollution on Solaris 2.6.
16769         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16770         identifiers.
16771         * doc/posix-headers/wctype.texi: Mention the problem.
16772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16773
16774 2011-05-28  Jim Meyering  <meyering@redhat.com>
16775
16776         parse-datetime.y: accommodate -Wstrict-overflow
16777         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16778         placate -Wstrict-overflow.
16779
16780         trim: avoid a warning from -O2 -Wstrict-overflow
16781         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16782
16783 2011-05-29  Bruno Haible  <bruno@clisp.org>
16784
16785         gnulib-tool: Fix bug in yesterday's commit.
16786         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16787         twice.
16788
16789 2011-05-29  Bruno Haible  <bruno@clisp.org>
16790
16791         Allow multiple gnulib generated include files to be combined.
16792         * gnulib-tool (func_compute_include_guard_prefix): New function.
16793         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16794         ${gl_include_guard_prefix} references.
16795         (func_import, func_create_testdir): Invoke
16796         func_compute_include_guard_prefix.
16797         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16798         * lib/ctype.in.h: Likewise.
16799         * lib/dirent.in.h: Likewise.
16800         * lib/errno.in.h: Likewise.
16801         * lib/fcntl.in.h: Likewise.
16802         * lib/float.in.h: Likewise.
16803         * lib/getopt.in.h: Likewise.
16804         * lib/iconv.in.h: Likewise.
16805         * lib/langinfo.in.h: Likewise.
16806         * lib/locale.in.h: Likewise.
16807         * lib/math.in.h: Likewise.
16808         * lib/netdb.in.h: Likewise.
16809         * lib/netinet_in.in.h: Likewise.
16810         * lib/poll.in.h: Likewise.
16811         * lib/pthread.in.h: Likewise.
16812         * lib/pty.in.h: Likewise.
16813         * lib/sched.in.h: Likewise.
16814         * lib/se-selinux.in.h: Likewise.
16815         * lib/search.in.h: Likewise.
16816         * lib/signal.in.h: Likewise.
16817         * lib/spawn.in.h: Likewise.
16818         * lib/stdarg.in.h: Likewise.
16819         * lib/stddef.in.h: Likewise.
16820         * lib/stdint.in.h: Likewise.
16821         * lib/stdio.in.h: Likewise.
16822         * lib/stdlib.in.h: Likewise.
16823         * lib/string.in.h: Likewise.
16824         * lib/strings.in.h: Likewise.
16825         * lib/sys_file.in.h: Likewise.
16826         * lib/sys_ioctl.in.h: Likewise.
16827         * lib/sys_select.in.h: Likewise.
16828         * lib/sys_socket.in.h: Likewise.
16829         * lib/sys_stat.in.h: Likewise.
16830         * lib/sys_time.in.h: Likewise.
16831         * lib/sys_times.in.h: Likewise.
16832         * lib/sys_uio.in.h: Likewise.
16833         * lib/sys_utsname.in.h: Likewise.
16834         * lib/sys_wait.in.h: Likewise.
16835         * lib/sysexits.in.h: Likewise.
16836         * lib/termios.in.h: Likewise.
16837         * lib/time.in.h: Likewise.
16838         * lib/unistd.in.h: Likewise.
16839         * lib/wchar.in.h: Likewise.
16840         * lib/wctype.in.h: Likewise.
16841         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16842         * modules/ctype (Makefile.am): Likewise.
16843         * modules/dirent (Makefile.am): Likewise.
16844         * modules/errno (Makefile.am): Likewise.
16845         * modules/fcntl-h (Makefile.am): Likewise.
16846         * modules/float (Makefile.am): Likewise.
16847         * modules/getopt-posix (Makefile.am): Likewise.
16848         * modules/iconv-h (Makefile.am): Likewise.
16849         * modules/langinfo (Makefile.am): Likewise.
16850         * modules/locale (Makefile.am): Likewise.
16851         * modules/math (Makefile.am): Likewise.
16852         * modules/netdb (Makefile.am): Likewise.
16853         * modules/netinet_in (Makefile.am): Likewise.
16854         * modules/poll-h (Makefile.am): Likewise.
16855         * modules/pthread (Makefile.am): Likewise.
16856         * modules/pty (Makefile.am): Likewise.
16857         * modules/sched (Makefile.am): Likewise.
16858         * modules/search (Makefile.am): Likewise.
16859         * modules/selinux-h (Makefile.am): Likewise.
16860         * modules/signal (Makefile.am): Likewise.
16861         * modules/spawn (Makefile.am): Likewise.
16862         * modules/stdarg (Makefile.am): Likewise.
16863         * modules/stddef (Makefile.am): Likewise.
16864         * modules/stdint (Makefile.am): Likewise.
16865         * modules/stdio (Makefile.am): Likewise.
16866         * modules/stdlib (Makefile.am): Likewise.
16867         * modules/string (Makefile.am): Likewise.
16868         * modules/strings (Makefile.am): Likewise.
16869         * modules/sys_file (Makefile.am): Likewise.
16870         * modules/sys_ioctl (Makefile.am): Likewise.
16871         * modules/sys_select (Makefile.am): Likewise.
16872         * modules/sys_socket (Makefile.am): Likewise.
16873         * modules/sys_stat (Makefile.am): Likewise.
16874         * modules/sys_time (Makefile.am): Likewise.
16875         * modules/sys_times (Makefile.am): Likewise.
16876         * modules/sys_uio (Makefile.am): Likewise.
16877         * modules/sys_utsname (Makefile.am): Likewise.
16878         * modules/sys_wait (Makefile.am): Likewise.
16879         * modules/sysexits (Makefile.am): Likewise.
16880         * modules/termios (Makefile.am): Likewise.
16881         * modules/time (Makefile.am): Likewise.
16882         * modules/unistd (Makefile.am): Likewise.
16883         * modules/wchar (Makefile.am): Likewise.
16884         * modules/wctype-h (Makefile.am): Likewise.
16885         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16886
16887 2011-05-29  Bruno Haible  <bruno@clisp.org>
16888
16889         assert-h: Allow multiple gnulib generated replacements to coexist.
16890         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16891
16892 2011-05-29  Bruno Haible  <bruno@clisp.org>
16893
16894         argp: Allow coexistence with strerror_r-posix module.
16895         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16896         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16897         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16898         not the glibc signature.
16899
16900 2011-05-28  Bruno Haible  <bruno@clisp.org>
16901
16902         gnulib-tool: Alternative structure of testdirs, similar to --import.
16903         * gnulib-tool: New option --single-configure.
16904         (func_usage): Document it.
16905         (single_configure): New variable.
16906         (func_modules_transitive_closure_separately,
16907         func_modules_transitive_closure_separately,
16908         func_determine_use_libtests, func_modules_add_dummy_separately,
16909         func_modules_to_filelist_separately): New functions, extracted from
16910         func_import.
16911         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16912         (func_import): Use the new functions.
16913         (func_create_testdir): Set final_modules. Handle $single_configure =
16914         true case.
16915
16916 2011-05-28  Bruno Haible  <bruno@clisp.org>
16917
16918         getloadavg: Remove an unreliable safety check.
16919         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16920         getloadavg.c is in place.
16921         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16922         Reported by Sam Steingold <sds@gnu.org>.
16923
16924 2011-05-28  Bruno Haible  <bruno@clisp.org>
16925
16926         doc: Cleanup yet another file produced by texinfo.tex.
16927         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16928
16929 2011-05-28  Bruno Haible  <bruno@clisp.org>
16930
16931         Finish the conditional dependencies mechanism.
16932         * gnulib-tool: New option --no-conditional-dependencies.
16933         (func_usage): Document it. Don't mark --conditional-dependencies as
16934         experimental.
16935         (cond_dependencies): The possible values can now be true, false, empty.
16936         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16937         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16938         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16939
16940 2011-05-28  Bruno Haible  <bruno@clisp.org>
16941
16942         doc: Use a recent texinfo.tex.
16943         * doc/Makefile (tex_opts): New variable.
16944         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16945
16946 2011-05-28  Jim Meyering  <meyering@redhat.com>
16947
16948         intprops.h: adjust comment to match code change
16949         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16950         only once, it *may* have side effects.  Also fix an unrelated typo.
16951         (_GL_INT_SIGNED): Likewise.
16952
16953 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16954
16955         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16956
16957 2011-05-26  Bruno Haible  <bruno@clisp.org>
16958
16959         mbsrchr: Avoid collision with system function on Interix.
16960         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16961         Reported by Markus Duft <mduft@gentoo.org>.
16962
16963 2011-05-15  James Youngman  <jay@gnu.org>
16964
16965         getopt: for ambiguous options, enumerate the possibilities.
16966         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16967         the ambiguous options when an ambiguous prefix is given. This was
16968         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16969         glibc change was
16970         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16971
16972 2011-05-25  Eric Blake  <eblake@redhat.com>
16973
16974         getcwd: work around mingw bug
16975         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16976         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16977         Reported by Matthias Bolte.
16978
16979 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16980
16981         test-intprops: disable -Wtype-limits diagnostics
16982         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16983         diagnostics.  Otherwise, the integer overflow macros generate many
16984         diagnostics.  Reported by Jim Meyering in
16985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16986
16987         intprops: shorten, to pacify gcc -Woverlength-strings
16988         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16989         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16990         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16991         likely to run afoul of C compiler limits for string constant lengths.
16992         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16993
16994 2011-05-24  Eric Blake  <eblake@redhat.com>
16995
16996         docs: document recently fixed glibc printf bug
16997         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16998         * doc/posix-functions/printf.texi (printf): Likewise.
16999         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17000         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17001
17002         closein-tests: convert to init.sh
17003         * modules/closein-tests (Files): Add init.sh
17004         * tests/test-closein.sh Use it.
17005
17006         yesno-tests: convert to init.sh
17007         * modules/yesno-tests (Files): Add init.sh.
17008         * tests/test-yesno.sh: Use it.
17009
17010         atexit-tests: ensure reliable exit status
17011         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17012         Reported by Bruno Haible.
17013
17014 2011-05-24  Bruno Haible  <bruno@clisp.org>
17015
17016         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17017         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17018         gl_PREREQ_STRERROR_R invocations from here...
17019         * modules/strerror_r-posix (configure.ac): ... to here.
17020
17021 2011-05-24  Eric Blake  <eblake@redhat.com>
17022
17023         strerror_r: fix missing header
17024         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17025
17026         strerror_r: fix AIX test failures
17027         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17028         ERANGE failure.
17029
17030         strerror_r: fix Solaris test failures
17031         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17032         failures.
17033         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17034
17035         strerror_r: enforce POSIX recommendations
17036         * lib/strerror_r.c (safe_copy): New helper method.
17037         (strerror_r): Guarantee a non-empty string.
17038         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17039         recent POSIX rulings and to match our strerror guarantees.
17040         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17041
17042 2011-05-24  Jim Meyering  <meyering@redhat.com>
17043
17044         test-perror2.c: avoid warning about unused variable
17045         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17046
17047 2011-05-24  Eric Blake  <eblake@redhat.com>
17048
17049         perror: avoid spurious test failure on HP-UX
17050         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17051
17052         tests: fix logic bug in init.sh
17053         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17054         shell.
17055
17056 2011-05-24  Jim Meyering  <meyering@redhat.com>
17057
17058         utimensat: do not reference an out-of-scope buffer
17059         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17060         declared in an inner scope, yet "times" would be dereferenced outside
17061         the scope in which "ts" was valid.
17062         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17063         of ts[2] "out/up", so that the use of aliased "times" (via
17064         "times = ts;") does not end up referencing an out-of-scope "ts"
17065
17066         opendir-safer.c: don't clobber errno; don't close negative FD
17067         * lib/opendir-safer.c (opendir_safer):
17068         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17069         file descriptor, and more importantly, don't clobber the
17070         offending errno value with EINVAL.  Before, upon failure
17071         of dup_safer, we would pass the negative file descriptor to
17072         fdopendir, which would clobber errno.
17073
17074 2011-05-23  Bruno Haible  <bruno@clisp.org>
17075
17076         idcache: Fix module description.
17077         * modules/idcache (Include): Set to "idcache.h".
17078
17079 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17080
17081         gnulib-tool: fix portability problem with MacOS sed
17082         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17083         before the "}".  Problem reported by Leo in
17084         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17085         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17086         sed_extract_condition1, sed_extract_condition2.
17087
17088 2011-05-23  Bruno Haible  <bruno@clisp.org>
17089
17090         hash: Simplify autoconf macro.
17091         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17092
17093 2011-05-23  Bruno Haible  <bruno@clisp.org>
17094
17095         getugroups: Fix module description.
17096         * modules/getugroups (Include): Set to "getugroups.h".
17097
17098 2011-05-23  Bruno Haible  <bruno@clisp.org>
17099
17100         linkat: Simplify autoconf macro.
17101         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17102
17103 2011-05-23  Bruno Haible  <bruno@clisp.org>
17104             Eric Blake  <eblake@redhat.com>
17105
17106         linkat, renameat: Update dependencies.
17107         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17108         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17109         symlinkat.
17110
17111 2011-05-23  Jim Meyering  <meyering@redhat.com>
17112
17113         maint.mk: more tight_scope improvements
17114         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17115         (_gl_TS_headers): Define only in if-0'd block.
17116         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17117         sometimes we must *not* use it.  Adjust uses accordingly.
17118         (sc_tight_scope): Use much simpler grep-based test to determine
17119         whether we skip this rule.
17120
17121         maint.mk: generalize/improve the tight-scope rule
17122         * top/maint.mk: Emit a warning when the test is skipped.
17123         (_gl_TS_dir): Add $(srcdir)/ prefix.
17124         (_gl_TS_function_match): Simplify, rather than trying
17125         to enumerate common types.  Otherwise, it would fail to match an
17126         "extern unsigned char const *" declaration in idutils.
17127         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17128         a way to support use of that type of macro.
17129         (_gl_TS_var_match): Simplify regexp.
17130         (_gl_TS_obj_files): New configurable variable.
17131         (_gl_TS_headers): Likewise.
17132
17133 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17134
17135         verify: fix bug when gnulib <assert.h> is also included
17136         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17137         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17138         Perhaps there's a better way, but this fixes the immediate problem.
17139         Problem reported by Bruno Haible in
17140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17141
17142 2011-05-22  Bruno Haible  <bruno@clisp.org>
17143
17144         xgetcwd: Simplify autoconf macro.
17145         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17146
17147 2011-05-22  Bruno Haible  <bruno@clisp.org>
17148
17149         New module 'mktime-internal'.
17150         * modules/mktime-internal: New file.
17151         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17152         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17153         mktime_internal as a C macro if libc has __mktime_internal.
17154         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17155         conditions.
17156         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17157
17158 2011-05-22  Bruno Haible  <bruno@clisp.org>
17159
17160         timegm: Correct mktime replacement statements.
17161         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17162         defining mktime as a C macro. This completes a 2009-07-28 commit.
17163
17164 2011-05-22  Bruno Haible  <bruno@clisp.org>
17165
17166         timegm: Simplify autoconf macro.
17167         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17168
17169 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17170
17171         clock-time: change to LGPLv2+.
17172         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17173         BSD-like but we have no mark for that; this is good enough for now.
17174
17175 2011-05-21  Bruno Haible  <bruno@clisp.org>
17176
17177         strerror_r: Fix comments.
17178         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17179
17180 2011-05-21  Bruno Haible  <bruno@clisp.org>
17181
17182         relocatable-prog-wrapper: Fix possible link error.
17183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17184         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17185         (gl_FUNC_SETENV): ... to here.
17186         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17187         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17188
17189 2011-05-21  Bruno Haible  <bruno@clisp.org>
17190
17191         relocatable-prog-wrapper: Assume strerror() exists.
17192         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17193         m4/strerror.m4.
17194         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17195         * lib/relocwrapper.c: Remove mention of strerror module.
17196         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17197         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17198         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17199         C macro.
17200
17201 2011-05-21  Bruno Haible  <bruno@clisp.org>
17202
17203         select: Simplify replacement idiom.
17204         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17205         Win32 platforms.
17206         * lib/sys_select.in.h (select): Simplify accordingly.
17207         * modules/select (Depends-on): Likewise.
17208
17209 2011-05-21  Bruno Haible  <bruno@clisp.org>
17210
17211         mkdir-p: Simplify autoconf macro.
17212         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17213         gl_FUNC_LCHOWN.
17214
17215 2011-05-21  Eric Blake  <eblake@redhat.com>
17216
17217         strerror_r: avoid clobbering strerror on cygwin
17218         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17219         fall back instead to sys_errlist.
17220         * modules/strerror (configure.ac): Add witness.
17221         * tests/test-strerror_r.c (main): Enhance test.
17222         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17223         * tests/test-perror2.c (main): Free memory before exit.
17224
17225 2011-05-21  Bruno Haible  <bruno@clisp.org>
17226
17227         mkdtemp: Use gnulib naming conventions.
17228         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17229         * modules/mkdtemp (configure.ac): Update.
17230
17231 2011-05-20  Eric Blake  <eblake@redhat.com>
17232
17233         strerror_r: avoid corrupting errno on Solaris
17234         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17235         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17236
17237         strerror_r: avoid compiler warning
17238         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17239
17240         strerror_r: simplify AIX code
17241         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17242
17243         test-perror: avoid spurious failure on FreeBSD
17244         * modules/perror-tests (Depends-on): Add strerror, now that
17245         strerror_r no longer pulls it in.
17246
17247 2011-05-20  Bruno Haible  <bruno@clisp.org>
17248
17249         strerror_r-posix: Remove unused dependencies.
17250         * modules/strerror_r-posix (Depends-on): Remove strerror.
17251         Reported by Eric Blake.
17252
17253 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17254
17255         intprops: remove assumption about A|B representation
17256         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17257         is a valid integer if both A and B are.  Although this is true for
17258         all known practical hosts, the C standard doesn't guarantee it,
17259         and the code need not assume it.  Also, this change may work around
17260         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17262
17263 2011-05-20  Eric Blake  <eblake@redhat.com>
17264
17265         perror: work around FreeBSD bug
17266         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17267         is broken.  Move AC_LIBOBJ...
17268         * modules/perror (configure.ac): Here.
17269         * doc/posix-functions/perror.texi (perror): Document this.
17270         * tests/test-perror2.c (main): Enhance test.
17271
17272         test-perror: check for strerror interactions
17273         * tests/macros.h (STREQ): Add macro.
17274         * modules/perror-tests (Files): Add second test.
17275         * tests/test-perror2.c (main): New file.
17276         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17277
17278         test-perror: rewrite to use init script
17279         * modules/perror-tests (Files): Add init.sh.
17280         * tests/test-perror.sh: Use temporary directory.
17281
17282 2011-05-20  Jim Meyering  <meyering@redhat.com>
17283
17284         maint: replace misused "a" with "an"
17285         * doc/intprops.texi: "a integer"
17286         * doc/regex.texi: "a explanation"
17287         * lib/alignof.h: "a object"
17288         * lib/argmatch.h: "a explanation"
17289         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17290         * lib/stdint.in.h: "a integer"
17291         * lib/userspec.c: "a owner"
17292         * doc/gnulib.texi: Fix "a idea", and reword.
17293
17294 2011-05-19  Jim Meyering  <meyering@redhat.com>
17295
17296         maint: correct misuse of "a" and "an"
17297         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17298         * lib/argp-help.c: "an docum...": s/an/a/
17299         * lib/argp-parse.c: "An vector": s/An/A/
17300         * lib/execute.c: "an native": s/an/a/
17301         * lib/spawn-pipe.c: Likewise.
17302         * lib/gc.h: "an Gc_rc": s/an/a/
17303         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17304         * lib/fts.c: "an stat.st_dev": s/an/a/
17305
17306 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17307
17308         intprops-tests: work around HP-UX 11.23 cc bug with constants
17309         * tests/test-intprops.c (VERIFY): New macro.
17310         (main): Use it, instead of verify, to work around the compiler bug; see
17311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17312
17313         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17314         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17315         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17316         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17317         (_GL_REMAINDER_OVERFLOW): Use it.
17318
17319         intprops-tests: revert unsigned part of previous change
17320         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17321         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17322         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17324
17325 2011-05-19  Bruno Haible  <bruno@clisp.org>
17326
17327         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17328         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17329         strerror_r() returned without filling the buffer.
17330         Reported by Eric Blake.
17331
17332 2011-05-19  Eric Blake  <eblake@redhat.com>
17333
17334         strerror_r: guarantee unchanged errno
17335         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17336         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17337         failure.
17338         * tests/test-strerror_r.c (main): Enhance test.
17339
17340 2011-05-19  Bruno Haible  <bruno@clisp.org>
17341
17342         strerror_r: Reorder #if blocks.
17343         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17344         for consistency with the previous commit.
17345
17346 2011-05-19  Bruno Haible  <bruno@clisp.org>
17347
17348         perror: Avoid clobbering the strerror buffer when possible.
17349         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17350         * lib/strerror.c: Include it.
17351         * modules/strerror (Files): Add lib/strerror-impl.h.
17352         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17353         (my_strerror): New function, defined through lib/strerror-impl.h.
17354         (perror): Use it instead of strerror.
17355         * modules/perror (Files): Add lib/strerror-impl.h.
17356         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17357
17358 2011-05-19  Eric Blake  <eblake@redhat.com>
17359
17360         strerror_r: fix on newer cygwin
17361         * lib/strerror_r.c (strerror_r): Cygwin now has
17362         __xpg_strerror_r, use it.
17363
17364 2011-05-19  Bruno Haible  <bruno@clisp.org>
17365
17366         strerror_r: Avoid clobbering the strerror buffer when possible.
17367         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17368         (sys_nerr, sys_errlist): New declarations.
17369         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17370         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17371         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17372
17373 2011-05-19  Bruno Haible  <bruno@clisp.org>
17374
17375         strerror_r: Fix test failure on mingw.
17376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17377         EXTEND_STRERROR_R.
17378         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17379         macros from errno.in.h instead.
17380
17381 2011-05-19  Eric Blake  <eblake@redhat.com>
17382
17383         strerror: relax test for Solaris
17384         * tests/test-strerror.c (main): Permit Solaris behavior.
17385         * tests/test-strerror_r.c (main): Likewise.
17386
17387         strerror: enforce POSIX ruling on strerror(0)
17388         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17390         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17391         * doc/posix-functions/strerror.texi (strerror): Document it.
17392         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17393         * tests/test-strerror.c (main): Strengthen test.
17394         * tests/test-strerror_r.c (main): Likewise.
17395
17396 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17397
17398         intprop-tests: port to older and more-pedantic compilers
17399         * modules/intprops-tests (Files): Add tests/macros.h.
17400         * tests/test-intprops.c: Include macros.h.
17401         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17402         it's no longer documented to expand to an integer constant expression.
17403         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17404         argument is floating point, as it's no longer documented to expand
17405         to an integer constant expression in that case.
17406         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17407         compiler bugs reported by Bruno Haible.  See
17408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17409         (U0, U1): New constants, to work around the same bugs.  Also,
17410         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17411
17412         intprops: work around C compiler bugs
17413         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17414         bug in Sun C 5.11 2010/08/13 and other compilers; see
17415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17416
17417         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17418         * doc/intprops.texi (Integer Type Determination): Fix
17419         documentation for TYPE_IS_INTEGER: it returns an constant
17420         expression, not an integer constant expression.  Fix doc for
17421         TYPE_SIGNED: it returns an integer constant expression only if its
17422         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17423         hardly worth documented that way....)
17424
17425 2011-05-18  Bruno Haible  <bruno@clisp.org>
17426
17427         strerror_r: Avoid clobbering the strerror buffer when possible.
17428         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17429         Handle gnulib defined errno values here. When strerror() returns NULL
17430         or an empty string, return EINVAL.
17431         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17432         gnulib defined errno values here.
17433         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17434
17435 2011-05-18  Eric Blake  <eblake@redhat.com>
17436
17437         fnmatch: avoid compiler warning
17438         * lib/fnmatch_loop.c (FCT): Use correct type.
17439         Reported by Matthias Bolte.
17440
17441 2011-05-13  Jim Meyering  <meyering@redhat.com>
17442
17443         maint.mk: three new prohibit_<HDR>_without_use rules
17444         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17445         (sc_prohibit_stdio-safer_without_use): Likewise.
17446         (sc_prohibit_xfreopen_without_use): Likewise.
17447
17448 2011-05-17  Jim Meyering  <meyering@redhat.com>
17449
17450         announce-gen: fail if the NEWS delta is empty
17451         If there's nothing noteworthy in NEWS, then either you forgot
17452         or you shouldn't be releasing.
17453         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17454
17455 2011-05-17  Pádraig Brady <P@draigBrady.com>
17456
17457         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17458         reserved symbols starting with double underscore from the check.
17459
17460 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17461
17462         intprops: add doc
17463         * doc/intprops.texi: New file, documenting intprops.
17464         * doc/gnulib.texi (Particular Modules): Include it.
17465
17466         verify: add doc to gnulib manual and fix example
17467         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17468         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17469         (Compile-time Assertions): Fix example so it can't overflow.
17470
17471 2011-05-17  Jim Meyering  <meyering@redhat.com>
17472
17473         warnings.m4: don't usurp save_CPPFLAGS variable name
17474         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17475
17476         doc: fix typo
17477         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17478
17479 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17480             Bruno Haible  <bruno@clisp.org>
17481
17482         doc: Tweak recent change.
17483         * README (Portability guidelines): Tweak new text.
17484         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17485         Interix 6.1.
17486
17487 2011-05-16  Eric Blake  <eblake@redhat.com>
17488
17489         inttypes: avoid autoconf warning
17490         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17491         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17492
17493 2011-05-16  Sam Steingold <sds@gnu.org>
17494         and Eric Blake  <eblake@redhat.com>
17495
17496         vc-list-files: accept multiple directory operands
17497         * build-aux/vc-list-files: Iterate over all remaining operands.
17498
17499 2011-05-16  Bruno Haible  <bruno@clisp.org>
17500
17501         Fix confusion regarding deprecated modules.
17502         * modules/calloc (Status, Notice): Mark module as deprecated, not
17503         obsolete.
17504         * modules/fnmatch-posix (Status, Notice): Likewise.
17505         * modules/getdate (Status, Notice): Likewise.
17506         * modules/getopt (Status, Notice): Likewise.
17507         * modules/malloc (Status, Notice): Likewise.
17508         * modules/pipe (Status, Notice): Likewise.
17509         * modules/realloc (Status, Notice): Likewise.
17510         * modules/rename-dest-slash (Status, Notice): Likewise.
17511         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17512         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17513         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17514         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17515         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17516
17517 2011-05-16  Bruno Haible  <bruno@clisp.org>
17518
17519         doc: List the target platforms.
17520         * doc/gnulib-intro.texi (Target Platforms): New section.
17521         * doc/gnulib.texi (Introduction): Update menu.
17522         * README (Portability guidelines): Refer to the new section. Update
17523         statement about oldest supported environment. Remove rationale why
17524         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17525         unportable C89 function.
17526         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17527         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17528
17529 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17530
17531         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17532
17533 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17534
17535         intprops-tests: new module
17536         * modules/intprops-tests, tests/test-intprops.c: New files.
17537
17538         intprops: add safe, portable integer overflow checking
17539         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17540         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17541         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17542         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17543         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17544         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17545         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17546         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17547         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17548         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17549         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17550
17551 2011-05-12  James Youngman  <jay@gnu.org>
17552
17553         Add a test for glibc's Bugzilla bug #12378.
17554         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17555         doesn't allow the literal matching of a lone "[" (which is
17556         required by POSIX).
17557         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17558
17559 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17560
17561         Sync glibc change fixing Bugzilla bug #12378.
17562         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17563         beginning and fall back to matching as normal character if the
17564         string ends before the matching ']' is found.  This is what POSIX
17565         requires.
17566
17567 2011-05-13  Eric Blake  <eblake@redhat.com>
17568
17569         getcwd-lgpl: relax test for FreeBSD
17570         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17571         issue.
17572         * tests/test-getcwd-lgpl.c (main): Relax test.
17573         Reported by Matthias Bolte.
17574
17575 2011-05-11  Eric Blake  <eblake@redhat.com>
17576
17577         test-fflush: silence compiler warning
17578         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17579
17580 2011-05-11  Bruno Haible  <bruno@clisp.org>
17581
17582         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17583         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17584         * modules/canonicalize (Depends-on): Add 'nocrash'.
17585         * modules/canonicalize-lgpl (Depends-on): Likewise.
17586         * doc/posix-functions/realpath.texi: Update platforms list.
17587         Reported by Ryan Schmidt <ryandesign@macports.org>.
17588
17589 2011-05-11  Bruno Haible  <bruno@clisp.org>
17590
17591         group-member: Declare function in <unistd.h>.
17592         * lib/unistd.in.h (group_member): New declaration.
17593         * lib/group-member.h: Remove file.
17594         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17595         * tests/test-unistd-c++.cc: Check signature of group_member.
17596         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17597         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17598         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17599         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17600         HAVE_GROUP_MEMBER.
17601         * modules/group-member (Files): Remove lib/group-member.h.
17602         (Depends-on): Add unistd. Specify conditions.
17603         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17604         (Include): Change to <unistd.h>.
17605         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17606         HAVE_GROUP_MEMBER.
17607         * NEWS: Mention the change.
17608         * lib/euidaccess.c: Don't include group-member.h.
17609
17610 2011-05-11  Bruno Haible  <bruno@clisp.org>
17611
17612         group-member: Document module.
17613         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17614         module.
17615
17616 2011-05-11  Bruno Haible  <bruno@clisp.org>
17617
17618         fclose: Fix mistake earlier today.
17619         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17620
17621 2011-05-11  Eric Blake  <eblake@redhat.com>
17622
17623         fclose: preserve fflush errors
17624         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17625         Reported by Jim Meyering.
17626
17627         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17628         * build-aux/bootstrap (check_versions): When no specific version
17629         is required, merely check that the app produces an exit status
17630         that indicates its existence.
17631
17632         maint.mk: drop redundant check
17633         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17634         the same but better.
17635
17636 2011-05-11  Bruno Haible  <bruno@clisp.org>
17637
17638         fclose: Fix possible link error.
17639         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17640         unregister_shadow_fd. Improve comments.
17641         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17642         Eric Blake.
17643
17644 2011-05-11  Jim Meyering  <meyering@redhat.com>
17645
17646         maint.mk: improve "can not" detection and generalize rule name
17647         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17648         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17649         Use the same technique as in sc_prohibit_doubled_word, so that
17650         we recognize "can not" also when the words are separated by a newline.
17651         Suggested by Eric Blake.
17652         (perl_filename_lineno_text_): Define.  Factored out of...
17653         (prohibit_doubled_word_): ...here.  Use the new definition.
17654         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17655         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17656         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17657
17658 2011-05-10  Eric Blake  <eblake@redhat.com>
17659
17660         fclose: avoid double close race when possible
17661         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17662         all but WINDOWS_SOCKETS.
17663
17664 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17665
17666         openat: correct new comment
17667         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17668
17669 2011-05-10  Jim Meyering  <meyering@redhat.com>
17670
17671         openat: add comments
17672         * lib/openat-proc.c (openat_proc_name): Add comments,
17673         mostly from Eric Blake.
17674
17675 2011-05-09  Eric Blake  <eblake@redhat.com>
17676
17677         openat: reduce syscalls in first probe of /proc
17678         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17679         be a directory.  Simplify the probe for .. bugs.
17680         * modules/openat (Depends-on): Drop same-inode.
17681         Reported by Bastien ROUCARIES.
17682
17683 2011-05-09  Jim Meyering  <meyering@redhat.com>
17684
17685         maint.mk: change semantics/name of tight_scope variables
17686         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17687         Rename variables to align with semantics that make them more useful.
17688
17689         maint.mk: tweak new rule's name not to impinge
17690         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17691         (sc_tight_scope): Use new rule name rather than $@-0.
17692
17693         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17694         * top/maint.mk (sc_tight_scope): New rule.
17695         (sc_tight_scope-0): New rule, ifdef'd out.
17696         (_gl_TS_dir): Default.
17697         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17698         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17699
17700 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17701
17702         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17703         Haible <bruno@clisp.org>.
17704
17705 2011-05-08  Bruno Haible  <bruno@clisp.org>
17706
17707         Comments.
17708         * m4/isnanf.m4: Add comment.
17709         * m4/isnanl.m4: Likewise.
17710
17711 2011-05-08  Bruno Haible  <bruno@clisp.org>
17712
17713         glob: Remove obsolete macro.
17714         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17715
17716 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17717
17718         intprops: Sun C 5.11 supports __typeof__
17719         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17720         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17721         which is new.
17722         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17723
17724         intprops: switch to usual gnulib indenting and naming
17725         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17726         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17727
17728         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17729
17730 2011-05-08  Jim Meyering  <meyering@redhat.com>
17731
17732         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17733         * top/maint.mk (release-prep): Use make's --no-print-directory
17734         option when generating the announcement.  This eliminates the
17735         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17736         generated announcement template.
17737
17738 2011-05-08  Bruno Haible  <bruno@clisp.org>
17739
17740         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17741         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17742         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17743
17744 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17745
17746         ignore-value, verify: Omit include files from lib_SOURCES.
17747         * modules/ignore-value, modules/verify (Makefile.am):
17748         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17749         that leads Automake to duplicate use of am__objects_... variables
17750         in Makefile.in.  See
17751         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17752
17753 2011-05-07  Bruno Haible  <bruno@clisp.org>
17754
17755         fclose: Simplify autoconf macro.
17756         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17757         defined.
17758
17759 2011-05-07  Bruno Haible  <bruno@clisp.org>
17760
17761         canonicalize-lgpl: Fix autoconf macro ordering bug.
17762         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17763         gl_STDLIB_H_DEFAULTS.
17764
17765 2011-05-06  Eric Blake  <eblake@redhat.com>
17766
17767         maintainer-makefile: make sc_po_check easier to tune
17768         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17769         to probe for strings, such as an alternate location for gnulib.
17770
17771         fclose: guarantee behavior on seekable stdin
17772         * modules/fclose (Depends-on): Add fflush.
17773         * doc/posix-functions/fclose.texi (fclose): Document this.
17774         * tests/test-fclose.c (main): Make test for this unconditional.
17775
17776 2011-05-06  Bruno Haible  <bruno@clisp.org>
17777
17778         fflush, fpurge: Relicense under LGPLv2+.
17779         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17780         * modules/fpurge (License): Likewise.
17781         With permission from Eric Blake and Jim Meyering.
17782         Suggested by Eric Blake.
17783
17784 2011-05-06  Karl Berry  <karl@gnu.org>
17785
17786         * MODULES.html.sh (func_all_modules): remove exit.
17787
17788 2011-05-06  Jim Meyering  <meyering@redhat.com>
17789
17790         maint.mk: use info-gnu@ as the default only for a stable release
17791         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17792         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17793         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17795
17796 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17797
17798         assert-h: new module, which supports C1X-style static_assert
17799         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17800         * lib/verify.h: Revamp so that this can be copied into assert.h,
17801         while retaining the ability to use it standalone as before.
17802         Rename private identifiers so as not to encroach on the
17803         standard C namespace, since this is now used by assert.h.
17804         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17805         the old verify_true.
17806         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17807         the old verify_true.  Use _GL_VERIFY_TYPE.
17808         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17809         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17810         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17811         defined when this file is copied into the replacement assert.h.
17812         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17813         and _Static_assert is not built in.
17814         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17815         defined, and use the new macros mentioned above.
17816         * doc/posix-headers/assert.texi: Document this.
17817
17818 2011-05-05  Bruno Haible  <bruno@clisp.org>
17819
17820         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17821         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17822         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17823         gl_REPLACE_FCLOSE here.
17824         * modules/fflush (Depends-on): Remove fclose.
17825         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17826         combination with module 'fclose'.
17827
17828 2011-05-05  Bruno Haible  <bruno@clisp.org>
17829
17830         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17831         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17832         gl_FUNC_FFLUSH.
17833         (gl_FUNC_FFLUSH): Use it.
17834         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17835         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17836         gl_REPLACE_FSEEKO here.
17837
17838 2011-05-05  Bruno Haible  <bruno@clisp.org>
17839
17840         tzset: Relicense under LGPL.
17841         * modules/tzset (License): Change to LGPL.
17842         No agreement needed; it's a no-op.
17843
17844         strtoimax, strtoumax: Relicense under LGPL.
17845         * modules/strtoimax (License): Change to LGPL.
17846         * modules/strtoumax (License): Likewise.
17847         With permission from Jim Meyering, Paul Eggert:
17848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17850
17851         getgroups: Relicense under LGPL.
17852         * modules/getgroups (License): Change to LGPL.
17853         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17857
17858         nanosleep: Relicense under LGPL.
17859         * modules/nanosleep (License): Change to LGPL.
17860         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17861         Haible:
17862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17866
17867         futimens: Relicense under LGPL.
17868         * modules/futimens (License): Change to LGPL.
17869         With permission from Eric Blake:
17870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17871
17872         fflush: Relicense under LGPL.
17873         * modules/fflush (License): Change to LGPL.
17874         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17878
17879         tmpfile: Relicense under LGPL.
17880         * modules/tmpfile (License): Change to LGPL.
17881         With permission from Ben Pfaff:
17882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17883
17884         isfinite: Relicense under LGPL.
17885         * modules/isfinite (License): Change to LGPL.
17886         With permission from Ben Pfaff, Bruno Haible:
17887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17889
17890         acosl..tanl: Relicense under LGPL.
17891         * modules/acosl (License): Change to LGPL.
17892         * modules/asinl (License): Likewise.
17893         * modules/atanl (License): Likewise.
17894         * modules/cosl (License): Likewise.
17895         * modules/expl (License): Likewise.
17896         * modules/logl (License): Likewise.
17897         * modules/sinl (License): Likewise.
17898         * modules/sqrtl (License): Likewise.
17899         * modules/tanl (License): Likewise.
17900         Source code originally from glibc and Paolo Bonzini. Agreements:
17901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17903
17904 2011-05-05  Bruno Haible  <bruno@clisp.org>
17905
17906         signal: Define sighandler_t.
17907         * lib/signal.in.h (sighandler_t): New type.
17908         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17909         whether sighandler_t is defined.
17910         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17911         * modules/signal (Depends-on): Add extensions.
17912         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17913         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17914         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17915
17916 2011-05-05  Eric Blake  <eblake@redhat.com>
17917
17918         maint: remove useless REPLACE_*_H macros
17919         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17920         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17921         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17922         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17923         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17924         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17925         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17926         * m4/btowc.m4: Update callers.
17927         * m4/dirfd.m4: Likewise.
17928         * m4/duplocale.m4: Likewise.
17929         * m4/fchdir.m4: Likewise.
17930         * m4/fdopendir.m4: Likewise.
17931         * m4/inet_ntop.m4: Likewise.
17932         * m4/inet_pton.m4: Likewise.
17933         * m4/ioctl.m4: Likewise.
17934         * m4/mbrlen.m4: Likewise.
17935         * m4/mbrtowc.m4: Likewise.
17936         * m4/mbsinit.m4: Likewise.
17937         * m4/mbsnrtowcs.m4: Likewise.
17938         * m4/mbsrtowcs.m4: Likewise.
17939         * m4/poll.m4: Likewise.
17940         * m4/setlocale.m4: Likewise.
17941         * m4/wcrtomb.m4: Likewise.
17942         * m4/wcsnrtombs.m4: Likewise.
17943         * m4/wcsrtombs.m4: Likewise.
17944         * m4/wctob.m4: Likewise.
17945         * m4/wcwidth.m4: Likewise.
17946         * modules/posix_spawn: Likewise.
17947         * modules/posix_spawn_file_actions_addclose: Likewise.
17948         * modules/posix_spawn_file_actions_adddup2: Likewise.
17949         * modules/posix_spawn_file_actions_addopen: Likewise.
17950         * modules/posix_spawn_file_actions_destroy: Likewise.
17951         * modules/posix_spawn_file_actions_init: Likewise.
17952         * modules/posix_spawnattr_destroy: Likewise.
17953         * modules/posix_spawnattr_getflags: Likewise.
17954         * modules/posix_spawnattr_getpgroup: Likewise.
17955         * modules/posix_spawnattr_getschedparam: Likewise.
17956         * modules/posix_spawnattr_getschedpolicy: Likewise.
17957         * modules/posix_spawnattr_getsigdefault: Likewise.
17958         * modules/posix_spawnattr_getsigmask: Likewise.
17959         * modules/posix_spawnattr_init: Likewise.
17960         * modules/posix_spawnattr_setflags: Likewise.
17961         * modules/posix_spawnattr_setpgroup: Likewise.
17962         * modules/posix_spawnattr_setschedparam: Likewise.
17963         * modules/posix_spawnattr_setschedpolicy: Likewise.
17964         * modules/posix_spawnattr_setsigdefault: Likewise.
17965         * modules/posix_spawnattr_setsigmask: Likewise.
17966         * modules/posix_spawnp: Likewise.
17967
17968 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17969
17970         Add option to do-release-commit-and-tag to specify branch.
17971         * build-aux/do-release-commit-and-tag: Add --branch.
17972
17973 2011-05-03  Bruno Haible  <bruno@clisp.org>
17974
17975         Avoid unnecessary compilation units, through conditional dependencies.
17976         * modules/accept (Depends-on): Add conditions to the dependencies.
17977         * modules/acosl (Depends-on): Likewise.
17978         * modules/argz (Depends-on): Likewise.
17979         * modules/asinl (Depends-on): Likewise.
17980         * modules/atanl (Depends-on): Likewise.
17981         * modules/atoll (Depends-on): Likewise.
17982         * modules/bind (Depends-on): Likewise.
17983         * modules/btowc (Depends-on): Likewise.
17984         * modules/canonicalize-lgpl (Depends-on): Likewise.
17985         * modules/ceil (Depends-on): Likewise.
17986         * modules/ceilf (Depends-on): Likewise.
17987         * modules/ceill (Depends-on): Likewise.
17988         * modules/chdir-long (Depends-on): Likewise.
17989         * modules/chown (Depends-on): Likewise.
17990         * modules/close (Depends-on): Likewise.
17991         * modules/connect (Depends-on): Likewise.
17992         * modules/cosl (Depends-on): Likewise.
17993         * modules/dirfd (Depends-on): Likewise.
17994         * modules/dprintf (Depends-on): Likewise.
17995         * modules/dprintf-posix (Depends-on): Likewise.
17996         * modules/error (Depends-on): Likewise.
17997         * modules/euidaccess (Depends-on): Likewise.
17998         * modules/expl (Depends-on): Likewise.
17999         * modules/faccessat (Depends-on): Likewise.
18000         * modules/fchdir (Depends-on): Likewise.
18001         * modules/fclose (Depends-on): Likewise.
18002         * modules/fcntl (Depends-on): Likewise.
18003         * modules/fdopendir (Depends-on): Likewise.
18004         * modules/fflush (Depends-on): Likewise.
18005         * modules/floor (Depends-on): Likewise.
18006         * modules/floorf (Depends-on): Likewise.
18007         * modules/floorl (Depends-on): Likewise.
18008         * modules/fnmatch (Depends-on): Likewise.
18009         * modules/fopen (Depends-on): Likewise.
18010         * modules/fprintf-posix (Depends-on): Likewise.
18011         * modules/frexp (Depends-on): Likewise.
18012         * modules/frexp-nolibm (Depends-on): Likewise.
18013         * modules/frexpl (Depends-on): Likewise.
18014         * modules/frexpl-nolibm (Depends-on): Likewise.
18015         * modules/fseek (Depends-on): Likewise.
18016         * modules/fsusage (Depends-on): Likewise.
18017         * modules/ftell (Depends-on): Likewise.
18018         * modules/ftello (Depends-on): Likewise.
18019         * modules/futimens (Depends-on): Likewise.
18020         * modules/getcwd (Depends-on): Likewise.
18021         * modules/getcwd-lgpl (Depends-on): Likewise.
18022         * modules/getdelim (Depends-on): Likewise.
18023         * modules/getdomainname (Depends-on): Likewise.
18024         * modules/getgroups (Depends-on): Likewise.
18025         * modules/gethostname (Depends-on): Likewise.
18026         * modules/getline (Depends-on): Likewise.
18027         * modules/getlogin_r (Depends-on): Likewise.
18028         * modules/getopt-posix (Depends-on): Likewise.
18029         * modules/getpeername (Depends-on): Likewise.
18030         * modules/getsockname (Depends-on): Likewise.
18031         * modules/getsockopt (Depends-on): Likewise.
18032         * modules/getsubopt (Depends-on): Likewise.
18033         * modules/getusershell (Depends-on): Likewise.
18034         * modules/glob (Depends-on): Likewise.
18035         * modules/grantpt (Depends-on): Likewise.
18036         * modules/iconv_open (Depends-on): Likewise.
18037         * modules/iconv_open-utf (Depends-on): Likewise.
18038         * modules/inet_ntop (Depends-on): Likewise.
18039         * modules/inet_pton (Depends-on): Likewise.
18040         * modules/ioctl (Depends-on): Likewise.
18041         * modules/isapipe (Depends-on): Likewise.
18042         * modules/isfinite (Depends-on): Likewise.
18043         * modules/isinf (Depends-on): Likewise.
18044         * modules/lchown (Depends-on): Likewise.
18045         * modules/ldexpl (Depends-on): Likewise.
18046         * modules/link (Depends-on): Likewise.
18047         * modules/linkat (Depends-on): Likewise.
18048         * modules/listen (Depends-on): Likewise.
18049         * modules/logl (Depends-on): Likewise.
18050         * modules/lstat (Depends-on): Likewise.
18051         * modules/mbrlen (Depends-on): Likewise.
18052         * modules/mbrtowc (Depends-on): Likewise.
18053         * modules/mbsinit (Depends-on): Likewise.
18054         * modules/mbsnrtowcs (Depends-on): Likewise.
18055         * modules/mbsrtowcs (Depends-on): Likewise.
18056         * modules/mbtowc (Depends-on): Likewise.
18057         * modules/memcmp (Depends-on): Likewise.
18058         * modules/mkdir (Depends-on): Likewise.
18059         * modules/mkdtemp (Depends-on): Likewise.
18060         * modules/mkfifo (Depends-on): Likewise.
18061         * modules/mkfifoat (Depends-on): Likewise.
18062         * modules/mknod (Depends-on): Likewise.
18063         * modules/mkostemp (Depends-on): Likewise.
18064         * modules/mkostemps (Depends-on): Likewise.
18065         * modules/mkstemp (Depends-on): Likewise.
18066         * modules/mkstemps (Depends-on): Likewise.
18067         * modules/mktime (Depends-on): Likewise.
18068         * modules/nanosleep (Depends-on): Likewise.
18069         * modules/open (Depends-on): Likewise.
18070         * modules/openat (Depends-on): Likewise.
18071         * modules/perror (Depends-on): Likewise.
18072         * modules/poll (Depends-on): Likewise.
18073         * modules/popen (Depends-on): Likewise.
18074         * modules/posix_spawn (Depends-on): Likewise.
18075         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18076         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18077         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18078         * modules/posix_spawnp (Depends-on): Likewise.
18079         * modules/pread (Depends-on): Likewise.
18080         * modules/printf-posix (Depends-on): Likewise.
18081         * modules/ptsname (Depends-on): Likewise.
18082         * modules/putenv (Depends-on): Likewise.
18083         * modules/pwrite (Depends-on): Likewise.
18084         * modules/readline (Depends-on): Likewise.
18085         * modules/readlink (Depends-on): Likewise.
18086         * modules/readlinkat (Depends-on): Likewise.
18087         * modules/recv (Depends-on): Likewise.
18088         * modules/recvfrom (Depends-on): Likewise.
18089         * modules/regex (Depends-on): Likewise.
18090         * modules/remove (Depends-on): Likewise.
18091         * modules/rename (Depends-on): Likewise.
18092         * modules/renameat (Depends-on): Likewise.
18093         * modules/rmdir (Depends-on): Likewise.
18094         * modules/round (Depends-on): Likewise.
18095         * modules/roundf (Depends-on): Likewise.
18096         * modules/roundl (Depends-on): Likewise.
18097         * modules/rpmatch (Depends-on): Likewise.
18098         * modules/select (Depends-on): Likewise.
18099         * modules/send (Depends-on): Likewise.
18100         * modules/sendto (Depends-on): Likewise.
18101         * modules/setenv (Depends-on): Likewise.
18102         * modules/setlocale (Depends-on): Likewise.
18103         * modules/setsockopt (Depends-on): Likewise.
18104         * modules/shutdown (Depends-on): Likewise.
18105         * modules/sigaction (Depends-on): Likewise.
18106         * modules/signbit (Depends-on): Likewise.
18107         * modules/sigprocmask (Depends-on): Likewise.
18108         * modules/sinl (Depends-on): Likewise.
18109         * modules/sleep (Depends-on): Likewise.
18110         * modules/snprintf (Depends-on): Likewise.
18111         * modules/snprintf-posix (Depends-on): Likewise.
18112         * modules/socket (Depends-on): Likewise.
18113         * modules/sprintf-posix (Depends-on): Likewise.
18114         * modules/sqrtl (Depends-on): Likewise.
18115         * modules/stat (Depends-on): Likewise.
18116         * modules/strchrnul (Depends-on): Likewise.
18117         * modules/strdup-posix (Depends-on): Likewise.
18118         * modules/strerror (Depends-on): Likewise.
18119         * modules/strerror_r-posix (Depends-on): Likewise.
18120         * modules/strndup (Depends-on): Likewise.
18121         * modules/strnlen (Depends-on): Likewise.
18122         * modules/strptime (Depends-on): Likewise.
18123         * modules/strsep (Depends-on): Likewise.
18124         * modules/strsignal (Depends-on): Likewise.
18125         * modules/strstr-simple (Depends-on): Likewise.
18126         * modules/strtod (Depends-on): Likewise.
18127         * modules/strtoimax (Depends-on): Likewise.
18128         * modules/strtok_r (Depends-on): Likewise.
18129         * modules/strtoumax (Depends-on): Likewise.
18130         * modules/symlink (Depends-on): Likewise.
18131         * modules/symlinkat (Depends-on): Likewise.
18132         * modules/tanl (Depends-on): Likewise.
18133         * modules/tcgetsid (Depends-on): Likewise.
18134         * modules/tmpfile (Depends-on): Likewise.
18135         * modules/trunc (Depends-on): Likewise.
18136         * modules/truncf (Depends-on): Likewise.
18137         * modules/truncl (Depends-on): Likewise.
18138         * modules/uname (Depends-on): Likewise.
18139         * modules/unlink (Depends-on): Likewise.
18140         * modules/unlockpt (Depends-on): Likewise.
18141         * modules/unsetenv (Depends-on): Likewise.
18142         * modules/usleep (Depends-on): Likewise.
18143         * modules/utimensat (Depends-on): Likewise.
18144         * modules/vasprintf (Depends-on): Likewise.
18145         * modules/vdprintf (Depends-on): Likewise.
18146         * modules/vdprintf-posix (Depends-on): Likewise.
18147         * modules/vfprintf-posix (Depends-on): Likewise.
18148         * modules/vprintf-posix (Depends-on): Likewise.
18149         * modules/vsnprintf (Depends-on): Likewise.
18150         * modules/vsnprintf-posix (Depends-on): Likewise.
18151         * modules/vsprintf-posix (Depends-on): Likewise.
18152         * modules/wcrtomb (Depends-on): Likewise.
18153         * modules/wcscasecmp (Depends-on): Likewise.
18154         * modules/wcscspn (Depends-on): Likewise.
18155         * modules/wcsdup (Depends-on): Likewise.
18156         * modules/wcsncasecmp (Depends-on): Likewise.
18157         * modules/wcsnrtombs (Depends-on): Likewise.
18158         * modules/wcspbrk (Depends-on): Likewise.
18159         * modules/wcsrtombs (Depends-on): Likewise.
18160         * modules/wcsspn (Depends-on): Likewise.
18161         * modules/wcsstr (Depends-on): Likewise.
18162         * modules/wcstok (Depends-on): Likewise.
18163         * modules/wcswidth (Depends-on): Likewise.
18164         * modules/wctob (Depends-on): Likewise.
18165         * modules/wctomb (Depends-on): Likewise.
18166         * modules/wctype (Depends-on): Likewise.
18167         * modules/wcwidth (Depends-on): Likewise.
18168         * modules/write (Depends-on): Likewise.
18169
18170 2011-05-03  Bruno Haible  <bruno@clisp.org>
18171
18172         Support for conditional dependencies.
18173         * doc/gnulib.texi (Module description): Document the syntax of
18174         conditional dependencies.
18175         * gnulib-tool: New option --conditional-dependencies.
18176         (func_usage): Document it.
18177         (cond_dependencies): New variable.
18178         (func_get_automake_snippet_conditional,
18179         func_get_automake_snippet_unconditional): New functions, extracted from
18180         func_get_automake_snippet.
18181         (func_get_automake_snippet): Use them.
18182         (sed_first_32_chars): New variable.
18183         (func_module_shellfunc_name): New function.
18184         (func_module_shellvar_name): New function.
18185         (func_module_conditional_name): New function.
18186         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18187         func_cond_module_condition): New functions.
18188         (func_modules_transitive_closure): Add support for conditional
18189         dependencies.
18190         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18191         conditional automake snippet in an automake conditional.
18192         (func_emit_autoconf_snippets): Emit shell functions that contain the
18193         code for conditional modules.
18194         (func_import, func_create_testdir): Update specification.
18195
18196 2011-05-03  Eric Blake  <eblake@redhat.com>
18197
18198         test-getaddrinfo: report error information
18199         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18200
18201 2011-05-03  Jim Meyering  <meyering@redhat.com>
18202
18203         bootstrap: avoid build failure when $GZIP is set
18204         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18205         program name.  If defined at all, it is supposed to list gzip options.
18206         Reported by Alan Curry in http://debbugs.gnu.org/8609
18207
18208 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18209
18210         readme-release: new module with release instructions
18211         * modules/readme-release: New module.
18212         * top/README-release: New file, from coreutils, grep, diffutils.
18213         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18214
18215 2011-05-02  Eric Blake  <eblake@redhat.com>
18216
18217         fflush: also replace fclose when fixing fflush
18218         * modules/fflush (Depends-on): Add fclose.
18219         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18220         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18221         memstreams with no backing fd.
18222         * doc/posix-functions/fclose.texi (fclose): Document the use of
18223         fflush module to fix the bug.
18224         * tests/test-fclose.c (main): Relax test when fclose is used in
18225         isolation.
18226
18227         fclose: add some tests
18228         * modules/fclose-tests: New test module.
18229         * tests/test-fclose.c: New file.
18230         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18231
18232         fclose: reduced dependencies
18233         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18234         simpler lseek.
18235         * lib/fclose.c (rpl_fclose): Likewise.
18236         Reported by Simon Josefsson.
18237
18238         exit: drop remaining clients
18239         * modules/argmatch (Depends-on): Replace exit with stdlib.
18240         * modules/copy-file (Depends-on): Likewise.
18241         * modules/execute (Depends-on): Likewise.
18242         * modules/exitfail (Depends-on): Likewise.
18243         * modules/obstack (Depends-on): Likewise.
18244         * modules/pagealign_alloc (Depends-on): Likewise.
18245         * modules/pipe-filter-gi (Depends-on): Likewise.
18246         * modules/pipe-filter-ii (Depends-on): Likewise.
18247         * modules/savewd (Depends-on): Likewise.
18248         * modules/spawn-pipe (Depends-on): Likewise.
18249         * modules/wait-process (Depends-on): Likewise.
18250         * modules/xsetenv (Depends-on): Likewise.
18251         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18252         * modules/git-merge-changelog (Depends-on): Likewise.
18253         * modules/long-options (Depends-on): Likewise.
18254         * modules/pt_chown (Depends-on): Likewise.
18255         * modules/sysexits (Depends-on): Likewise.
18256
18257         freading: relax license from LGPLv3+ to LGPLv2+
18258         * modules/freading (License): Relax LGPL version.
18259
18260 2011-05-02  Bruno Haible  <bruno@clisp.org>
18261
18262         fchdir: Remove unused dependencies.
18263         * modules/fchdir (Depends-on): Remove include_next.
18264
18265 2011-05-02  Bruno Haible  <bruno@clisp.org>
18266
18267         gnulib-tool: Refactor.
18268         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18269         from func_emit_autoconf_snippets.
18270         (func_emit_autoconf_snippets): Use it.
18271
18272 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18273
18274         * NEWS: Document removal of 'exit'.
18275         * modules/exit: Remove file.
18276
18277 2011-05-01  Bruno Haible  <bruno@clisp.org>
18278
18279         Update DEPENDENCIES.
18280         * DEPENDENCIES (gettext): Recommend the newest release.
18281         Reported by Simon Josefsson.
18282
18283 2011-05-01  Bruno Haible  <bruno@clisp.org>
18284
18285         gnulib-tool: Reduce code duplication.
18286         * gnulib-tool (func_emit_autoconf_snippets): New function.
18287         (func_import, func_create_testdir): Use it.
18288
18289 2011-04-30  Eric Blake  <eblake@redhat.com>
18290
18291         fclose: don't fail on non-seekable input stream
18292         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18293         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18294         since fflush is allowed to fail in that case.
18295
18296 2011-04-30  Bruno Haible  <bruno@clisp.org>
18297
18298         dup3: cleanup
18299         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18300
18301 2011-04-30  Bruno Haible  <bruno@clisp.org>
18302
18303         netdb: Make it work in C++ mode.
18304         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18305         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18306         module.
18307         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18308         gl_MODULE_INDICATOR_FOR_TESTS.
18309         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18310         * modules/netdb-c++-tests: New file.
18311         * tests/test-netdb-c++.cc: New file.
18312
18313 2011-04-30  Bruno Haible  <bruno@clisp.org>
18314
18315         New modules 'vfscanf', 'vscanf'.
18316         * modules/vfscanf: New file.
18317         * modules/vscanf: New file.
18318         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18319         here.
18320         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18321         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18322
18323 2011-04-30  Bruno Haible  <bruno@clisp.org>
18324
18325         passfd: Add comments.
18326         * lib/passfd.c: Add comments about platforms.
18327
18328 2011-04-30  Bruno Haible  <bruno@clisp.org>
18329
18330         sys_uio: Make <sys/uio.h> self-contained.
18331         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18332         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18333
18334 2011-04-30  Bruno Haible  <bruno@clisp.org>
18335
18336         sys_socket: Ensure 'struct iovec' definition.
18337         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18338         <sys/socket.h>.
18339         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18340
18341 2011-04-30  Bruno Haible  <bruno@clisp.org>
18342
18343         sys_uio: Protect definition of 'struct iovec'.
18344         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18345         it as a C struct.
18346
18347 2011-04-30  Bruno Haible  <bruno@clisp.org>
18348
18349         manywarnings: fix indentation
18350         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18351
18352 2011-04-30  Pádraig Brady <P@draigBrady.com>
18353
18354         manywarnings: add -Wno-missing-field-initializers if needed.
18355         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18356         option if it's needed to allow initialization with { 0, }
18357
18358 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18359
18360         announce-gen: cosmetic improvement
18361         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18362
18363 2011-04-29  Jim Meyering  <meyering@redhat.com>
18364
18365         vc-list-files: indent with spaces, not TABs
18366         * build-aux/vc-list-files: Convert leading TABs to spaces,
18367         to match the style of most other files in gnulib.
18368
18369         announce-gen: indent with spaces, not TABs
18370         * build-aux/announce-gen: Convert all TABs to spaces, to match
18371         the style of most other files in gnulib.
18372
18373 2011-04-29  Eric Blake  <eblake@redhat.com>
18374
18375         quotearg: avoid uninitialized variable use
18376         * lib/quotearg.c (quoting_options_from_style): Initialize
18377         remaining fields, and ensure that custom styles are only used via
18378         quoting_options rather than quoting_style.
18379
18380 2011-04-29  Jim Meyering  <meyering@redhat.com>
18381
18382         maint.mk: remove unused VC-tag variable
18383         * top/maint.mk (VC-tag): Remove unused variable.
18384
18385 2011-04-29  Bruno Haible  <bruno@clisp.org>
18386
18387         netdb: fix gai_strerror replacements
18388         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18389         * modules/netdb: Substitute it.
18390
18391 2011-04-29  Jim Meyering  <meyering@redhat.com>
18392
18393         test-getcwd.c: avoid new set-but-not-used warning
18394         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18395         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18396         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18397         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18398
18399         test-hash.c: avoid a new shadowing warning
18400         * tests/test-hash.c (main): Don't shadow "dup".
18401
18402 2011-04-28  Eric Blake  <eblake@redhat.com>
18403
18404         getaddrinfo: fix gai_strerror signature
18405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18406         and work around mingw with UNICODE defined.
18407         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18408         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18409         * modules/netdb (Makefile.am): Substitute it.
18410         * lib/netdb.in.h (gai_strerror): Declare replacement.
18411         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18412         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18413         the fix.
18414
18415         getsockopt: avoid compiler warning
18416         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18417         Reported by Matthias Bolte.
18418
18419         tests: drop unused link dependency
18420         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18421         * modules/dirent-safer-tests (Makefile.am): Likewise.
18422         * modules/fdopendir-tests (Makefile.am): Likewise.
18423         * modules/mkfifoat-tests (Makefile.am): Likewise.
18424         * modules/openat-safer-tests (Makefile.am): Likewise.
18425         * modules/openat-tests (Makefile.am): Likewise.
18426         * modules/readlinkat-tests (Makefile.am): Likewise.
18427         * modules/symlinkat-tests (Makefile.am): Likewise.
18428         * modules/linkat-tests (Makefile.am): Likewise.
18429         (Depends-on): Switch to filenamecat-lgpl.
18430         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18431         LIBINTL.
18432         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18433         * tests/test-linkat.c (main): Don't require xalloc.
18434
18435         hash, mgetgroups: drop xalloc dependency
18436         * lib/hash.c (includes): Adjust includes.
18437         * lib/mgetgroups.c (includes): Likewise.
18438         (xgetgroups): Move...
18439         * lib/xgetgroups.c: ...to new file.
18440         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18441         * modules/xgetgroups: New file, split from...
18442         * modules/mgetgroups: ...here.
18443         (Depends-on): Add xalloc-oversized.
18444         * modules/hash (Depends-on): Likewise.
18445         * modules/hash-tests (Depends-on): Drop xalloc.
18446         (test_hash_LDADD): Drop unused library.
18447         * tests/test-hash.c (main): Break xalloc dependency.
18448         (includes): Drop unused include.
18449
18450         xalloc-oversized: new module
18451         * modules/xalloc-oversized: New module.
18452         * modules/xalloc (Depends-on): Add it.
18453         * lib/xalloc.h (xalloc_oversized): Move...
18454         * lib/xalloc-oversized.h: ...into new file.
18455
18456         utimecmp: drop dependency on xmalloc
18457         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18458         due to memory pressure.
18459         * modules/utimecmp (Depends-on): Drop xalloc.
18460
18461 2011-04-27  Eric Blake  <eblake@redhat.com>
18462
18463         getcwd: fix mingw bugs
18464         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18465         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18466         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18467
18468 2011-04-27  Bruno Haible  <bruno@clisp.org>
18469
18470         mkstemps: Ensure declaration on MacOS X 10.5.
18471         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18472         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18473         MacOS X.
18474
18475 2011-04-27  Bruno Haible  <bruno@clisp.org>
18476
18477         mkstemp: More documentation.
18478         * doc/posix-functions/mkstemp.texi: Document header file problem on
18479         MacOS X.
18480
18481 2011-04-27  Bruno Haible  <bruno@clisp.org>
18482
18483         mkstemp: Tweak configure message when cross-compiling.
18484         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18485         result as a guess.
18486
18487 2011-04-27  Bruno Haible  <bruno@clisp.org>
18488
18489         clean-temp: Clarify what it does.
18490         * lib/clean-temp.h: Add more comments.
18491         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18492         module.
18493         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18494         * doc/glibc-functions/mkstemps.texi: Likewise.
18495         * doc/glibc-functions/mkostemps.texi: Likewise.
18496
18497 2011-04-27  Eric Blake  <eblake@redhat.com>
18498
18499         fchdir: avoid extra chdir and fix test
18500         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18501         getcwd-lgpl.
18502         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18503         have to be canonical.
18504         (canonicalize_file_name): Drop unused macro.
18505         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18506
18507         filenamecat-lgpl: fix licence
18508         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18509         when it was first created.
18510
18511         linkat, renameat: add missing dependency
18512         * modules/linkat (Depends-on): Require getcwd-lgpl.
18513         * modules/renameat (Depends-on): Likewise.
18514
18515         tests: reduce dependencies
18516         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18517         * tests/test-renameat.c (main): Likewise.
18518         * modules/linkat-tests (Depends-on): Relax dependency.
18519         * modules/renameat-tests (Depends-on): Likewise.
18520         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18521         dependency explicit.
18522
18523         save-cwd: reduce default dependency
18524         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18525         * lib/save-cwd.c: Update comments.
18526         * NEWS: Document the semantic change.
18527
18528         getcwd: enhance tests
18529         * tests/test-getcwd-lgpl.c: New file, taken from...
18530         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18531         repeat long path stress tests from m4 probe.
18532         * modules/getcwd-lgpl-tests: New module.
18533         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18534         * m4/getcwd-abort-bug.m4: Update comment.
18535         * m4/getcwd-path-max.m4: Likewise.
18536
18537         getcwd-lgpl: new module
18538         * modules/getcwd-lgpl: New module.
18539         * lib/getcwd-lgpl.c: New file.
18540         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18541         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18542         * modules/getcwd (configure.ac): Set C witness.
18543         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18544
18545         getcwd: tweak comments
18546         * m4/getcwd-abort-bug.m4: Fix comments.
18547         * m4/getcwd-path-max.m4: Likewise.
18548         * m4/getcwd.m4: Likewise.
18549
18550 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18551         and Eric Blake  <eblake@redhat.com>
18552
18553         mkstemp: replace if system version uses wrong permissions
18554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18555         read/write mode bits set in file created by mkstemp.
18556         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18557
18558 2011-04-27  Eric Blake  <eblake@redhat.com>
18559
18560         passfd: avoid compiler warning
18561         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18562         Reported by Laine Stump.
18563
18564 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18565
18566         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18567         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18568
18569 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18570         and Eric Blake  <eblake@redhat.com>
18571
18572         mkstemp: mention clean-temp module
18573         * lib/mkstemp.c: Add comment.
18574         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18575
18576 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         inttypes: also provide default values for 32-bit tests
18579         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18580         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18581
18582 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18583
18584         strtoumax: remove dependency on strtoimax
18585         This is like the strtoull change of yesterday.
18586         * modules/strtoumax (Files): Add lib/strtoimax.c.
18587         (Depends-on): Remove strtoimax and add verify.
18588
18589         inttypes-incomplete: new module
18590         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18591         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18592         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18593         of gl_INTTYPES_H.
18594         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18595         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18596         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18597         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18598         * modules/strtoumax, modules/xstrtol (Depends-on):
18599         Depend on inttypes-incomplete, not inttypes.
18600         * modules/inttypes-incomplete: New module, containing the contents
18601         of the old modules/inttypes module, except that the Files: section
18602         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18603         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18604         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18605         (Depends-on): Depend only on inttypes-incomplete.
18606         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18607
18608         inttypes: omit now-redundant strtoimax and strtoumax work
18609         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18610         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18611
18612         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18613         This supports apps that need pointers to strtoimax and strtoumax,
18614         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18615         nonexistent functions.  See
18616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18617         et seq.
18618         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18619         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18620         a macro.
18621         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18622
18623 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18624
18625         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18626
18627 2011-04-25  Bruno Haible  <bruno@clisp.org>
18628
18629         strtol, strtoul: Mark modules as obsolete.
18630         * modules/strtol (Status, Notice): New sections.
18631         * modules/strtoul (Status, Notice): New sections.
18632
18633 2011-04-25  Bruno Haible  <bruno@clisp.org>
18634
18635         strtod: Remove check for strtod, unless supporting old platforms.
18636         * modules/strtod-obsolete: New file.
18637         * m4/strtod-obsolete.m4: New file.
18638         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18639         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18640         * modules/strtod (Depends-on): Add strtod-obsolete.
18641         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18642
18643 2011-04-25  Bruno Haible  <bruno@clisp.org>
18644
18645         strcase: Make module obsolete.
18646         * modules/strcase (Status, Notice): New sections.
18647
18648 2011-04-25  Bruno Haible  <bruno@clisp.org>
18649
18650         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18651         * modules/dup2-obsolete: New file.
18652         * m4/dup2-obsolete.m4: New file.
18653         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18654         gl_FUNC_DUP2_OBSOLETE is not also defined.
18655         * modules/dup2 (Depends-on): Add dup2-obsolete.
18656         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18657
18658 2011-04-25  Bruno Haible  <bruno@clisp.org>
18659
18660         strnlen: Avoid memchr related link error on old obsolete platforms.
18661         * modules/memchr-obsolete: New file.
18662         * m4/memchr-obsolete.m4: New file.
18663         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18664         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18665         * modules/memchr (Depends-on): Add memchr-obsolete.
18666         * modules/strnlen (Depends-on): Likewise.
18667         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18668
18669 2011-04-25  Jim Meyering  <meyering@redhat.com>
18670
18671         maint.mk: makefile_at_at_check extend and clean up
18672         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18673         in addition to */Makefile.am.
18674         Exempt legitimate uses of @VAR@ notation, e.g.,
18675         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18676         Remove obsolete coreutils-specific comment.
18677         Prompted by discussion here:
18678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18679
18680 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         strtoul: remove dependency on strtol
18683         This is so that 'configure' need not check for strtol merely because
18684         the application needs strtoul.
18685         * modules/strtoul (Files): Add lib/strtol.c.
18686         (Depends-on): Remove strtol.
18687
18688         strtoull: remove dependency on strtoul
18689         This is like the strtoll change.
18690         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18691         (Depends-on): Remove strtoul.
18692
18693         strtoll: remove dependency on strtol
18694         This is so that 'configure' need not check for strtol merely because
18695         the application needs strtoll.
18696         * modules/strtoll (Files): Add lib/strtol.c.
18697         (Depends-on): Remove strtol.
18698
18699 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18700
18701         inttypes: Move some configure check to module 'imaxdiv'.
18702         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18703         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18704         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18705
18706 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18707
18708         inttypes: Move some configure check to module 'imaxabs'.
18709         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18710         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18711         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18712
18713 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18714
18715         inttypes: Remove configure tests that are not needed since 2009-12-31.
18716         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18717         gl_cv_header_working_inttypes_h.
18718
18719 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18720
18721         * modules/strnlen (Depends-on): Remove memchr.
18722         The strnlen implementation doesn't need the memchr module's fixes; see
18723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18724
18725         strtol: remove dependency on wchar
18726         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18727         * modules/strtol (Depends-on): Remove wchar.
18728
18729 2011-04-21  Eric Blake  <eblake@redhat.com>
18730
18731         passfd: fix test regression on Linux
18732         * modules/passfd-tests (configure.ac): Correct socketpair check.
18733
18734         passfd: speed up configure and drop unused code
18735         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18736         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18737         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18738         Instead of probing at configure for unix_scm_rights_bsd44_way,
18739         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18740         check to a struct member probe.
18741         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18742         (sendfd, recvfd): Update preprocessor checks.
18743         * modules/passfd (Files): Reflect rename, and drop unused file.
18744         (Depends-on): Drop unused dependency.
18745
18746         passfd: allow compilation on mingw
18747         * modules/sys_socket (Depends-on): Add sys_uio.
18748         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18749         iovec and a minimal struct msghdr.
18750         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18751         * tests/test-sys_socket.c (main): Enhance test.
18752         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18753         guaranteed to provide what we need.
18754         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18755         * modules/passfd-tests (Depends-on): Add sys_wait.
18756         * tests/test-passfd.c (main): Skip test on mingw, for now.
18757         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18758         partial 'struct msghdr' implementation.
18759
18760         sys_uio: new module
18761         * modules/sys_uio: New module.
18762         * modules/sys_uio-tests: Likewise.
18763         * lib/sys_uio.in.h: New file.
18764         * m4/sys_uio_h.m4: Likewise.
18765         * tests/test-sys_uio.c: Likewise.
18766         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18767         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18768
18769 2011-04-20  Jim Meyering  <meyering@redhat.com>
18770
18771         useless-if-before-free: avoid false-positive
18772         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18773         disjunct so that it too requires a terminating ";".  Without that,
18774         this script would identify as useless one statement from gcc that
18775         was not:
18776           if (aligned_ptr)
18777             free (((void **) aligned_ptr) [-1]);
18778
18779 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18780
18781         doc: update users.txt.
18782         * users.txt: Add barcode.
18783
18784 2011-04-19  Bruno Haible  <bruno@clisp.org>
18785
18786         ioctl: Remove link dependency on native Windows.
18787         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18788         (gl_close_fn, gl_ioctl_fn): New types.
18789         (struct fd_hook): Renamed from struct close_hook. Change type of
18790         private_close_fn field. Add private_ioctl_fn field.
18791         (close_hook_fn): Add parameter for primary close method.
18792         (execute_close_hooks, execute_all_close_hooks): Likewise.
18793         (ioctl_hook_fn): New type.
18794         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18795         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18796         argument.
18797         (unregister_fd_hook): Renamed from unregister_close_hook.
18798         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18799         Don't include <unistd.h>.
18800         (close): Remove undef.
18801         (anchor): Update.
18802         (execute_close_hooks): Add argument for primary close method.
18803         (execute_all_close_hooks): Likewise.
18804         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18805         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18806         argument. Allow each argument to be NULL.
18807         (unregister_fd_hook): Renamed from unregister_close_hook.
18808         * lib/close.c (rpl_close): Pass 'close' function pointer to
18809         execute_all_close_hooks.
18810         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18811         (primary_ioctl): New function.
18812         (ioctl): Don't call ioctlsocket here. Instead, call
18813         execute_all_ioctl_hooks.
18814         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18815         close method.
18816         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18817         (fd_sockets_hook): Renamed from close_sockets_hook.
18818         (gl_sockets_startup, gl_sockets_cleanup): Update.
18819         * modules/fd-hook: Renamed from modules/close-hook. Update.
18820         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18821         * modules/sockets (Depends-on): Likewise.
18822         * modules/ioctl (Depends-on): Add fd-hook.
18823         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18824         GNULIB_SOCKET.
18825
18826 2011-04-19  Bruno Haible  <bruno@clisp.org>
18827
18828         Move the support of O_NONBLOCK in open() to the 'open' module.
18829         * modules/nonblocking (Depends-on): Remove 'open'.
18830         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18831         gl_cv_have_open_O_NONBLOCK.
18832         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18833         O_NONBLOCK support.
18834         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18835
18836 2011-04-17  Bruno Haible  <bruno@clisp.org>
18837
18838         pipe2: Simplify code.
18839         * lib/pipe2.c (pipe2): Reduce code duplication.
18840
18841 2011-04-17  Bruno Haible  <bruno@clisp.org>
18842
18843         nonblocking: Add comment.
18844         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18845
18846 2011-04-17  Bruno Haible  <bruno@clisp.org>
18847
18848         nonblocking: Add tests for sockets.
18849         * tests/test-nonblocking-socket.sh: New file.
18850         * tests/test-nonblocking-socket-main.c: New file.
18851         * tests/test-nonblocking-socket-child.c: New file.
18852         * tests/test-nonblocking-socket.h: New file.
18853         * tests/socket-server.h: New file.
18854         * tests/socket-client.h: New file.
18855         * modules/nonblocking-socket-tests: New file.
18856         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18857
18858 2011-04-17  Bruno Haible  <bruno@clisp.org>
18859
18860         nonblocking: Add tests for pipes.
18861         * tests/test-nonblocking-pipe.sh: New file.
18862         * tests/test-nonblocking-pipe-main.c: New file.
18863         * tests/test-nonblocking-pipe-child.c: New file.
18864         * tests/test-nonblocking-pipe.h: New file.
18865         * tests/test-nonblocking-writer.h: New file.
18866         * tests/test-nonblocking-reader.h: New file.
18867         * tests/test-nonblocking-misc.h: New file.
18868         * modules/nonblocking-pipe-tests: New file.
18869         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18870
18871 2011-04-16  Bruno Haible  <bruno@clisp.org>
18872
18873         gettext: Clarify the needed programmer actions.
18874         * modules/gettext (Notice): New field.
18875         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18876
18877 2011-04-16  Bruno Haible  <bruno@clisp.org>
18878
18879         strchrnul: Tweak last commit.
18880         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18881         bug.
18882         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18883         as in _GL_FUNCDECL_SYS.
18884         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18885         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18886
18887 2011-04-15  Eric Blake  <eblake@redhat.com>
18888
18889         strchrnul: work around cygwin bug
18890         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18891         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18893         * modules/string (Makefile.am): Substitute it.
18894         * lib/string.in.h (strchrnul): Use it.
18895
18896 2011-04-15  Bruno Haible  <bruno@clisp.org>
18897
18898         Don't require lib/stdio-write.c when only module 'stdio' is used.
18899         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18900         invocation.
18901         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18902
18903 2011-04-14  Bruno Haible  <bruno@clisp.org>
18904
18905         Support non-blocking pipe I/O in read() on native Windows.
18906         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18907         (read): New declaration.
18908         * lib/read.c: New file.
18909         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18910         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18911         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18912         vscanf): New declarations.
18913         * lib/stdio-read.c: New file.
18914         * m4/read.m4: New file.
18915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18916         REPLACE_READ.
18917         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18918         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18919         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18920         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18921         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18922         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18923         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18924         * modules/read: New file.
18925         * modules/nonblocking (Files): Add lib/stdio-read.c.
18926         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18927         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18928         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18929         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18930         * modules/pread (Depends-on): Add read.
18931         * modules/safe-read (Depends-on): Likewise.
18932         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18933         gets, scanf, vfscanf, vscanf): Verify signatures.
18934         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18935         problem with non-blocking pipes.
18936         * doc/posix-functions/fgetc.texi: Likewise.
18937         * doc/posix-functions/fgets.texi: Likewise.
18938         * doc/posix-functions/fread.texi: Likewise.
18939         * doc/posix-functions/fscanf.texi: Likewise.
18940         * doc/posix-functions/getc.texi: Likewise.
18941         * doc/posix-functions/getchar.texi: Likewise.
18942         * doc/posix-functions/gets.texi: Likewise.
18943         * doc/posix-functions/scanf.texi: Likewise.
18944         * doc/posix-functions/vfscanf.texi: Likewise.
18945         * doc/posix-functions/vscanf.texi: Likewise.
18946
18947 2011-04-14  Bruno Haible  <bruno@clisp.org>
18948
18949         Support non-blocking pipe I/O in write() on native Windows.
18950         * lib/write.c (rpl_write): Split a write request that failed merely
18951         because the byte count was larger than the pipe buffer's size.
18952         * doc/posix-functions/write.texi: Mention the problem with large byte
18953         counts.
18954
18955 2011-04-14  Bruno Haible  <bruno@clisp.org>
18956
18957         wchar: Ensure that wchar_t gets defined on uClibc.
18958         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18959         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18960
18961 2011-04-13  Bruno Haible  <bruno@clisp.org>
18962
18963         safe-write, full-read: Avoid unnecessary compilation units.
18964         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18965         (Depends-on): Remove safe-read. Add ssize_t.
18966         * modules/full-read (Files): Add lib/full-write.c.
18967         (Depends-on): Add full-write.
18968
18969 2011-04-13  Bruno Haible  <bruno@clisp.org>
18970
18971         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18972         * modules/pwrite (Depends-on): Add 'write'.
18973
18974 2011-04-13  Bruno Haible  <bruno@clisp.org>
18975
18976         Support non-blocking pipe I/O in write() on native Windows.
18977         * lib/unistd.in.h (write): Enable replacement also if
18978         GNULIB_UNISTD_H_NONBLOCKING is 1.
18979         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18980         (rpl_write): When failing to write on a non-blocking pipe, change
18981         errno from ENOSPC to EAGAIN.
18982         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18983         putchar, puts, vfprintf, vprintf): Enable replacement also if
18984         GNULIB_STDIO_H_NONBLOCKING is 1.
18985         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18986         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18987         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18988         CALL_WITH_SIGPIPE_EMULATION.
18989         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18990         * m4/nonblocking.m4: New file.
18991         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18992         for non-blocking I/O support.
18993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18994         GNULIB_UNISTD_H_NONBLOCKING.
18995         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18996         required for non-blocking I/O support.
18997         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18998         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18999         lib/stdio-write.c, m4/asm-underscore.m4.
19000         (Depends-on): Add stdio, unistd.
19001         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19002         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19003         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19004         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19005         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19006         problem with non-blocking pipes.
19007         * doc/posix-functions/fputc.texi: Likewise.
19008         * doc/posix-functions/fputs.texi: Likewise.
19009         * doc/posix-functions/fwrite.texi: Likewise.
19010         * doc/posix-functions/printf.texi: Likewise.
19011         * doc/posix-functions/putc.texi: Likewise.
19012         * doc/posix-functions/putchar.texi: Likewise.
19013         * doc/posix-functions/puts.texi: Likewise.
19014         * doc/posix-functions/vfprintf.texi: Likewise.
19015         * doc/posix-functions/vprintf.texi: Likewise.
19016         * doc/posix-functions/write.texi: Likewise.
19017
19018 2011-04-10  Jim Meyering  <meyering@redhat.com>
19019
19020         maint.mk: prohibit doubled words
19021         Detect them also when they're separated by a newline.
19022         There are 3 ways to customize it:
19023           - disable the test on a per file basis, as usual with rules using
19024             $(VC_LIST_EXCEPT)
19025           - replace the default doubled-word-selecting regexp (affects all files)
19026           - ignore a particular file-vs-doubled-word match
19027         I nearly used that last one to ignore the "is is" match in
19028         coreutils' NEWS file, since the text was "ls -is is ..."
19029         To do that, I would have added this line to cfg.mk:
19030           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19031         but it would have ignored any "is is" match in NEWS.
19032         Low probability, but still...
19033         Instead, I changed the text, slightly:
19034           -  ls -is is now consistent with ls -lis in ignoring values returned
19035           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19036         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19037         (prohibit_doubled_word_): Define.
19038         (sc_prohibit_doubled_word): New rule.
19039         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19040
19041 2011-04-10  Jim Meyering  <meyering@redhat.com>
19042
19043         maint: fix doubled-word typo in comment
19044         * m4/gethostname.m4: s/is is/it is/
19045         * m4/getdomainname.m4: Likewise.
19046
19047 2011-04-10  Jim Meyering  <meyering@redhat.com>
19048
19049         maint: remove doubled word: s/it it/it/
19050         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19051
19052 2011-04-10  Jim Meyering  <meyering@redhat.com>
19053
19054         maint.mk: remove useless semicolon and backslash
19055         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19056         semicolon and backslash.
19057
19058 2011-04-10  Bruno Haible  <bruno@clisp.org>
19059
19060         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19061         * modules/stdint-tests (Depends-on): Add wchar.
19062
19063 2011-04-10  Jim Meyering  <meyering@redhat.com>
19064
19065         maint: remove doubled words in comments, e.g., s/a a/a/
19066         * lib/strptime.c (day_of_the_week): s/the the/the/
19067         * tests/test-chown.h (test_chown): s/a a/a/
19068
19069         test-chown.h: correct a cast
19070         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19071         when the destination is a stat.st_gid.
19072
19073 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19074
19075         getaddrinfo: Fix test for sa_len member.
19076         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19077         include <sys/types.h> before <sys/socket.h>.
19078
19079 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19080
19081         maint: change "can not" to "cannot"
19082         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19083         boundaries.
19084
19085 2011-04-09  Jim Meyering  <meyering@redhat.com>
19086
19087         maint: change "a a" to "a"
19088         * tests/test-lchown.h (test_lchown): s/a a/a/
19089
19090         maint.mk: prohibit \<the the\>
19091         * top/maint.mk (sc_prohibit_the_the): New rule.
19092
19093         maint: fix "the the" in comment
19094         * lib/count-one-bits.h: s/the the/the/
19095
19096         maint: change "can not" to "cannot"
19097         But do not change the occurrences in maintain.texi or in
19098         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19099         * doc/gnulib-tool.texi: s/can not/cannot/
19100         * doc/posix-functions/accept.texi (accept): Likewise.
19101         * doc/posix-functions/socket.texi (socket): Likewise.
19102         * lib/mbrtowc.c: Likewise.
19103
19104         maint.mk: prohibit use of "can not"
19105         * top/maint.mk (sc_prohibit_can_not): New rule.
19106         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19107
19108 2011-04-09  Bruno Haible  <bruno@clisp.org>
19109
19110         careadlinkat: Guard against misuse of careadlinkatcwd.
19111         * lib/careadlinkat.c: Include <stdlib.h>.
19112         (careadlinkatcwd): Check that the fd argument is as expected.
19113
19114 2011-04-09  Bruno Haible  <bruno@clisp.org>
19115
19116         careadlinkat: Use common coding style.
19117         * lib/careadlinkat.c: Move gnulib includes after system includes.
19118
19119 2011-04-09  Bruno Haible  <bruno@clisp.org>
19120
19121         careadlinkat: Clarify specification.
19122         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19123         (careadlinkatcwd): Add comment.
19124         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19125
19126 2011-04-09  Bruno Haible  <bruno@clisp.org>
19127
19128         areadlinkat: Avoid link error on many platforms.
19129         * modules/areadlinkat (Depends-on): Add areadlink.
19130
19131 2011-04-09  Bruno Haible  <bruno@clisp.org>
19132
19133         allocator, careadlinkat: Fix double-inclusion guard.
19134         * lib/allocator.h: Fix double-inclusion guard.
19135         * lib/careadlinkat.h: Likewise.
19136
19137 2011-04-09  Bruno Haible  <bruno@clisp.org>
19138
19139         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19140         * lib/relocwrapper.c: Update dependencies hierarchy.
19141         * build-aux/install-reloc: Update list of files to be compiled.
19142         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19143         lib/allocator.[hc].
19144
19145 2011-04-08  Eric Blake  <eblake@redhat.com>
19146
19147         strftime: silence gnulib-tool warning
19148         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19149
19150 2011-04-08  Bruno Haible  <bruno@clisp.org>
19151
19152         verify: Fix syntax error with GCC 4.6 in C++ mode.
19153         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19154         (HAVE_STATIC_ASSERT): New macro.
19155         (verify_true, verify): Use 'static_assert' if it is supported and
19156         '_Static_assert' is not supported.
19157
19158 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19159
19160         allocator: New module.
19161         * modules/allocator, lib/allocator.c: New files.
19162         * lib/allocator.h (stdlib_allocator): New decl.
19163         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19164         Remove.  Do not include <stdlib.h>.
19165         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19166         * modules/careadlinkat (Files): Remove lib/allocator.h.
19167         (Depends-on): Add allocator.
19168
19169         stdlib: let modules use system malloc, realloc
19170         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19171         if !_GL_USE_STDLIB_ALLOC.
19172         (malloc, realloc): Limit this change to a smaller scope.
19173
19174         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19175         (malloc, realloc): Don't #undef; no longer needed.
19176         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19177         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19178         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19179         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19180         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19181         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19182         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19183         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19184
19185         careadlinkat: rename members to avoid problem
19186         * lib/allocator.h (struct allocator): Rename members from
19187         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19188         and realloc are #define'd.  Reported by Eric Blake in
19189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19190         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19191
19192 2011-04-08  Eric Blake  <eblake@redhat.com>
19193
19194         nonblocking: reduce dependency
19195         * tests/test-nonblocking.c: Only test sockets when in use.
19196         * modules/nonblocking-tests (Depends-on): Drop socket.
19197         (Makefile.am): Link even if sockets are not present.
19198         * modules/pipe2-tests (Makefile.am): Likewise.
19199         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19200
19201         pipe2: fix O_NONBLOCK support on mingw
19202         * modules/pipe2 (Depends-on): Add nonblocking.
19203         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19204         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19205         * tests/test-nonblocking.c (main): Likewise.
19206         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19207
19208         fcntl-h: fix O_ACCMODE on cygwin
19209         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19210         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19211
19212         pipe-filter: drop O_NONBLOCK workarounds
19213         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19214         * modules/pipe-filter-ii (Depends-on): Likewise.
19215         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19216
19217         nonblocking: provide O_NONBLOCK for mingw
19218         * modules/nonblocking (Depends-on): Add open.
19219         (configure.ac): Set new witness macro.
19220         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19221         * modules/fcntl-h (Makefile.am): Substitute it.
19222         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19223         nonblocking module is in use.
19224         * lib/nonblocking.c: Adjust portability test.
19225         * lib/open.c (open): Don't let native open see gnulib flag.
19226         * tests/test-fcntl-h.c (main): Enhance test.
19227         * tests/test-open.h (test_open): Likewise.
19228         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19229
19230         careadlinkat: fix compilation error on mingw
19231         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19232         within struct allocator.
19233
19234 2011-04-06  Eric Blake  <eblake@redhat.com>
19235
19236         binary-io: relicense under LGPLv2+
19237         * modules/binary-io (License): Relax to LGPLv2+.
19238         Requested for libvirt, and required by pipe2.
19239
19240 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19241
19242         verify: use _Static_assert if available
19243         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19244         (verify_true, verify): Use it if available.  This generates better
19245         diagnostics with GCC 4.6.0 and later.
19246
19247 2011-04-05  Bruno Haible  <bruno@clisp.org>
19248
19249         Remove leftover generated .h files after config.status changed.
19250
19251         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19252         GL_GENERATE_ALLOCA_H.
19253         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19254         GL_GENERATE_ALLOCA_H evaluates to false.
19255
19256         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19257         GL_GENERATE_ARGZ_H.
19258         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19259         evaluates to false.
19260
19261         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19262         GL_GENERATE_BYTESWAP_H.
19263         * modules/byteswap (Makefile.am): Remove byteswap.h if
19264         GL_GENERATE_BYTESWAP_H evaluates to false.
19265
19266         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19267         GL_GENERATE_ERRNO_H.
19268         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19269         evaluates to false.
19270
19271         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19272         GL_GENERATE_FLOAT_H.
19273         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19274         evaluates to false.
19275
19276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19277         GL_GENERATE_FNMATCH_H.
19278         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19279         GL_GENERATE_FNMATCH_H evaluates to false.
19280
19281         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19282         GL_GENERATE_GLOB_H.
19283         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19284         evaluates to false.
19285
19286         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19287         automake conditional GL_GENERATE_ICONV_H.
19288         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19289         evaluates to false.
19290
19291         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19292         GL_GENERATE_NETINET_IN_H.
19293         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19294         GL_GENERATE_NETINET_IN_H evaluates to false.
19295
19296         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19297         conditional GL_GENERATE_PTHREAD_H.
19298         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19299         * modules/pthread (Makefile.am): Remove pthread.h if
19300         GL_GENERATE_PTHREAD_H evaluates to false.
19301
19302         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19303         GL_GENERATE_SCHED_H.
19304         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19305         evaluates to false.
19306
19307         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19308         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19309         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19310         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19311
19312         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19313         GL_GENERATE_STDARG_H.
19314         * modules/stdarg (Makefile.am): Remove stdarg.h if
19315         GL_GENERATE_STDARG_H evaluates to false.
19316
19317         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19318         GL_GENERATE_STDBOOL_H.
19319         * modules/stdbool (Makefile.am): Remove stdbool.h if
19320         GL_GENERATE_STDBOOL_H evaluates to false.
19321
19322         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19323         conditional GL_GENERATE_STDDEF_H.
19324         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19325         * modules/stddef (Makefile.am): Remove stddef.h if
19326         GL_GENERATE_STDDEF_H evaluates to false.
19327
19328         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19329         GL_GENERATE_STDINT_H.
19330         * modules/stdint (Makefile.am): Remove stdint.h if
19331         GL_GENERATE_STDINT_H evaluates to false.
19332
19333         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19334         GL_GENERATE_SYSEXITS_H.
19335         * modules/sysexits (Makefile.am): Remove sysexits.h if
19336         GL_GENERATE_SYSEXITS_H evaluates to false.
19337
19338         Reported by Karl Berry and Ralf Wildenhues.
19339
19340 2011-04-05  Bruno Haible  <bruno@clisp.org>
19341
19342         Ensure to rebuild generated .h files when config.status has changed.
19343         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19344         config.status.
19345         * modules/ctype (Makefile.am): Likewise.
19346         * modules/dirent (Makefile.am): Likewise.
19347         * modules/errno (Makefile.am): Likewise.
19348         * modules/fcntl-h (Makefile.am): Likewise.
19349         * modules/float (Makefile.am): Likewise.
19350         * modules/getopt-posix (Makefile.am): Likewise.
19351         * modules/glob (Makefile.am): Likewise.
19352         * modules/iconv-h (Makefile.am): Likewise.
19353         * modules/inttypes (Makefile.am): Likewise.
19354         * modules/langinfo (Makefile.am): Likewise.
19355         * modules/locale (Makefile.am): Likewise.
19356         * modules/math (Makefile.am): Likewise.
19357         * modules/netdb (Makefile.am): Likewise.
19358         * modules/netinet_in (Makefile.am): Likewise.
19359         * modules/poll-h (Makefile.am): Likewise.
19360         * modules/pthread (Makefile.am): Likewise.
19361         * modules/pty (Makefile.am): Likewise.
19362         * modules/sched (Makefile.am): Likewise.
19363         * modules/search (Makefile.am): Likewise.
19364         * modules/selinux-h (Makefile.am): Likewise.
19365         * modules/signal (Makefile.am): Likewise.
19366         * modules/spawn (Makefile.am): Likewise.
19367         * modules/stdarg (Makefile.am): Likewise.
19368         * modules/stdbool (Makefile.am): Likewise.
19369         * modules/stddef (Makefile.am): Likewise.
19370         * modules/stdint (Makefile.am): Likewise.
19371         * modules/stdio (Makefile.am): Likewise.
19372         * modules/stdlib (Makefile.am): Likewise.
19373         * modules/string (Makefile.am): Likewise.
19374         * modules/strings (Makefile.am): Likewise.
19375         * modules/sys_file (Makefile.am): Likewise.
19376         * modules/sys_ioctl (Makefile.am): Likewise.
19377         * modules/sys_select (Makefile.am): Likewise.
19378         * modules/sys_socket (Makefile.am): Likewise.
19379         * modules/sys_stat (Makefile.am): Likewise.
19380         * modules/sys_time (Makefile.am): Likewise.
19381         * modules/sys_times (Makefile.am): Likewise.
19382         * modules/sys_utsname (Makefile.am): Likewise.
19383         * modules/sys_wait (Makefile.am): Likewise.
19384         * modules/sysexits (Makefile.am): Likewise.
19385         * modules/termios (Makefile.am): Likewise.
19386         * modules/time (Makefile.am): Likewise.
19387         * modules/unistd (Makefile.am): Likewise.
19388         * modules/wchar (Makefile.am): Likewise.
19389         * modules/wctype-h (Makefile.am): Likewise.
19390         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19391
19392 2011-04-05  Bruno Haible  <bruno@clisp.org>
19393
19394         pipe2: Relicense under LGPLv2+.
19395         * modules/pipe2 (License): Change to LGPLv2+.
19396         Requested by Eric Blake, for libvirt.
19397
19398 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19399
19400         bootstrap: compute gnulib_extra_files after updating build_aux
19401         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19402         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19403
19404 2011-04-05  Eric Blake  <eblake@redhat.com>
19405
19406         bootstrap: preserve git whitelist item sorting
19407         * build-aux/bootstrap (sort_patterns): New function.
19408         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19409
19410 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19411
19412         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19413         sc_space_tab check.
19414
19415 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19416
19417         areadlink, areadlinkat: rewrite in terms of careadlinkat
19418         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19419         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19420         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19421         (malloc, realloc): Remove #undefs.
19422         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19423         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19424         readlink, ssize_t, stdint, unistd.
19425         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19426         areadlink, stdint.
19427
19428         careadlinkat: new module
19429         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19430         * modules/careadlinkat: New files, written by me with
19431         a review and feedback from Ben Pfaff in
19432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19433
19434 2011-04-01  Bruno Haible  <bruno@clisp.org>
19435
19436         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19437         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19438         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19439         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19440         Reported by Bruce Korb <bruce.korb@gmail.com>.
19441
19442 2011-04-01  Bruno Haible  <bruno@clisp.org>
19443
19444         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19445         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19446         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19447         * modules/wcpcpy (Depends-on): Add extensions.
19448         * modules/wcpncpy (Depends-on): Likewise.
19449         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19450         systems.
19451         * doc/posix-functions/wcpncpy.texi: Likewise.
19452         * doc/posix-functions/wcwidth.texi: Likewise.
19453
19454 2011-03-31  Eric Blake  <eblake@redhat.com>
19455
19456         nonblocking: fix mingw test failures
19457         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19458         non-blocking flag on regular file.
19459         (get_nonblocking_flag): Set errno on invalid fd.
19460         * tests/test-nonblocking.c (main): Avoid test failure on
19461         directories if fchdir is not active.
19462         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19463
19464 2011-03-31  Bruno Haible  <bruno@clisp.org>
19465
19466         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19467         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19468         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19469         Reported by Simon Josefsson <simon@josefsson.org>.
19470
19471 2011-03-31  Bruno Haible  <bruno@clisp.org>
19472         and Eric Blake  <eblake@redhat.com>
19473
19474         nonblocking: new module
19475         * modules/nonblocking: New module.
19476         * modules/nonblocking-tests: Likewise.
19477         * lib/nonblocking.h: New file.
19478         * lib/nonblocking.c: Likewise.
19479         * tests/test-nonblocking.c: New test.
19480         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19481
19482 2011-03-30  Bruno Haible  <bruno@clisp.org>
19483
19484         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19485         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19486         instead of 'printf' format for GCC >= 4.4.
19487         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19488         (fprintf, printf, vfprintf, vprintf): Declare with
19489         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19490         the system's vfprintf() function.
19491         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19492
19493 2011-03-30  Eric Blake  <eblake@redhat.com>
19494
19495         passfd: fix scoping bug
19496         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19497         before sendmsg/recvmsg.
19498
19499         passfd: standardize coding conventions
19500         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19501         can be learned at compile time.
19502         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19503         ifdefs.
19504         (sendfd, recvfd): Follow gnulib code conventions.
19505
19506         passfd: fix incorrect sendmsg arguments
19507         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19508         incorrect msg_controllen value.
19509         * modules/passfd-tests (Depends-on): Check for alarm.
19510         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19511         Reported by Bastien ROUCARIES.
19512
19513 2011-03-30  Bruno Haible  <bruno@clisp.org>
19514
19515         c-strcasestr: Relicense under LGPLv2+.
19516         * modules/c-strcasestr (License): Change to LGPLv2+.
19517         Requested by Eric Blake, for libvirt.
19518
19519 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19520
19521         * users.txt: Add libidn2.  Fix libtasn1 link.
19522
19523 2011-03-30  Jim Meyering  <meyering@redhat.com>
19524
19525         tests: readlink* ("",... fails with EINVAL on newer kernels
19526         readlink and readlinkat have typically failed with ENOENT for
19527         the invalid, empty file name,  "".  However, with the advent
19528         of linux-2.6.39, they fail with EINVAL.
19529         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19530         when operating on the empty file name.
19531         * tests/test-readlink.h (test_readlink): Likewise.
19532
19533 2011-03-29  Bruno Haible  <bruno@clisp.org>
19534
19535         Relicense some modules under LGPLv2+, for libidn2.
19536         * modules/array-mergesort (License): Change to LGPLv2+.
19537         * modules/c-strcaseeq (License): Likewise.
19538         * modules/striconveh (License): Likewise.
19539         * modules/striconveha (License): Likewise.
19540         * modules/uniconv/base (License): Likewise.
19541         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19542         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19543         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19544         * modules/unictype/base (License): Likewise.
19545         * modules/unictype/bidiclass-of (License): Likewise.
19546         * modules/unictype/category-M (License): Likewise.
19547         * modules/unictype/category-none (License): Likewise.
19548         * modules/unictype/category-of (License): Likewise.
19549         * modules/unictype/category-test (License): Likewise.
19550         * modules/unictype/category-test-withtable (License): Likewise.
19551         * modules/unictype/combining-class (License): Likewise.
19552         * modules/unictype/joiningtype-of (License): Likewise.
19553         * modules/unictype/scripts (License): Likewise.
19554         * modules/uninorm/base (License): Likewise.
19555         * modules/uninorm/canonical-decomposition (License): Likewise.
19556         * modules/uninorm/composition (License): Likewise.
19557         * modules/uninorm/decompose-internal (License): Likewise.
19558         * modules/uninorm/decomposition-table (License): Likewise.
19559         * modules/uninorm/nfc (License): Likewise.
19560         * modules/uninorm/nfd (License): Likewise.
19561         * modules/uninorm/u32-normalize (License): Likewise.
19562         * modules/unistr/base (License): Likewise.
19563         * modules/unistr/u32-cpy (License): Likewise.
19564         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19565         * modules/unistr/u32-to-u8 (License): Likewise.
19566         * modules/unistr/u32-uctomb (License): Likewise.
19567         * modules/unistr/u8-check (License): Likewise.
19568         * modules/unistr/u8-mblen (License): Likewise.
19569         * modules/unistr/u8-mbtouc (License): Likewise.
19570         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19571         * modules/unistr/u8-mbtoucr (License): Likewise.
19572         * modules/unistr/u8-prev (License): Likewise.
19573         * modules/unistr/u8-strlen (License): Likewise.
19574         * modules/unistr/u8-to-u32 (License): Likewise.
19575         * modules/unistr/u8-uctomb (License): Likewise.
19576         * modules/unitypes (License): Likewise.
19577         Requested by Simon Josefsson.
19578
19579 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19580
19581         lib-symbol-visibility: Add a notice.
19582         * modules/lib-symbol-visibility (Notice): New field.
19583
19584 2011-03-29  Bruno Haible  <bruno@clisp.org>
19585
19586         getaddrinfo: Doc fix.
19587         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19588         section "fixed in Gnulib".
19589
19590 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19591
19592         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19593         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19594
19595 2011-03-26  Bruno Haible  <bruno@clisp.org>
19596
19597         unictype/property-byname: Reduce the number of load-time relocations.
19598         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19599         (UC_PROPERTY_INDEX_*): New enumeration values.
19600         (uc_property_byname): Convert an index from the lookup table to an
19601         uc_property_t.
19602         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19603         values.
19604
19605 2011-03-26  Bruno Haible  <bruno@clisp.org>
19606
19607         unictype/property-byname: Allow omitted word separators and aliases.
19608         * lib/unictype/pr_byname.gperf: Add property names without word
19609         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19610         for 'space'.
19611
19612 2011-03-26  Bruno Haible  <bruno@clisp.org>
19613
19614         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19615         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19616         also hyphens to space.
19617         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19618         without spaces.
19619         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19620
19621 2011-03-26  Bruno Haible  <bruno@clisp.org>
19622
19623         unictype/joiningtype-byname: Recognize long names as well.
19624         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19625         a long name.
19626         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19627         unictype/joiningtype_byname.h.
19628         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19629         * lib/unictype/joiningtype_byname.gperf: New file.
19630         * modules/unictype/joiningtype-byname (Files): Add
19631         lib/unictype/joiningtype_byname.gperf.
19632         (Depends-on): Add gperf.
19633         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19634         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19635         long names.
19636
19637         Tests for module 'unictype/joiningtype-longname'.
19638         * modules/unictype/joiningtype-longname-tests: New file.
19639         * tests/unictype/test-joiningtype_longname.c: New file.
19640
19641         New module 'unictype/joiningtype-longname'.
19642         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19643         * lib/unictype/joiningtype_longname.c: New file.
19644         * modules/unictype/joiningtype-longname: New file.
19645         * modules/unictype/joiningtype-all (Depends-on): Add
19646         unictype/joiningtype-longname.
19647
19648 2011-03-26  Bruno Haible  <bruno@clisp.org>
19649
19650         unictype/bidiclass-byname: Recognize long names as well.
19651         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19652         name.
19653         * lib/unictype/bidi_byname.c: Include <string.h>,
19654         unictype/bidi_byname.h.
19655         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19656         * lib/unictype/bidi_byname.gperf: New file.
19657         * modules/unictype/bidiclass-byname (Files): Add
19658         lib/unictype/bidi_byname.gperf.
19659         (Depends-on): Add gperf.
19660         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19661         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19662         long names.
19663
19664         Tests for module 'unictype/bidiclass-longname'.
19665         * modules/unictype/bidiclass-longname-tests: New file.
19666         * tests/unictype/test-bidi_longname.c: New file.
19667
19668         New module 'unictype/bidiclass-longname'.
19669         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19670         * lib/unictype/bidi_longname.c: New file.
19671         * modules/unictype/bidiclass-longname: New file.
19672         * modules/unictype/bidiclass-all (Depends-on): Add
19673         unictype/bidiclass-longname.
19674
19675 2011-03-26  Bruno Haible  <bruno@clisp.org>
19676
19677         unictype/bidi*: Rename modules.
19678         * modules/unictype/bidiclass-all: Renamed from
19679         modules/unictype/bidicategory-all.
19680         * modules/unictype/bidiclass-name: Renamed from
19681         modules/unictype/bidiclass-name.
19682         (Description): Update.
19683         * modules/unictype/bidiclass-name-tests: Renamed from
19684         modules/unictype/bidicategory-name-tests.
19685         * modules/unictype/bidiclass-byname: Renamed from
19686         modules/unictype/bidicategory-byname.
19687         (Description): Update.
19688         * modules/unictype/bidiclass-byname-tests: Renamed from
19689         modules/unictype/bidicategory-byname-tests.
19690         * modules/unictype/bidiclass-of: Renamed from
19691         modules/unictype/bidicategory-of.
19692         (Description): Update.
19693         * modules/unictype/bidiclass-of-tests: Renamed from
19694         modules/unictype/bidicategory-of-tests.
19695         * modules/unictype/bidiclass-test: Renamed from
19696         modules/unictype/bidicategory-test.
19697         (Description): Update.
19698         * modules/unictype/bidiclass-test-tests: Renamed from
19699         modules/unictype/bidicategory-test-tests.
19700         * modules/unictype/bidicategory-all: New file, a simple redirection.
19701         * modules/unictype/bidicategory-name: Likewise.
19702         * modules/unictype/bidicategory-byname: Likewise.
19703         * modules/unictype/bidicategory-of: Likewise.
19704         * modules/unictype/bidicategory-test: Likewise.
19705         * modules/unictype/property-bidi-* (Dependencies): Update.
19706         * lib/unictype/bidi_*.c: Update comment.
19707
19708 2011-03-26  Bruno Haible  <bruno@clisp.org>
19709
19710         unictype/bidi*: Rename functions, part 2.
19711         * modules/unictype/bidicategory-name (configure.ac): Update required
19712         libunistring version.
19713         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19714
19715 2011-03-25  Bruno Haible  <bruno@clisp.org>
19716
19717         New module 'unictype/combining-class-all'.
19718         * modules/unictype/combining-class-all: New file.
19719
19720         Tests for module 'unictype/combining-class-byname'.
19721         * modules/unictype/combining-class-byname-tests: New file.
19722         * tests/unictype/test-combiningclass_byname.c: New file.
19723
19724         New module 'unictype/combining-class-byname'.
19725         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19726         * lib/unictype/combiningclass_byname.c: New file.
19727         * lib/unictype/combiningclass_byname.gperf: New file.
19728         * modules/unictype/combining-class-byname: New file.
19729
19730         Tests for module 'unictype/combining-class-longname'.
19731         * modules/unictype/combining-class-longname-tests: New file.
19732         * tests/unictype/test-combiningclass_longname.c: New file.
19733
19734         New module 'unictype/combining-class-longname'.
19735         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19736         * lib/unictype/combiningclass_longname.c: New file.
19737         * modules/unictype/combining-class-longname: New file.
19738
19739         Tests for module 'unictype/combining-class-name'.
19740         * modules/unictype/combining-class-name-tests: New file.
19741         * tests/unictype/test-combiningclass_name.c: New file.
19742
19743         New module 'unictype/combining-class-name'.
19744         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19745         * lib/unictype/combiningclass_name.c: New file.
19746         * modules/unictype/combining-class-name: New file.
19747
19748 2011-03-25  Bruno Haible  <bruno@clisp.org>
19749
19750         unictype/combining-class: Rename source files.
19751         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19752         of unictype/combining.h.
19753         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19754         Update.
19755         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19756         * modules/unictype/combining-class (Description): Fix.
19757         (Files, Makefile.am): Update.
19758         * tests/unictype/test-combiningclass.c: Renamed from
19759         tests/unictype/test-combining.c.
19760         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19761
19762 2011-03-25  Bruno Haible  <bruno@clisp.org>
19763
19764         unictype: Update list of canonical combining classes.
19765         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19766
19767 2011-03-25  Bruno Haible  <bruno@clisp.org>
19768
19769         unictype/category-byname: Recognize long names as well.
19770         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19771         a long name.
19772         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19773         unictype/categ_byname.h.
19774         (UC_CATEGORY_INDEX_*): New enumeration values.
19775         (uc_general_category_byname): Use uc_general_category_lookup and
19776         convert from index to value.
19777         * lib/unictype/categ_byname.gperf: New file.
19778         * modules/unictype/category-byname (Files): Add
19779         lib/unictype/categ_byname.gperf.
19780         (Depends-on): Add gperf.
19781         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19782         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19783         long names.
19784
19785         Tests for module 'unictype/category-longname'.
19786         * modules/unictype/category-longname-tests: New file.
19787         * tests/unictype/test-categ_longname.c: New file.
19788
19789         New module 'unictype/category-longname'.
19790         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19791         * lib/unictype/categ_longname.c: New file.
19792         * modules/unictype/category-longname: New file.
19793         * modules/unictype/category-all (Depends-on): Add it.
19794
19795 2011-03-25  Bruno Haible  <bruno@clisp.org>
19796
19797         Tests for module 'unictype/category-LC'.
19798         * modules/unictype/category-LC-tests: New file.
19799         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19800
19801         New module 'unictype/category-LC'.
19802         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19803         (UC_CATEGORY_LC): New declaration.
19804         (UC_CASED_LETTER): New macro.
19805         * lib/gen-uni-tables.c (is_category_LC): New function.
19806         (output_categories): Also handle category LC.
19807         (UC_CATEGORY_MASK_LC): New enumeration value.
19808         (general_category_byname): Also handle category LC.
19809         * lib/unictype/categ_LC.c: New file.
19810         * lib/unictype/categ_LC.h: New file, automatically generated.
19811         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19812         category LC.
19813         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19814         * modules/unictype/category-LC: New file.
19815         * modules/unictype/category-byname (Depends-on): Add
19816         unictype/category-LC.
19817         * modules/unictype/category-all (Depends-on): Likewise.
19818
19819 2011-03-25  Eric Blake  <eblake@redhat.com>
19820
19821         xmalloc: revert yesterday's regression
19822         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19823         realloc's underlying behavior (allowing allocation of zero-size
19824         objects, especially if malloc-gnu is also in use).
19825
19826 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19827
19828         maint.mk: add missing version to VC-tag
19829         * top/maint.mk: git tag was missing actual tag name; add it.
19830
19831         valgrind: do leak checking, and exit with code 1 on error (not 0)
19832         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19833         to VALGRIND.
19834
19835 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19836
19837         posix-modules: say what it does.
19838         * posix-modules: Add a line to the --help output saying what it does.
19839
19840 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         xmalloc: Do not leak if underlying realloc is C99 compatible.
19843         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19844         This avoids a leak on C99-based systems.  See
19845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19846
19847 2011-03-24  Eric Blake  <eblake@redhat.com>
19848
19849         realloc: document portability problem
19850         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19851         passing 0 size to realloc.
19852
19853 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19854
19855         doc: update users.txt
19856         * users.txt: Add cvsps, tmpwatch
19857
19858 2011-03-23  Matt Rice  <ratmice@gmail.com>
19859
19860         doc: update users.txt
19861         * users.txt: Add gdb.
19862
19863 2011-03-23  Jim Meyering  <meyering@redhat.com>
19864
19865         doc: update users.txt
19866         Looking through matches up to the following URL (there are still
19867         several more pages), I found several projects that use gnulib:
19868         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19869         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19870         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19871
19872 2011-03-22  Bruno Haible  <bruno@clisp.org>
19873
19874         unictype/bidi*: Rename functions.
19875         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19876         uc_bidi_class, uc_is_bidi_class): New declarations.
19877         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19878         uc_bidi_category_byname.
19879         (uc_bidi_category_byname): New function.
19880         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19881         u_bidi_category_name.
19882         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19883         (uc_bidi_category_name): New function.
19884         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19885         uc_bidi_category.
19886         (uc_bidi_category): New function.
19887         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19888         uc_is_bidi_category. Invoke uc_bidi_class.
19889         (uc_is_bidi_category): New function.
19890         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19891         instead of uc_bidi_category_byname.
19892         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19893         instead of uc_bidi_category_name.
19894         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19895         uc_bidi_category.
19896         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19897         instead of uc_is_bidi_category.
19898
19899 2011-03-21  Bruno Haible  <bruno@clisp.org>
19900
19901         New module 'unictype/joininggroup-all'.
19902         * modules/unictype/joininggroup-all: New file.
19903
19904         Tests for module 'unictype/joininggroup-of'.
19905         * modules/unictype/joininggroup-of-tests: New file.
19906         * tests/unictype/test-joininggroup_of.c: New file.
19907         * tests/unictype/test-joininggroup_of.h: New file, automatically
19908         generated by gen-uni-tables.
19909
19910         New module 'unictype/joininggroup-of'.
19911         * modules/unictype/joininggroup-of: New file.
19912         * lib/unictype/joininggroup_of.c: New file.
19913         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19914         gen-uni-tables.
19915
19916         Tests for module 'unictype/joininggroup-byname'.
19917         * modules/unictype/joininggroup-byname-tests: New file.
19918         * tests/unictype/test-joininggroup_byname.c: New file.
19919
19920         New module 'unictype/joininggroup-byname'.
19921         * modules/unictype/joininggroup-byname: New file.
19922         * lib/unictype/joininggroup_byname.c: New file.
19923         * lib/unictype/joininggroup_byname.gperf: New file.
19924
19925         Tests for module 'unictype/joininggroup-name'.
19926         * modules/unictype/joininggroup-name-tests: New file.
19927         * tests/unictype/test-joininggroup_name.c: New file.
19928
19929         New module 'unictype/joininggroup-name'.
19930         * modules/unictype/joininggroup-name: New file.
19931         * lib/unictype/joininggroup_name.c: New file.
19932         * lib/unictype/joininggroup_name.h: New file.
19933
19934         New module 'unictype/joiningtype-all'.
19935         * modules/unictype/joiningtype-all: New file.
19936
19937         Tests for module 'unictype/joiningtype-of'.
19938         * modules/unictype/joiningtype-of-tests: New file.
19939         * tests/unictype/test-joiningtype_of.c: New file.
19940         * tests/unictype/test-joiningtype_of.h: New file, automatically
19941         generated by gen-uni-tables.
19942
19943         New module 'unictype/joiningtype-of'.
19944         * modules/unictype/joiningtype-of: New file.
19945         * lib/unictype/joiningtype_of.c: New file.
19946         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19947         gen-uni-tables.
19948
19949         Tests for module 'unictype/joiningtype-byname'.
19950         * modules/unictype/joiningtype-byname-tests: New file.
19951         * tests/unictype/test-joiningtype_byname.c: New file.
19952
19953         New module 'unictype/joiningtype-byname'.
19954         * modules/unictype/joiningtype-byname: New file.
19955         * lib/unictype/joiningtype_byname.c: New file.
19956
19957         Tests for module 'unictype/joiningtype-name'.
19958         * modules/unictype/joiningtype-name-tests: New file.
19959         * tests/unictype/test-joiningtype_name.c: New file.
19960
19961         New module 'unictype/joiningtype-name'.
19962         * modules/unictype/joiningtype-name: New file.
19963         * lib/unictype/joiningtype_name.c: New file.
19964
19965         unictype: Add support for Arabic shaping properties.
19966         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19967         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19968         declarations.
19969         (UC_JOINING_GROUP_*): New enumeration values.
19970         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19971         declarations.
19972         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19973         (unicode_joining_type): New variable.
19974         (UC_JOINING_GROUP_*): New enumeration values.
19975         (unicode_joining_group): New variable.
19976         (fill_arabicshaping, joining_type_as_c_identifier,
19977         output_joining_type_test, output_joining_type,
19978         joining_group_as_c_identifier, output_joining_group_test,
19979         output_joining_group): New functions.
19980         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19981         fill_arabicshaping and output_joining_type_test, output_joining_type,
19982         output_joining_group_test, output_joining_group.
19983         Reported by Simon Josefsson.
19984
19985 2011-03-21  Jim Meyering  <meyering@redhat.com>
19986
19987         strftime: fix a bug in yesterday's change
19988         * lib/strftime.c (add): Accommodate width's initial value of -1.
19989         Otherwise, nstrftime would copy uninitialized data into
19990         the result buffer.
19991
19992 2011-03-21  Jim Meyering  <meyering@redhat.com>
19993
19994         tests: add strftime-tests module
19995         * tests/test-strftime.c: New file.
19996         * modules/strftime-tests: New module.
19997
19998 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19999
20000         strftime: don't assume a byte count fits in 'int'
20001         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20002         found this problem by static analysis, using gcc -Wstrict-overflow
20003         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20004         on an integer overflow having undefined behavior, but it turns out
20005         that the argument is a size, which might not fit in 'int' anyway,
20006
20007 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20008
20009         stdio: don't require ignore_value around fwrite
20010
20011         This patch works around libc bug 11959
20012         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20013         Without this patch, applications must often write
20014         ignore_value (fwrite (...)) even though the ignore_value is
20015         not helpful here.  It's common to write many objects, using
20016         fwrite/printf/etc., and then use ferror to detect output error.
20017
20018         I considered making this patch optional, but decided against it,
20019         because libc is obviously being inconsistent here: there is no
20020         reason libc should insist that user code must inspect fwrite
20021         return's value without also insisting that it inspect printf's,
20022         putchar's, etc.  If user code wants to have a strict style where
20023         all these functions' values are checked (so that ferror need not
20024         be checked), we could add support for that style in a new gnulib
20025         module, but in the meantime it's better to be consistent and to
20026         support common usage.
20027
20028         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20029         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20030         that we are compiling in checking mode, and if not C++, and
20031         if not already wrapping fwrite for some other reason.
20032         (fwrite): #define to rpl_fwrite if the latter is defined.
20033
20034 2011-03-20  Bruno Haible  <bruno@clisp.org>
20035
20036         verror: Fix compilation error introduced on 2011-02-13.
20037         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20038         instead of __attribute__.
20039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20040
20041 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20042             Bruno Haible  <bruno@clisp.org>
20043
20044         socklen: do not depend on sys_socket
20045         While trying to modify Emacs to use gnulib's socklen module,
20046         I discovered a circular dependency: socklen depends on sys_socket
20047         and vice versa.  Emacs can use socklen, but it does not need
20048         sys_socket because it has its own substitute for sys/socket.h.
20049         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20050         gl_TYPE_SOCKLEN_T.
20051         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20052         gl_PREREQ_SYS_H_SOCKET.
20053         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20054         gl_PREREQ_SYS_H_SOCKET.
20055         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20056         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20057         * modules/socklen (Depends-on): Do not depend on sys_socket.
20058         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20059
20060 2011-03-20  Jim Meyering  <meyering@redhat.com>
20061
20062         maint.mk: sort file names *after* new transformation
20063         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20064         prefix would have led to an unwarranted failure in GNU parted.
20065         Sort after that transformation.
20066
20067 2011-03-19  Jim Meyering  <meyering@redhat.com>
20068
20069         maint.mk: fix po-file syntax-check rule
20070         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20071         Patch by Bruno Haible.
20072
20073 2011-03-19  Bruno Haible  <bruno@clisp.org>
20074
20075         socklen: Update comment.
20076         * m4/socklen.m4: Update comment about platforms.
20077
20078 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20079             Bruno Haible  <bruno@clisp.org>
20080
20081         inet_ntop, inet_pton: Simplify.
20082         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20083         documented to provide socklen_t and we already depend on sys_socket.
20084         * modules/inet_pton (Depends-on): Likewise.
20085         * lib/arpa_inet.in.h: Adjust comment.
20086
20087 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20088             Bruno Haible  <bruno@clisp.org>
20089
20090         netdb: Simplify.
20091         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20092         documented to provide socklen_t and we already depend on sys_socket.
20093         * lib/netdb.in.h: Adjust comment.
20094
20095 2011-03-19  Bruno Haible  <bruno@clisp.org>
20096
20097         sys_socket, netdb: Document problem with socklen_t.
20098         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20099         platforms.
20100         * doc/posix-headers/netdb.texi: Likewise.
20101
20102 2011-03-18  Eric Blake  <eblake@redhat.com>
20103
20104         maint.mk: let po check work in VPATH build
20105         * top/maint.mk (po_file): Allow cfg.mk override.
20106         (sc_po_check): Allow VPATH use.
20107         Reported by Jiri Denemark.
20108
20109 2011-03-16  Jim Meyering  <meyering@redhat.com>
20110
20111         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20112         Before, you would have had to create one .x-sc_ file per rule in order
20113         to exempt offending files.  Now, you may instead use a Make variable --
20114         usually defined in cfg.mk -- whose name identifies the affected rule.
20115         * top/maint.mk (_sc_excl): Define.
20116         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20117         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20118
20119 2011-03-13  Bruno Haible  <bruno@clisp.org>
20120
20121         ignore-value tests: Avoid warnings.
20122         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20123         empty for gcc < 3.4.
20124
20125 2011-03-13  Bruno Haible  <bruno@clisp.org>
20126
20127         passfd: Fix link error on Solaris.
20128         * modules/passfd (Description): Correct.
20129         (Depends-on): Add socketlib.
20130         (Link): New section.
20131         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20132
20133 2011-03-13  Bruno Haible  <bruno@clisp.org>
20134
20135         passfd: Fix link error on AIX 5.2.
20136         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20137
20138 2011-03-13  Bruno Haible  <bruno@clisp.org>
20139
20140         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20141         * lib/sys_socket.in.h: Include <stddef.h>.
20142         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20143         CMSG_FIRSTHDR. Remove unused variable.
20144
20145 2011-03-13  Bruno Haible  <bruno@clisp.org>
20146
20147         passfd: Fix compilation error on OpenBSD.
20148         * lib/passfd.c: Include <sys/uio.h>.
20149
20150 2011-03-13  Bruno Haible  <bruno@clisp.org>
20151
20152         passfd test: Fix warnings.
20153         * tests/test-passfd.c: Include <sys/wait.h>.
20154         (main): Fix typo.
20155
20156 2011-03-13  Bruno Haible  <bruno@clisp.org>
20157
20158         passfd module, part 4, tweaks.
20159         * tests/test-passfd.c: Reorder includes.
20160         (main): Fix perror and printf calls.
20161
20162 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20163
20164         passfd module, part 4.
20165         * modules/passfd-tests: New file.
20166         * tests/test-passfd.c: New file.
20167
20168 2011-03-13  Jim Meyering  <meyering@redhat.com>
20169
20170         Makefile: rely on GNU make; derive syntax-check rule names
20171         Rather than requiring that each sc_ rule be listed as a dependent
20172         of "check", use features of GNU make to derive the list.
20173         * Makefile (syntax-check-rules): Define.
20174         (check): Depend on the new variable, not the hard-coded list.
20175
20176 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20177             Bruno Haible  <bruno@clisp.org>
20178
20179         passfd module, part 3.
20180         * lib/passfd.h (recvfd): Add a flags argument.
20181         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20182         (recvfd): Add a flags argument.
20183         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20184         exists.
20185         * modules/passfd (Depends-on): Add cloexec.
20186         Suggested by Eric Blake.
20187
20188 2011-03-13  Bruno Haible  <bruno@clisp.org>
20189
20190         passfd module, part 2, tweaks.
20191         * modules/passfd (Files): Reorder.
20192         (Depends-on): Remove errno.
20193         (Include): Remove <sys/socket.h>, <sys/un.h>.
20194         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20195         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20196         specification header. Include <sys/socket.h> always. Don't include
20197         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20198         (sendfd): Clarify that it sets errno when it fails.
20199         (recvfd): Fix specification.
20200
20201 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20202
20203         passfd module, part 2.
20204         * modules/passfd: New file.
20205         * lib/passfd.h: New file.
20206         * lib/passfd.c: New file.
20207
20208 2011-03-12  Bruno Haible  <bruno@clisp.org>
20209
20210         wcswidth, mbswidth: Avoid integer overflow.
20211         * lib/wcswidth.c: Include <limits.h>.
20212         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20213         * lib/mbswidth.c: Include <limits.h>.
20214         (mbsnwidth): Avoid 'int' overflow.
20215         Reported by Jim Meyering.
20216
20217 2011-03-12  Bruno Haible  <bruno@clisp.org>
20218
20219         futimens, utimensat: Avoid endless recursion on Solaris 10.
20220         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20221         Solaris.
20222         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20223         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20224
20225 2011-03-11  Jim Meyering  <meyering@redhat.com>
20226
20227         maint.mk: relax a regexp to accommodate other formatting styles
20228         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20229         between "ngettext" and the following "(".
20230
20231 2011-03-11  Pádraig Brady <P@draigBrady.com>
20232
20233         maint.mk: suppress a false positive warning
20234         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20235         diagnostics are marked with ngettext.
20236
20237 2011-03-10  Eric Blake  <eblake@redhat.com>
20238
20239         wchar: add explicit dependencies, for Tru64
20240         * modules/mbmemcasecoll (Depends-on): Add wchar.
20241         * modules/mbtowc (Depends-on): Likewise.
20242         * modules/vasnprintf (Depends-on): Likewise.
20243         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20244         * modules/wctomb (Depends-on): Likewise.
20245         Reported by Peter O'Gorman.
20246
20247 2011-03-08  Bruno Haible  <bruno@clisp.org>
20248
20249         passfd module, part 1, tweaks.
20250         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20251         Improve indentation. Improve AC_MSG_CHECKING messages.
20252         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20253         gl_SOCKET_FAMILIES.
20254
20255 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20256
20257         passfd module, part 1.
20258         * m4/afunix.m4: New file.
20259         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20260         sockets.
20261
20262 2011-03-08  Bruno Haible  <bruno@clisp.org>
20263
20264         regex-quote: New API.
20265         * lib/regex-quote.h: Include <stdbool.h>.
20266         (struct regex_quote_spec): New type.
20267         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20268         New declarations.
20269         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20270         'const struct regex_quote_spec *' argument.
20271         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20272         (pcre_special): New constant.
20273         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20274         New functions.
20275         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20276         'const struct regex_quote_spec *' argument.
20277         * modules/regex-quote (Depends-on): Add stdbool.
20278         * tests/test-regex-quote.c (check): Update for new API. Add test for
20279         anchored results.
20280         * NEWS: Mention the API change.
20281         Reported by Reuben Thomas and Eric Blake.
20282
20283 2011-03-06  Bruno Haible  <bruno@clisp.org>
20284
20285         regex-quote: Fix creation of POSIX extended regular expressions.
20286         * lib/regex-quote.c (ere_special): Add grouping and alternation
20287         operators.
20288
20289 2011-03-05  Bruno Haible  <bruno@clisp.org>
20290
20291         doc: Improve doc regarding autopoint vs. gnulib.
20292         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20293         disable autopoint while running autoreconf.
20294         Suggested by Ralf Wildenhues.
20295
20296 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20297
20298         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20299         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20300
20301 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20302
20303         parse-duration: remove xalloc.h dependency
20304         * lib/parse-duration.c (parse_period): handle NULL return from
20305         strdup instead of calling xstrdup().
20306         * modules/parse-duration: remove "xalloc" dependency
20307
20308 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20309
20310         bootstrap: honor m4_base when running aclocal
20311         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20312
20313 2011-03-02  Jim Meyering  <meyering@redhat.com>
20314
20315         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20316         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20317         on request from Matt Booth.
20318
20319 2011-03-01  Eric Blake  <eblake@redhat.com>
20320
20321         test-link: work on Hurd
20322         * tests/test-link.h (test_link): Hurd rejects linking directories
20323         with EISDIR instead of the POSIX-mandated EPERM.
20324
20325 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20326
20327         stdio: simplify by moving files to printf-posix, sigpipe
20328         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20329         since this symbol is needed only if printf is replaced.
20330         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20331         Require gl_ASM_SYMBOL_PREFIX.
20332         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20333         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20334         (Depends-on): Add 'raise'.
20335         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20336         * modules/stdio (Files): Remove lib/stdio-write.c,
20337         m4/asm-underscore.m4.
20338         (Depends-on): Remove 'raise'.
20339
20340         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20341         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20342         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20343         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20344
20345 2011-02-28  Bruno Haible  <bruno@clisp.org>
20346
20347         localcharset: Assume ANSI C behaviour of free().
20348         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20349         calling free().
20350         Suggested by Simon Josefsson <simon@josefsson.org>.
20351
20352 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20353             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20354             Bruno Haible  <bruno@clisp.org>  (tiny change)
20355
20356         On Cygwin, use /proc file system instead of win32 API.
20357         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20358         Win32 file names.
20359         (DllMain): Simplify by removing Cygwin specific code.
20360         (find_shared_library_fullname): Use Linux specific implementation also
20361         for Cygwin.
20362         (get_shared_library_fullname): Update accordingly.
20363         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20364         Win32 file names.
20365         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20366         Cygwin specific code.
20367
20368 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20369             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20370
20371         Fix OpenMP flag detection for various Fortran compilers.
20372         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20373         OpenMP-conditional compilation construct, to force compile
20374         failure with missing OpenMP flag.
20375         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20376
20377 2011-02-25  Eric Blake  <eblake@redhat.com>
20378
20379         strstr: expand test coverage
20380         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20381         compilation.
20382         * tests/test-memmem.c (main): Duplicate tests.
20383         * tests/test-strcasestr.c (main): Likewise.
20384         * tests/test-c-strcasestr.c (main): Likewise.
20385
20386 2011-02-25  Jim Meyering  <meyering@redhat.com>
20387
20388         maint.mk: detect missing-NL-at-EOF, too
20389         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20390         it also detects when a file lacks a newline at EOF.
20391         (require_exactly_one_NL_at_EOF_): Renamed from
20392         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20393         since people may well have .x-sc_... file names tied to the
20394         existing name.  Suggested by Eric Blake.
20395
20396 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20397
20398         dirname: move m4/dos.m4 functionality into lib/dosname.h
20399
20400         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20401         extracts symbols from it, puts them into config.h; but it's much
20402         easier to use the symbols directly.  filename.h already does this,
20403         but it disagrees with dos.m4 in some respects.  This patch
20404         introduces a different include file dosname.h that packages up
20405         dos.m4, and then later we can work on merging filename.h and
20406         dosname.h.  Applications that need only the easy-to-configure
20407         symbols should consider including dosname.h rather than dirname.h.
20408         * NEWS: Mention incompatible changes.
20409         * m4/dos.m4: Remove.
20410         * lib/dosname.h, modules/dosname: New files.
20411         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20412         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20413         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20414         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20415         Include dosname.h, not dirname.h.
20416         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20417         Include dosname.h, for definitions of symbols like ISSLASH
20418         that used to be in config.h.
20419         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20420         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20421         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20422         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20423         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20424         * modules/rmdir (Files): Likewise.
20425         * modules/stat (Files): Likewise.
20426         * modules/unlink (Files): Likewise.
20427         * modules/dirname-lgpl (Depends-on): Add dosname.
20428         * modules/lstat (Depends-on): Likewise.
20429         * modules/openat (Depends-on): Likewise.
20430         * modules/rmdir (Depends-on): Likewise.
20431         * modules/savewd (Depends-on): Likewise.
20432         * modules/stat (Depends-on): Likewise.
20433         * modules/unlink (Depends-on): Likewise.
20434         * modules/openat (Depends-on): Remove dirname-lgpl.
20435         * modules/savewd (Depends-on): Likewise.
20436         * tests/test-dirname.c: Do not use removed symbols like
20437         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20438         the remaining symbols, e.g., ISSLASH ('\\').
20439
20440 2011-02-25  Eric Blake  <eblake@redhat.com>
20441
20442         strstr: revert patches that introduced bug and pessimization
20443         * lib/str-two-way.h: Add another reference.
20444         (two_way_short_needle, two_way_long_needle): Revert changes from
20445         2011-02-24; they pessimize search speed.
20446         (critical_factorization): Partially revert changes from
20447         2010-06-22; they violate the requirement that the left half of the
20448         needle be smaller than the period of the needle.
20449
20450 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20451
20452         filenamecat: remove unnecessary dependency on dirname-lgpl
20453         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20454         is no direct dependency, just an indirect one via filenamecat-lgpl.
20455
20456         remove: remove unnecessary use of m4/dos.m4
20457         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20458         * modules/remove (FILES): Remove m4/dos.m4.
20459
20460         * lib/openat-proc.c: Don't include dirname.h; not needed.
20461
20462         backupfile: remove unnecessary use of m4/dos.m4
20463         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20464         of its symbols are used by the backupfile code.  backupfile.c does
20465         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20466         for the rare case of programs that want all their backup file
20467         names to live within 8+3 limits, and dos.m4 doesn't address that.
20468         * modules/backupfile (Files): Remove m4/dos.m4.
20469
20470 2011-02-24  Jim Meyering  <meyering@redhat.com>
20471
20472         strstr: fix a bug whereby strstr would mistakenly return NULL
20473         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20474         in period calculation.
20475         (two_way_long_needle): Likewise.
20476         The original problem was reported by Mike Stump in
20477         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20478         Ralf Wildenhues provided the short needle and haystack.
20479         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20480         Add a more involved test to trigger the bug in two_way_long_needle.
20481
20482 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20483
20484         gnulib-tool: remove use of bold display in help screen
20485         * gnulib-tool (func_usage): Do not use bold display anymore in the
20486         help screen.  That was just meant to be a temporary emphasis for a
20487         backward-incompatible change.
20488
20489 2011-02-23  Bruno Haible  <bruno@clisp.org>
20490
20491         Fix misindentation of preprocessor directives.
20492         * lib/argp-namefrob.h: Reindent preprocessor directives.
20493         * lib/getopt_int.h (struct _getopt_data): Likewise.
20494         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20495         * lib/vasnprintf.c (decode_long_double): Likewise.
20496         * tests/test-argmatch.c: Insert blank lines, for clarity.
20497         * tests/test-exclude.c: Likewise.
20498
20499 2011-02-22  Bruno Haible  <bruno@clisp.org>
20500
20501         ioctl: Fix for MacOS X in 64-bit mode.
20502         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20503         value.
20504         Suggested by Eric Blake.
20505         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20506
20507 2011-02-22  Jim Meyering  <meyering@redhat.com>
20508
20509         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20510         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20511         in lib/.
20512
20513 2011-02-22  Eric Blake  <eblake@redhat.com>
20514
20515         maint: avoid any CDPATH issue
20516         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20517
20518         maint: adjust cpp indentation for my modules, as well
20519         * Makefile (sc_cpp_indent_check): Add my name.
20520         * lib/fbufmode.c: Filter through cppi.
20521         * lib/fpurge.c: Likewise.
20522         * lib/freadable.c: Likewise.
20523         * lib/freading.c: Likewise.
20524         * lib/fwritable.c: Likewise.
20525         * lib/fwriting.c: Likewise.
20526         * lib/sigaction.c: Likewise.
20527
20528 2011-02-22  Jim Meyering  <meyering@redhat.com>
20529
20530         maint: adjust cpp indentation to reflect nesting depth
20531         I.e., in a block of code that begins with an unnested "#if",
20532         put one space between the "#" in column 1 and following token.
20533         For example,
20534         -#include <sys/vfs.h>
20535         +# include <sys/vfs.h>
20536         Do this only in .c files that are part of a module I maintain.
20537         * lib/linkat.c: Filter through cppi.
20538         * lib/nanosleep.c: Likewise.
20539         * lib/openat.c: Likewise.
20540         * lib/openat-die.c: Likewise.
20541         * lib/dup3.c: Likewise.
20542         * lib/fchownat.c: Likewise.
20543         * lib/flock.c: Likewise.
20544         * lib/fsync.c: Likewise.
20545         * lib/fts.c: Likewise.
20546         * lib/getpass.c: Likewise.
20547         * lib/gettimeofday.c: Likewise.
20548         * lib/userspec.c: Likewise.
20549         * Makefile (sc_cpp_indent_check): New rule, to check this.
20550
20551 2011-02-22  Bruno Haible  <bruno@clisp.org>
20552
20553         New module 'wctomb'.
20554         * lib/stdlib.in.h (wctomb): New declaration.
20555         * lib/wctomb.c: New file.
20556         * lib/wctomb-impl.h: New file.
20557         * m4/wctomb.m4: New file.
20558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20559         REPLACE_WCTOMB.
20560         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20561         REPLACE_WCTOMB.
20562         * modules/wctomb: New file.
20563         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20564         * doc/posix-functions/wctomb.texi: Mention the new module.
20565         * modules/wctob (Depends-on): Add wctomb.
20566
20567 2011-02-22  Bruno Haible  <bruno@clisp.org>
20568
20569         New module 'mbtowc'.
20570         * lib/stdlib.in.h (mbtowc): New declaration.
20571         * lib/mbtowc.c: New file.
20572         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20573         * m4/mbtowc.m4: New file.
20574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20575         REPLACE_MBTOWC.
20576         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20577         REPLACE_MBTOWC.
20578         * modules/mbtowc: New file.
20579         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20580         * doc/posix-functions/mbtowc.texi: Mention the new module.
20581         * modules/btowc (Depends-on): Add mbtowc.
20582
20583 2011-02-22  Bruno Haible  <bruno@clisp.org>
20584
20585         wcrtomb: Add more tests for native Windows platforms.
20586         * tests/test-wcrtomb-w32-1.sh: New file.
20587         * tests/test-wcrtomb-w32-2.sh: New file.
20588         * tests/test-wcrtomb-w32-3.sh: New file.
20589         * tests/test-wcrtomb-w32-4.sh: New file.
20590         * tests/test-wcrtomb-w32-5.sh: New file.
20591         * tests/test-wcrtomb-w32.c: New file.
20592         * modules/wcrtomb-tests (Files): Add them.
20593         (Makefile.am): Arrange to run these tests.
20594         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20595         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20596
20597 2011-02-20  Bruno Haible  <bruno@clisp.org>
20598
20599         wcrtomb: Enhance test.
20600         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20601
20602 2011-02-20  Bruno Haible  <bruno@clisp.org>
20603
20604         mbrtowc: Tiny optimization.
20605         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20606
20607 2011-02-20  Jim Meyering  <meyering@redhat.com>
20608
20609         test-exclude.c: remove unmatched #endif
20610         * tests/test-exclude.c: Remove stray #endif, left over from
20611         the change of a week ago.
20612
20613 2011-02-19  Jim Meyering  <meyering@redhat.com>
20614
20615         git-version-gen: skip "-dirty" check when appropriate
20616         * build-aux/git-version-gen: Don't run any git commands when the
20617         version string comes from .tarball-version.  Prior to this, we
20618         would run git update-index --refresh even from a just-unpacked
20619         tarball directory, and that could affect a .git/ directory in a
20620         parent of the build directory.  Reported by Mike Frysinger.
20621
20622 2011-02-19  Bruno Haible  <bruno@clisp.org>
20623
20624         unictype/property-byname: Reduce the size of the 'data' segment.
20625         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20626
20627 2011-02-19  Bruno Haible  <bruno@clisp.org>
20628
20629         unictype/scripts: Reduce the size of the 'data' segment.
20630         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20631         '%pic'.
20632         * lib/unictype/scripts_byname.gperf: Regenerated.
20633
20634 2011-02-19  Bruno Haible  <bruno@clisp.org>
20635
20636         stdint: Update documentation.
20637         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20638
20639 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         stdint: omit redundant check for wchar.h
20642         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20643         always tests whether wchar.h exists, so remove the now-redundant test.
20644
20645 2011-02-18  Bruno Haible  <bruno@clisp.org>
20646
20647         stdint: Cut dependency to module 'wchar'.
20648         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20649         include the necessary prerequisites.
20650         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20651         * modules/stdint (Depends-on): Remove wchar.
20652         (Makefile.am): Substitute HAVE_WCHAR_H.
20653         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20654
20655 2011-02-18  Eric Blake  <eblake@redhat.com>
20656
20657         longlong: skip, rather than fail, on cross-compilation
20658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20659         when cross-compiling; regression from 2011-02-16.
20660
20661 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20662
20663         * NEWS: Mention 2011-02-08 change to stdlib.
20664
20665 2011-02-17  Bruno Haible  <bruno@clisp.org>
20666
20667         getloadavg: Add comments about platforms.
20668         * m4/getloadavg.m4: Add comment.
20669         * lib/getloadavg.c: Likewise.
20670
20671 2011-02-17  Bruno Haible  <bruno@clisp.org>
20672
20673         getloadavg: Fix link error on Solaris 2.6.
20674         * modules/getloadavg (Link): New section.
20675         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20676         linking test-getloadavg.
20677         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20678         getloadavg.
20679
20680 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20681
20682         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20683         It was 'int', but this doesn't match the IRIX 6.5 manual.
20684         Suggested by Bruno Haible in
20685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20686
20687 2011-02-17  Bruno Haible  <bruno@clisp.org>
20688
20689         havelib: Fix comments.
20690         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20691         change.
20692
20693 2011-02-17  Bruno Haible  <bruno@clisp.org>
20694
20695         havelib: Update config.rpath.
20696         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20697
20698 2011-02-17  Bruno Haible  <bruno@clisp.org>
20699
20700         getloadavg test: Add some plausibility checks.
20701         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20702         is improbable.
20703
20704 2011-02-16  Eric Blake  <eblake@redhat.com>
20705
20706         maintainer-makefile: make syntax-check a no-op from tarballs
20707         * top/maint.mk (no-vc-detected): New rule.
20708         (local-checks-available): Use it to avoid hanging if someone tries
20709         'make syntax-check' from a tarball.  Also append to any non-syntax
20710         checks already defined in cfg.mk.
20711
20712 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20713
20714         longlong: tune, particularly for common case of c99
20715
20716         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20717         or running anything if c99, or if unsigned long long int does not
20718         work.  In either case, we know the answer without further tests.
20719         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20720         it at most once, and use its results for both long long int and
20721         unsigned long long int.  This is more likely to be efficient in
20722         the common case where the program wants to check for both long
20723         long int and unsigned long long int.
20724         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20725         since the answer is already known.
20726
20727 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20728
20729         getloadavg: set errno
20730         * lib/getloadavg.c: Set errno when returning -1.  If no other
20731         error number looks appropriate, set it to ENOSYS if the getloadavg
20732         looks like it can't possibly ever work, ENOTSUP otherwise.
20733         Suggested by Bruno Haible in
20734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20735
20736         getloadavg: trim unused parts and speed up 'configure'
20737         * NEWS: Document this.
20738         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20739         always compiled if getloadavg is absent.
20740         Move test code to ...
20741         * tests/test-getloadavg.c: New file, containing previous
20742         contents of test from lib/getloadavg.c.  It also contains
20743         suggestions by Bruno Haible in
20744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20745         * modules/getloadavg-tests: New file.
20746         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20747         Do tests in the same order as they're needed for getloadavg.c.
20748         Omit setgid-related tests that generate symbols KMEM_GROUP,
20749         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20750         Do only the tests that are needed to see whether the system has
20751         getloadavg, moving the other tests into ...
20752         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20753         NLIST_NAME_UNION; nobody should be using it.  Do not define
20754         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20755         relevant, as the user of this module shouldn't care how getloadavg
20756         is implemented.
20757
20758         getloadavg: omit unused var
20759         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20760
20761 2011-02-15  Jim Meyering  <meyering@redhat.com>
20762
20763         doc: update users.txt
20764         * users.txt: Update iwhd's URL.
20765
20766 2011-02-13  Bruno Haible  <bruno@clisp.org>
20767
20768         Consistent macro naming for macros that use GCC __attribute__.
20769         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20770         _ATTRIBUTE_NONNULL_.
20771         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20772         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20773         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20774         ATTRIBUTE_DEPRECATED.
20775         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20776         ATTRIBUTE_NORETURN.
20777         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20778         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20779         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20780         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20781         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20782         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20783         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20784         ATTRIBUTE_SENTINEL.
20785         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20786         ATTRIBUTE_RETURN_CHECK.
20787         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20788         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20789         ATTRIBUTE_NORETURN.
20790         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20791         Reported by Paul Eggert.
20792
20793 2011-02-13  Bruno Haible  <bruno@clisp.org>
20794
20795         Don't interfere with a program's definition of __attribute__.
20796         * lib/argp.h (__attribute__): Remove definition.
20797         (_GL_ATTRIBUTE_FORMAT): New macro.
20798         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20799         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20800         (_GL_ATTRIBUTE_FORMAT): New macro.
20801         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20802         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20803         GCC 3 or newer.
20804         * lib/error.h (__attribute__): Remove definition.
20805         (_GL_ATTRIBUTE_FORMAT): New macro.
20806         (error, error_at_line): Use it.
20807         * lib/hash.h (__attribute__): Remove definition.
20808         (ATTRIBUTE_WUR): Update definition. Define always.
20809         * lib/openat.h (__attribute__): Remove definition.
20810         (ATTRIBUTE_NORETURN): Update definition. Define always.
20811         * lib/sigpipe-die.h (__attribute__): Remove definition.
20812         (ATTRIBUTE_NORETURN): Update definition. Define always.
20813         * lib/vasnprintf.h (__attribute__): Remove definition.
20814         (_GL_ATTRIBUTE_FORMAT): New macro.
20815         (asnprintf, vasnprintf): Use it.
20816         * lib/xalloc.h (__attribute__): Remove definition.
20817         (ATTRIBUTE_NORETURN): Update definition. Define always.
20818         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20819         * lib/xmemdup0.h (__attribute__): Remove definition.
20820         (ATTRIBUTE_NORETURN): Update definition. Define always.
20821         * lib/xprintf.h (__attribute__): Remove definition.
20822         (_GL_ATTRIBUTE_FORMAT): New macro.
20823         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20824         * lib/xstrtol.h (__attribute__): Remove definition.
20825         (ATTRIBUTE_NORETURN): Update definition. Define always.
20826         * lib/xvasprintf.h (__attribute__): Remove definition.
20827         (_GL_ATTRIBUTE_FORMAT): New macro.
20828         (xasprintf, xvasprintf): Use it.
20829         * tests/test-argmatch.c (__attribute__): Remove definition.
20830         (ATTRIBUTE_NORETURN): Update definition. Define always.
20831         * tests/test-exclude.c (__attribute__): Remove definition.
20832         (ATTRIBUTE_NORETURN): Update definition. Define always.
20833         Reported by Paul Eggert.
20834
20835 2011-02-13  Bruno Haible  <bruno@clisp.org>
20836
20837         mbrtowc: Add more tests for native Windows platforms.
20838         * tests/test-mbrtowc-w32-1.sh: New file.
20839         * tests/test-mbrtowc-w32-2.sh: New file.
20840         * tests/test-mbrtowc-w32-3.sh: New file.
20841         * tests/test-mbrtowc-w32-4.sh: New file.
20842         * tests/test-mbrtowc-w32-5.sh: New file.
20843         * tests/test-mbrtowc-w32.c: New file.
20844         * modules/mbrtowc-tests (Files): Add them.
20845         (Makefile.am): Arrange to run these tests.
20846         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20847         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20848
20849 2011-02-13  Bruno Haible  <bruno@clisp.org>
20850
20851         mbrtowc: Work around native Windows bug.
20852         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20853         guess when no suitable locale for testing was found.
20854         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20855
20856 2011-02-13  Bruno Haible  <bruno@clisp.org>
20857
20858         mbsinit: Work around mingw bug.
20859         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20860         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20861         Windows.
20862         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20863
20864 2011-02-13  Bruno Haible  <bruno@clisp.org>
20865
20866         mbsinit: Don't crash for a NULL argument.
20867         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20868         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20869
20870 2011-02-13  Bruno Haible  <bruno@clisp.org>
20871
20872         Don't interfere with a program's definition of __attribute__.
20873         * lib/stdio.in.h (__attribute__): Remove definition.
20874         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20875         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20876         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20877         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20878         * lib/string.in.h (__attribute__): Remove definition.
20879         Reported by Paul Eggert.
20880
20881 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20882
20883         stdlib: don't get in the way of non-GCC __attribute__
20884         See thread starting at
20885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20886         Revert previous stdlib change, installing the following instead:
20887         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20888         to get in the way of a non-GCC compiler that supports __attribute__.
20889         (_GL_ATTRIBUTE_RETURN): New macro.
20890         (_Exit): Use it instead of __attribute__.
20891
20892 2011-02-12  Bruno Haible  <bruno@clisp.org>
20893
20894         quotearg test: Avoid test failure on mingw.
20895         * tests/test-quotearg.sh: Convert the locale identifier from native
20896         Windows syntax to Unix syntax.
20897
20898 2011-02-12  Bruno Haible  <bruno@clisp.org>
20899
20900         setlocale: Prefer gnulib's override over libintl's override.
20901         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20902         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20903         GNULIB_defined_setlocale is set.
20904
20905 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20906
20907         stdlib: support non-GCC __attribute__
20908
20909         Fix a serious and tricky problem encountered when attempting to
20910         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20911         5.5, but it crashed due to memory corruption on Solaris 10 with
20912         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20913         bits that are otherwise zero.  This tagging is optional inside
20914         Emacs but is preferred and is used when __attribute__ ((__aligned
20915         (8))) works, as it does with both recent-enough GCC and with Sun C
20916         5.11.  However, Sun C 5.11 is not GCC and does not #define
20917         __GNUC__ and __GNUC_MINOR__.
20918
20919         When I added the getloadavg module to Emacs, it brought in
20920         stdlib.in.h, which contained this fragment:
20921
20922            #ifndef __attribute__
20923            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20924            #  define __attribute__(Spec)   /* empty */
20925            # endif
20926            #endif
20927
20928         When files that include <stdlib.h> were compiled with Sun C 5.11,
20929         the above code disabled __attribute__ ((__aligned (8))), which
20930         caused variables to not be properly aligned, which eventually led
20931         to the pointer corruption mentioned above.  (This was a bit hard
20932         to diagnose, unfortunately.)
20933
20934         Several "#define __attribute__(X) /* empty */" code snippets need
20935         to be eradicated from Gnulib to work with non-GCC compilers that
20936         support __attribute__.  The Autoconf way to do this is to test for
20937         each kind of attribute that we want support for, and selectively
20938         enable that in source code.
20939
20940         Fix this problem just for stdlib.h, by adding a test for the
20941         __noreturn__ attribute, and change stdlib.in.h to use that test
20942         when needed.  This technique can be easily generalized to the
20943         other *.in.h files and attributes, and a similar technique can be
20944         used for *.h and *.c files.  This patch is enough to solve the
20945         problem for Emacs + getloadavg, and I thought I'd publish it for
20946         feedback before undertaking further, similar fixes in other
20947         modules.
20948
20949         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20950         because it's not needed for stdlib.h.  It merely substitutes the
20951         value directly into stdlib.h.  We may well need to #define it, or
20952         similar symbols, for other modules, but it's nice to also have an
20953         option to not #define it for applications like Emacs that do not
20954         need it.
20955
20956         * lib/stdlib.in.h (__attribute__): Do not #define.
20957         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20958         be defined only if the _Exit module is also used.
20959         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20961         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20962         platforms.
20963         * modules/_Exit (Files): Add m4/attribute.m4.
20964         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20965         * m4/attribute.m4: New file.
20966
20967 2011-02-12  Bruno Haible  <bruno@clisp.org>
20968
20969         wcsrtombs: Work around bug on native Windows.
20970         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20971         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20972         instead of len.
20973         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20974
20975 2011-02-12  Bruno Haible  <bruno@clisp.org>
20976
20977         mbsrtowcs: Work around bug on native Windows.
20978         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20979         against mingw bug.
20980         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20981
20982 2011-02-12  Bruno Haible  <bruno@clisp.org>
20983
20984         Avoid setlocale bugs in tests.
20985         * modules/btowc (Dependencies): Add setlocale.
20986         * modules/c-strcase (Dependencies): Likewise.
20987         * modules/mbmemcasecmp (Dependencies): Likewise.
20988         * modules/mbmemcasecoll (Dependencies): Likewise.
20989         * modules/mbrtowc (Dependencies): Likewise.
20990         * modules/mbscasecmp (Dependencies): Likewise.
20991         * modules/mbscasestr (Dependencies): Likewise.
20992         * modules/mbschr (Dependencies): Likewise.
20993         * modules/mbscspn (Dependencies): Likewise.
20994         * modules/mbsinit (Dependencies): Likewise.
20995         * modules/mbsncasecmp (Dependencies): Likewise.
20996         * modules/mbsnrtowcs (Dependencies): Likewise.
20997         * modules/mbspbrk (Dependencies): Likewise.
20998         * modules/mbspcasecmp (Dependencies): Likewise.
20999         * modules/mbsrchr (Dependencies): Likewise.
21000         * modules/mbsrtowcs (Dependencies): Likewise.
21001         * modules/mbsspn (Dependencies): Likewise.
21002         * modules/mbsstr (Dependencies): Likewise.
21003         * modules/nl_langinfo (Dependencies): Likewise.
21004         * modules/quotearg (Dependencies): Likewise.
21005         * modules/unicase/locale-language (Dependencies): Likewise.
21006         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21007         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21008         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21009         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21010         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21011         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21012         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21013         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21014         * modules/vasnprintf-posix (Dependencies): Likewise.
21015         * modules/wcrtomb (Dependencies): Likewise.
21016         * modules/wcsnrtombs (Dependencies): Likewise.
21017         * modules/wcsrtombs (Dependencies): Likewise.
21018
21019 2011-02-12  Bruno Haible  <bruno@clisp.org>
21020
21021         setlocale: Workaround native Windows bug.
21022         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21023         succeeds but sets LC_CTYPE to "C", report a failure.
21024         * tests/test-setlocale2.sh: New file.
21025         * tests/test-setlocale2.c: New file.
21026         * modules/setlocale-tests (Files): Add the new files.
21027         (Makefile.am): Enable test-setlocale2.sh test.
21028         * doc/posix-functions/setlocale.texi: Mention workaround.
21029
21030 2011-02-11  Bruno Haible  <bruno@clisp.org>
21031
21032         Tests for module 'setlocale'.
21033         * modules/setlocale-tests: New file.
21034         * tests/test-setlocale1.sh: New file.
21035         * tests/test-setlocale1.c: New file.
21036
21037         New module 'setlocale'.
21038         * lib/locale.in.h (setlocale): New declaration.
21039         * lib/setlocale.c: New file, based on
21040         gettext/gettext-runtime/intl/setlocale.c.
21041         * m4/setlocale.m4: New file.
21042         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21043         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21044         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21045         REPLACE_SETLOCALE.
21046         * modules/setlocale: New file.
21047         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21048         * doc/posix-functions/setlocale.texi: Mention the new module.
21049
21050 2011-02-11  Bruno Haible  <bruno@clisp.org>
21051
21052         Prepare for locale dependent tests on mingw.
21053         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21054         because it has the wrong locale encoding.
21055         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21056         French_France.1252 instead of "fr".
21057         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21058         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21059         because it has the wrong locale encoding.
21060         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21061         native Windows, try Turkish_Turkey.65001.
21062         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21063         Chinese_China.54936.
21064
21065         Prepare for locale dependent tests on mingw.
21066         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21067         differently.
21068         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21069         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21070         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21072
21073 2011-02-11  Eric Blake  <eblake@redhat.com>
21074
21075         strptime: avoid compiler warnings
21076         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21077         compiler warnings about dead code.
21078         Reported by Daniel P. Berrange.
21079
21080 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21081
21082         doc: update users.txt
21083         * users.txt: Add rcs.
21084
21085 2011-02-10  John W. Eaton  <jwe@gnu.org>
21086
21087         doc: update users.txt
21088         * users.txt: Add octave.
21089
21090 2011-02-10  Jim Meyering  <meyering@redhat.com>
21091
21092         doc: update users.txt
21093         * users.txt: Add iwhd.
21094
21095 2011-02-09  Bruno Haible  <bruno@clisp.org>
21096
21097         gnulib-tool: Make copyright notice adjustment more robust.
21098         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21099         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21100         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21101         License".
21102         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21103
21104 2011-02-06  Bruno Haible  <bruno@clisp.org>
21105
21106         New module 'towctrans'.
21107         * modules/towctrans: New file.
21108         * lib/wctype.in.h (towctrans): New declaration.
21109         * lib/towctrans.c: New file.
21110         * lib/towctrans-impl.h: New file.
21111         * m4/towctrans.m4: New file.
21112         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21113         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21114         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21115         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21116         * doc/posix-functions/towctrans.texi: Mention the new module.
21117
21118 2011-02-06  Bruno Haible  <bruno@clisp.org>
21119
21120         New module 'wctrans'.
21121         * modules/wctrans: New file.
21122         * lib/wctype.in.h (wctrans): New declaration.
21123         * lib/wctrans.c: New file.
21124         * lib/wctrans-impl.h: New file.
21125         * m4/wctrans.m4: New file.
21126         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21127         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21128         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21129         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21130         * doc/posix-functions/wctrans.texi: Mention the new module.
21131
21132 2011-02-06  Bruno Haible  <bruno@clisp.org>
21133
21134         New module 'iswctype'.
21135         * modules/iswctype: New file.
21136         * lib/wctype.in.h (iswctype): New declaration.
21137         * lib/iswctype.c: New file.
21138         * lib/iswctype-impl.h: New file.
21139         * m4/iswctype.m4: New file.
21140         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21141         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21142         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21143         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21144         * doc/posix-functions/iswctype.texi: Mention the new module and the
21145         HP-UX 11.00 problem.
21146
21147 2011-02-06  Bruno Haible  <bruno@clisp.org>
21148
21149         New module 'wctype'.
21150         * modules/wctype: Change to represent the wctype() substitute.
21151         * lib/wctype.in.h (wctype): New declaration.
21152         * lib/wctype.c: New file.
21153         * lib/wctype-impl.h: New file.
21154         * m4/wctype.m4: New file.
21155         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21156         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21157         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21158         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21159         * doc/posix-functions/wctype.texi: Mention the new module and the
21160         HP-UX 11.00 problem.
21161
21162 2011-02-06  Bruno Haible  <bruno@clisp.org>
21163
21164         wctype-h: Ensure wctype_t and wctrans_t are defined.
21165         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21166         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21167         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21168         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21169         HAVE_WCTRANS_T.
21170         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21171
21172 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21173
21174         flock: fix license typo
21175
21176         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21177         omitted.
21178
21179 2011-02-08  Bruno Haible  <bruno@clisp.org>
21180
21181         Split large sed scripts, for HP-UX sed.
21182         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21183         to avoid HP-UX limit of 99 commands, in the near future.
21184         * modules/stdlib (Makefile.am): Likewise.
21185         * modules/unistd (Makefile.am): Likewise.
21186         * modules/wchar (Makefile.am): Likewise.
21187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21188         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21189         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21190
21191 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21192             Bruno Haible  <bruno@clisp.org>
21193
21194         stdlib: improve random_r modularization
21195         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21196         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21197         you also need the random_r module to get this material right.
21198         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21199         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21200         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21201
21202 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21203
21204         stdlib: don't depend on stdint
21205         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21206         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21207         be independent of whether stdint.h is needed.
21208         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21209         here, instead of ...
21210         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21211         struct random_data should be using the random_r module, not just
21212         the stdlib module (which wouldn't make sense: what package needs
21213         just struct random_data without also needing random_r?).
21214         * modules/stdlib (Depends-on): Remove stdint.
21215
21216         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21217         See the thread rooted at
21218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21219         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21220         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21221         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21222         __VMS)); previously it was always included (via fcntl--.h).
21223         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21224         hand; this is good enough for load averages.  Also, do not use
21225         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21226         flags directly if available and don't bother otherwise.  (Packages
21227         that need the extra reliability should use the modules that define
21228         these flags on older platforms that lack them.)
21229         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21230         fcntl-safer.
21231
21232 2011-02-08  Jim Meyering  <meyering@redhat.com>
21233
21234         di-set.h, ino-map.h: add multiple-inclusion guard
21235         Technically, the guard is required only for ino-map.h, due to its
21236         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21237         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21238         * lib/ino-map.h: Likewise.
21239
21240 2011-02-06  Bruno Haible  <bruno@clisp.org>
21241
21242         iswblank: Ensure declaration on glibc systems.
21243         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21244         * modules/iswblank (Dependencies): Add 'extensions'.
21245         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21246
21247 2011-02-06  Bruno Haible  <bruno@clisp.org>
21248
21249         New module 'iswblank'.
21250         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21251         * modules/iswblank: New file.
21252         * modules/wctype-h (Files): Remove lib/iswblank.c.
21253         (Makefile.am): Substitute GNULIB_ISWBLANK.
21254         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21255         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21256         (gl_WCTYPE_H_DEFAULTS): New macro.
21257         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21258         * modules/iswblank-tests: New file.
21259         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21260         * tests/test-wctype-h.c (main): Remove iswblank tests.
21261         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21262         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21263         of 'wctype-h'.
21264         * NEWS: Mention the change.
21265         * modules/mbchar (Depends-on): Add iswblank.
21266
21267 2011-02-08  Bruno Haible  <bruno@clisp.org>
21268
21269         di-set tests: Refactor.
21270         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21271         unnecessary includes.
21272         (ASSERT): Remove macro.
21273         (main): Make C90 compliant by avoiding variable declaration after
21274         statement.
21275         * modules/di-set-tests (Files): Add tests/macros.h.
21276
21277 2011-02-08  Bruno Haible  <bruno@clisp.org>
21278
21279         ino-map tests: Refactor.
21280         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21281         unnecessary includes.
21282         (ASSERT): Remove macro.
21283         (main): Make C90 compliant by avoiding variable declaration after
21284         statement.
21285         * modules/ino-map-tests (Files): Add tests/macros.h.
21286
21287 2011-02-08  Jim Meyering  <meyering@redhat.com>
21288
21289         di-set: add "const" to a cast
21290         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21291         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21292
21293 2011-02-06  Bruno Haible  <bruno@clisp.org>
21294
21295         Rename module 'wctype' to 'wctype-h'.
21296         * modules/wctype-h: Renamed from modules/wctype.
21297         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21298         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21299         (Files, Depends-on, Makefile.am): Update.
21300         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21301         (Files, Makefile.am): Update.
21302         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21303         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21304         * doc/posix-headers/wctype.texi: Update.
21305         * doc/posix-functions/iswalnum.texi: Update.
21306         * doc/posix-functions/iswalpha.texi: Update.
21307         * doc/posix-functions/iswblank.texi: Update.
21308         * doc/posix-functions/iswcntrl.texi: Update.
21309         * doc/posix-functions/iswdigit.texi: Update.
21310         * doc/posix-functions/iswgraph.texi: Update.
21311         * doc/posix-functions/iswlower.texi: Update.
21312         * doc/posix-functions/iswprint.texi: Update.
21313         * doc/posix-functions/iswpunct.texi: Update.
21314         * doc/posix-functions/iswspace.texi: Update.
21315         * doc/posix-functions/iswupper.texi: Update.
21316         * doc/posix-functions/iswxdigit.texi: Update.
21317         * doc/posix-functions/towlower.texi: Update.
21318         * doc/posix-functions/towupper.texi: Update.
21319         * NEWS: Mention the change.
21320         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21321         * modules/mbchar (Dependencies): Likewise.
21322         * modules/mbswidth (Dependencies): Likewise.
21323         * modules/quotearg (Dependencies): Likewise.
21324         * modules/regex (Dependencies): Likewise.
21325         * modules/wcscasecmp (Dependencies): Likewise.
21326         * modules/wcsncasecmp (Dependencies): Likewise.
21327         * modules/wcwidth (Dependencies): Likewise.
21328
21329 2011-02-06  Bruno Haible  <bruno@clisp.org>
21330
21331         New module 'wcswidth'.
21332         * modules/wcswidth: New file.
21333         * lib/wchar.in.h (wcswidth): New declaration.
21334         * lib/wcswidth.c: New file.
21335         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21336         * m4/wcswidth.m4: New file.
21337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21339         REPLACE_WCSWIDTH.
21340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21341         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21342         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21343         * doc/posix-functions/wcswidth.texi: Mention the new module.
21344
21345 2011-02-06  Bruno Haible  <bruno@clisp.org>
21346
21347         New module 'wcstok'.
21348         * modules/wcstok: New file.
21349         * lib/wchar.in.h (wcstok): New declaration.
21350         * lib/wcstok.c: New file.
21351         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21352         * m4/wcstok.m4: New file.
21353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21356         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21357         * doc/posix-functions/wcstok.texi: Mention the new module.
21358
21359 2011-02-06  Bruno Haible  <bruno@clisp.org>
21360
21361         New module 'wcsstr'.
21362         * modules/wcsstr: New file.
21363         * lib/wchar.in.h (wcsstr): New declaration.
21364         * lib/wcsstr.c: New file.
21365         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21366         * m4/wcsstr.m4: New file.
21367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21370         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21371         * doc/posix-functions/wcsstr.texi: Mention the new module.
21372
21373 2011-02-06  Bruno Haible  <bruno@clisp.org>
21374
21375         New module 'wcspbrk'.
21376         * modules/wcspbrk: New file.
21377         * lib/wchar.in.h (wcspbrk): New declaration.
21378         * lib/wcspbrk.c: New file.
21379         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21380         * m4/wcspbrk.m4: New file.
21381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21384         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21385         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21386
21387 2011-02-06  Bruno Haible  <bruno@clisp.org>
21388
21389         New module 'wcsspn'.
21390         * modules/wcsspn: New file.
21391         * lib/wchar.in.h (wcsspn): New declaration.
21392         * lib/wcsspn.c: New file.
21393         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21394         * m4/wcsspn.m4: New file.
21395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21398         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21399         * doc/posix-functions/wcsspn.texi: Mention the new module.
21400
21401 2011-02-06  Bruno Haible  <bruno@clisp.org>
21402
21403         New module 'wcscspn'.
21404         * modules/wcscspn: New file.
21405         * lib/wchar.in.h (wcscspn): New declaration.
21406         * lib/wcscspn.c: New file.
21407         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21408         * m4/wcscspn.m4: New file.
21409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21412         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21413         * doc/posix-functions/wcscspn.texi: Mention the new module.
21414
21415 2011-02-06  Bruno Haible  <bruno@clisp.org>
21416
21417         New module 'wcsrchr'.
21418         * modules/wcsrchr: New file.
21419         * lib/wchar.in.h (wcsrchr): New declaration.
21420         * lib/wcsrchr.c: New file.
21421         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21422         * m4/wcsrchr.m4: New file.
21423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21426         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21427         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21428
21429 2011-02-06  Bruno Haible  <bruno@clisp.org>
21430
21431         New module 'wcschr'.
21432         * modules/wcschr: New file.
21433         * lib/wchar.in.h (wcschr): New declaration.
21434         * lib/wcschr.c: New file.
21435         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21436         * m4/wcschr.m4: New file.
21437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21440         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21441         * doc/posix-functions/wcschr.texi: Mention the new module.
21442
21443 2011-02-06  Bruno Haible  <bruno@clisp.org>
21444
21445         New module 'wcsdup'.
21446         * modules/wcsdup: New file.
21447         * lib/wchar.in.h (wcsdup): New declaration.
21448         * lib/wcsdup.c: New file.
21449         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21450         * m4/wcsdup.m4: New file.
21451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21454         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21455         * doc/posix-functions/wcsdup.texi: Mention the new module.
21456
21457 2011-02-06  Bruno Haible  <bruno@clisp.org>
21458
21459         New module 'wcsxfrm'.
21460         * modules/wcsxfrm: New file.
21461         * lib/wchar.in.h (wcsxfrm): New declaration.
21462         * lib/wcsxfrm.c: New file.
21463         * lib/wcsxfrm-impl.h: New file.
21464         * m4/wcsxfrm.m4: New file.
21465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21468         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21469         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21470
21471 2011-02-06  Bruno Haible  <bruno@clisp.org>
21472
21473         New module 'wcscoll'.
21474         * modules/wcscoll: New file.
21475         * lib/wchar.in.h (wcscoll): New declaration.
21476         * lib/wcscoll.c: New file.
21477         * lib/wcscoll-impl.h: New file.
21478         * m4/wcscoll.m4: New file.
21479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21482         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21483         * doc/posix-functions/wcscoll.texi: Mention the new module.
21484
21485 2011-02-06  Bruno Haible  <bruno@clisp.org>
21486
21487         New module 'wcsncasecmp'.
21488         * modules/wcsncasecmp: New file.
21489         * lib/wchar.in.h (wcsncasecmp): New declaration.
21490         * lib/wcsncasecmp.c: New file.
21491         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21492         * m4/wcsncasecmp.m4: New file.
21493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21496         HAVE_WCSNCASECMP.
21497         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21498         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21499
21500 2011-02-06  Bruno Haible  <bruno@clisp.org>
21501
21502         New module 'wcscasecmp'.
21503         * modules/wcscasecmp: New file.
21504         * lib/wchar.in.h (wcscasecmp): New declaration.
21505         * lib/wcscasecmp.c: New file.
21506         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21507         * m4/wcscasecmp.m4: New file.
21508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21511         HAVE_WCSCASECMP.
21512         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21513         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21514
21515 2011-02-05  Bruno Haible  <bruno@clisp.org>
21516
21517         New module 'wcsncmp'.
21518         * modules/wcsncmp: New file.
21519         * lib/wchar.in.h (wcsncmp): New declaration.
21520         * lib/wcsncmp.c: New file.
21521         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21522         * m4/wcsncmp.m4: New file.
21523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21526         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21527         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21528
21529 2011-02-05  Bruno Haible  <bruno@clisp.org>
21530
21531         New module 'wcscmp'.
21532         * modules/wcscmp: New file.
21533         * lib/wchar.in.h (wcscmp): New declaration.
21534         * lib/wcscmp.c: New file.
21535         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21536         * m4/wcscmp.m4: New file.
21537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21540         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21541         * doc/posix-functions/wcscmp.texi: Mention the new module.
21542
21543 2011-02-05  Bruno Haible  <bruno@clisp.org>
21544
21545         New module 'wcsncat'.
21546         * modules/wcsncat: New file.
21547         * lib/wchar.in.h (wcsncat): New declaration.
21548         * lib/wcsncat.c: New file.
21549         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21550         * m4/wcsncat.m4: New file.
21551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21554         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21555         * doc/posix-functions/wcsncat.texi: Mention the new module.
21556
21557 2011-02-05  Bruno Haible  <bruno@clisp.org>
21558
21559         New module 'wcscat'.
21560         * modules/wcscat: New file.
21561         * lib/wchar.in.h (wcscat): New declaration.
21562         * lib/wcscat.c: New file.
21563         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21564         * m4/wcscat.m4: New file.
21565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21568         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21569         * doc/posix-functions/wcscat.texi: Mention the new module.
21570
21571 2011-02-05  Bruno Haible  <bruno@clisp.org>
21572
21573         New module 'wcpncpy'.
21574         * modules/wcpncpy: New file.
21575         * lib/wchar.in.h (wcpncpy): New declaration.
21576         * lib/wcpncpy.c: New file.
21577         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21578         * m4/wcpncpy.m4: New file.
21579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21581         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21582         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21583         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21584
21585 2011-02-05  Bruno Haible  <bruno@clisp.org>
21586
21587         New module 'wcsncpy'.
21588         * modules/wcsncpy: New file.
21589         * lib/wchar.in.h (wcsncpy): New declaration.
21590         * lib/wcsncpy.c: New file.
21591         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21592         * m4/wcsncpy.m4: New file.
21593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21596         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21597         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21598
21599 2011-02-05  Bruno Haible  <bruno@clisp.org>
21600
21601         New module 'wcpcpy'.
21602         * modules/wcpcpy: New file.
21603         * lib/wchar.in.h (wcpcpy): New declaration.
21604         * lib/wcpcpy.c: New file.
21605         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21606         * m4/wcpcpy.m4: New file.
21607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21609         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21610         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21611         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21612
21613 2011-02-05  Bruno Haible  <bruno@clisp.org>
21614
21615         New module 'wcscpy'.
21616         * modules/wcscpy: New file.
21617         * lib/wchar.in.h (wcscpy): New declaration.
21618         * lib/wcscpy.c: New file.
21619         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21620         * m4/wcscpy.m4: New file.
21621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21624         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21625         * doc/posix-functions/wcscpy.texi: Mention the new module.
21626
21627 2011-02-05  Bruno Haible  <bruno@clisp.org>
21628
21629         New module 'wcsnlen'.
21630         * modules/wcsnlen: New file.
21631         * lib/wchar.in.h (wcsnlen): New declaration.
21632         * lib/wcsnlen.c: New file.
21633         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21634         * m4/wcsnlen.m4: New file.
21635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21638         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21639         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21640
21641 2011-02-05  Bruno Haible  <bruno@clisp.org>
21642
21643         New module 'wcslen'.
21644         * modules/wcslen: New file.
21645         * lib/wchar.in.h (wcslen): New declaration.
21646         * lib/wcslen.c: New file.
21647         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21648         * m4/wcslen.m4: New file.
21649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21652         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21653         * doc/posix-functions/wcslen.texi: Mention the new module.
21654
21655 2011-02-05  Bruno Haible  <bruno@clisp.org>
21656
21657         New module 'wmemset'.
21658         * modules/wmemset: New file.
21659         * lib/wchar.in.h (wmemset): New declaration.
21660         * lib/wmemset.c: New file.
21661         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21662         * m4/wmemset.m4: New file.
21663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21665         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21666         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21667         * doc/posix-functions/wmemset.texi: Mention the new module.
21668
21669 2011-02-05  Bruno Haible  <bruno@clisp.org>
21670
21671         New module 'wmemmove'.
21672         * modules/wmemmove: New file.
21673         * lib/wchar.in.h (wmemmove): New declaration.
21674         * lib/wmemmove.c: New file.
21675         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21676         * m4/wmemmove.m4: New file.
21677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21679         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21680         HAVE_WMEMMOVE.
21681         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21682         * doc/posix-functions/wmemmove.texi: Mention the new module.
21683
21684 2011-02-05  Bruno Haible  <bruno@clisp.org>
21685
21686         New module 'wmemcpy'.
21687         * modules/wmemcpy: New file.
21688         * lib/wchar.in.h (wmemcpy): New declaration.
21689         * lib/wmemcpy.c: New file.
21690         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21691         * m4/wmemcpy.m4: New file.
21692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21694         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21695         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21696         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21697
21698 2011-02-05  Bruno Haible  <bruno@clisp.org>
21699
21700         New module 'wmemcmp'.
21701         * modules/wmemcmp: New file.
21702         * lib/wchar.in.h (wmemcmp): New declaration.
21703         * lib/wmemcmp.c: New file.
21704         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21705         * m4/wmemcmp.m4: New file.
21706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21708         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21709         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21710         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21711
21712 2011-02-07  Jim Meyering  <meyering@redhat.com>
21713
21714         di-set, ino-map: new modules, from coreutils
21715         * lib/di-set.c: New file.
21716         * lib/di-set.h: Likewise.
21717         * lib/ino-map.c: Likewise.
21718         * lib/ino-map.h: Likewise.
21719         * modules/di-set: Likewise.
21720         * modules/di-set-tests: Likewise.
21721         * modules/ino-map: Likewise.
21722         * modules/ino-map-tests: Likewise.
21723         * tests/test-di-set.c: Likewise.
21724         * tests/test-ino-map.c: Likewise.
21725
21726 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21727
21728         getloadavg: merge minor changes from Emacs
21729
21730         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21731         (getloadavg): Use memset, not bzero.
21732
21733         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21734         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21735         clash (bug#86).
21736
21737 2010-11-14  Bruno Haible  <bruno@clisp.org>
21738
21739         Allow multiple gnulib generated replacements to coexist.
21740         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21741         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21742         * lib/langinfo.in.h (nl_item): Likewise.
21743         * lib/math.in.h (_NaN, NAN): Likewise.
21744         * lib/netdb.in.h (struct addrinfo): Likewise.
21745         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21746         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21747         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21748         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21749         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21750         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21751         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21752         pthread_mutexattr_init, pthread_mutexattr_settype,
21753         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21754         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21755         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21756         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21757         * lib/sched.in.h (struct sched_param): Likewise.
21758         * lib/se-selinux.in.h (security_class_t, security_context_t,
21759         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21760         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21761         lsetfilecon, fsetfilecon, security_check_context,
21762         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21763         Likewise.
21764         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21765         Likewise.
21766         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21767         _gl_function_taking_int_returning_void_t, union sigval,
21768         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21769         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21770         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21771         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21772         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21773         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21774         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21775         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21776         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21777         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21778         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21779         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21780         socklen_t, rpl_fd_isset): Likewise.
21781         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21782         * lib/sys_time.in.h (struct timeval): Likewise.
21783         * lib/sys_times.in.h (struct tms): Likewise.
21784         * lib/sys_utsname.in.h (struct utsname):
21785         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21786         * lib/unistd.in.h (getpagesize): Likewise.
21787         * lib/wchar.in.h (mbstate_t): Likewise.
21788         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21789         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21790         towlower, towupper): Likewise.
21791         Reported by Sam Steingold <sds@gnu.org>.
21792
21793 2011-02-05  Eric Blake  <eblake@redhat.com>
21794
21795         unsetenv: work around Haiku issues
21796         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21797         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21798
21799 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21800
21801         libposix: avoid calling error() within libposix
21802         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21803         is defined.
21804
21805 2011-02-05  Eric Blake  <eblake@redhat.com>
21806
21807         strerror_r-posix: port to cygwin
21808         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21809         implementation.
21810         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21811         * tests/test-strerror_r.c (main): Fix test.
21812         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21813         issue.
21814
21815 2011-02-05  Bruno Haible  <bruno@clisp.org>
21816
21817         New module 'wmemchr'.
21818         * modules/wmemchr: New file.
21819         * lib/wchar.in.h (wmemchr): New declaration.
21820         * lib/wmemchr.c: New file.
21821         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21822         * m4/wmemchr.m4: New file.
21823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21825         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21826         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21827         * doc/posix-functions/wmemchr.texi: Mention the new module.
21828
21829 2011-02-04  Eric Blake  <eblake@redhat.com>
21830
21831         fdopendir: detect FreeBSD bug
21832         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21833         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21834
21835 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21836
21837         stdbool: do not define HAVE_STDBOOL_H
21838         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21839         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21840         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21841         imported from the latest Autoconf git.  It was motivated by Emacs,
21842         which uses gnulib but does not need HAVE_STDBOOL_H.
21843
21844 2011-02-04  Bruno Haible  <bruno@clisp.org>
21845
21846         wcsnrtombs: Prepare for new module wwcsnrtombs.
21847         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21848         * lib/wcsnrtombs.c: Include it.
21849         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21850
21851         wcsrtombs: Prepare for new module wwcsrtombs.
21852         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21853         * lib/wcsrtombs.c: Include it.
21854         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21855
21856         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21857         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21858         * lib/mbsnrtowcs.c: Include it.
21859         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21860
21861         mbsrtowcs: Prepare for new module mbsrtowwcs.
21862         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21863         * lib/mbsrtowcs.c: Include it.
21864         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21865
21866 2011-02-04  Bruno Haible  <bruno@clisp.org>
21867
21868         vasnprintf: Reduce use of malloc for small format strings.
21869         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21870         (arguments): Add room for the first 7 arguments.
21871         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21872         (char_directives, u8_directives, u16_directives, u32_directives): Add
21873         room for the first 7 directives.
21874         * lib/printf-parse.c: Include <string.h>.
21875         (PRINTF_PARSE): Change memory handling code so that it uses the first
21876         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21877         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21878         Reported by Pádraig Brady <P@draigbrady.com>.
21879
21880 2011-01-31  Eric Blake  <eblake@redhat.com>
21881
21882         dup2: work around Haiku bug
21883         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21884         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21885         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21886         * tests/test-dup2.c (main): Enhance test.
21887
21888 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21889
21890         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21891         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21892         declared by eglibc 2.11.2.
21893         * lib/stdio.in.h: Likewise.
21894
21895 2011-01-31  Eric Blake  <eblake@redhat.com>
21896
21897         ignore-value: add missing test dependency
21898         * tests/test-ignore-value.c: Revert previous change; stdio.h
21899         provides off_t.
21900         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21901
21902 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21903
21904         mktime: clarify long_int width checking
21905         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21906         the top level, to make it clearer that the assumption about
21907         long_int width is being checked.  See
21908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21909
21910 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21911
21912         ignore-value: Fix self-test.
21913         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21914
21915 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21916
21917         TYPE_MAXIMUM: avoid theoretically undefined behavior
21918         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21919         negative number, which the C Standard says has undefined behavior.
21920         In practice this is not a problem, but might as well do it by the book.
21921         Reported by Rich Felker and Eric Blake; see
21922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21923         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21924         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21926         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21927         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21928         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21929
21930         mktime: #undef mktime before #defining it
21931         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21932
21933         mktime: systematically normalize tm_isdst comparisons
21934         * lib/mktime.c (isdst_differ): New function.
21935         (__mktime_internal): Use it systematically for all isdst comparisons.
21936         This completes the fix for libc BZ #6723, and removes the need for
21937         normalizing tm_isdst.  See
21938         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21939         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21940
21941         mktime: fix some integer overflow issues and sidestep the rest
21942
21943         This was prompted by a bug report by Benjamin Lindner for MinGW
21944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21945         His bug is due to signed integer overflow (0 - INT_MIN), and I
21946         I scanned through mktime.c looking for other integer overflow
21947         problems, fixing all the bugs I found.
21948
21949         Although the C Standard says the resulting code is still not safe
21950         in the presence of integer overflow, in practice it should be good
21951         enough for all real-world two's-complement implementations, except
21952         for debugging environments that deliberately trap on integer
21953         overflow (e.g., gcc -ftrapv).
21954
21955         * lib/mktime.c (WRAPV): New macro.
21956         (SHR): Also check that long_int and time_t shift right in the
21957         usual way, before using the fast-but-unportable method.
21958         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21959         used.  The code already assumed two's complement, so there's
21960         no need to test for alternatives.  All uses removed.
21961         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21962         the C standard.  Problem reported by Rich Felker in
21963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21964         (twos_complement_arithmetic): Also check long_int and time_t.
21965         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21966         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21967         (__mktime_internal): Avoid integer overflow with unary subtraction
21968         in two instances where -1 - X is an adequate replacement for -X,
21969         since the calculations are approximate.
21970
21971 2011-01-29  Eric Blake  <eblake@redhat.com>
21972
21973         mktime: avoid infinite loop
21974         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21975         type; behavior is still undefined but portable to all known targets.
21976         Reported by Rich Felker.
21977
21978 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21979
21980         rename, unlink, same-inode: Relicense.
21981         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21982         * modules/unlink (License): Likewise.
21983         * modules/same-inode (License): Likewise.
21984
21985 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21986
21987         mktime: avoid problems on NetBSD 5 / i386
21988         * lib/mktime.c (long_int): New type.  This works around a problem
21989         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21990         but time_t is 64 bits, and where I expect the existing code is
21991         wrong in some cases.
21992         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21993         (ydhms_diff): Bring back the compile-time check for wide-enough
21994         year and yday.
21995
21996         mktime: fix misspelling in comment
21997         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21998         This merges all recent glibc changes of importance.
21999
22000 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22001
22002         move-if-change: cope with concurrent mv of identical file.
22003         * build-aux/move-if-change (CMPPROG): Accept environment
22004         variable as an override for `cmp'.
22005         (usage): Document CMPPROG.
22006         Adjust comparison to drop stdout.  Cope with failure of mv if
22007         the target file exists and is identical to the source, for
22008         parallel builds.
22009         Report from H.J. Lu against binutils in PR binutils/12283.
22010
22011 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22012
22013         * users.txt: Mention sharutils.
22014
22015 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22016
22017         * users.txt: Mention OATH Toolkit.
22018
22019 2011-01-27  Bruno Haible  <bruno@clisp.org>
22020
22021         Prepare for supporting FreeBSD 10.
22022         * build-aux/config.libpath: Remove handling of freebsd1*.
22023
22024 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22025
22026         Prepare for supporting FreeBSD 10.
22027         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22028         match FreeBSD 10.0.
22029
22030 2011-01-27  Bruno Haible  <bruno@clisp.org>
22031
22032         vma-iter, get-rusage-as: Add OpenBSD support.
22033         * modules/vma-iter (configure.ac): Test for mquery.
22034         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22035         * lib/vma-iter.c: Include <sys/mman.h>.
22036         (vma_iterate): Add an implementation based on mquery().
22037         * lib/resource-ext.h (get_rusage_as): Update comments.
22038         * lib/get-rusage-as.c: Likewise.
22039         * lib/get-rusage-data.c: Likewise.
22040
22041 2011-01-26  Karl Berry  <karl@gnu.org>
22042
22043         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22044         variables to make it easier to override the makeinfo program used.
22045
22046 2011-01-26  Eric Blake  <eblake@redhat.com>
22047
22048         fcntl: work around Haiku F_DUPFD bugs
22049         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22050         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22051         cloexec bit on duplication.
22052         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22053
22054 2011-01-26  Bruno Haible  <bruno@clisp.org>
22055
22056         Enable memory leak tests on AIX.
22057         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22058         * tests/test-fprintf-posix3.c (main): Likewise.
22059
22060 2011-01-26  Bruno Haible  <bruno@clisp.org>
22061
22062         Tests for module 'get-rusage-data'.
22063         * modules/get-rusage-data-tests: New file.
22064         * tests/test-get-rusage-data.c: New file.
22065
22066         New module 'get-rusage-data'.
22067         * lib/resource-ext.h (get_rusage_data): New declaration.
22068         * lib/get-rusage-data.c: New file.
22069         * modules/get-rusage-data: New file.
22070
22071 2011-01-25  Bruno Haible  <bruno@clisp.org>
22072
22073         get-rusage-as: Allow for easier testing.
22074         * lib/resource-ext.h (get_rusage_as): Add comment.
22075         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22076         (main): New function for interactive testing.
22077
22078 2011-01-25  Bruno Haible  <bruno@clisp.org>
22079
22080         vma-iter: Treat Haiku like BeOS.
22081         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22082         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22083
22084 2011-01-25  Eric Blake  <eblake@redhat.com>
22085
22086         c-stack: fix regression on cygwin when libsigsegv is present
22087         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22088
22089 2011-01-24  Bruno Haible  <bruno@clisp.org>
22090
22091         vma-iter: Avoid empty intervals.
22092         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22093         on an empty interval.
22094
22095 2011-01-24  Jim Meyering  <meyering@redhat.com>
22096
22097         u64: remove unnecessary #include
22098         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22099
22100 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22101
22102         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22103         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22104
22105 2011-01-23  Bruno Haible  <bruno@clisp.org>
22106
22107         New module 'vma-iter'.
22108         * lib/vma-iter.h: New file.
22109         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22110         * modules/vma-iter: New file.
22111         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22112         for get_rusage_as_via_iterator.
22113         (vma_iterate_callback): New function.
22114         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22115         * modules/get-rusage-as (Depends-on): Add vma-iter.
22116
22117 2011-01-23  Bruno Haible  <bruno@clisp.org>
22118
22119         uninorm: Tweak includes.
22120         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22121         Reported by Jim Meyering.
22122
22123 2011-01-23  Bruno Haible  <bruno@clisp.org>
22124
22125         get-rusage-as: Improve on NetBSD.
22126         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22127         /proc, like on FreeBSD.
22128
22129 2011-01-23  Jim Meyering  <meyering@redhat.com>
22130
22131         xreadlink.h: remove unnecessary #include
22132         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22133
22134         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22135         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22136
22137 2011-01-23  Bruno Haible  <bruno@clisp.org>
22138
22139         get-rusage-as: Fix bug.
22140         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22141         original limit when aborting the first loop.
22142
22143 2011-01-23  Bruno Haible  <bruno@clisp.org>
22144
22145         wctype: Ensure valid C syntax.
22146         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22147         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22148
22149 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22153         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22154         as they are needed only for configure's test case.
22155         This removes two unnecessary symbols from config.h.
22156
22157         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22158         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22160         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22161         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22162         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22164         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22165         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22166         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22167         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22169         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22170         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22171         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22172         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22173         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22174         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22175
22176 2011-01-21  Eric Blake  <eblake@redhat.com>
22177
22178         maintainer-makefile: work with older git for submodule check
22179         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22180         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22181         Reported by Matthias Bolte.
22182
22183         bootstrap: minor portability fixes
22184         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22185         (usage): Omit leading capital and trailing . on help phrases, per
22186         GNU Coding Standards.
22187         (check_versions, top level): Prefix messages with script name.
22188
22189 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22190
22191         bootstrap: support --no-git option
22192         * build-aux/bootstrap: Add --no-git option, to be used when
22193         --gnulib-srcdir points to the exact desired checkout.
22194
22195 2011-01-21  Eric Blake  <eblake@redhat.com>
22196
22197         strerror_r-posix: work with glibc 2.13
22198         * lib/strerror_r.c (strerror_r): Fix return type.
22199
22200 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22201             Bruno Haible  <bruno@clisp.org>
22202
22203         uN_strstr: New unit tests.
22204         * modules/unistr/u8-strstr-tests: New file.
22205         * modules/unistr/u16-strstr-tests: New file.
22206         * modules/unistr/u32-strstr-tests: New file.
22207         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22208         * tests/unistr/test-u8-strstr.c: New file.
22209         * tests/unistr/test-u16-strstr.c: New file.
22210         * tests/unistr/test-u32-strstr.c: New file.
22211
22212 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22213             Bruno Haible  <bruno@clisp.org>
22214
22215         Make uN_strstr functions O(n) worst-case.
22216         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22217         16-bit and 32-bit unit cases, use the unibyte algorithm from
22218         lib/mbsstr.c.
22219         * lib/unistr/u8-strstr.c: Include <string.h>.
22220         (UNIT_IS_UINT8_T): New macro.
22221         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22222         (U_STRLEN, U_STRNLEN): New macros.
22223         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22224         (U_STRLEN, U_STRNLEN): New macros.
22225         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22226         (configure.ac): Update required libunistring version.
22227         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22228         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22229         malloca.
22230         (configure.ac): Update required libunistring version.
22231         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22232         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22233         malloca.
22234         (configure.ac): Update required libunistring version.
22235
22236 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22237             Bruno Haible  <bruno@clisp.org>
22238
22239         Prepare for faster uN_strstr functions.
22240         * lib/str-kmp.h: Support definable UNITs.
22241         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22242         needle_len argument.
22243         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22244         * lib/mbscasestr.c (mbscasestr): Likewise.
22245
22246 2011-01-21  Pádraig Brady <P@draigBrady.com>
22247
22248         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22249         * tests/test-malloca.c (main): Unset the environment variable
22250         to greatly speed up the test.
22251         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22252         * modules/malloca-tests: Depend on unsetenv.
22253
22254 2011-01-21  Pádraig Brady <P@draigBrady.com>
22255
22256         ignore-value: remove stdint dependency
22257         * lib/ignore-value.h: Remove <stdint.h>
22258         * modules/ignore-value: Remove stdint dependency.
22259
22260 2011-01-21  Jim Meyering  <meyering@redhat.com>
22261
22262         maint.mk: adjust variable name to be consistent with other gl_ vars
22263         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22264         to be lower case.
22265
22266 2011-01-20  Jim Meyering  <meyering@redhat.com>
22267
22268         maint.mk: make "check" depend on public-submodule-commit by default
22269         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22270
22271 2011-01-20  Bruno Haible  <bruno@clisp.org>
22272
22273         mbfile, mbiter: Complete change from 2008-12-21.
22274         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22275         * m4/mbiter.m4 (gl_MBITER): Likewise.
22276
22277 2011-01-20  Jim Meyering  <meyering@redhat.com>
22278
22279         init.sh: insert space between each function name and "()"
22280         * tests/init.sh: Make it a little easier to see that a function's
22281         name is "warn_", and not "warn" when looking at the first part of
22282         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22283
22284 2011-01-20  Jim Meyering  <meyering@redhat.com>
22285
22286         mountlist: clean up code formatting
22287         * lib/mountlist.c (read_file_system_list): Split a long line,
22288         correct bracing style, use NULL in place of "(struct statfs *)0",
22289         don't parenthesize return value, add spaces around "=" and after
22290         ";-in-for-stmt".
22291
22292 2011-01-14  Markus Duft <mduft@gentoo.org>
22293
22294         mountlist: add support for Interix
22295         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22296         Apply statvfs to all entries of /dev/fs.
22297         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22298         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22299
22300 2011-01-20  Jim Meyering  <meyering@redhat.com>
22301
22302         maint.mk: improve the public-submodule-commit rule
22303         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22304         to suppress printing of its commands... unless V=1.
22305         Add git submodule's --quiet option to suppress printing of e.g.,
22306         "Entering gnulib" output.
22307         "cd" into $(srcdir) before running git submodule.
22308
22309 2011-01-20  Bruno Haible  <bruno@clisp.org>
22310
22311         include_next: Fix bug introduced on 2011-01-18.
22312         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22313         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22314         ac_cv_header_... variable if the second argument is not 'check'.
22315         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22316         gl_NEXT_HEADERS_INTERNAL.
22317
22318 2011-01-20  Bruno Haible  <bruno@clisp.org>
22319
22320         Allow the user to avoid the GNULIB_TEST_* macros.
22321         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22322         Suggested by Paul Eggert.
22323
22324 2011-01-14  Jim Meyering  <meyering@redhat.com>
22325
22326         bootstrap: avoid failure when there is no .gitmodules file
22327         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22328         has been assigned to, even when its value is the empty string.
22329         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22330         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22331         Reported by John W. Eaton <jwe@gnu.org>.
22332
22333 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22334
22335         assume <ctype.h>, ..., <time.h> exist
22336         For years gnulib has been assuming the existence of the headers
22337         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22338         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22339         them, since they don't appear to be needed.
22340         * README (Portability guidelines): Document this.
22341         * lib/flock.c: Assume <fcntl.h> exists.
22342         * lib/regex_internal.h: Assume <locale.h> exists.
22343         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22344         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22345         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22346         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22347         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22348         * m4/regex.m4 (gl_REGEX): Likewise.
22349         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22350         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22351         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22352         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22353         * tests/test-argp.c: Likewise.
22354         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22355
22356         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22357         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22358         AA_APPLE_UNIVERSAL_BUILD.  See
22359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22360         * NEWS: Document this.
22361
22362 2011-01-19  Eric Blake  <eblake@redhat.com>
22363
22364         c-stack: assume stack overflow if SA_SIGINFO unsupported
22365         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22366         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22367         sigaction will work.
22368         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22369         behavior match Linux.
22370         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22371
22372         stdbool-tests: accommodate Haiku
22373         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22374
22375         binary-io: fix O_TEXT on Haiku
22376         * modules/binary-io (Depends-on): Add fcntl-h.
22377         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22378         than blindly undefining O_TEXT.
22379         Reported by Scott McCreary.
22380
22381 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22382
22383         include_next: do not check for standard headers like stddef.h
22384
22385         I found this problem when modifying Emacs to use gnulib.
22386         I noticed that it added HAVE_STDDEF_H to config.h, even though
22387         gnulib always assumes <stddef.h> exists as per README and this
22388         symbol is unnecessary.
22389         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22390         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22391         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22392         faster for headers like stddef.h that are known to exist.
22393         (gl_CHECK_NEXT_HEADERS): Use it.
22394         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22395         rather than gl_CHECK_NEXT_HEADERS.
22396         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22397         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22398
22399 2011-01-18  Eric Blake  <eblake@redhat.com>
22400
22401         ansi-c++-opt: skip C++ dependency style if C++ is unused
22402         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22403         tests when we know C++ compilation is not desired.
22404         Reported by Scott McCreary.
22405
22406 2011-01-18  Bruno Haible  <bruno@clisp.org>
22407
22408         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22409         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22410         (main): Perform test also when getrlimit and setrlimit don't exist or
22411         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22412         limiting the address space size using setrlimit, compare the address
22413         space size before and after the the test.
22414         * tests/test-dprintf-posix2.c: Likewise.
22415         * tests/test-fprintf-posix3.sh: Update skip messages.
22416         * tests/test-dprintf-posix2.sh: Likewise.
22417         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22418         * modules/dprintf-posix-tests (Depends-on): Likewise.
22419         Reported by Bruce Korb <bkorb@gnu.org> and
22420         Gary V. Vaughan <gary@gnu.org>.
22421
22422 2011-01-18  Bruno Haible  <bruno@clisp.org>
22423
22424         get-rusage-as: Improvement for Cygwin.
22425         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22426         areas that are merely reserved.
22427
22428 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22429
22430         strftime: remove dependencies on multibyte modules
22431
22432         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22433         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22434         only if __osf__ is defined, and I suspect OSF doesn't need these
22435         other modules.  If my guess is wrong, we'll need to come up with a
22436         variant of strftime that doesn't need the multibyte modules.
22437
22438         I discovered this problem when attempting modify Emacs to use the
22439         strftime module.  With the previous gnulib, this caused Emacs to
22440         need 31 new files, ranging from lib/config.charset to
22441         m4/wint_t.m4.  This was overkill and I expect would be offputting
22442         to the Emacs maintainers.  After this change, only 6 new files are
22443         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22444         stdbool.m4, and tm_gmtoff.m4.
22445
22446         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22447         Suggested by Bruno Haible in
22448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22450         and do not check for wchar.h.
22451         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22452         (Depends-on): Remove mbrlen, mbsinit, wchar.
22453
22454 2011-01-18  Bruno Haible  <bruno@clisp.org>
22455
22456         Tests for module 'get-rusage-as'.
22457         * modules/get-rusage-as-tests: New file.
22458         * tests/test-get-rusage-as.c: New file.
22459
22460         New module 'get-rusage-as'.
22461         * modules/get-rusage-as: New file.
22462         * lib/resource-ext.h: New file.
22463         * lib/get-rusage-as.c: New file.
22464
22465 2011-01-17  Eric Blake  <eblake@redhat.com>
22466
22467         sigaction: relax license from LGPLv3+ to LGPLv2+
22468         * modules/sigaction (License): Relax to LGPLv2+.
22469
22470 2011-01-14  Bruno Haible  <bruno@clisp.org>
22471
22472         filemode: Make function declarations usable in C++ mode.
22473         * lib/filemode.h: Enclose function declarations in extern "C" block.
22474         Reported by John W. Eaton <jwe@gnu.org>.
22475
22476 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22477
22478         save-cwd: no longer include "xgetcwd.h"
22479         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22480         This avoids a compilation failure in projects that use save-cwd
22481         without also using the xgetcwd module.
22482
22483 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22484
22485         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22486         This is so that a program like Emacs, which needs only dtoastr,
22487         does not have to bother with distributing and compiling ftoastr
22488         and ldtoastr.
22489         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22490         * modules/dtoastr, modules/ldtoastr: New files.
22491         * modules/ftoastr: Now works just for 'float'.
22492         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22493         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22494         dtoastr.c, ldtoastr.c.
22495
22496 2011-01-11  Jim Meyering  <meyering@redhat.com>
22497
22498         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22499         There is no need to work around the lack of the fchdir function,
22500         since gnulib can now provide a replacement when required.
22501         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22502         * modules/save-cwd (Depends-on): Add fchdir.
22503
22504 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22505
22506         openat, save-cwd: avoid xmalloc
22507
22508         This removes a direct (but undocumented) dependency of openat on
22509         xalloc, along with an indirect dependency via save-cwd.  It also
22510         removes a dependency of save-cwd on xgetcwd, and thereby
22511         indirectly on xalloc.  This change causes the openat substitute
22512         to fall back on save_cwd when memory is tight, and for save_cwd to
22513         fail instead of dying when memory is tight, but that's good enough.
22514         Problem and initial idea for fix reported by Bastien Roucaries in
22515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22516
22517         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22518         xalloc.h (for xmalloc).
22519         (openat_proc_name): Use malloc, not xmalloc.
22520         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22521         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22522
22523         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22524         This avoids heap allocation for file names whose lengths are in
22525         the range 512..1023, with the upper bound increasing to at most
22526         4031 depending on the platform's PATH_MAX.  (We do not want
22527         pathmax.h here as it might supply a non-constant PATH_MAX.)
22528         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22529         Perhaps they should be moved to malloca.h?
22530         (OPENAT_BUFFER_SIZE): Use them.
22531
22532 2011-01-10  Bruno Haible  <bruno@clisp.org>
22533
22534         doc: Update users.txt.
22535         * users.txt: Add recutils.
22536
22537 2011-01-09  Karl Berry  <karl@gnu.org>
22538
22539         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22540
22541         * doc/configmake.texi: New file.
22542         * doc/gnulib.texi: Include it.
22543         * modules/configmake: Move documentation from here.
22544
22545 2011-01-09  Bruno Haible  <bruno@clisp.org>
22546
22547         Update to Unicode 6.0.0.
22548         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22549         (get_lbp): Update for Unicode 6.0.0.
22550         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22551         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22552         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22553         U+11001, U+11038..U+11046. Remove U+06DE.
22554         (uc_width): Fix bounds of planes.
22555         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22556         lib/uniwidth/width.c.
22557         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22558         trailing whitespace removed.
22559         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22560         without comments, but with the original copyright notice.
22561         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22562         * lib/unicase/ignorable.h: Likewise.
22563         * lib/unicase/tocasefold.h: Likewise.
22564         * lib/unicase/tolower.h: Likewise.
22565         * lib/unicase/totitle.h: Likewise.
22566         * lib/unicase/toupper.h: Likewise.
22567         * lib/unictype/bidi_of.h: Likewise.
22568         * lib/unictype/blocks.h: Likewise.
22569         * lib/unictype/categ_C.h: Likewise.
22570         * lib/unictype/categ_Cn.h: Likewise.
22571         * lib/unictype/categ_L.h: Likewise.
22572         * lib/unictype/categ_Ll.h: Likewise.
22573         * lib/unictype/categ_Lm.h: Likewise.
22574         * lib/unictype/categ_Lo.h: Likewise.
22575         * lib/unictype/categ_Lu.h: Likewise.
22576         * lib/unictype/categ_M.h: Likewise.
22577         * lib/unictype/categ_Mc.h: Likewise.
22578         * lib/unictype/categ_Me.h: Likewise.
22579         * lib/unictype/categ_Mn.h: Likewise.
22580         * lib/unictype/categ_N.h: Likewise.
22581         * lib/unictype/categ_Nd.h: Likewise.
22582         * lib/unictype/categ_No.h: Likewise.
22583         * lib/unictype/categ_P.h: Likewise.
22584         * lib/unictype/categ_Po.h: Likewise.
22585         * lib/unictype/categ_S.h: Likewise.
22586         * lib/unictype/categ_Sc.h: Likewise.
22587         * lib/unictype/categ_Sk.h: Likewise.
22588         * lib/unictype/categ_Sm.h: Likewise.
22589         * lib/unictype/categ_So.h: Likewise.
22590         * lib/unictype/categ_of.h: Likewise.
22591         * lib/unictype/combining.h: Likewise.
22592         * lib/unictype/ctype_alnum.h: Likewise.
22593         * lib/unictype/ctype_alpha.h: Likewise.
22594         * lib/unictype/ctype_graph.h: Likewise.
22595         * lib/unictype/ctype_lower.h: Likewise.
22596         * lib/unictype/ctype_print.h: Likewise.
22597         * lib/unictype/ctype_punct.h: Likewise.
22598         * lib/unictype/ctype_upper.h: Likewise.
22599         * lib/unictype/decdigit.h: Likewise.
22600         * lib/unictype/digit.h: Likewise.
22601         * lib/unictype/numeric.h: Likewise.
22602         * lib/unictype/pr_alphabetic.h: Likewise.
22603         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22604         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22605         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22606         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22607         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22608         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22609         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22610         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22611         * lib/unictype/pr_case_ignorable.h: Likewise.
22612         * lib/unictype/pr_cased.h: Likewise.
22613         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22614         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22615         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22616         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22617         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22618         * lib/unictype/pr_combining.h: Likewise.
22619         * lib/unictype/pr_composite.h: Likewise.
22620         * lib/unictype/pr_currency_symbol.h: Likewise.
22621         * lib/unictype/pr_decimal_digit.h: Likewise.
22622         * lib/unictype/pr_deprecated.h: Likewise.
22623         * lib/unictype/pr_format_control.h: Likewise.
22624         * lib/unictype/pr_grapheme_base.h: Likewise.
22625         * lib/unictype/pr_grapheme_extend.h: Likewise.
22626         * lib/unictype/pr_grapheme_link.h: Likewise.
22627         * lib/unictype/pr_id_continue.h: Likewise.
22628         * lib/unictype/pr_id_start.h: Likewise.
22629         * lib/unictype/pr_ideographic.h: Likewise.
22630         * lib/unictype/pr_lowercase.h: Likewise.
22631         * lib/unictype/pr_math.h: Likewise.
22632         * lib/unictype/pr_numeric.h: Likewise.
22633         * lib/unictype/pr_other_alphabetic.h: Likewise.
22634         * lib/unictype/pr_other_id_continue.h: Likewise.
22635         * lib/unictype/pr_other_math.h: Likewise.
22636         * lib/unictype/pr_punctuation.h: Likewise.
22637         * lib/unictype/pr_sentence_terminal.h: Likewise.
22638         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22639         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22640         * lib/unictype/pr_unified_ideograph.h: Likewise.
22641         * lib/unictype/pr_uppercase.h: Likewise.
22642         * lib/unictype/pr_xid_continue.h: Likewise.
22643         * lib/unictype/pr_xid_start.h: Likewise.
22644         * lib/unictype/scripts.h: Likewise.
22645         * lib/unictype/scripts_byname.gperf: Likewise.
22646         * lib/unictype/sy_java_ident.h: Likewise.
22647         * lib/unigbrk/gbrkprop.h: Likewise.
22648         * lib/unilbrk/lbrkprop1.h: Likewise.
22649         * lib/unilbrk/lbrkprop2.h: Likewise.
22650         * lib/uninorm/decomposition-table2.h: Likewise.
22651         * lib/uniwbrk/wbrkprop.h: Likewise.
22652         * tests/unicase/test-cased.c: Likewise.
22653         * tests/unicase/test-ignorable.c: Likewise.
22654         * tests/unicase/test-uc_tolower.c: Likewise.
22655         * tests/unicase/test-uc_totitle.c: Likewise.
22656         * tests/unicase/test-uc_toupper.c: Likewise.
22657         * tests/unictype/test-categ_C.c: Likewise.
22658         * tests/unictype/test-categ_Cn.c: Likewise.
22659         * tests/unictype/test-categ_L.c: Likewise.
22660         * tests/unictype/test-categ_Ll.c: Likewise.
22661         * tests/unictype/test-categ_Lm.c: Likewise.
22662         * tests/unictype/test-categ_Lo.c: Likewise.
22663         * tests/unictype/test-categ_Lu.c: Likewise.
22664         * tests/unictype/test-categ_M.c: Likewise.
22665         * tests/unictype/test-categ_Mc.c: Likewise.
22666         * tests/unictype/test-categ_Me.c: Likewise.
22667         * tests/unictype/test-categ_Mn.c: Likewise.
22668         * tests/unictype/test-categ_N.c: Likewise.
22669         * tests/unictype/test-categ_Nd.c: Likewise.
22670         * tests/unictype/test-categ_No.c: Likewise.
22671         * tests/unictype/test-categ_P.c: Likewise.
22672         * tests/unictype/test-categ_Po.c: Likewise.
22673         * tests/unictype/test-categ_S.c: Likewise.
22674         * tests/unictype/test-categ_Sc.c: Likewise.
22675         * tests/unictype/test-categ_Sk.c: Likewise.
22676         * tests/unictype/test-categ_Sm.c: Likewise.
22677         * tests/unictype/test-categ_So.c: Likewise.
22678         * tests/unictype/test-ctype_alnum.c: Likewise.
22679         * tests/unictype/test-ctype_alpha.c: Likewise.
22680         * tests/unictype/test-ctype_graph.c: Likewise.
22681         * tests/unictype/test-ctype_lower.c: Likewise.
22682         * tests/unictype/test-ctype_print.c: Likewise.
22683         * tests/unictype/test-ctype_punct.c: Likewise.
22684         * tests/unictype/test-ctype_upper.c: Likewise.
22685         * tests/unictype/test-decdigit.h: Likewise.
22686         * tests/unictype/test-digit.h: Likewise.
22687         * tests/unictype/test-numeric.h: Likewise.
22688         * tests/unictype/test-pr_alphabetic.c: Likewise.
22689         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22690         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22691         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22692         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22693         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22694         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22695         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22696         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22697         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22698         * tests/unictype/test-pr_cased.c: Likewise.
22699         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22700         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22701         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22702         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22703         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22704         * tests/unictype/test-pr_combining.c: Likewise.
22705         * tests/unictype/test-pr_composite.c: Likewise.
22706         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22707         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22708         * tests/unictype/test-pr_deprecated.c: Likewise.
22709         * tests/unictype/test-pr_format_control.c: Likewise.
22710         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22711         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22712         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22713         * tests/unictype/test-pr_id_continue.c: Likewise.
22714         * tests/unictype/test-pr_id_start.c: Likewise.
22715         * tests/unictype/test-pr_ideographic.c: Likewise.
22716         * tests/unictype/test-pr_lowercase.c: Likewise.
22717         * tests/unictype/test-pr_math.c: Likewise.
22718         * tests/unictype/test-pr_numeric.c: Likewise.
22719         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22720         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22721         * tests/unictype/test-pr_other_math.c: Likewise.
22722         * tests/unictype/test-pr_punctuation.c: Likewise.
22723         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22724         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22725         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22726         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22727         * tests/unictype/test-pr_uppercase.c: Likewise.
22728         * tests/unictype/test-pr_xid_continue.c: Likewise.
22729         * tests/unictype/test-pr_xid_start.c: Likewise.
22730         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22731         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22732         changes.
22733         * lib/unictype/categ_Cc.h: Likewise.
22734         * lib/unictype/categ_Cf.h: Likewise.
22735         * lib/unictype/categ_Co.h: Likewise.
22736         * lib/unictype/categ_Cs.h: Likewise.
22737         * lib/unictype/categ_Lt.h: Likewise.
22738         * lib/unictype/categ_Nl.h: Likewise.
22739         * lib/unictype/categ_Pc.h: Likewise.
22740         * lib/unictype/categ_Pd.h: Likewise.
22741         * lib/unictype/categ_Pe.h: Likewise.
22742         * lib/unictype/categ_Pf.h: Likewise.
22743         * lib/unictype/categ_Pi.h: Likewise.
22744         * lib/unictype/categ_Ps.h: Likewise.
22745         * lib/unictype/categ_Z.h: Likewise.
22746         * lib/unictype/categ_Zl.h: Likewise.
22747         * lib/unictype/categ_Zp.h: Likewise.
22748         * lib/unictype/categ_Zs.h: Likewise.
22749         * lib/unictype/ctype_blank.h: Likewise.
22750         * lib/unictype/ctype_cntrl.h: Likewise.
22751         * lib/unictype/ctype_digit.h: Likewise.
22752         * lib/unictype/ctype_space.h: Likewise.
22753         * lib/unictype/ctype_xdigit.h: Likewise.
22754         * lib/unictype/mirror.h: Likewise.
22755         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22756         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22757         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22758         * lib/unictype/pr_bidi_control.h: Likewise.
22759         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22760         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22761         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22762         * lib/unictype/pr_bidi_pdf.h: Likewise.
22763         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22764         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22765         * lib/unictype/pr_dash.h: Likewise.
22766         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22767         * lib/unictype/pr_diacritic.h: Likewise.
22768         * lib/unictype/pr_extender.h: Likewise.
22769         * lib/unictype/pr_hex_digit.h: Likewise.
22770         * lib/unictype/pr_hyphen.h: Likewise.
22771         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22772         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22773         * lib/unictype/pr_ignorable_control.h: Likewise.
22774         * lib/unictype/pr_iso_control.h: Likewise.
22775         * lib/unictype/pr_join_control.h: Likewise.
22776         * lib/unictype/pr_left_of_pair.h: Likewise.
22777         * lib/unictype/pr_line_separator.h: Likewise.
22778         * lib/unictype/pr_logical_order_exception.h: Likewise.
22779         * lib/unictype/pr_non_break.h: Likewise.
22780         * lib/unictype/pr_not_a_character.h: Likewise.
22781         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22782         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22783         * lib/unictype/pr_other_id_start.h: Likewise.
22784         * lib/unictype/pr_other_lowercase.h: Likewise.
22785         * lib/unictype/pr_other_uppercase.h: Likewise.
22786         * lib/unictype/pr_paired_punctuation.h: Likewise.
22787         * lib/unictype/pr_paragraph_separator.h: Likewise.
22788         * lib/unictype/pr_pattern_syntax.h: Likewise.
22789         * lib/unictype/pr_pattern_white_space.h: Likewise.
22790         * lib/unictype/pr_private_use.h: Likewise.
22791         * lib/unictype/pr_quotation_mark.h: Likewise.
22792         * lib/unictype/pr_radical.h: Likewise.
22793         * lib/unictype/pr_soft_dotted.h: Likewise.
22794         * lib/unictype/pr_space.h: Likewise.
22795         * lib/unictype/pr_titlecase.h: Likewise.
22796         * lib/unictype/pr_variation_selector.h: Likewise.
22797         * lib/unictype/pr_white_space.h: Likewise.
22798         * lib/unictype/pr_zero_width.h: Likewise.
22799         * lib/unictype/sy_c_ident.h: Likewise.
22800         * lib/unictype/sy_c_whitespace.h: Likewise.
22801         * lib/unictype/sy_java_whitespace.h: Likewise.
22802         * lib/uninorm/composition-table.gperf: Likewise.
22803         * lib/uninorm/decomposition-table1.h: Likewise.
22804         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22805         LB8.
22806         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22807         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22808         * modules/unictype/*: Bump version number of expected libunistring
22809         version.
22810
22811 2011-01-09  Bruno Haible  <bruno@clisp.org>
22812
22813         Update to Unicode 5.2.0.
22814         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22815         trailing whitespace removed.
22816
22817 2011-01-09  Bruno Haible  <bruno@clisp.org>
22818
22819         New Unicode character properties, from Unicode 5.2.0.
22820         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22821         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22822         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22823         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22824         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22825         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22826         uc_is_property_cased, uc_is_property_case_ignorable,
22827         uc_is_property_changes_when_lowercased,
22828         uc_is_property_changes_when_uppercased,
22829         uc_is_property_changes_when_titlecased,
22830         uc_is_property_changes_when_casefolded,
22831         uc_is_property_changes_when_casemapped): New declarations.
22832         * lib/unictype/pr_byname.gperf: Add the new properties.
22833         * modules/unictype/property-byname (Depends-on): Depend on the new
22834         properties modules.
22835         * modules/unictype/property-all (Depends-on): Likewise.
22836         * MODULES.html.sh (Unicode string functions): Add
22837         unictype/property-case-ignorable, unictype/property-cased,
22838         unictype/property-changes-when-casefolded,
22839         unictype/property-changes-when-casemapped,
22840         unictype/property-changes-when-lowercased,
22841         unictype/property-changes-when-titlecased,
22842         unictype/property-changes-when-uppercased.
22843
22844         New module 'unictype/property-changes-when-casemapped'.
22845         * modules/unictype/property-changes-when-casemapped: New file.
22846         * lib/unictype/pr_changes_when_casemapped.c: New file.
22847         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22848         generated by gen-uni-tables.
22849         * modules/unictype/property-changes-when-casemapped-tests: New file.
22850         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22851         automatically generated by gen-uni-tables.
22852
22853         New module 'unictype/property-changes-when-casefolded'.
22854         * modules/unictype/property-changes-when-casefolded: New file.
22855         * lib/unictype/pr_changes_when_casefolded.c: New file.
22856         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22857         generated by gen-uni-tables.
22858         * modules/unictype/property-changes-when-casefolded-tests: New file.
22859         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22860         automatically generated by gen-uni-tables.
22861
22862         New module 'unictype/property-changes-when-titlecased'.
22863         * modules/unictype/property-changes-when-titlecased: New file.
22864         * lib/unictype/pr_changes_when_titlecased.c: New file.
22865         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22866         generated by gen-uni-tables.
22867         * modules/unictype/property-changes-when-titlecased-tests: New file.
22868         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22869         automatically generated by gen-uni-tables.
22870
22871         New module 'unictype/property-changes-when-uppercased'.
22872         * modules/unictype/property-changes-when-uppercased: New file.
22873         * lib/unictype/pr_changes_when_uppercased.c: New file.
22874         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22875         generated by gen-uni-tables.
22876         * modules/unictype/property-changes-when-uppercased-tests: New file.
22877         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22878         automatically generated by gen-uni-tables.
22879
22880         New module 'unictype/property-changes-when-lowercased'.
22881         * modules/unictype/property-changes-when-lowercased: New file.
22882         * lib/unictype/pr_changes_when_lowercased.c: New file.
22883         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22884         generated by gen-uni-tables.
22885         * modules/unictype/property-changes-when-lowercased-tests: New file.
22886         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22887         automatically generated by gen-uni-tables.
22888
22889         New module 'unictype/property-case-ignorable'.
22890         * modules/unictype/property-case-ignorable: New file.
22891         * lib/unictype/pr_case_ignorable.c: New file.
22892         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22893         by gen-uni-tables.
22894         * modules/unictype/property-case-ignorable-tests: New file.
22895         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22896         generated by gen-uni-tables.
22897
22898         New module 'unictype/property-cased'.
22899         * modules/unictype/property-cased: New file.
22900         * lib/unictype/pr_cased.c: New file.
22901         * lib/unictype/pr_cased.h: New file, automatically generated by
22902         gen-uni-tables.
22903         * modules/unictype/property-cased-tests: New file.
22904         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22905         gen-uni-tables.
22906
22907 2011-01-09  Bruno Haible  <bruno@clisp.org>
22908
22909         Update to Unicode 5.2.0.
22910         * lib/gen-uni-tables.c (output_predicate, output_category,
22911         output_combclass, output_bidi_category, output_decimal_digit_test,
22912         output_decimal_digit, output_digit_test, output_digit,
22913         output_numeric_test, output_numeric, output_mirror, output_scripts,
22914         output_scripts_byname, output_blocks, output_ident_category): Fix
22915         comment header.
22916         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22917         get_wbp.
22918         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22919         items.
22920         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22921         Changes_When_Lowercased, Changes_When_Uppercased,
22922         Changes_When_Titlecased, Changes_When_Casefolded,
22923         Changes_When_Casemapped.
22924         (is_property_alphabetic, is_property_default_ignorable_code_point):
22925         Update for Unicode 5.2.0.
22926         (is_property_cased, is_property_case_ignorable,
22927         is_property_changes_when_lowercased,
22928         is_property_changes_when_uppercased,
22929         is_property_changes_when_titlecased,
22930         is_property_changes_when_casefolded,
22931         is_property_changes_when_casemapped): New functions.
22932         (output_properties): Output also the properties cased, case_ignorable,
22933         changes_when_lowercased, changes_when_uppercased,
22934         changes_when_titlecased, changes_when_casefolded,
22935         changes_when_casemapped.
22936         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22937         Unicode TR#11 revision 17 -> 19.
22938         (LBP_CP): New enumeration value.
22939         (LBP_*): Adjust values accordingly.
22940         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22941         TR#14 revision 22 -> 24.
22942         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22943         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22944         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22945         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22946         is_WBP_MIDLETTER.
22947         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22948         the code1 and code2 of each composition rule.
22949         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22950         * lib/unicase/ignorable.h: Likewise.
22951         * lib/unicase/tocasefold.h: Likewise.
22952         * lib/unicase/tolower.h: Likewise.
22953         * lib/unicase/totitle.h: Likewise.
22954         * lib/unicase/toupper.h: Likewise.
22955         * lib/unictype/bidi_of.h: Likewise.
22956         * lib/unictype/blocks.h: Likewise.
22957         * lib/unictype/categ_C.h: Likewise.
22958         * lib/unictype/categ_Cf.h: Likewise.
22959         * lib/unictype/categ_Cn.h: Likewise.
22960         * lib/unictype/categ_L.h: Likewise.
22961         * lib/unictype/categ_Ll.h: Likewise.
22962         * lib/unictype/categ_Lm.h: Likewise.
22963         * lib/unictype/categ_Lo.h: Likewise.
22964         * lib/unictype/categ_Lu.h: Likewise.
22965         * lib/unictype/categ_M.h: Likewise.
22966         * lib/unictype/categ_Mc.h: Likewise.
22967         * lib/unictype/categ_Mn.h: Likewise.
22968         * lib/unictype/categ_N.h: Likewise.
22969         * lib/unictype/categ_Nd.h: Likewise.
22970         * lib/unictype/categ_Nl.h: Likewise.
22971         * lib/unictype/categ_No.h: Likewise.
22972         * lib/unictype/categ_P.h: Likewise.
22973         * lib/unictype/categ_Pd.h: Likewise.
22974         * lib/unictype/categ_Po.h: Likewise.
22975         * lib/unictype/categ_S.h: Likewise.
22976         * lib/unictype/categ_Sc.h: Likewise.
22977         * lib/unictype/categ_So.h: Likewise.
22978         * lib/unictype/categ_of.h: Likewise.
22979         * lib/unictype/combining.h: Likewise.
22980         * lib/unictype/ctype_alnum.h: Likewise.
22981         * lib/unictype/ctype_alpha.h: Likewise.
22982         * lib/unictype/ctype_graph.h: Likewise.
22983         * lib/unictype/ctype_lower.h: Likewise.
22984         * lib/unictype/ctype_print.h: Likewise.
22985         * lib/unictype/ctype_punct.h: Likewise.
22986         * lib/unictype/ctype_upper.h: Likewise.
22987         * lib/unictype/decdigit.h: Likewise.
22988         * lib/unictype/digit.h: Likewise.
22989         * lib/unictype/numeric.h: Likewise.
22990         * lib/unictype/pr_alphabetic.h: Likewise.
22991         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22992         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22993         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22994         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22995         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22996         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22997         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22998         * lib/unictype/pr_combining.h: Likewise.
22999         * lib/unictype/pr_composite.h: Likewise.
23000         * lib/unictype/pr_currency_symbol.h: Likewise.
23001         * lib/unictype/pr_dash.h: Likewise.
23002         * lib/unictype/pr_decimal_digit.h: Likewise.
23003         * lib/unictype/pr_deprecated.h: Likewise.
23004         * lib/unictype/pr_diacritic.h: Likewise.
23005         * lib/unictype/pr_extender.h: Likewise.
23006         * lib/unictype/pr_grapheme_base.h: Likewise.
23007         * lib/unictype/pr_grapheme_extend.h: Likewise.
23008         * lib/unictype/pr_grapheme_link.h: Likewise.
23009         * lib/unictype/pr_id_continue.h: Likewise.
23010         * lib/unictype/pr_id_start.h: Likewise.
23011         * lib/unictype/pr_ideographic.h: Likewise.
23012         * lib/unictype/pr_ignorable_control.h: Likewise.
23013         * lib/unictype/pr_logical_order_exception.h: Likewise.
23014         * lib/unictype/pr_lowercase.h: Likewise.
23015         * lib/unictype/pr_numeric.h: Likewise.
23016         * lib/unictype/pr_other_alphabetic.h: Likewise.
23017         * lib/unictype/pr_punctuation.h: Likewise.
23018         * lib/unictype/pr_sentence_terminal.h: Likewise.
23019         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23020         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23021         * lib/unictype/pr_unified_ideograph.h: Likewise.
23022         * lib/unictype/pr_uppercase.h: Likewise.
23023         * lib/unictype/pr_xid_continue.h: Likewise.
23024         * lib/unictype/pr_xid_start.h: Likewise.
23025         * lib/unictype/pr_zero_width.h: Likewise.
23026         * lib/unictype/scripts.h: Likewise.
23027         * lib/unictype/scripts_byname.gperf: Likewise.
23028         * lib/unictype/sy_java_ident.h: Likewise.
23029         * lib/unigbrk/gbrkprop.h: Likewise.
23030         * lib/unilbrk/lbrkprop1.h: Likewise.
23031         * lib/unilbrk/lbrkprop2.h: Likewise.
23032         * lib/unilbrk/lbrktables.h: Likewise.
23033         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23034         LBP_CP. Implement rule LB30.
23035         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23036         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23037         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23038         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23039         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23040         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23041         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23042         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23043         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23044         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23045         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23046         bits instead of 16 bits in the code1 and code2 of each composition
23047         rule.
23048         (uc_composition): Update for Unicode 5.2.0.
23049         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23050         * lib/uninorm/decomposition-table2.h: Likewise.
23051         * lib/uniwbrk/wbrkprop.h: Likewise.
23052         * tests/unicase/test-cased.c: Likewise.
23053         * tests/unicase/test-ignorable.c: Likewise.
23054         * tests/unicase/test-uc_tolower.c: Likewise.
23055         * tests/unicase/test-uc_totitle.c: Likewise.
23056         * tests/unicase/test-uc_toupper.c: Likewise.
23057         * tests/unictype/test-categ_C.c: Likewise.
23058         * tests/unictype/test-categ_Cf.c: Likewise.
23059         * tests/unictype/test-categ_Cn.c: Likewise.
23060         * tests/unictype/test-categ_L.c: Likewise.
23061         * tests/unictype/test-categ_Ll.c: Likewise.
23062         * tests/unictype/test-categ_Lm.c: Likewise.
23063         * tests/unictype/test-categ_Lo.c: Likewise.
23064         * tests/unictype/test-categ_Lu.c: Likewise.
23065         * tests/unictype/test-categ_M.c: Likewise.
23066         * tests/unictype/test-categ_Mc.c: Likewise.
23067         * tests/unictype/test-categ_Mn.c: Likewise.
23068         * tests/unictype/test-categ_N.c: Likewise.
23069         * tests/unictype/test-categ_Nd.c: Likewise.
23070         * tests/unictype/test-categ_Nl.c: Likewise.
23071         * tests/unictype/test-categ_No.c: Likewise.
23072         * tests/unictype/test-categ_P.c: Likewise.
23073         * tests/unictype/test-categ_Pd.c: Likewise.
23074         * tests/unictype/test-categ_Po.c: Likewise.
23075         * tests/unictype/test-categ_S.c: Likewise.
23076         * tests/unictype/test-categ_Sc.c: Likewise.
23077         * tests/unictype/test-categ_So.c: Likewise.
23078         * tests/unictype/test-ctype_alnum.c: Likewise.
23079         * tests/unictype/test-ctype_alpha.c: Likewise.
23080         * tests/unictype/test-ctype_graph.c: Likewise.
23081         * tests/unictype/test-ctype_lower.c: Likewise.
23082         * tests/unictype/test-ctype_print.c: Likewise.
23083         * tests/unictype/test-ctype_punct.c: Likewise.
23084         * tests/unictype/test-ctype_upper.c: Likewise.
23085         * tests/unictype/test-decdigit.h: Likewise.
23086         * tests/unictype/test-digit.h: Likewise.
23087         * tests/unictype/test-numeric.h: Likewise.
23088         * tests/unictype/test-pr_alphabetic.c: Likewise.
23089         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23090         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23091         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23092         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23093         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23094         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23095         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23096         * tests/unictype/test-pr_combining.c: Likewise.
23097         * tests/unictype/test-pr_composite.c: Likewise.
23098         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23099         * tests/unictype/test-pr_dash.c: Likewise.
23100         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23101         * tests/unictype/test-pr_deprecated.c: Likewise.
23102         * tests/unictype/test-pr_diacritic.c: Likewise.
23103         * tests/unictype/test-pr_extender.c: Likewise.
23104         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23105         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23106         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23107         * tests/unictype/test-pr_id_continue.c: Likewise.
23108         * tests/unictype/test-pr_id_start.c: Likewise.
23109         * tests/unictype/test-pr_ideographic.c: Likewise.
23110         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23111         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23112         * tests/unictype/test-pr_lowercase.c: Likewise.
23113         * tests/unictype/test-pr_numeric.c: Likewise.
23114         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23115         * tests/unictype/test-pr_punctuation.c: Likewise.
23116         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23117         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23118         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23119         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23120         * tests/unictype/test-pr_uppercase.c: Likewise.
23121         * tests/unictype/test-pr_xid_continue.c: Likewise.
23122         * tests/unictype/test-pr_xid_start.c: Likewise.
23123         * tests/unictype/test-pr_zero_width.c: Likewise.
23124         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23125         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23126         changed behaviour: line breaking is now disallowed between a letter
23127         or '=' and '('.
23128         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23129         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23130         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23131         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23132         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23133         lib/uniwidth/width.c.
23134         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23135         without comments, but with the original copyright notice.
23136         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23137         changes.
23138         * lib/unictype/categ_Cc.h: Likewise.
23139         * lib/unictype/categ_Co.h: Likewise.
23140         * lib/unictype/categ_Cs.h: Likewise.
23141         * lib/unictype/categ_Lt.h: Likewise.
23142         * lib/unictype/categ_Me.h: Likewise.
23143         * lib/unictype/categ_Pc.h: Likewise.
23144         * lib/unictype/categ_Pe.h: Likewise.
23145         * lib/unictype/categ_Pf.h: Likewise.
23146         * lib/unictype/categ_Pi.h: Likewise.
23147         * lib/unictype/categ_Ps.h: Likewise.
23148         * lib/unictype/categ_Sk.h: Likewise.
23149         * lib/unictype/categ_Sm.h: Likewise.
23150         * lib/unictype/categ_Z.h: Likewise.
23151         * lib/unictype/categ_Zl.h: Likewise.
23152         * lib/unictype/categ_Zp.h: Likewise.
23153         * lib/unictype/categ_Zs.h: Likewise.
23154         * lib/unictype/ctype_blank.h: Likewise.
23155         * lib/unictype/ctype_cntrl.h: Likewise.
23156         * lib/unictype/ctype_digit.h: Likewise.
23157         * lib/unictype/ctype_space.h: Likewise.
23158         * lib/unictype/ctype_xdigit.h: Likewise.
23159         * lib/unictype/mirror.h: Likewise.
23160         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23161         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23162         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23163         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23164         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23165         * lib/unictype/pr_bidi_control.h: Likewise.
23166         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23167         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23168         * lib/unictype/pr_bidi_pdf.h: Likewise.
23169         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23170         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23171         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23172         * lib/unictype/pr_format_control.h: Likewise.
23173         * lib/unictype/pr_hex_digit.h: Likewise.
23174         * lib/unictype/pr_hyphen.h: Likewise.
23175         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23176         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23177         * lib/unictype/pr_iso_control.h: Likewise.
23178         * lib/unictype/pr_join_control.h: Likewise.
23179         * lib/unictype/pr_left_of_pair.h: Likewise.
23180         * lib/unictype/pr_line_separator.h: Likewise.
23181         * lib/unictype/pr_math.h: Likewise.
23182         * lib/unictype/pr_non_break.h: Likewise.
23183         * lib/unictype/pr_not_a_character.h: Likewise.
23184         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23185         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23186         * lib/unictype/pr_other_id_continue.h: Likewise.
23187         * lib/unictype/pr_other_id_start.h: Likewise.
23188         * lib/unictype/pr_other_lowercase.h: Likewise.
23189         * lib/unictype/pr_other_math.h: Likewise.
23190         * lib/unictype/pr_other_uppercase.h: Likewise.
23191         * lib/unictype/pr_paired_punctuation.h: Likewise.
23192         * lib/unictype/pr_paragraph_separator.h: Likewise.
23193         * lib/unictype/pr_pattern_syntax.h: Likewise.
23194         * lib/unictype/pr_pattern_white_space.h: Likewise.
23195         * lib/unictype/pr_private_use.h: Likewise.
23196         * lib/unictype/pr_quotation_mark.h: Likewise.
23197         * lib/unictype/pr_radical.h: Likewise.
23198         * lib/unictype/pr_soft_dotted.h: Likewise.
23199         * lib/unictype/pr_space.h: Likewise.
23200         * lib/unictype/pr_titlecase.h: Likewise.
23201         * lib/unictype/pr_variation_selector.h: Likewise.
23202         * lib/unictype/pr_white_space.h: Likewise.
23203         * lib/unictype/sy_c_ident.h: Likewise.
23204         * lib/unictype/sy_c_whitespace.h: Likewise.
23205         * lib/unictype/sy_java_whitespace.h: Likewise.
23206         * modules/uni*/*: Bump version number of expected libunistring version.
23207         Reported by Simon Josefsson.
23208
23209 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23210
23211         useless-if-before-free: fix typo in --help and make the internal,
23212         automatic version date update process work once again.
23213         --help output contained a NUL character instead of the
23214         backslash-zero that was intended.  Also, the "must lie within
23215         the first 8 lines" line is on line 9, and hence not getting
23216         automatically updated.
23217         * build-aux/useless-if-before-free: Fix the former by adding a
23218         backslash, and the latter by condensing the three lines of what-it-does
23219         to a single line, leaving one line of slack for the future.
23220
23221 2011-01-09  Bruno Haible  <bruno@clisp.org>
23222
23223         uniwidth/width: Fix width of U+1D173..U+1D17A.
23224         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23225         symbolic_width, output_width_property_test): New functions.
23226         (main): Invoke output_nonspacing_property, output_width_property_test.
23227         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23228         U+1D173..U+1D17A.
23229         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23230         1.
23231         * modules/uniwidth/*: Bump version number of expected libunistring
23232         version.
23233         * modules/unilbrk/*: Likewise.
23234
23235 2011-01-08  Bruno Haible  <bruno@clisp.org>
23236
23237         uninorm tests: Preserve copyright of Unicode data file.
23238         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23239         Mention modifications.
23240
23241 2011-01-08  Bruno Haible  <bruno@clisp.org>
23242
23243         gen-uni-tables: Prepare for Unicode 5.2.0.
23244         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23245         (debug_output_lbp, output_lbp): Update.
23246
23247 2011-01-08  Bruno Haible  <bruno@clisp.org>
23248
23249         unilbrk: Clarify gen-uni-tables.c code.
23250         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23251         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23252         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23253
23254 2011-01-07  Bruno Haible  <bruno@clisp.org>
23255
23256         strtod: Restore errno when successfully parsing Infinity or NaN.
23257         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23258         restore the original errno.
23259
23260 2011-01-07  Bruno Haible  <bruno@clisp.org>
23261
23262         remove test: Avoid failure on HP-UX 11.
23263         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23264
23265 2011-01-07  Bruno Haible  <bruno@clisp.org>
23266
23267         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23268         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23269         error code.
23270
23271 2011-01-07  Pádraig Brady <P@draigBrady.com>
23272
23273         ignore-value: fixup comments, and add Eric Blake
23274         as an author since he rewrote the macros.
23275         * lib/ignore-value.h (ignore_value):  State that
23276         we now support aggregates.  Also specify exactly
23277         when the GCC warn_unused_result feature was added.
23278
23279 2011-01-06  Eric Blake  <eblake@redhat.com>
23280
23281         ignore-value: support aggregate types
23282         * lib/ignore-value.h (ignore_value): Provide separate gcc
23283         definition.
23284         * modules/ignore-value-tests: New test module.
23285         * tests/test-ignore-value.c: New test.
23286
23287         maint.mk: improve sc_prohibit_strcmp regex
23288         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23289         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23290         definition of STRNEQ.
23291
23292         signal: work around Haiku issue with SIGBUS
23293         * lib/siglist.h: Add comment.
23294         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23295         strsignal's favoring of SIGSEGV.
23296         * tests/test-signal.c (main): Avoid test failure.
23297         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23298         Reported by Scott McCreary.
23299
23300         maint.mk: add pre-release check to ensure submodule commits are public
23301         * top/maint.mk (public-submodule-commit): New rule.
23302         (submodule-checks): New variable.
23303         (alpha beta stable): Depend on the variable.
23304
23305 2011-01-05  Pádraig Brady <P@draigBrady.com>
23306         and Jim Meyering  <meyering@redhat.com>
23307
23308         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23309         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23310         (ATTRIBUTE_DEPRECATED): Define.
23311         (_ignore_case): New function.
23312         (ignore_value): New macro, to replace the old function.
23313         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23314         * modules/ignore-value (Depends-on): Add stdint.
23315
23316 2011-01-04  Eric Blake  <eblake@redhat.com>
23317
23318         doc: regenerate INSTALL
23319         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23320         @firstparagraphindent support, now that autoconf dropped it.
23321         (INSTALL_PRELUDE): Reinstate old macro.
23322         * doc/install.texi: Resync from autoconf.
23323         * doc/INSTALL: Reflect recent autoconf update.
23324         * doc/INSTALL.ISO: Likewise.
23325         * doc/INSTALL.UTF-8: Likewise.
23326         Reported by Karl Berry.
23327
23328 2011-01-04  Bruce Korb  <address@hidden>
23329
23330         git-version-gen: avoid a sub-shell
23331         * build-aux/git-version-gen: Redirect stderr in `...` via
23332         "exec 2>...", rather than via an added sub-shell.
23333
23334 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23335
23336         git-version-gen: use (...) rather than sh -c '...'
23337         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23338         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23339
23340 2011-01-03  Jim Meyering  <meyering@redhat.com>
23341
23342         git-version-gen: convert leading TABs to spaces
23343         * build-aux/git-version-gen: Expand leading TABs.
23344
23345         git-version-gen: handle failed "git rev-list"
23346         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23347         from git and proceeding as if it had succeeded but printed no SHA1
23348         checksums, suppress the diagnostic and handle the failure.
23349         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23350
23351         git-version-gen: include command name in one more diagnostic
23352         * build-aux/git-version-gen: When the required .tarball-version file
23353         was missing or unreadable, you might see the diagnostic from "cat",
23354         but no trace of the name of the invoking script.  Now, you still see
23355         the diagnostic from cat, but also get one from "git-version-gen: ".
23356         Inspired by a patch from Bruce Korb.
23357
23358         update-copyright: adjust test to match changed code
23359         * tests/test-update-copyright.sh: Change test's expected output
23360         to match new actual output.
23361
23362 2011-01-02  Bruno Haible  <bruno@clisp.org>
23363
23364         getlogin_r: Avoid test failure on HP-UX 11.
23365         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23366         ERANGE when the second argument is zero.
23367         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23368         portability problem.
23369
23370 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23371
23372         * build-aux/update-copyright: doc Simon's changes
23373
23374 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23375
23376         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23377         environment variable.
23378
23379 2011-01-02  Bruno Haible  <bruno@clisp.org>
23380
23381         unigbrk: Avoid gcc warnings.
23382         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23383         unused variable.
23384         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23385         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23386         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23387         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23388         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23389         Change type of first argument to 'const char *'.
23390         (main): Remove unused variable.
23391         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23392         type of first argument to 'const char *'.
23393         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23394         Likewise.
23395         (main): Change type of variable 's'.
23396         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23397         to 'int'.
23398
23399 2011-01-02  Bruno Haible  <bruno@clisp.org>
23400
23401         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23402         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23403         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23404         bug.
23405         * lib/pwrite.c: Undo 2010-12-31 patch.
23406         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23407
23408 2011-01-02  Bruno Haible  <bruno@clisp.org>
23409
23410         pread: Fix test whether it works.
23411         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23412
23413 2011-01-02  Bruno Haible  <bruno@clisp.org>
23414
23415         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23416         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23417         ends in "6". Don't require a specific month name. Try also the locale
23418         names found on HP-UX 11 and Solaris 7.
23419
23420 2011-01-02  Bruno Haible  <bruno@clisp.org>
23421
23422         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23423         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23424         C linkage.
23425         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23426
23427 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23428
23429         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23430         for consistency, since the "cluster" term is not used elsewhere.
23431         * lib/unigbrk.in.h: Update name.
23432         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23433         * lib/unigbrk/u16-grapheme-next.c: Update name.
23434         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23435         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23436         * lib/unigbrk/u32-grapheme-next.c: Update name.
23437         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23438         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23439         * lib/unigbrk/u8-grapheme-next.c: Update name.
23440         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23441         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23442         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23443         Suggested by Bruno Haible.
23444
23445 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23446
23447         Remove module 'u8-grapheme-len' as too redundant with
23448         'u8-grapheme-next'.
23449         * modules/unigbrk/u8-grapheme-len: Delete file.
23450         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23451         * lib/unigbrk.in.h: Remove prototype for deleted function.
23452         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23453         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23454
23455         Remove module 'u16-grapheme-len' as too redundant with
23456         'u16-grapheme-next'.
23457         * modules/unigbrk/u16-grapheme-len: Delete file.
23458         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23459         * lib/unigbrk.in.h: Remove prototype for deleted function.
23460         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23461         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23462
23463         Remove module 'u32-grapheme-len' as too redundant with
23464         'u32-grapheme-next'.
23465         * modules/unigbrk/u32-grapheme-len: Delete file.
23466         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23467         * lib/unigbrk.in.h: Remove prototype for deleted function.
23468         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23469         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23470
23471         Suggested by Bruno Haible.
23472
23473 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23474
23475         * unigbrk.in.h: Fix typo: "ben" => "been".
23476         Reported by Bruno Haible.
23477
23478 2011-01-01  Jim Meyering  <meyering@redhat.com>
23479
23480         maint: update almost all copyright ranges to include 2011
23481         Run the new "make update-copyright" rule.
23482
23483 2011-01-01  Jim Meyering  <meyering@redhat.com>
23484
23485         maint: update-copyright: exempt doc/INSTALL*
23486         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23487         since they are generated.  Suggested by Bruno Haible.
23488
23489 2011-01-01  Jim Meyering  <meyering@redhat.com>
23490
23491         maint: refine the update-copyright rule
23492         * Makefile (update-copyright): Also exclude any file that includes
23493         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23494         code that merely generates the comment.
23495
23496 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23497
23498         New module 'u8-grapheme-len'.
23499         * modules/unigbrk/u8-grapheme-len: New file.
23500         * modules/unigbrk/u8-grapheme-len-tests: New file.
23501         * lib/unigbrk.in.h: Add prototype for new function.
23502         * lib/unigbrk/u8-grapheme-len.c: New file.
23503         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23504
23505         New module 'u16-grapheme-len'.
23506         * modules/unigbrk/u16-grapheme-len: New file.
23507         * modules/unigbrk/u16-grapheme-len-tests: New file.
23508         * lib/unigbrk.in.h: Add prototype for new function.
23509         * lib/unigbrk/u16-grapheme-len.c: New file.
23510         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23511
23512         New module 'u32-grapheme-len'.
23513         * modules/unigbrk/u32-grapheme-len: New file.
23514         * modules/unigbrk/u32-grapheme-len-tests: New file.
23515         * lib/unigbrk.in.h: Add prototype for new function.
23516         * lib/unigbrk/u32-grapheme-len.c: New file.
23517         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23518
23519         New module 'u8-grapheme-next'.
23520         * modules/unigbrk/u8-grapheme-next: New file.
23521         * modules/unigbrk/u8-grapheme-next-tests: New file.
23522         * lib/unigbrk.in.h: Add prototype for new function.
23523         * lib/unigbrk/u8-grapheme-next.c: New file.
23524         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23525
23526         New module 'u16-grapheme-next'.
23527         * modules/unigbrk/u16-grapheme-next: New file.
23528         * modules/unigbrk/u16-grapheme-next-tests: New file.
23529         * lib/unigbrk.in.h: Add prototype for new function.
23530         * lib/unigbrk/u16-grapheme-next.c: New file.
23531         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23532
23533         New module 'u32-grapheme-next'.
23534         * modules/unigbrk/u32-grapheme-next: New file.
23535         * modules/unigbrk/u32-grapheme-next-tests: New file.
23536         * lib/unigbrk.in.h: Add prototype for new function.
23537         * lib/unigbrk/u32-grapheme-next.c: New file.
23538         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23539
23540         New module 'u8-grapheme-prev'.
23541         * modules/unigbrk/u8-grapheme-prev: New file.
23542         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23543         * lib/unigbrk.in.h: Add prototype for new function.
23544         * lib/unigbrk/u8-grapheme-prev.c: New file.
23545         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23546
23547         New module 'u16-grapheme-prev'.
23548         * modules/unigbrk/u16-grapheme-prev: New file.
23549         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23550         * lib/unigbrk.in.h: Add prototype for new function.
23551         * lib/unigbrk/u16-grapheme-prev.c: New file.
23552         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23553
23554         New module 'u32-grapheme-prev'.
23555         * modules/unigbrk/u32-grapheme-prev: New file.
23556         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23557         * lib/unigbrk.in.h: Add prototype for new function.
23558         * lib/unigbrk/u32-grapheme-prev.c: New file.
23559         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23560
23561         New module 'u8-grapheme-breaks'.
23562         * modules/unigbrk/u8-grapheme-breaks: New file.
23563         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23564         * lib/unigbrk.in.h: Add prototype for new function.
23565         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23566         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23567
23568         New module 'u16-grapheme-breaks'.
23569         * modules/unigbrk/u16-grapheme-breaks: New file.
23570         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23571         * lib/unigbrk.in.h: Add prototype for new function.
23572         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23573         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23574
23575         New module 'u32-grapheme-breaks'.
23576         * modules/unigbrk/u32-grapheme-breaks: New file.
23577         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23578         * lib/unigbrk.in.h: Add prototype for new function.
23579         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23580         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23581
23582         New module 'ulc-grapheme-breaks'.
23583         * modules/unigbrk/ulc-grapheme-breaks: New file.
23584         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23585         * m4/locale-ar.m4: New file.
23586         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23587         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23588         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23589
23590 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23591
23592         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23593         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23594         modified how this file was generated before I initially submitted
23595         the module, but failed to regenerate it.  This meant that several
23596         of the level2 entries were wrong.
23597         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23598         Remove the division-by-2 that is folded into the table now that
23599         gbrkprop.h has been regenerated properly.  Now -1 entries are
23600         handled correctly.
23601
23602         New module 'unigbrk/uc-gbrk-prop-tests'.
23603         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23604         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23605         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23606         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23607
23608 2011-01-01  Bruno Haible  <bruno@clisp.org>
23609
23610         Avoid use of hexadecimal escapes.
23611         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23612         instead of hexadecimal escapes.
23613
23614 2011-01-01  Jim Meyering  <meyering@redhat.com>
23615
23616         maint: new rule to update copyright year ranges
23617         * Makefile (update-copyright): New rule.
23618
23619         maint: indent with TABs in Makefile
23620         * Makefile: Expand leading sequences of spaces to TABs
23621
23622         version-etc: update the copyright year it reports
23623         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23624
23625 2010-12-31  Bruno Haible  <bruno@clisp.org>
23626
23627         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23628         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23629         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23630         zero.
23631
23632 2010-12-31  Bruno Haible  <bruno@clisp.org>
23633
23634         pwrite: Work around HP-UX 11.11 bug.
23635         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23636         works and set REPLACE_PWRITE if not.
23637         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23638         function.
23639         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23640
23641 2010-12-31  Bruno Haible  <bruno@clisp.org>
23642
23643         pread: Work around HP-UX 11 bugs.
23644         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23645         and set REPLACE_PREAD if not.
23646         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23647
23648 2010-12-31  Eric Blake  <eblake@redhat.com>
23649
23650         nl_langinfo: fix YESEXPR on Irix 6.5
23651         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23652         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23653         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23654         it.
23655
23656 2010-12-31  Bruno Haible  <bruno@clisp.org>
23657
23658         iconv: Document HP-UX 11 bug.
23659         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23660
23661 2010-12-31  Bruno Haible  <bruno@clisp.org>
23662
23663         ldexpl: Fix link error on HP-UX 11.
23664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23665         LDEXPL_LIBM, using $ISNANL_LIBM.
23666
23667 2010-12-31  Eric Blake  <eblake@redhat.com>
23668
23669         ftello: avoid compilation failure with SunStudio c89
23670         * lib/ftello.c (ftello): Use lseek, not llseek.
23671
23672         tests: avoid failing coreutils tests on cygwin
23673         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23674         (create_exe_shims_): Return 0 when skipping.
23675
23676 2010-12-31  Bruno Haible  <bruno@clisp.org>
23677
23678         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23679         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23680
23681 2010-12-31  Bruno Haible  <bruno@clisp.org>
23682
23683         waitpid: Fix link error in C++ mode.
23684         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23685
23686 2010-12-31  Bruno Haible  <bruno@clisp.org>
23687
23688         isnan: Use GCC built-ins when possible.
23689         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23690         __builtin_isnan.
23691         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23692         (isnan): Define using GCC built-ins for GCC >= 4.0.
23693
23694 2010-12-31  Bruno Haible  <bruno@clisp.org>
23695
23696         isnand: Fix mistake.
23697         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23698         __builtin_isnand.
23699
23700 2010-12-31  Bruno Haible  <bruno@clisp.org>
23701
23702         open: Avoid C++ error on HP-UX 11.
23703         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23704
23705 2010-12-31  Bruno Haible  <bruno@clisp.org>
23706
23707         time_r: Add missing declarations on HP-UX 11.
23708         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23709         instead of HAVE_LOCALTIME_R.
23710         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23711         HAVE_LOCALTIME_R always.
23712         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23713         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23714         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23715         HAVE_LOCALTIME_R.
23716         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23717         * doc/posix-functions/localtime_r.texi: Likewise.
23718
23719 2010-12-29  Eric Blake  <eblake@redhat.com>
23720
23721         mountlist: tweak previous commit
23722         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23723         Reported by Paul Eggert.
23724
23725         mountlist: fix local drive detection on cygwin
23726         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23727         that works for cygwin.
23728
23729 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23730
23731         ftoastr, snprintf: ftoastr + snprintf module
23732         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23733         since the snprintf module now should be good enough here.
23734         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23735         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23736         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23737         GNULIB_SNPRINTF only for the test directory, and the latter
23738         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23739         seems to suffice by itself.
23740
23741 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23742
23743         alloca: one step towards thread-safety
23744         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23745         need for a static variable.  All callers changed.  This does not
23746         make the alloca replacement thread-safe, but it's one step.
23747
23748         tests: minor indenting change
23749         * tests/init.sh: Sync from coreutils housekeeping patch
23750         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23751         to keep lines within 80 columns.
23752
23753 2010-12-28  Jim Meyering  <meyering@redhat.com>
23754
23755         regex: don't infloop on persistent failing calloc
23756         * lib/regexec.c (build_trtable): Return failure indication upon
23757         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23758         In glibc, this was fixed for version 2.13:
23759         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23760
23761 2010-12-28  Bruno Haible  <bruno@clisp.org>
23762             Paul Eggert <eggert@cs.ucla.edu>
23763
23764         linkat: Make implementation robust against system behaviour variations.
23765         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23766         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23767         way, and to -2 if it needs a generic runtime test.
23768         * lib/linkat.c (solaris_optimized_link_immediate,
23769         solaris_optimized_link_follow): New functions.
23770         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23771         (check_same_link): Use it.
23772
23773 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23774
23775         New module 'unigbrk/base'.
23776         * modules/unigbrk/base: New file.
23777         * lib/unigbrk.in.h: New file.
23778
23779         New module 'unigbrk/uc-gbrk-prop'.
23780         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23781         * modules/unigbrk/uc-gbrk-prop: New file.
23782         * lib/unigbrk/gbrkprop.h: New file.
23783         * lib/unigbrk/uc-gbrk-prop.c: New file.
23784
23785         New module 'unigbrk/uc-is-grapheme-break'.
23786         * modules/unigbrk/uc-is-grapheme-break: New file.
23787         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23788         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23789         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23790         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23791         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23792
23793         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23794
23795 2010-12-27  Bruno Haible  <bruno@clisp.org>
23796
23797         linkat test: Avoid failure on Solaris 11 2010-11.
23798         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23799
23800 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23801
23802         utimens: work around glibc rounding bug on more platforms
23803         * lib/utimens.c (fdutimens): Work around rounding bug even if
23804         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23805         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23806
23807 2010-12-27  Bruno Haible  <bruno@clisp.org>
23808
23809         select tests: Improve comments.
23810         * tests/test-select.c (do_select): Add comments.
23811
23812 2010-12-27  Bruno Haible  <bruno@clisp.org>
23813
23814         select tests: Safer way of handling timeout.
23815         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23816         at every invocation.
23817
23818 2010-12-27  Bruno Haible  <bruno@clisp.org>
23819
23820         select tests: Use 'bool' where appropriate.
23821         * tests/test-select.c (connect_to_socket): Change argument type to
23822         'bool'.
23823
23824 2010-12-27  Bruno Haible  <bruno@clisp.org>
23825
23826         select tests: Use existing modules.
23827         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23828         (configure.ac): Don't test for unistd.h.
23829         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23830         declared in <unistd.h>.
23831
23832 2010-12-27  Bruno Haible  <bruno@clisp.org>
23833
23834         mbrtowc: Work around a Solaris 7 bug.
23835         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23836         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23837         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23838         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23839         MBRTOWC_NULL_ARG1_BUG.
23840         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23841         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23842         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23843         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23844
23845 2010-12-27  Jim Meyering  <meyering@redhat.com>
23846
23847         read-file.c: tweak syntax
23848         * lib/read-file.c (fread_file): Remove space after "*" in function
23849         definitions.
23850
23851 2010-12-27  Bruno Haible  <bruno@clisp.org>
23852
23853         times test: Avoid gcc warnings on OSF/1.
23854         * tests/test-times.c (main): Cast printf arguments from clock_t to
23855         'long int'.
23856
23857 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23858
23859         utimens: work around glibc rounding bug on older Linux kernels
23860         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23861         on Linux with a glibc whose utimes might not work, then work
23862         around a longstanding glibc bug involving rounding rather than
23863         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23864         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23865
23866 2010-12-26  Bruno Haible  <bruno@clisp.org>
23867
23868         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23869         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23870         _GL_CXXALIAS_SYS.
23871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23872
23873 2010-12-26  Bruno Haible  <bruno@clisp.org>
23874
23875         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23876         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23877         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23878         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23879         looking for the declaration.
23880         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23881         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23882         problem.
23883         * doc/posix-functions/inet_pton.texi: Likewise.
23884
23885 2010-12-26  Bruno Haible  <bruno@clisp.org>
23886
23887         arpa_inet: Use the common idioms with C++ support.
23888         * lib/arpa_inet.in.h: Include c++defs.h.
23889         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23890         support.
23891         * modules/arpa_inet (Depends-on): Add c++defs.
23892         (Makefile.am): Substitute the contents of c++defs.h.
23893         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23894         * modules/arpa_inet-c++-tests: New file.
23895         * tests/test-arpa_inet-c++.cc: New file.
23896
23897 2010-12-25  Bruno Haible  <bruno@clisp.org>
23898
23899         Fix more C++ link errors on Solaris 8.
23900         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23901         $(LIB_EACCESS).
23902         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23903         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23904         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23905         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23906         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23907
23908 2010-12-25  Bruno Haible  <bruno@clisp.org>
23909
23910         printf-posix: Fix link error when a non-GCC compiler is used.
23911         * lib/stdio.in.h (printf): When not using GCC, override printf
23912         correctly.
23913         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23914
23915 2010-12-25  Bruno Haible  <bruno@clisp.org>
23916
23917         strerror_r-posix: Update doc.
23918         * doc/posix-functions/strerror_r.texi: Update doc about the return
23919         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23920
23921 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23922
23923         utimens: simplify the logic of the previous change
23924         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23925         This should not affect whether the test succeeds or fails.
23926
23927         utimens: configure better on hosts with NFS clock skew
23928         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23929         uses the clock of the local host.  It might use the clock of the
23930         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23931         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23932
23933 2010-12-25  Bruno Haible  <bruno@clisp.org>
23934
23935         ptsname test: Avoid failure on Solaris.
23936         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23937         open a pseudo-terminal; don't use BSD-style ptys.
23938         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23939
23940 2010-12-25  Bruno Haible  <bruno@clisp.org>
23941
23942         ptsname: Avoid ERANGE failure on some systems.
23943         * lib/ptsname.c (buffer): Increase size.
23944
23945 2010-12-25  Bruno Haible  <bruno@clisp.org>
23946
23947         rename, renameat: Avoid test failures at NFS mounted locations.
23948         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23949         so that subsequent mkdir calls succeed.
23950
23951 2010-12-25  Bruno Haible  <bruno@clisp.org>
23952
23953         iswblank: Fix C++ link error on Solaris 8.
23954         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23955         _GL_FUNCDECL_SYS.
23956
23957 2010-12-25  Bruno Haible  <bruno@clisp.org>
23958
23959         unistd: Fix C++ link error on Solaris 8.
23960         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23961
23962 2010-12-25  Bruno Haible  <bruno@clisp.org>
23963
23964         readlink doc: Mention an old glibc bug.
23965         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23966
23967 2010-12-25  Bruno Haible  <bruno@clisp.org>
23968
23969         fcntl-h: Fix for use of C++ on glibc systems.
23970         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23971         also on glibc systems in C++ mode.
23972         Reported by Gary V. Vaughan <gary@gnu.org>.
23973
23974 2010-12-25  Bruno Haible  <bruno@clisp.org>
23975
23976         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23977         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23978
23979 2010-12-25  Bruno Haible  <bruno@clisp.org>
23980
23981         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23982         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23983         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23984         test whether truncl works according to ISO C 99 with IEC 60559.
23985         * m4/truncl-ieee.m4: New file.
23986         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23987         m4/signbit.m4.
23988         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23989
23990 2010-12-25  Bruno Haible  <bruno@clisp.org>
23991
23992         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23993         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23994         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23995         test whether ceill works according to ISO C 99 with IEC 60559.
23996         * m4/ceill-ieee.m4: New file.
23997         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23998         m4/signbit.m4.
23999         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24000
24001 2010-12-25  Bruno Haible  <bruno@clisp.org>
24002
24003         Ensure all prerequisites of <wchar.h> are included.
24004         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24005         before <wchar.h>.
24006         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24007         gl_MBRLEN_NUL_RETVAL): Likewise.
24008         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24009         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24010         AC_FUNC_MBRTOWC): Likewise.
24011         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24012         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24013         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24014         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24015         Likewise.
24016         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24017         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24018         (gl_WCHAR_H): Improve comments.
24019         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24020
24021 2010-12-25  Bruno Haible  <bruno@clisp.org>
24022
24023         strtok_r: Fix C syntax error in autoconf macro.
24024         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24025         characters in test program.
24026
24027 2010-12-24  Bruno Haible  <bruno@clisp.org>
24028
24029         ceil, trunc, round: Fix gcc warnings.
24030         * lib/ceil.c (MIN): Undefine before redefining.
24031         * lib/trunc.c (MIN): Likewise.
24032         * lib/round.c (MIN): Likewise.
24033         Include <math.h> first.
24034
24035 2010-12-24  Bruno Haible  <bruno@clisp.org>
24036
24037         select tests: Avoid failures on OSF/1 5.1.
24038         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24039         failure of closing the last socket; it may fail with ECONNRESET.
24040
24041 2010-12-24  Eric Blake  <eblake@redhat.com>
24042
24043         stdint: avoid HP-UX 10.20 preprocessor bug
24044         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24045         than #if.
24046         * tests/test-floor2.c (main): Likewise.
24047         Reported by Peter O'Gorman.
24048
24049         pipe: make obsoletion transition easier
24050         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24051         * modules/pipe (Files): Include revived file.
24052         (Include): Drop reference, to mirror getdate's behavior.
24053
24054 2010-12-24  Bruno Haible  <bruno@clisp.org>
24055
24056         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24057         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24058         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24059         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24060
24061 2010-12-24  Bruno Haible  <bruno@clisp.org>
24062
24063         gethostname: Ensure declaration on NonStop Kernel.
24064         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24065         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24066
24067 2010-12-24  Bruno Haible  <bruno@clisp.org>
24068
24069         sys_select: Ensure all necessary types on NonStop Kernel.
24070         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24071         include <sys/time.h>.
24072         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24073         NonStop Kernel.
24074         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24075
24076 2010-12-24  Bruno Haible  <bruno@clisp.org>
24077
24078         sys_select: Remove unneeded include.
24079         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24080         have <sys/select.h>.
24081
24082 2010-12-24  Bruno Haible  <bruno@clisp.org>
24083
24084         gethostname: Provide a fallback for HOST_NAME_MAX.
24085         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24086         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24087         instead.
24088         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24089
24090 2010-12-24  Bruno Haible  <bruno@clisp.org>
24091
24092         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24093         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24094         (SA_RESTART): Likewise.
24095         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24096
24097 2010-12-24  Bruno Haible  <bruno@clisp.org>
24098
24099         signal: Define NSIG.
24100         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24101         * tests/test-signal.c (nsig): New variable.
24102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24103
24104 2010-12-24  Bruno Haible  <bruno@clisp.org>
24105
24106         rename, renameat: Avoid test failures on OSF/1 5.1.
24107         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24108         alternative error codes.
24109         * tests/test-renameat.c (main): Likewise.
24110
24111 2010-12-24  Bruno Haible  <bruno@clisp.org>
24112
24113         *printf: Detect large precisions bug on Solaris 10/SPARC.
24114         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24115         by Paul Eggert.
24116         * tests/test-snprintf-posix.h (test_function): Add this test code here
24117         too.
24118         * tests/test-sprintf-posix.h (test_function): Likewise.
24119         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24120         * tests/test-vasprintf-posix.c (test_function): Likewise.
24121         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24122         around by gnulib.
24123         * doc/posix-functions/printf.texi: Likewise.
24124         * doc/posix-functions/snprintf.texi: Likewise.
24125         * doc/posix-functions/sprintf.texi: Likewise.
24126         * doc/posix-functions/vfprintf.texi: Likewise.
24127         * doc/posix-functions/vprintf.texi: Likewise.
24128         * doc/posix-functions/vsnprintf.texi: Likewise.
24129         * doc/posix-functions/vsprintf.texi: Likewise.
24130         * doc/posix-functions/dprintf.texi: Undo last commit.
24131         * doc/posix-functions/vdprintf.texi: Likewise.
24132
24133 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24134
24135         tests: port test-fdutimensat.c to Solaris 8
24136         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24137         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24138         On Solaris 8, it fails with errno == ENOSYS, because there is no
24139         futimens (so it can't use the fd), and there is no lutimens (so it
24140         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24141
24142         vsnprintf: make more consistent with snprintf; doc fixes
24143
24144         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24145         the byte count return problem was promoted from the snprintf-posix
24146         to the snprintf module.
24147         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24148         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24149         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24150         * tests/test-snprintf.c (main): Check the byte count returned.
24151         * tests/test-vsnprintf.c (main): Likewise.
24152
24153 2010-12-23  Eric Blake  <eblake@redhat.com>
24154
24155         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24156         * modules/sigpipe (License): Relax license.
24157
24158 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24159
24160         doc: document Solaris printf bug with large float precisions
24161         * doc/posix-functions/dprintf.texi (dprintf):
24162         * doc/posix-functions/fprintf.texi (fprintf):
24163         * doc/posix-functions/printf.texi (printf):
24164         * doc/posix-functions/snprintf.texi (snprintf):
24165         * doc/posix-functions/sprintf.texi (sprintf):
24166         * doc/posix-functions/vdprintf.texi (vdprintf):
24167         * doc/posix-functions/vfprintf.texi (vfprintf):
24168         * doc/posix-functions/vprintf.texi (vprintf):
24169         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24170         * doc/posix-functions/vsprintf.texi (vsprintf):
24171         Mention that these functions mishandle large floating point
24172         precisions on Solaris 10.  The same bug is also present in Solaris
24173         8, and I assume earlier.  This causes "cd gnulib-tests; make
24174         check" to fail on Solaris 8 (and I assume, later) when building
24175         the latest coreutils, in test-vasprintf-posix's call to
24176         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24177         the wide flavors (e.g., wprintf) so this patch just updates the
24178         documentation for the narrow ones.
24179
24180         test-posixtm.c: add two tests
24181         * tests/test-posixtm.c: Add two tests, to highlight the
24182         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24183         around this bug; this is merely to document it.
24184
24185 2010-12-22  Bruno Haible  <bruno@clisp.org>
24186
24187         getlogin_r: Work around portability problem on OSF/1.
24188         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24189         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24190         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24191         test for a truncated result.
24192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24193         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24194         * modules/getlogin_r (Depends-on): Add memchr.
24195         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24196
24197 2010-12-22  Bruno Haible  <bruno@clisp.org>
24198
24199         ptsname: Avoid test failure on OSF/1 5.1.
24200         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24201         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24202         (same_slave): New function.
24203         (main): Use it to compare ptsname's result with the expected file name.
24204
24205 2010-12-22  Bruno Haible  <bruno@clisp.org>
24206
24207         Port extended stdio modules to HP NonStop Kernel.
24208         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24209         macros.
24210         * lib/fbufmode.c: Update comments.
24211         * lib/fflush.c: Likewise.
24212         * lib/fpurge.c: Likewise.
24213         * lib/freadable.c: Likewise.
24214         * lib/freadahead.c: Likewise.
24215         * lib/freading.c: Likewise.
24216         * lib/freadptr.c: Likewise.
24217         * lib/freadseek.c: Likewise.
24218         * lib/fseeko.c: Likewise.
24219         * lib/fseterr.c: Likewise.
24220         * lib/fwritable.c: Likewise.
24221         * lib/fwriting.c: Likewise.
24222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24223
24224 2010-12-22  Bruno Haible  <bruno@clisp.org>
24225
24226         ttyname_r: Work around bug on OSF/1 5.1.
24227         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24228         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24229         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24230         present.
24231         * lib/ttyname_r.c (ttyname_r): Update comments.
24232
24233 2010-12-22  Bruno Haible  <bruno@clisp.org>
24234
24235         round: Implement result sign according to IEEE 754.
24236         * lib/round.c (MIN, MINUS_ZERO): New macros.
24237         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24238         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24239         * tests/test-round-ieee.c (main): Likewise.
24240         * tests/test-roundl-ieee.c (main): Likewise.
24241
24242         trunc: Implement result sign according to IEEE 754.
24243         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24244         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24245         * tests/test-trunc2.c: Include minus-zero.h.
24246         (MINUS_ZERO): New macro.
24247         (trunc_reference): Keep in sync with lib/trunc.c.
24248         * tests/test-truncf2.c: Include minus-zero.h.
24249         (MINUS_ZERO): New macro.
24250         (truncf_reference): Keep in sync with lib/trunc.c.
24251         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24252         * tests/test-trunc-ieee.c (main): Likewise.
24253         * tests/test-truncl-ieee.c (main): Likewise.
24254
24255         ceil: Implement result sign according to IEEE 754.
24256         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24257         (FUNC): Return -0.0 for -1 < x < 0.
24258         * tests/test-ceil2.c: Include minus-zero.h.
24259         (MINUS_ZERO): New macro.
24260         (ceil_reference): Keep in sync with lib/ceil.c.
24261         * tests/test-ceilf2.c: Include minus-zero.h.
24262         (MINUS_ZERO): New macro.
24263         (ceilf_reference): Keep in sync with lib/ceil.c.
24264         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24265         * tests/test-ceil-ieee.c (main): Likewise.
24266         * tests/test-ceill-ieee.c (main): Likewise.
24267
24268         floor: Implement result sign according to IEEE 754.
24269         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24270         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24271         * tests/test-floorf2.c (floorf_reference): Likewise.
24272         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24273         * tests/test-floor-ieee.c (main): Likewise.
24274         * tests/test-floorl-ieee.c (main): Likewise.
24275
24276 2010-12-22  Bruno Haible  <bruno@clisp.org>
24277
24278         getaddrinfo: Update doc.
24279         * doc/posix-functions/gai_strerror.texi: Return type is also different
24280         on AIX and HP-UX.
24281
24282 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24283
24284         getaddrinfo, inet_ntop: Update doc for Solaris.
24285         * doc/posix-functions/gai_strerror.texi: Return type is also an
24286         issue on Solaris 9 and earlier.
24287         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24288         on Solaris 10 and earlier.
24289
24290 2010-12-21  Bruno Haible  <bruno@clisp.org>
24291
24292         New module 'roundl-ieee'.
24293         * modules/roundl-ieee: New file.
24294         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24295         test whether roundl works according to ISO C 99 with IEC 60559.
24296         * m4/roundl-ieee.m4: New file.
24297         * modules/roundl-ieee-tests: New file.
24298         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24299         * tests/test-roundl.c (main): Remove signbit tests.
24300         * modules/roundl-tests (Depends-on): Remove signbit.
24301         * doc/posix-functions/roundl.texi: Mention the new module.
24302
24303 2010-12-21  Bruno Haible  <bruno@clisp.org>
24304
24305         New module 'truncl-ieee'.
24306         * modules/truncl-ieee: New file.
24307         * modules/truncl-ieee-tests: New file.
24308         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24309         * tests/test-truncl.c (main): Remove signbit tests.
24310         * modules/truncl-tests (Depends-on): Remove signbit.
24311         * doc/posix-functions/truncl.texi: Mention the new module.
24312
24313 2010-12-21  Bruno Haible  <bruno@clisp.org>
24314
24315         New module 'ceill-ieee'.
24316         * modules/ceill-ieee: New file.
24317         * modules/ceill-ieee-tests: New file.
24318         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24319         * tests/test-ceill.c (main): Remove signbit tests.
24320         * modules/ceill-tests (Depends-on): Remove signbit.
24321         * doc/posix-functions/ceill.texi: Mention the new module.
24322
24323 2010-12-21  Bruno Haible  <bruno@clisp.org>
24324
24325         New module 'floorl-ieee'.
24326         * modules/floorl-ieee: New file.
24327         * modules/floorl-ieee-tests: New file.
24328         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24329         * tests/test-floorl.c (main): Remove signbit tests.
24330         * modules/floorl-tests (Depends-on): Remove signbit.
24331         * doc/posix-functions/floorl.texi: Mention the new module.
24332
24333 2010-12-21  Bruno Haible  <bruno@clisp.org>
24334
24335         New module 'round-ieee'.
24336         * modules/round-ieee: New file.
24337         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24338         whether round works according to ISO C 99 with IEC 60559.
24339         * m4/round-ieee.m4: New file.
24340         * modules/round-ieee-tests: New file.
24341         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24342         * tests/test-round1.c (main): Remove signbit tests.
24343         * modules/round-tests (Depends-on): Remove 'signbit'.
24344         * doc/posix-functions/round.texi: Mention the new module.
24345
24346 2010-12-21  Bruno Haible  <bruno@clisp.org>
24347
24348         New module 'trunc-ieee'.
24349         * modules/trunc-ieee: New file.
24350         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24351         whether trunc works according to ISO C 99 with IEC 60559.
24352         * m4/trunc-ieee.m4: New file.
24353         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24355         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24356         * modules/trunc-ieee-tests: New file.
24357         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24358         * tests/test-trunc1.c (main): Remove signbit tests.
24359         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24360         * doc/posix-functions/trunc.texi: Mention the new module.
24361
24362 2010-12-21  Bruno Haible  <bruno@clisp.org>
24363
24364         New module 'ceil-ieee'.
24365         * modules/ceil-ieee: New file.
24366         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24367         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24368         ISO C 99 with IEC 60559.
24369         * m4/ceil-ieee.m4: New file.
24370         * modules/ceil (Files): Add lib/ceil.c.
24371         (Depends-on): Add 'float'.
24372         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24373         * lib/math.in.h (ceil): New declaration.
24374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24375         REPLACE_CEIL.
24376         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24377         * modules/ceil-ieee-tests: New file.
24378         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24379         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24380         * doc/posix-functions/ceil.texi: Mention the new module.
24381
24382 2010-12-21  Bruno Haible  <bruno@clisp.org>
24383
24384         New module 'floor-ieee'.
24385         * modules/floor-ieee: New file.
24386         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24387         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24388         ISO C 99 with IEC 60559.
24389         * m4/floor-ieee.m4: New file.
24390         * modules/floor (Files): Add lib/floor.c.
24391         (Depends-on): Add 'float'.
24392         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24393         * lib/math.in.h (floor): New declaration.
24394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24395         REPLACE_FLOOR.
24396         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24397         * modules/floor-ieee-tests: New file.
24398         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24399         * tests/test-math-c++.cc: Check the signature of 'floor'.
24400         * doc/posix-functions/floor.texi: Mention the new module.
24401
24402 2010-12-21  Bruno Haible  <bruno@clisp.org>
24403
24404         New module 'roundf-ieee'.
24405         * modules/roundf-ieee: New file.
24406         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24407         test whether roundf works according to ISO C 99 with IEC 60559.
24408         * m4/roundf-ieee.m4: New file.
24409         * modules/roundf-ieee-tests: New file.
24410         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24411         * tests/test-roundf1.c (main): Remove signbit tests.
24412         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24413         * doc/posix-functions/roundf.texi: Mention the new module.
24414
24415 2010-12-21  Bruno Haible  <bruno@clisp.org>
24416
24417         New module 'truncf-ieee'.
24418         * modules/truncf-ieee: New file.
24419         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24420         test whether truncf works according to ISO C 99 with IEC 60559.
24421         * m4/truncf-ieee.m4: New file.
24422         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24424         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24425         * modules/truncf-ieee-tests: New file.
24426         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24427         * tests/test-truncf1.c (main): Remove signbit tests.
24428         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24429         * doc/posix-functions/truncf.texi: Mention the new module.
24430
24431 2010-12-21  Bruno Haible  <bruno@clisp.org>
24432
24433         New module 'ceilf-ieee'.
24434         * modules/ceilf-ieee: New file.
24435         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24436         test whether ceilf works according to ISO C 99 with IEC 60559.
24437         * m4/ceilf-ieee.m4: New file.
24438         * modules/ceilf-ieee-tests: New file.
24439         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24440         * tests/test-ceilf1.c (main): Remove signbit tests.
24441         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24442         * doc/posix-functions/ceilf.texi: Mention the new module.
24443
24444 2010-12-21  Bruno Haible  <bruno@clisp.org>
24445
24446         New module 'floorf-ieee'.
24447         * modules/floorf-ieee: New file.
24448         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24449         test whether floorf works according to ISO C 99 with IEC 60559.
24450         * m4/floorf-ieee.m4: New file.
24451         * modules/floorf-ieee-tests: New file.
24452         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24453         * tests/test-floorf1.c (main): Remove signbit tests.
24454         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24455         * doc/posix-functions/floorf.texi: Mention the new module.
24456
24457 2010-12-21  Bruno Haible  <bruno@clisp.org>
24458
24459         Support for minus zero in autoconf macros.
24460         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24461         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24462         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24463         * tests/minus-zero.h: Update comments.
24464
24465 2010-12-21  Bruno Haible  <bruno@clisp.org>
24466
24467         Tests for module 'ceil'.
24468         * modules/ceil-tests: New file.
24469         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24470         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24471
24472 2010-12-21  Bruno Haible  <bruno@clisp.org>
24473
24474         Tests for module 'floor'.
24475         * modules/floor-tests: New file.
24476         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24477         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24478
24479 2010-12-21  Bruno Haible  <bruno@clisp.org>
24480
24481         math: Fix indentation.
24482         * lib/math.in.h (floorf): Fix indentation.
24483
24484 2010-12-21  Bruno Haible  <bruno@clisp.org>
24485
24486         Fix cross-compilation guesses on Solaris.
24487         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24488         not match "solaris2.10".
24489         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24490         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24491         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24492
24493 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24494
24495         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24496         This fixes a problem observed with the latest coreutils snapshot
24497         that caused a test to fail on Solaris 8.  src/csplit.c's call
24498         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24499         earlier, instead of returning the number of bytes that would have
24500         been generated; this causes csplit to incorrectly report memory
24501         exhaustion.
24502         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24503         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24504         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24505         comments to match.
24506         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24507         Fix typo in matching older versions of Solaris: "solaris2.10"
24508         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24509         only for guessing while cross-compiling.
24510         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24511
24512 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24513
24514         ftoastr: fix comment again
24515         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24517         Also, simplify example a bit by using flags = 0.
24518
24519 2010-12-20  Bruno Haible  <bruno@clisp.org>
24520
24521         round*, trunc*: Update documentation regarding glibc.
24522         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24523         * doc/posix-functions/round.texi: Likewise.
24524         * doc/posix-functions/roundl.texi: Likewise.
24525         * doc/posix-functions/truncf.texi: Likewise.
24526         * doc/posix-functions/trunc.texi: Likewise.
24527         * doc/posix-functions/truncl.texi: Likewise.
24528
24529 2010-12-20  Bruno Haible  <bruno@clisp.org>
24530
24531         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24532         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24533         * doc/posix-functions/round.texi: Likewise.
24534         * doc/posix-functions/roundl.texi: Likewise.
24535
24536 2010-12-20  Bruno Haible  <bruno@clisp.org>
24537
24538         ttyname_r: Add missing declaration on HP-UX 11.
24539         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24540         HAVE_TTYNAME_R.
24541         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24542         declared. Set HAVE_TTYNAME_R always.
24543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24544         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24545         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24546         HAVE_TTYNAME_R.
24547         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24548
24549 2010-12-20  Bruno Haible  <bruno@clisp.org>
24550
24551         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24552         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24553         * doc/posix-functions/getlogin_r.texi: Likewise.
24554         * tests/test-getlogin.c: Include <errno.h>.
24555         (main): Avoid test failure on HP-UX 11.11.
24556         * tests/test-getlogin_r.c (main): Likewise.
24557
24558 2010-12-20  Bruno Haible  <bruno@clisp.org>
24559
24560         getlogin_r: Add missing declaration on HP-UX 11.
24561         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24562         declared also when it exists as a function.
24563         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24564
24565 2010-12-20  Bruno Haible  <bruno@clisp.org>
24566
24567         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24568         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24569         through wcrtomb.
24570
24571 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24572
24573         ftoastr: fix comment
24574         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24575         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24576
24577 2010-12-19  Bruno Haible  <bruno@clisp.org>
24578
24579         isnan: Ensure it is a macro.
24580         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24581         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24582         Solaris.
24583
24584 2010-12-19  Bruno Haible  <bruno@clisp.org>
24585
24586         ldexpl test: Fix link error on OSF/1 5.1.
24587         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24588
24589 2010-12-19  Bruno Haible  <bruno@clisp.org>
24590
24591         wctype: Make it work in C++ mode on OSF/1 5.1.
24592         * lib/wctype.in.h (iswblank): Declare but not define here.
24593         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24594         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24595         * modules/wctype (Files): Add lib/iswblank.c.
24596
24597 2010-12-19  Bruno Haible  <bruno@clisp.org>
24598
24599         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24600         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24601         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24602
24603 2010-12-19  Bruno Haible  <bruno@clisp.org>
24604
24605         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24607         _POSIX_PII_SOCKET.
24608         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24609         * doc/posix-functions/recvfrom.texi: Likewise.
24610         * doc/posix-functions/send.texi: Likewise.
24611         * doc/posix-functions/sendto.texi: Likewise.
24612
24613 2010-12-19  Bruno Haible  <bruno@clisp.org>
24614
24615         tcgetsid: Add missing declaration on OSF/1 5.1.
24616         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24617         HAVE_TCGETSID.
24618         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24619         Don't set HAVE_TCGETSID.
24620         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24621         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24622         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24623         HAVE_TCGETSID.
24624         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24625
24626 2010-12-19  Bruno Haible  <bruno@clisp.org>
24627
24628         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24629         * lib/stdio.in.h: During the include_next statement, let recursive
24630         includes of this file include only the system header file.
24631
24632 2010-12-19  Bruno Haible  <bruno@clisp.org>
24633
24634         iconv_open: Fix regression from 2010-12-04.
24635         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24636         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24637
24638 2010-12-19  Bruno Haible  <bruno@clisp.org>
24639
24640         stdbool test: Avoid a gcc warning.
24641         * tests/test-stdbool.c (main): Fail if e1 is false.
24642         Reported by Jim Meyering.
24643
24644 2010-12-19  Jim Meyering  <meyering@redhat.com>
24645
24646         setenv: restore to working order
24647         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24648         mistakenly removed.
24649         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24650         HAVE_SETENV.
24651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24652         HAVE_SETENV.
24653
24654 2010-12-19  Bruno Haible  <bruno@clisp.org>
24655
24656         Document some different function declarations on OSF/1 5.1.
24657         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24658         * doc/posix-functions/inet_ntop.texi: Likewise.
24659         * doc/posix-functions/gethostname.texi: Likewise.
24660         * lib/unistd.in.h (gethostname): Update comment.
24661
24662 2010-12-19  Bruno Haible  <bruno@clisp.org>
24663
24664         doc: Mention vasprintf-posix module.
24665         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24666         the 'vasprintf-posix' module.
24667         * doc/glibc-functions/vasprintf.texi: Likewise.
24668
24669 2010-12-19  Bruno Haible  <bruno@clisp.org>
24670
24671         unsetenv: Add missing declaration on OSF/1 5.1.
24672         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24673         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24674         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24676         not HAVE_UNSETENV.
24677         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24678         HAVE_UNSETENV.
24679         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24680
24681 2010-12-19  Bruno Haible  <bruno@clisp.org>
24682
24683         setenv: Add missing declaration on OSF/1 5.1.
24684         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24686         declared. Don't set HAVE_SETENV.
24687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24688         not HAVE_SETENV.
24689         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24690         HAVE_SETENV.
24691         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24692
24693 2010-12-19  Bruno Haible  <bruno@clisp.org>
24694
24695         nl_langinfo tests: Avoid gcc warning.
24696         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24697
24698 2010-12-19  Bruno Haible  <bruno@clisp.org>
24699
24700         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24701         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24702         _GL_CXXALIAS_SYS.
24703
24704 2010-12-19  Bruno Haible  <bruno@clisp.org>
24705
24706         stdbool: Relax test.
24707         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24708         address to 'bool' work in static initializer, for compilers other than
24709         GCC.
24710
24711 2010-12-19  Bruno Haible  <bruno@clisp.org>
24712
24713         ftello: Add missing declaration on OSF/1 5.1.
24714         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24715         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24717         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24718         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24719
24720 2010-12-19  Bruno Haible  <bruno@clisp.org>
24721
24722         fseeko: Add missing declaration on OSF/1 5.1.
24723         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24726         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24727         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24728
24729 2010-12-19  Bruno Haible  <bruno@clisp.org>
24730
24731         fchdir: Add missing declaration on OSF/1 5.1.
24732         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24735         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24736         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24737
24738 2010-12-19  Bruno Haible  <bruno@clisp.org>
24739
24740         relocatable-prog-wrapper: Separate from relocatable-prog.
24741         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24742         uninstall-relocwrapper rule here.
24743         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24744         Reported by Ian Beckwith <ianb@erislabs.net>.
24745
24746 2010-12-19  Bruno Haible  <bruno@clisp.org>
24747
24748         unistr/u8-mbsnlen: Add missing dependency.
24749         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24750         Reported by Ian Beckwith <ianb@erislabs.net>.
24751
24752 2010-12-19  Bruno Haible  <bruno@clisp.org>
24753
24754         iconv: Make it possible again to use this module without 'iconv-h'.
24755         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24756         if it is not defined.
24757         Reported by Ian Beckwith <ianb@erislabs.net>.
24758
24759 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24760
24761         acl: port to Solaris 8 when copying from tmpfs to ufs
24762         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24763         error number.  Problem observed on Solaris 8 with latest
24764         coreutils, with "mv A B", where A is on a tmpfs file system and B
24765         is on a ufs file system.  This caused coreutils' mv/part-symlink
24766         test to fail.
24767
24768         tests: set fail=0 at start
24769         * tests/init.sh (setup_): Move fail=0 initialization here ...
24770         (mktempd_): ... from here, so that tests can rely on fail being
24771         set to 0 initially.  This fixes a problem in coreutils; see:
24772         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24773
24774 2010-12-18  Bruno Haible  <bruno@clisp.org>
24775
24776         memmem-simple: Stylistic changes.
24777         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24778         Fix preprocessor directive indentation.
24779
24780 2010-12-15  Pádraig Brady <P@draigBrady.com>
24781
24782         memmem, memmem-simple: reorganize and expand empty needle check
24783         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24784         functional checks to memmem-simple so that one has a fully functional
24785         memmem by using just this module.
24786         Restrict the performance only check to the memmem module.
24787         Also expand the empty needle check to ensure the correct
24788         pointer is returned, not just a non NULL pointer.
24789         * doc/glibc-functions/memmem.texi: Rearrange the portability
24790         documentation to correlate with the rearranged checks.
24791         Clarify exactly how the memmem and memmem-simple modules
24792         relate to each other.
24793
24794 2010-12-15  Pádraig Brady <P@draigBrady.com>
24795             Bruno Haible  <bruno@clisp.org>
24796
24797         Improve cross-compilation guesses for uClibc.
24798         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24799         that uClibc does not have the glibc bug.
24800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24801         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24802
24803 2010-12-14  Eric Blake  <eblake@redhat.com>
24804
24805         configmake: provide fallbacks for oldest supported autotools
24806         * m4/configmake.m4: New file.
24807         * modules/configmake (Files): Ship it.
24808         (configure.ac): Use it to guarantee fallbacks.
24809
24810 2010-12-13  Pádraig Brady <P@draigBrady.com>
24811
24812         read-file: Improve handling of large files
24813         * lib/read-file.c (fread_file): Minimize realloc()s
24814         for regular files, and better manage sizes around SIZE_MAX.
24815
24816 2010-12-13  Eric Blake  <eblake@redhat.com>
24817
24818         cloexec, fcntl: relax license
24819         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24820         consent from all contributors.
24821         * modules/fcntl (License): Likewise.
24822
24823 2010-12-10  Bruno Haible  <bruno@clisp.org>
24824
24825         Tests for module 'pipe-posix'.
24826         * modules/pipe-posix-tests: New file.
24827         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24828
24829 2010-12-10  Bruno Haible  <bruno@clisp.org>
24830
24831         pipe-posix: Make it work in C++ mode.
24832         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24833         (pipe): Use common idiom, not a macro definition.
24834         * lib/pipe.c: New file.
24835         * m4/pipe.m4: New file.
24836         * modules/pipe-posix (Description): Enhance.
24837         (Files): Add lib/pipe.c, m4/pipe.m4.
24838         (configure.ac): Invoke gl_FUNC_PIPE.
24839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24840         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24841         * tests/test-unistd-c++.cc: Check the signature of pipe.
24842
24843 2010-12-10  Bruno Haible  <bruno@clisp.org>
24844
24845         Rename module 'pipe' to 'spawn-pipe'.
24846         * modules/spawn-pipe: New file, renamed from modules/pipe.
24847         (Files, configure.ac, Makefile.am): Update.
24848         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24849         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24850         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24851         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24852         "spawn-pipe.h" instead of "pipe.h".
24853         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24854         to gl_SPAWN_PIPE.
24855         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24856         (Files, Makefile.am): Update.
24857         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24858         Update.
24859         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24860         Include "spawn-pipe.h" instead of "pipe.h".
24861         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24862         * lib/javacomp.c: Likewise.
24863         * lib/javaversion.c: Likewise.
24864         * lib/pipe-filter-gi.c: Likewise.
24865         * lib/pipe-filter-ii.c: Likewise.
24866         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24867         * modules/javacomp (Depends-on): Likewise.
24868         * modules/javaversion (Depends-on): Likewise.
24869         * modules/pipe-filter-gi (Depends-on): Likewise.
24870         * modules/pipe-filter-ii (Depends-on): Likewise.
24871         * MODULES.html.sh (Executing programs): Update.
24872         * NEWS: Mention the change.
24873
24874 2010-12-10  Eric Blake  <eblake@redhat.com>
24875
24876         pipe-posix: new module
24877         * modules/pipe-posix: New file.
24878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24879         (gl_UNISTD_H): Check for declaration.
24880         * modules/unistd (Makefile.am): Substitute it.
24881         * lib/unistd.in.h (pipe): Provide it for mingw.
24882         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24883         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24884
24885 2010-12-07  Bruno Haible  <bruno@clisp.org>
24886
24887         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24888         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24889         u8_strcmp_gnu.
24890         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24891
24892 2010-12-06  Bruno Haible  <bruno@clisp.org>
24893
24894         Update internal documentation.
24895         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24896
24897 2010-12-04  Bruno Haible  <bruno@clisp.org>
24898
24899         Put more information about failed tests into the test return codes.
24900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24901         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24902         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24904         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24906         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24907         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24908         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24910         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24911         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24912         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24913         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24914         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24915         returns a bit mask.
24916         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24917         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24918         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24919         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24920         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24924         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24925         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24926         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24927         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24928         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24929         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24930         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24931         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24932         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24933         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24934         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24935         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24937         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24938         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24939         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24940         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24941         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24942         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24943         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24944         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24945         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24946         gl_PRINTF_PRECISION): Likewise.
24947         * m4/regex.m4 (gl_REGEX): Likewise.
24948         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24949         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24951         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24954         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24955         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24956         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24957         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24958         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24959         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24960         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24961         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24962         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24963         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24964         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24965         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24967         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24968         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24969         enumerated value.
24970         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24971
24972 2010-12-04  Bruno Haible  <bruno@clisp.org>
24973
24974         Update for Solaris 11 2010-11.
24975         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24976         Express, released in November 2010.
24977
24978 2010-12-04  Bruno Haible  <bruno@clisp.org>
24979
24980         nproc: Relax license.
24981         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24982         and Paul Eggert.
24983         Requested by Ludovic Courtès <ludo@gnu.org>.
24984
24985 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24986
24987         utimecmp: fine-grained src to nearby coarse-grained dest
24988
24989         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24990         and the source is on a file system with higher-resolution time
24991         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24992         not work, and the time stamps are close together, the algorithm to
24993         determine the exact resolution from the read-back mtime was buggy:
24994         it had a "!=" where it should have had an "==".  This bug has been
24995         in the code ever since it was introduced to gnulib.
24996         Problem reported by Dan Jacobson in
24997         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24998
24999 2010-11-30  Bruno Haible  <bruno@clisp.org>
25000
25001         strerror_r-posix: Fix autoconf test.
25002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25003
25004 2010-11-28  Bruno Haible  <bruno@clisp.org>
25005             Paul Eggert  <eggert@cs.ucla.edu>
25006
25007         Tests for module 'getdomainname'.
25008         * modules/getdomainname-tests: New file.
25009         * tests/test-getdomainname.c: New file, based on
25010         tests/test-gethostname.c.
25011
25012 2010-11-28  Bruno Haible  <bruno@clisp.org>
25013             Paul Eggert  <eggert@cs.ucla.edu>
25014
25015         getdomainname: Use the system function when possible.
25016         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25017         (getdomainname): Replace if needed. Provide the declaration if it is
25018         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25019         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25020         (getdomainname): When the system has getdomainname, call the system
25021         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25022         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25023         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25024         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25025         the function if its second argument is of type 'int' or if it is found
25026         in libnsl.
25027         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25028         <sys/systeminfo.h> and sysinfo().
25029         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25031         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25032         HAVE_GETDOMAINNAME.
25033         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25034         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25035         * doc/glibc-functions/getdomainname.texi: Document the problems with
25036         the getdomainname declaration.
25037
25038 2010-11-28  Bruno Haible  <bruno@clisp.org>
25039
25040         sys_socket: Ensure ss_family field on AIX.
25041         * lib/sys_socket.in.h (ss_family): New macro definition.
25042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25043         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25044         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25045         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25046         * modules/sys_socket (Makefile.am): Substitute
25047         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25048         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25049
25050 2010-11-27  Bruno Haible  <bruno@clisp.org>
25051
25052         readline: Improve configure output.
25053         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25054         "checking for readline..." result understandable.
25055
25056 2010-11-27  Bruno Haible  <bruno@clisp.org>
25057
25058         *printf-posix: Detect a bug on Solaris 10/x86.
25059         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25060         for floating-point output.
25061         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25062         directive.
25063         * tests/test-snprintf-posix.h (test_function): Likewise.
25064         * tests/test-sprintf-posix.h (test_function): Likewise.
25065         * tests/test-vasprintf-posix.c (test_function): Likewise.
25066         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25067         * doc/posix-functions/printf.texi: Likewise.
25068         * doc/posix-functions/snprintf.texi: Likewise.
25069         * doc/posix-functions/sprintf.texi: Likewise.
25070         * doc/posix-functions/vfprintf.texi: Likewise.
25071         * doc/posix-functions/vprintf.texi: Likewise.
25072         * doc/posix-functions/vsnprintf.texi: Likewise.
25073         * doc/posix-functions/vsprintf.texi: Likewise.
25074         * doc/glibc-functions/obstack_printf.texi: Likewise.
25075         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25076
25077 2010-11-27  Bruno Haible  <bruno@clisp.org>
25078
25079         Fix link error when module libunistring-optional is in use.
25080         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25081         * modules/striconveha-tests (Makefile.am): Likewise.
25082
25083 2010-11-27  Bruno Haible  <bruno@clisp.org>
25084
25085         regex: Mention link dependencies.
25086         * modules/regex (Link): New section.
25087         * modules/rpmatch (Link): Likewise.
25088         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25089
25090 2010-11-27  Bruno Haible  <bruno@clisp.org>
25091
25092         ftoastr: Fix compilation error on Solaris.
25093         * lib/ftoastr.c: Include <config.h>.
25094
25095 2010-11-27  Bruno Haible  <bruno@clisp.org>
25096
25097         getloadavg: Update documentation.
25098         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25099
25100 2010-11-27  Bruno Haible  <bruno@clisp.org>
25101
25102         sys_socket: Fix test whether the functions are declared.
25103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25104         not <sys/select.h>.
25105
25106 2010-11-27  Bruno Haible  <bruno@clisp.org>
25107
25108         getpass: Make sure to get system declaration on some platforms.
25109         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25110         gl_USE_SYSTEM_EXTENSIONS.
25111         * modules/getpass (Depends-on): Add extensions.
25112
25113 2010-11-26  Bruno Haible  <bruno@clisp.org>
25114
25115         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25116         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25117         'iconv' module is present.
25118         (ICONV_CONST): New macro.
25119         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25120         ICONV_CONST.
25121         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25122         set ICONV_CONST.
25123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25124         here.
25125         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25126         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25127         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25128         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25129         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25130         present.
25131
25132 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25133
25134         ftoastr: comment fix
25135         * lib/ftoastr.c: "little" -> "little or no" in comment
25136
25137 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25138
25139         stdint: port to GCC 4.3 + OSX + Octave
25140         On this platform, stdint.h is buggy and defines int64_t to long
25141         long int.  The replacement defined it to long int, causing
25142         problems with C++ style name mangling.  Instead, trust the system
25143         definition if INT64_MAX is defined, and likewise for the unsigned
25144         variant.   Problem reported by Jarno Rajahalme in
25145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25146         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25147         and don't mess with int64_t and INT64_MAX in this case.
25148         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25149
25150 2010-11-24  Bruno Haible  <bruno@clisp.org>
25151
25152         doc: Corrections regarding MacOS X 10.4 and 10.5.
25153         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25154         MacOS X.
25155         Reported by Simon Josefsson.
25156
25157 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25158
25159         Uninstall ".bin" files installed by relocwrapper.
25160         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25161         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25162         unless it is already there.
25163
25164 2010-11-21  Bruno Haible  <bruno@clisp.org>
25165
25166         Update for NetBSD 5.0.
25167         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25168         NetBSD; the test fails on NetBSD 5.0.
25169         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25170         about NetBSD.
25171
25172 2010-11-21  Bruno Haible  <bruno@clisp.org>
25173
25174         Update for HP-UX 11.23 and HP-UX 11.31.
25175         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25176         HP-UX.
25177
25178 2010-11-21  Bruno Haible  <bruno@clisp.org>
25179
25180         Update for MacOS X 10.5.
25181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25182         MacOS X; the test fails on MacOS X 10.5.8.
25183         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25184         about MacOS X.
25185
25186 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25187
25188         bootstrap: add bootstrap_sync option.
25189         See discussion at
25190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25192         * build-aux/bootstrap: Accept --bootstrap-sync to update
25193         bootstrap if it is not identical to the local gnulib's
25194         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25195         enable this by default.  Accept --no-bootstrap-sync to disable
25196         it.
25197
25198 2010-11-20  Bruno Haible  <bruno@clisp.org>
25199
25200         Ensure that <features.h> is included before __GLIBC__ is tested.
25201         * lib/printf-parse.h: Include <features.h>.
25202         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25203         Reported by Mike Frysinger <vapier@gentoo.org>.
25204
25205         Ensure that <features.h> is included before __GLIBC__ is tested.
25206         * lib/wchar.in.h: Include <features.h>.
25207         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25208         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25209         Reported by Mike Frysinger <vapier@gentoo.org>.
25210
25211         Ensure that <features.h> is included before __GLIBC__ is tested.
25212         * lib/arpa_inet.in.h: Include <features.h>.
25213         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25214         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25215         Reported by Mike Frysinger <vapier@gentoo.org>.
25216
25217         Ensure that <features.h> is included before __GLIBC__ is tested.
25218         * build-aux/link-warning.h: Include <features.h>.
25219         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25220         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25221         Reported by Mike Frysinger <vapier@gentoo.org>.
25222
25223         Ensure that <features.h> is included before __GLIBC__ is tested.
25224         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25225         Reported by Mike Frysinger <vapier@gentoo.org>.
25226
25227 2010-11-20  Bruno Haible  <bruno@clisp.org>
25228
25229         memmem: Fix autoconf test.
25230         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25231
25232 2010-11-20  Bruno Haible  <bruno@clisp.org>
25233
25234         Port to uClibc.
25235         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25236         * lib/fcntl.in.h: Likewise.
25237         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25238         * lib/mbrtowc.c (mbrtowc): Likewise.
25239         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25240         * lib/strerror_r.c: Likewise.
25241         * lib/unistr/u8-strnlen.c: Likewise.
25242         * lib/vasnprintf.c (decimal_point_char): Likewise.
25243         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25244         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25246         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25247         * tests/test-sigaction.c (handler, main): Likewise.
25248         * lib/freading.h: Treat uClibc like a non-glibc platform.
25249         * lib/freading.c: Likewise.
25250         * lib/gettext.h: Likewise.
25251         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25252         Likewise.
25253         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25254         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25255         * lib/propername.c (proper_name_utf8): Likewise.
25256         * lib/spawn.in.h: Likewise.
25257         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25258         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25259         mem_cd_iconveh_internal): Likewise.
25260         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25261         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25262         strstr, strcasestr): Likewise.
25263         * lib/unicodeio.c (unicode_to_mb): Likewise.
25264         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25265         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25266         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25267         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25268         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25269         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25270         * lib/unistr/u8-stpncpy.c: Likewise.
25271         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25272         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25274         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25275         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25276         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25277         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25280         Likewise.
25281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25282         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25283         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25286         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25287         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25288         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25289         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25290         * tests/test-striconveha.c (main): Likewise.
25291         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25292         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25293         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25294         * doc/posix-functions/getline.texi: Likewise.
25295         Reported by Mike Frysinger <vapier@gentoo.org>.
25296
25297 2010-11-20  Bruno Haible  <bruno@clisp.org>
25298
25299         nproc: Fix condition.
25300         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25301         HAVE_PTHREAD_AFFINITY_NP.
25302
25303 2010-11-20  Bruno Haible  <bruno@clisp.org>
25304
25305         Fix a comment.
25306         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25307
25308 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25309
25310         ftoastr: don't assume snprintf
25311         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25312         Implement a subset of snprintf here, by using sprintf safely.
25313         * modules/ftoastr (Depends-on): Remove snprintf.
25314
25315 2010-11-19  Jim Meyering  <meyering@redhat.com>
25316
25317         test-rename.h: fix compilation failure
25318         * tests/test-rename.h (test_rename): Add omitted "}".
25319
25320 2010-11-17  Jim Meyering  <meyering@redhat.com>
25321
25322         maint.mk: add a URL discussing the no-@acronym policy
25323         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25324
25325 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25326
25327         ftoastr: depend on snprintf, improve comments
25328         * lib/ftoastr.c: Also mention Loitsch's draft.
25329         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25330         needed in the current implementation, but it might simplify
25331         speeding up the code later.
25332         * modules/ftoastr: Depend on snprintf; this improves portability.
25333         Suggested by Bruno Haible in the same email.
25334
25335         ftoastr: port to hosts lacking strtof and strtold
25336         Problem reported by Bruno Haible in
25337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25338         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25339         environment and strtold (and presumably strtof) are not available.
25340         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25341         (configure.ac): Require gl_C99_STRTOLD.
25342
25343 2010-11-18  Bruno Haible  <bruno@clisp.org>
25344
25345         c-strtold: Avoid link error on AIX 7.
25346         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25347         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25348         (gl_C_STRTOLD): Test whether strtold_l exists.
25349         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25350
25351 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25352
25353         intprops: new macro INT_BITS_STRLEN_BOUND
25354         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25355         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25356         not exposed.  Also, it uses a slightly tighter bound than before;
25357         though this makes no practical difference, we might as well be as
25358         tight as we easily can.
25359
25360         ftoastr: new module, for lossless conversion of floats to short strings
25361         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25362         * modules/ftoastr: New files.
25363
25364 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25365
25366         bootstrap: port to Solaris sed
25367         * build-aux/bootstrap (get_version): Port to Solaris sed.
25368         See Ralf Wildenhues's note in
25369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25370
25371 2010-11-14  Jim Meyering  <meyering@redhat.com>
25372
25373         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25374         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25375         and move definition closer to sole use.
25376
25377 2010-11-13  Jim Meyering  <meyering@redhat.com>
25378
25379         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25380         Now we require at least autoconf-2.59, which means the work-around
25381         is no longer needed.
25382         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25383         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25384         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25385         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25386         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25387
25388 2010-11-13  Bruno Haible  <bruno@clisp.org>
25389
25390         rename, renameat: Avoid test failures at NFS mounted locations.
25391         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25392         functions.
25393         (test_rename): Use assert_nonexistent.
25394         * tests/test-rename.c: Include <dirent.h>.
25395         * tests/test-renameat.c: Likewise.
25396         Reported by Gary V. Vaughan <gary@gnu.org>.
25397
25398         rename, renameat: Document Linux bug with NFS
25399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25400         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25401         * doc/posix-functions/renameat.texi: Likewise.
25402         Suggested by Eric Blake.
25403
25404 2010-11-13  Bruno Haible  <bruno@clisp.org>
25405
25406         rename test: Add comments.
25407         * tests/test-rename.h (test_rename): Add structure and comments.
25408
25409 2010-11-13  Eric Blake  <eblake@redhat.com>
25410
25411         maintainer-makefile: cover a few more files
25412         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25413         scripts generated within C files, for libvirt.
25414
25415 2010-11-13  Bruno Haible  <bruno@clisp.org>
25416
25417         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25418         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25419         character, return the number of bytes that belong together, not always
25420         1.
25421         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25422         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25423         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25424         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25425         number of bytes of an invalid character.
25426         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25427         (main): Invoke it.
25428         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25429         results.
25430         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25431         malformed byte sequences.
25432         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25433         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25434         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25435         Reported by Ben Pfaff and Paolo Bonzini.
25436
25437 2010-11-13  Bruno Haible  <bruno@clisp.org>
25438
25439         openat: Work around glibc bug with fchownat() and empty file names.
25440         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25441         (gl_FUNC_FCHOWNAT): Invoke it.
25442         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25443         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25444         Reported by Gary V. Vaughan <gary@gnu.org>.
25445
25446 2010-11-13  Bruno Haible  <bruno@clisp.org>
25447
25448         openat: Ensure autoconf macro ordering.
25449         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25450         gl_USE_SYSTEM_EXTENSIONS.
25451         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25452
25453 2010-11-13  Bruno Haible  <bruno@clisp.org>
25454
25455         Update comments.
25456         * lib/unistr/u8-check.c: Update file name in comments.
25457         * lib/unistr/u8-mblen.c: Likewise.
25458         * lib/unistr/u8-prev.c: Likewise.
25459         * lib/unistr/u8-strmblen.c: Likewise.
25460         * lib/unistr/u8-strmbtouc.c: Likewise.
25461
25462 2010-11-13  Jim Meyering  <meyering@redhat.com>
25463
25464         tests: avoid test failure on Solaris 10 due to lack of PATH export
25465         * tests/test-update-copyright.sh: Don't forget to export PATH.
25466
25467         init.sh: ensure that IFS is defined, just in case...
25468         * tests/init.sh (setup_): Ensure that IFS is defined,
25469         so that saving and restoring it works as expected.  This
25470         appears to be useful at least for an old version of dash
25471         from a long time ago (RH 6).  See here for details:
25472         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25473
25474         maint.mk: tighten "test a == b" check
25475         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25476         test to files that contain something like #!/bin/sh.
25477         Without this, coreutils would get two false positives in
25478         the comments of C source files.
25479
25480 2010-11-12  Eric Blake  <eblake@redhat.com>
25481
25482         bootstrap: fix typo in previous attempt
25483         * build-aux/bootstrap (buildreq): Correct the grouping.
25484         Reported by Paul Eggert.
25485
25486         maintainer-makefile: prohibit test x == x
25487         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25488         Based on a report by Matthias Bolte.
25489
25490         bootstrap: allow FreeBSD gzip
25491         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25492         which has no '.' and goes to stderr.
25493         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25494         Reported by Matthias Bolte.
25495
25496         maintainer-makefile: check for i18n setup
25497         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25498         will likely work.
25499
25500 2010-11-12  Bruno Haible  <bruno@clisp.org>
25501
25502         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25503         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25504         * lib/nanosleep.c (nanosleep): Likewise.
25505
25506 2010-11-11  Bruno Haible  <bruno@clisp.org>
25507
25508         fcntl-h: Fix for use of C++ on glibc systems.
25509         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25510         also on glibc systems in C++ mode.
25511         Reported by Gary V. Vaughan <gary@gnu.org>.
25512
25513 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25514
25515         mknod: avoid false failure with dash
25516         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25517
25518 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25519
25520         unlink: Fix "is it should" typo in diagnostic.
25521         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25522         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25523
25524 2010-11-11  Bruno Haible  <bruno@clisp.org>
25525
25526         Tests for module 'strerror_r-posix'.
25527         * modules/strerror_r-posix-tests: New file.
25528         * tests/test-strerror_r.c: New file.
25529         * tests/test-string-c++.cc: Check the signature of strerror_r.
25530
25531         New module 'strerror_r-posix'.
25532         * lib/string.in.h (strerror_r): New declaration.
25533         * lib/strerror_r.c: New file.
25534         * m4/strerror_r.m4: New file.
25535         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25536         of strerror_r.
25537         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25538         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25539         * modules/strerror_r-posix: New file.
25540         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25541         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25542         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25543         portability problems.
25544
25545 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25546
25547         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25548         line is also considered for output. Quoted function name in shell
25549         command, so temporary files for functions like MyClass::operator()
25550         are removed correctly without errors.
25551
25552 2010-11-09  Bruno Haible  <bruno@clisp.org>
25553
25554         * doc/posix-functions/strerror.texi: List more failing platforms.
25555
25556         * doc/posix-functions/strerror.texi: Add a comment.
25557
25558 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25559
25560         fdopendir: fix bug on MacOS X when low on file descriptors
25561
25562         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25563         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25564         All callers changed.
25565         (fdopendir): Invoke save_cwd at the top level, not after using
25566         multiple dup() calls to use up file descriptors.  Then retry
25567         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25568         less than the maximum number of open file descriptors, because
25569         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25570         on Mac OS X 10.6.4 for tar 1.24
25571         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25572         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25573         and for tar 1.25
25574         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25575
25576 2010-11-07  Bruno Haible  <bruno@clisp.org>
25577
25578         vasnprintf: Support I flag on glibc systems.
25579         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25580         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25581         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25582         snprintf function.
25583         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25584         glibc systems.
25585         * tests/test-vasnprintf-posix3.c: New file.
25586         * modules/vasnprintf-posix-tests (Files): Add it.
25587         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25588
25589 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25590
25591         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25592         * MODULES.html.sh: For compiler warnings, use name
25593         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25594
25595 2010-11-05  Eric Blake  <eblake@redhat.com>
25596
25597         ceil, floor: avoid spurious failure with icc
25598         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25599         [denormals-as-zero] when optimizing without -mieee-fp option.
25600         * tests/test-floorf2.c (floorf_reference): Likewise.
25601         * tests/test-ceilf1.c (dummy): New function.
25602         (main): Use it to outsmart icc's optimization.
25603         * tests/test-floorf1.c (dummy, main): Likewise.
25604
25605         tests: require working signbit
25606         * modules/ceilf-tests (Depends-on): Add signbit.
25607         * modules/ceill-tests (Depends-on): Likewise.
25608         * modules/floorf-tests (Depends-on): Likewise.
25609         * modules/floorl-tests (Depends-on): Likewise.
25610         * modules/round-tests (Depends-on): Likewise.
25611         * modules/roundf-tests (Depends-on): Likewise.
25612         * modules/roundl-tests (Depends-on): Likewise.
25613         * modules/trunc-tests (Depends-on): Likewise.
25614         * modules/truncf-tests (Depends-on): Likewise.
25615         * modules/truncl-tests (Depends-on): Likewise.
25616
25617         strtod: work around icc bug
25618         * lib/strtod.c (minus_zero): Define to working value.
25619         (strtod): Use it to avoid icc bug.
25620
25621         copysign: enhance tests
25622         * modules/copysign-tests (Files): Add minus-zero.h.
25623         * tests/test-copysign.c (main): Also test zeros.
25624
25625 2010-11-04  Eric Blake  <eblake@redhat.com>
25626
25627         ceil, floor, round, trunc: enhance tests of -0
25628         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25629         * tests/test-ceill.c (main): Likewise.
25630         * tests/test-floorf1.c (main): Likewise.
25631         * tests/test-floorl.c (main): Likewise.
25632         * tests/test-round1.c (main): Likewise.
25633         * tests/test-roundf1.c (main): Likewise.
25634         * tests/test-roundl.c (main): Likewise.
25635         * tests/test-trunc1.c (main): Likewise.
25636         * tests/test-truncf1.c (main): Likewise.
25637         * tests/test-truncl.c (main): Likewise.
25638
25639 2010-11-04  Eric Blake  <eblake@redhat.com>
25640
25641         frexp, tests: work around ICC bug with -zero
25642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25643         works with more compilers.
25644         * tests/minus-zero.h: New file.
25645         * modules/ceilf-tests (Files): Include it.
25646         * modules/ceill-tests (Files): Likewise.
25647         * modules/floorf-tests (Files): Likewise.
25648         * modules/floorl-tests (Files): Likewise.
25649         * modules/frexp-nolibm-tests (Files): Likewise.
25650         * modules/frexp-tests (Files): Likewise.
25651         * modules/frexpl-nolibm-tests (Files): Likewise.
25652         * modules/frexpl-tests (Files): Likewise.
25653         * modules/isnan-tests (Files): Likewise.
25654         * modules/isnand-nolibm-tests (Files): Likewise.
25655         * modules/isnand-tests (Files): Likewise.
25656         * modules/isnanf-nolibm-tests (Files): Likewise.
25657         * modules/isnanf-tests (Files): Likewise.
25658         * modules/isnanl-nolibm-tests (Files): Likewise.
25659         * modules/isnanl-tests (Files): Likewise.
25660         * modules/round-tests (Files): Likewise.
25661         * modules/roundf-tests (Files): Likewise.
25662         * modules/roundl-tests (Files): Likewise.
25663         * modules/ldexpl-tests (Files): Likewise.
25664         * modules/signbit-tests (Files): Likewise.
25665         * modules/snprintf-posix-tests (Files): Likewise.
25666         * modules/sprintf-posix-tests (Files): Likewise.
25667         * modules/strtod-tests (Files): Likewise.
25668         * modules/trunc-tests (Files): Likewise.
25669         * modules/truncf-tests (Files): Likewise.
25670         * modules/truncl-tests (Files): Likewise.
25671         * modules/vsnprintf-posix-tests (Files): Likewise.
25672         * modules/vsprintf-posix-tests (Files): Likewise.
25673         * modules/vasnprintf-posix-tests (Files): Likewise.
25674         * modules/vasprintf-posix-tests (Files): Likewise.
25675         * tests/test-ceilf1.c (main): Use it.
25676         * tests/test-ceill.c (main): Likewise.
25677         * tests/test-floorf1.c (main): Likewise.
25678         * tests/test-floorl.c (main): Likewise.
25679         * tests/test-frexp.c (main): Likewise.
25680         * tests/test-frexpl.c (main): Likewise.
25681         * tests/test-isnan.c (main): Likewise.
25682         * tests/test-isnand.h (main): Likewise.
25683         * tests/test-isnanf.h (main): Likewise.
25684         * tests/test-isnanl.h (main): Likewise.
25685         * tests/test-ldexpl.c (main): Likewise.
25686         * tests/test-round.c (main): Likewise.
25687         * tests/test-roundf.c (main): Likewise.
25688         * tests/test-roundl.c (main): Likewise.
25689         * tests/test-signbit.c (test_signbitf, test_signbitd)
25690         (test_signbitl): Likewise.
25691         * tests/test-snprintf-posix.h (test_function): Likewise.
25692         * tests/test-sprintf-posix.h (test_function): Likewise.
25693         * tests/test-strtod.c (main): Likewise.
25694         * tests/test-trunc1.c (main): Likewise.
25695         * tests/test-truncf1.c (main): Likewise.
25696         * tests/test-truncl.c (main): Likewise.
25697
25698         isnanl: work around icc bug
25699         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25700
25701 2010-11-03  Eric Blake  <eblake@redhat.com>
25702
25703         tests: fix compiler warnings
25704         * tests/test-getopt.h (test_getopt): Fix condition.
25705         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25706         * tests/test-pipe2.c (main): Likewise.
25707         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25708
25709         utimens: fix broken m4 test
25710         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25711
25712 2010-10-28  Bruno Haible  <bruno@clisp.org>
25713
25714         posix_spawn*, getdtablesize: Relax license.
25715         * modules/posix_spawn (License): Change to LGPLv2+.
25716         * modules/posix_spawnp (License): Likewise.
25717         * modules/posix_spawn-internal (License): Likewise.
25718         * modules/posix_spawnattr_init (License): Likewise.
25719         * modules/posix_spawnattr_getflags (License): Likewise.
25720         * modules/posix_spawnattr_setflags (License): Likewise.
25721         * modules/posix_spawnattr_getpgroup (License): Likewise.
25722         * modules/posix_spawnattr_setpgroup (License): Likewise.
25723         * modules/posix_spawnattr_getschedparam (License): Likewise.
25724         * modules/posix_spawnattr_setschedparam (License): Likewise.
25725         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25726         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25727         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25728         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25729         * modules/posix_spawnattr_getsigmask (License): Likewise.
25730         * modules/posix_spawnattr_setsigmask (License): Likewise.
25731         * modules/posix_spawnattr_destroy (License): Likewise.
25732         * modules/posix_spawn_file_actions_init (License): Likewise.
25733         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25734         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25735         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25736         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25737         * modules/getdtablesize (License): Likewise.
25738         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25739
25740 2010-10-26  Bruno Haible  <bruno@clisp.org>
25741
25742         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25743         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25744         Cygwin and mingw.
25745         Suggested by Eric Blake.
25746
25747 2010-10-26  Bruno Haible  <bruno@clisp.org>
25748
25749         stdio: Work around compilation error due to renameat() on Solaris 10.
25750         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25751         * lib/renameat.c: Don't include <unistd.h> here.
25752         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25753         Reported by Paul Eggert and Eric Blake.
25754
25755 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25756
25757         renameat: port to Solaris 10, which declares renameat in unistd.h
25758
25759         * lib/renameat.c: Include unistd.h before stdio.h, because
25760         Solaris 10 declares renameat in unistd.h.  Problem encountered
25761         when building GNU tar 1.24 on Solaris 10.
25762
25763 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25764
25765         fdopendir: fix C89 compilation
25766         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25767         compilers.
25768
25769 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25770
25771         inttostr: simplify by removing unnecessary redundancy
25772         * lib/anytostr.c: Don't include verify.h.
25773         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25774         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25775         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25776         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25777         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25778         Likewise.
25779         * modules/inttostr (Depends-on): Remove 'verify'.
25780
25781 2010-10-23  Bruno Haible  <bruno@clisp.org>
25782
25783         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25784         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25785         Reported by Eric Blake.
25786
25787 2010-10-23  Bruno Haible  <bruno@clisp.org>
25788
25789         Tests: Fix LOCALE_JA on MirBSD 10.
25790         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25791         to an UTF-8 locale.
25792         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25794         Reported by Eric Blake.
25795
25796 2010-10-21  Bruno Haible  <bruno@clisp.org>
25797
25798         nl_langinfo test: Avoid test failure on NetBSD 5.
25799         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25800         Reported by Eric Blake.
25801
25802 2010-10-21  Eric Blake  <eblake@redhat.com>
25803
25804         c-stack: work around libsigsegv 2.8 bug
25805         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25806         overflow on at least PowerPC64.
25807
25808 2010-10-17  Bruno Haible  <bruno@clisp.org>
25809
25810         userspec: Drop redundant file.
25811         * modules/userspec (Files): Remove lib/inttostr.h.
25812
25813 2010-10-17  Bruno Haible  <bruno@clisp.org>
25814
25815         nl_langinfo tests: Silence some warnings.
25816         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25817         Reported by Jim Meyering.
25818
25819 2010-10-17  Bruno Haible  <bruno@clisp.org>
25820
25821         Make use of GCC's attribute __alloc_size__.
25822         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25823         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25824         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25825         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25826         __alloc_size__.
25827         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25828         Suggested by Jim Meyering.
25829
25830 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25831
25832         bootstrap: anchor .gitignore entries.
25833         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25834         with...
25835         (insert_vc_ignore): ... this new function, which prepends `/' to
25836         all .gitignore entries before passing them to
25837         insert_sorted_if_absent.
25838
25839 2010-10-16  Bruno Haible  <bruno@clisp.org>
25840
25841         nextafter: Fix configure check.
25842         * modules/nextafter (configure.ac): Correct expected prototype.
25843
25844 2010-10-16  Bruno Haible  <bruno@clisp.org>
25845
25846         termios: Update documentation.
25847         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25848
25849 2010-10-16  Bruno Haible  <bruno@clisp.org>
25850
25851         tests: Make them compile with TinyCC.
25852         * tests/test-strstr.c (main): Remove parentheses around array
25853         initializer.
25854
25855 2010-10-15  Eric Blake  <eblake@redhat.com>
25856
25857         ignore-value: make header idempotent
25858         * lib/ignore-value.h: Add double-inclusion guards.
25859         Reported by Stefan Berger.
25860
25861 2010-10-15  Jim Meyering  <meyering@redhat.com>
25862
25863         GNUmakefile: handle "stable" target, not "major"
25864         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25865         lists in maint.mk and announce-gen.  Without this, "make stable"
25866         would fail to ensure that $(VERSION) is up to date.
25867
25868 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25869
25870         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25871         & co.
25872
25873 2010-10-14  Bruno Haible  <bruno@clisp.org>
25874
25875         vasnprintf: Don't set errno to 0.
25876         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25877         block that sets it to 0.
25878         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25879
25880 2010-10-14  Bruno Haible  <bruno@clisp.org>
25881
25882         socketlib: Fix.
25883         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25884         gl_PREREQ_SYS_H_WINSOCK2.
25885         Reported by Ian Beckwith <ianb@erislabs.net>.
25886
25887 2010-10-13  Jim Meyering  <meyering@redhat.com>
25888
25889         test-select-stdin.c: avoid warn_unused_result warnings
25890         * tests/test-select-stdin.c: Include "macros.h".
25891         ASSERT that read and fflush succeed.
25892
25893 2010-10-13  Jim Meyering  <meyering@redhat.com>
25894
25895         git-version-gen: do require git-VC'd files in cwd
25896         * build-aux/git-version-gen: Reject a git version string
25897         if there are no commits associated with the current directory.
25898         This avoids an unlikely false-positive (unrelated dir whose parent
25899         repository also contains a tag matching v*), as pointed out
25900         by Giuseppe Scrivano in
25901         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25902
25903 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25904
25905         argv-iter: omit nonconforming declaration
25906         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25907         enum arg_iter_err declaration, which doesn't conform to C99.
25908         Solaris 10 cc warns about this.
25909
25910 2010-10-13  Eric Blake  <eblake@redhat.com>
25911
25912         termios: fix compilation on mingw
25913         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25914         (gl_TERMIOS_H): Adjust it on mingw.
25915         * modules/termios (Makefile.am): Substitute new key.
25916         * lib/termios.in.h (includes): Make include_next conditional.
25917         * doc/posix-headers/termios.texi (termios.h): Update
25918         documentation.
25919         Reported by Daniel P. Berrange.
25920
25921 2010-10-13  Jim Meyering  <meyering@redhat.com>
25922
25923         git-version-gen: don't require that .git/ be in the current dir
25924         * build-aux/git-version-gen: Adjust this script so that it works
25925         when run from any working directory beneath the top-level .git/-
25926         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25928
25929         test-select: avoid warn_unused_result warnings
25930         * tests/test-select.c: Include "macros.h".
25931         ASSERT that each call to read, write, and pipe succeeds.
25932         While not technically required, also check each "close".
25933         * modules/select-tests (Files): Add tests/macros.h.
25934
25935         test-symlinkat: remove declaration of unused local
25936         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25937
25938         test-inttostr: avoid shadowing warnings
25939         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25940         and use malloc rather than the stack for the same reason as
25941         mentioned in the comment justifying the other allocation.
25942
25943 2010-10-11  Bruno Haible  <bruno@clisp.org>
25944
25945         stdlib: Allow multiple gnulib generated replacements to coexist.
25946         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25947         Reported by Sam Steingold <sds@gnu.org>.
25948
25949 2010-10-11  Jim Meyering  <meyering@redhat.com>
25950
25951         fix a documentation typo
25952         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25953
25954 2010-10-11  Eric Blake  <eblake@redhat.com>
25955
25956         futimens: work around Solaris 11 bug
25957         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25958         * tests/test-futimens.h (test_futimens): Enhance, rather than
25959         weaken test.
25960         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25961
25962 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25963
25964         Indentation.
25965         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25966         higher-level operators more to the left.
25967
25968 2010-10-11  Jim Meyering  <meyering@redhat.com>
25969
25970         test-futimens: avoid unwarranted test failure on Solaris 5.11
25971         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25972         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25973         because it tries to dereference the NULL name argument.
25974
25975 2010-10-11  Bruno Haible  <bruno@clisp.org>
25976
25977         Indentation.
25978         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25979         indentation.
25980
25981 2010-10-11  Jim Meyering  <meyering@redhat.com>
25982
25983         spawn.in.h: make indentation consistent with parentheses
25984         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25985         Make indentation consistent with parentheses.
25986
25987 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25988
25989         Fix mismatched parens in previous commit
25990         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25991         parens.
25992
25993 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25994
25995         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25996
25997         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25998         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25999         * lib/malloca.c: Include "verify.h".
26000         (verify1): Remove, replacing with a verify call.
26001         * lib/relocwrapper.c (verify1): Likewise.
26002         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26003         Likewise.
26004         * modules/malloca (Depends-on): Add 'verify'.
26005         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26006         * modules/vasnprintf (Depends-on): Add 'verify'.
26007         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26008         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26009         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26010         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26011         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26012         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26013         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26014
26015         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26016
26017         Formerly the style was sometimes 2*X - 1, because the C standard
26018         was wrongly thought to disallow ?: in integral constant expressions.
26019         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26020         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26021         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26022         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26023         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26024         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26025         verify that time_t cannot be floating.
26026
26027 2010-10-08  Eric Blake  <eblake@redhat.com>
26028
26029         time: enforce recent POSIX ruling that time_t is integral
26030         * lib/time.in.h (__time_t_must_be_integral): Detect any
26031         problematic systems, allowing the rest of gnulib to assume POSIX.
26032
26033 2010-10-08  Jim Meyering  <meyering@redhat.com>
26034
26035         fdopendir: fix a bug on systems lacking openat and /proc support
26036         OpenBSD 4.7 is one such system.  The most noticeable effect was
26037         failure of any application making nontrivial use of fts: rm, du,
26038         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26039           ./rm: traversal failed: `a': Bad file descriptor
26040         Debugging that, you see that even though FD 6 was closed just
26041         prior to the opendir call in fd_clone_opendir, its resulting
26042         dir->dd_fd was 8, rather than the expected value of 6:
26043
26044         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26045         93                close (fd);
26046         (gdb) n
26047         94                dir = fd_clone_opendir (dupfd);
26048         (gdb) n
26049         95                saved_errno = errno;
26050         (gdb) p dir->dd_fd
26051         $11 = 8
26052
26053         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26054         The problem is that on OpenBSD, fd_clone_opendir has to resort
26055         to using the old-style save/restore CWD mechanism, due to its
26056         lack of openat/proc support, and *that* would steal the FD (6)
26057         that opendir was supposed to use.
26058
26059         The fix is to squirrel away the desired FD so that save_cwd uses a
26060         different one, and then free the dest FD right before calling opendir.
26061         That guarantees opendir will use the required file descriptor.
26062
26063         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26064
26065 2010-10-08  Bruno Haible  <bruno@clisp.org>
26066
26067         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26068         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26069
26070 2010-10-08  Bruno Haible  <bruno@clisp.org>
26071
26072         nanosleep: Make replacement POSIX compliant.
26073         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26074         is out of range.
26075         Reported by Jim Meyering.
26076
26077 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26078
26079         bootstrap: add hook for altering gnulib.mk, for Bison
26080         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26081         the Bison bootstrapping process can rewrite file names and variables
26082         in this file before later parts of 'bootstrap' use the file.
26083         Bison wants to include lib/gnulib.mk from the top-level makefile,
26084         so it needs the file names in this file to be relative to the top
26085         level, not relative to lib; plus it needs variable names to be
26086         rewritten.
26087         (slurp): Use the new function.
26088
26089         bootstrap: reformat for readability
26090         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26091
26092 2010-10-08  Eric Blake  <eblake@redhat.com>
26093
26094         docs: update cygwin progress
26095         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26096         1.7.7.
26097         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26098         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26099         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26100         * doc/posix-functions/carg.texi (carg): Likewise.
26101         * doc/posix-functions/cargf.texi (cargf): Likewise.
26102         * doc/posix-functions/casin.texi (casin): Likewise.
26103         * doc/posix-functions/casinf.texi (casinf): Likewise.
26104         * doc/posix-functions/casinh.texi (casinh): Likewise.
26105         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26106         * doc/posix-functions/catan.texi (catan): Likewise.
26107         * doc/posix-functions/catanf.texi (catanf): Likewise.
26108         * doc/posix-functions/catanh.texi (catanh): Likewise.
26109         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26110         * doc/posix-functions/ccos.texi (ccos): Likewise.
26111         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26112         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26113         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26114         * doc/posix-functions/cexp.texi (cexp): Likewise.
26115         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26116         * doc/posix-functions/cimag.texi (cimag): Likewise.
26117         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26118         * doc/posix-functions/clog.texi (clog): Likewise.
26119         * doc/posix-functions/clogf.texi (clogf): Likewise.
26120         * doc/posix-functions/conj.texi (conj): Likewise.
26121         * doc/posix-functions/conjf.texi (conjf): Likewise.
26122         * doc/posix-functions/cpow.texi (cpow): Likewise.
26123         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26124         * doc/posix-functions/cproj.texi (cproj): Likewise.
26125         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26126         * doc/posix-functions/creal.texi (creal): Likewise.
26127         * doc/posix-functions/crealf.texi (crealf): Likewise.
26128         * doc/posix-functions/csin.texi (csin): Likewise.
26129         * doc/posix-functions/csinf.texi (csinf): Likewise.
26130         * doc/posix-functions/csinh.texi (csinh): Likewise.
26131         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26132         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26133         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26134         * doc/posix-functions/ctan.texi (ctan): Likewise.
26135         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26136         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26137         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26138         * doc/posix-headers/complex.texi (complex.h): Likewise.
26139
26140 2010-10-07  Jim Meyering  <meyering@redhat.com>
26141
26142         parse-datetime: avoid compilation failure on OpenBSD 4.7
26143         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26144         This works around a compilation failure on OpenBSD 4.7:
26145         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26146
26147 2010-10-07  Eric Blake  <eblake@redhat.com>
26148
26149         docs: update cygwin progress
26150         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26151         1.7.6.
26152         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26153         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26154         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26155         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26156         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26157         Likewise.
26158         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26159         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26160         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26161         Likewise.
26162         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26163         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26164         Likewise.
26165         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26166         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26167         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26168         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26169         Likewise.
26170         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26171         Likewise.
26172         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26173
26174         docs: update parse-datetime history
26175         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26176         documentation of this function's history and alternatives.
26177
26178         cygwin: use more robust version check
26179         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26180         exclude an eventual cygwin 1.9.1.
26181         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26183         (gl_FUNC_STRCASESTR): Likewise.
26184         Reported by Bruno Haible.
26185
26186 2010-10-06  Bruno Haible  <bruno@clisp.org>
26187
26188         string, sys_select: Avoid #including large headers unless necessary.
26189         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26190         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26191         OSF/1, BeOS, Haiku.
26192         Reported by Jim Meyering.
26193
26194 2010-10-05  Eric Blake  <eblake@redhat.com>
26195
26196         memmem, strstr, strcasestr: fix bug with long periodic needle
26197         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26198         periodic needle having false positive.
26199         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26200         and cygwin 1.7.7.
26201         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26203         (gl_FUNC_STRCASESTR): Likewise.
26204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26205         * tests/test-memmem.c (main): Expose the bug.
26206         * tests/test-strcasestr.c (main): Likewise.
26207         * tests/test-strstr.c (main): Likewise.
26208         * tests/test-c-strcasestr.c (main): Likewise.
26209         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26210         * doc/posix-functions/strstr.texi (strstr): Likewise.
26211         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26212         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26213
26214 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26215
26216         parse-datetime: do some more renaming
26217         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26218         parse_datetime, not get_date.  Mention the renaming.
26219         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26220         in comments.
26221         * m4/bison.m4: Likewise.
26222
26223 2010-10-05  Eric Blake  <eblake@redhat.com>
26224
26225         parse-datetime: better name than get_date
26226         * NEWS: Reword the deprecation notice.
26227         * modules/get_date: Rename to modules/parse-datetime.
26228         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26229         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26230         * lib/get_date.y: Rename to lib/parse-datetime.y.
26231         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26232         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26233         * doc/getdate.texi: Provide fallback wrapper.
26234         * lib/getdate.h: Move guts, and wrap...
26235         * lib/parse-datetime.h: ...new file.
26236         * lib/parse-datetime.y (get_date): Rename...
26237         (parse_datetime): ...to this.
26238         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26239         (gl_PARSE_DATETIME): ...to this.
26240         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26241         documentation.
26242         * modules/getdate (Files): Provide fallback docs and header.
26243         (Notice, Depends-on): Update references.
26244         * tests/test-parse-datetime.c: Likewise.
26245         * DEPENDENCIES: Likewise.
26246         * MODULES.html.sh (Date and time <time.h>): Likewise.
26247         * doc/parse-datetime.texi (Date input formats)
26248         (Authors of parse_datetime): Likewise.
26249         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26250         (Include): Likewise.
26251         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26252         * gnulib-tool: Likewise.
26253         * m4/bison.m4 (gl_BISON): Likewise.
26254         Suggested by Bruno Haible.
26255
26256 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26257
26258         more ports to Solaris tr, which needs [] around ranges
26259         * gnulib-tool: Solaris tr needs [] around ranges.
26260         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26261         * tests/test-pipe-filter-gi1.c (main): Likewise.
26262         * tests/test-pipe-filter-ii1.c (main): Likewise.
26263
26264 2010-10-05  Eric Blake  <eblake@redhat.com>
26265
26266         bootstrap: fix Solaris regression
26267         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26268         around ranges.
26269         Reported by Pádraig Brady.
26270
26271         bootstrap: work with pkg-config
26272         * build-aux/bootstrap (check_versions): Also transliterate - in
26273         prerequisite name.
26274         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26275         prerequisites that were already found, to avoid confusion.
26276         Reported by Justin Clift.
26277
26278         faccessat: remove unused wrappers
26279         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26280         presence of these wrappers dragged in -lgen on Solaris.
26281         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26282
26283 2010-10-05  Jim Meyering  <meyering@redhat.com>
26284
26285         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26286         * Makefile (sc_pragma_columns): New syntax-check rule.
26287
26288 2010-10-04  Bruno Haible  <bruno@clisp.org>
26289
26290         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26291         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26292         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26293         Reported by Bruce Korb and Eric Blake.
26294
26295 2010-10-04  Bruno Haible  <bruno@clisp.org>
26296
26297         threadlib: Make option --with-libpth-prefix work.
26298         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26299         use $LIBPTH, not just -lpth.
26300
26301 2010-10-04  Bruno Haible  <bruno@clisp.org>
26302
26303         Avoid line length limitation from HP NonStop system header files.
26304         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26305         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26306         * lib/ctype.in.h: Likewise.
26307         * lib/dirent.in.h: Likewise.
26308         * lib/errno.in.h: Likewise.
26309         * lib/fcntl.in.h: Likewise.
26310         * lib/float.in.h: Likewise.
26311         * lib/getopt.in.h: Likewise.
26312         * lib/iconv.in.h: Likewise.
26313         * lib/inttypes.in.h: Likewise.
26314         * lib/langinfo.in.h: Likewise.
26315         * lib/locale.in.h: Likewise.
26316         * lib/math.in.h: Likewise.
26317         * lib/netdb.in.h: Likewise.
26318         * lib/netinet_in.in.h: Likewise.
26319         * lib/poll.in.h: Likewise.
26320         * lib/pthread.in.h: Likewise.
26321         * lib/pty.in.h: Likewise.
26322         * lib/sched.in.h: Likewise.
26323         * lib/se-selinux.in.h: Likewise.
26324         * lib/search.in.h: Likewise.
26325         * lib/signal.in.h: Likewise.
26326         * lib/spawn.in.h: Likewise.
26327         * lib/stdarg.in.h: Likewise.
26328         * lib/stddef.in.h: Likewise.
26329         * lib/stdint.in.h: Likewise.
26330         * lib/stdio.in.h: Likewise.
26331         * lib/stdlib.in.h: Likewise.
26332         * lib/string.in.h: Likewise.
26333         * lib/strings.in.h: Likewise.
26334         * lib/sys_file.in.h: Likewise.
26335         * lib/sys_ioctl.in.h: Likewise.
26336         * lib/sys_select.in.h: Likewise.
26337         * lib/sys_socket.in.h: Likewise.
26338         * lib/sys_stat.in.h: Likewise.
26339         * lib/sys_time.in.h: Likewise.
26340         * lib/sys_times.in.h: Likewise.
26341         * lib/sys_utsname.in.h: Likewise.
26342         * lib/sys_wait.in.h: Likewise.
26343         * lib/sysexits.in.h: Likewise.
26344         * lib/termios.in.h: Likewise.
26345         * lib/time.in.h: Likewise.
26346         * lib/unistd.in.h: Likewise.
26347         * lib/wchar.in.h: Likewise.
26348         * lib/wctype.in.h: Likewise.
26349         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26350         * modules/ctype (Makefile.am): Likewise.
26351         * modules/dirent (Makefile.am): Likewise.
26352         * modules/errno (Makefile.am): Likewise.
26353         * modules/fcntl-h (Makefile.am): Likewise.
26354         * modules/float (Makefile.am): Likewise.
26355         * modules/getopt-posix (Makefile.am): Likewise.
26356         * modules/iconv-h (Makefile.am): Likewise.
26357         * modules/inttypes (Makefile.am): Likewise.
26358         * modules/langinfo (Makefile.am): Likewise.
26359         * modules/locale (Makefile.am): Likewise.
26360         * modules/math (Makefile.am): Likewise.
26361         * modules/netdb (Makefile.am): Likewise.
26362         * modules/netinet_in (Makefile.am): Likewise.
26363         * modules/poll-h (Makefile.am): Likewise.
26364         * modules/pthread (Makefile.am): Likewise.
26365         * modules/pty (Makefile.am): Likewise.
26366         * modules/sched (Makefile.am): Likewise.
26367         * modules/search (Makefile.am): Likewise.
26368         * modules/selinux-h (Makefile.am): Likewise.
26369         * modules/signal (Makefile.am): Likewise.
26370         * modules/spawn (Makefile.am): Likewise.
26371         * modules/stdarg (Makefile.am): Likewise.
26372         * modules/stddef (Makefile.am): Likewise.
26373         * modules/stdint (Makefile.am): Likewise.
26374         * modules/stdio (Makefile.am): Likewise.
26375         * modules/stdlib (Makefile.am): Likewise.
26376         * modules/string (Makefile.am): Likewise.
26377         * modules/strings (Makefile.am): Likewise.
26378         * modules/sys_file (Makefile.am): Likewise.
26379         * modules/sys_ioctl (Makefile.am): Likewise.
26380         * modules/sys_select (Makefile.am): Likewise.
26381         * modules/sys_socket (Makefile.am): Likewise.
26382         * modules/sys_stat (Makefile.am): Likewise.
26383         * modules/sys_time (Makefile.am): Likewise.
26384         * modules/sys_times (Makefile.am): Likewise.
26385         * modules/sys_utsname (Makefile.am): Likewise.
26386         * modules/sys_wait (Makefile.am): Likewise.
26387         * modules/sysexits (Makefile.am): Likewise.
26388         * modules/termios (Makefile.am): Likewise.
26389         * modules/time (Makefile.am): Likewise.
26390         * modules/unistd (Makefile.am): Likewise.
26391         * modules/wchar (Makefile.am): Likewise.
26392         * modules/wctype (Makefile.am): Likewise.
26393
26394 2010-10-04  Bruno Haible  <bruno@clisp.org>
26395
26396         read-file tests: Avoid a test failure on NonStop Kernel.
26397         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26398         a regular file.
26399         Reported by Joachim Schmitz <schmitz@hp.com>.
26400
26401 2010-10-03  Bruno Haible  <bruno@clisp.org>
26402
26403         gnulib-tool: Fixes for --create-testdir with --libtool.
26404         * gnulib-tool (func_get_automake_snippet): Don't augment
26405         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26406         an executable.
26407         (func_create_testdir): Handle module 'alloca' like func_import.
26408         Reported by Bruce Korb <bruce.korb@gmail.com>.
26409
26410 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26411
26412         Avoid some lines longer than 80 characters.
26413         * lib/stdint.in.h: Break long comment lines.
26414         * lib/math.in.h: Likewise.
26415         (_GL_NUM_UINT_WORDS): New macro, for readability.
26416         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26417         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26418         * lib/stdlib.in.h: Likewise.
26419         * lib/spawn.in.h: Likewise.
26420         * lib/sys_socket.in.h: Update an URL.
26421         * lib/sys_stat.in.h: Break long line.
26422
26423 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26424
26425         Improve pmccabe2html.
26426         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26427         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26428         when the sources change. Remove the line in the HTML about "Used
26429         ranges" (which implied that there might be other unused ranges),
26430         rename "Resume" to "Summary" (easier to understand for more users).
26431         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26432         styles, and some unnecessary blank lines.
26433
26434 2010-10-03  Bruno Haible  <bruno@clisp.org>
26435             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26436
26437         acl: Add support for ACLs on NonStop Kernel.
26438         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26439         Check whether the function aclsort() exists.
26440         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26441         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26442         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26443         (acl_nontrivial [HAVE_ACLSORT]: New function.
26444         (file_has_acl): Implement for NonStop Kernel.
26445         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26446         (qset_acl): Implement for NonStop Kernel.
26447         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26448         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26449         (main): Implement for NonStop Kernel.
26450         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26451         Kernel. Handle this flavor.
26452         * tests/test-set-mode-acl.sh: Likewise.
26453         * tests/test-copy-acl.sh: Likewise.
26454         * tests/test-copy-file.sh: Likewise.
26455
26456 2010-10-03  Bruno Haible  <bruno@clisp.org>
26457
26458         Info about ACLs on NonStop Kernel.
26459         * doc/acl-resources.txt: Add info about NonStop Kernel.
26460         References by Joachim Schmitz <schmitz@hp.com>.
26461
26462 2010-10-02  Bruno Haible  <bruno@clisp.org>
26463
26464         Define missing EDQUOT on NonStop Kernel.
26465         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26466         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26467         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26468         missing.
26469         * doc/posix-headers/errno.texi: Mention the NSK bug.
26470         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26471         Reported by Joachim Schmitz <schmitz@hp.com>.
26472
26473 2010-10-02  Bruno Haible  <bruno@clisp.org>
26474
26475         Update doc for POSIX:2008.
26476         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26477         Update URL of POSIX specification.
26478
26479 2010-10-02  Bruno Haible  <bruno@clisp.org>
26480
26481         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26482         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26483         from gnulib, not from Automake.
26484
26485 2010-10-02  Bruno Haible  <bruno@clisp.org>
26486
26487         New module 'system-posix'.
26488         * modules/system-posix: New file.
26489         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26490         module is present.
26491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26492         GNULIB_SYSTEM_POSIX.
26493         * modules/stdlib (Depends-on): Remove sys_wait.
26494         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26495         * doc/posix-functions/system.texi: Mention the new module.
26496         * doc/posix-headers/stdlib.texi: Likewise.
26497         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26498         define test_sys_wait_macros to a no-op.
26499         Reported by Sam Steingold <sds@gnu.org>.
26500
26501 2010-09-30  Bruno Haible  <bruno@clisp.org>
26502
26503         More renaming from 'getdate' to 'get_date'.
26504         * doc/get_date.texi: Renamed from doc/getdate.texi.
26505         * modules/get_date (Files): Update.
26506         * MODULES.html.sh (Date and time <time.h>): Update.
26507         * DEPENDENCIES: Update.
26508         * gnulib-tool: Update comment.
26509         * m4/bison.m4 (gl_BISON): Likewise.
26510         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26511
26512 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26513
26514         bootstrap: support ACLOCAL_FLAGS during aclocal
26515         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26516         can add additional -I dir for third-party .m4 files.
26517
26518 2010-09-30  Eric Blake  <eblake@redhat.com>
26519
26520         bootstrap: use glibtoolize on MacOS
26521         * build-aux/bootstrap (check_versions): Convert libtool into
26522         libtoolize.
26523         (tool search): Move libtool check earlier, and look for
26524         glibtoolize for MacOS.
26525         (gnulib_tool_options): Auto-add --libtool when appropriate.
26526         Reported by Justin Clift.
26527
26528         poll: fix typo that broke test on MacOS
26529         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26530         Reported by Justin Clift.
26531
26532         getdate: rename to get_date
26533         Note: getdate.h is not renamed, to minimize client impact.
26534         * modules/getdate: Mark obsolete.  Move old contents...
26535         * modules/get_date: ...to new module name.
26536         * modules/getdate-tests: Move...
26537         * modules/get_date-tests: ...here.
26538         * m4/getdate.m4: Move...
26539         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26540         * lib/getdate.y: Move...
26541         * lib/get_date.y: ...here.
26542         * tests/test-getdate.c: Move...
26543         * tests/test-get_date.c: ...here.
26544         * doc/posix-functions/getdate.texi (getdate): Update name.
26545         * NEWS: Mention the change.
26546
26547 2010-09-29  Bruno Haible  <bruno@clisp.org>
26548
26549         Separate the module 'waitpid' from the module 'sys_wait'.
26550         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26551         present.
26552         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26553         gl_MODULE_INDICATOR_FOR_TESTS.
26554         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26555         * modules/sys_wait (Depends-on): Remove waitpid.
26556         (Makefile.am): Substitute GNULIB_WAITPID.
26557         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26558         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26559         signature only if the 'waitpid' module is present.
26560         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26561         * NEWS: Mention the change.
26562         * modules/grantpt (Depends-on): Add waitpid.
26563         * modules/wait-process (Depends-on): Likewise.
26564
26565 2010-09-29  Bruno Haible  <bruno@clisp.org>
26566
26567         More tests for module 'sys_wait'.
26568         * modules/sys_wait-c++-tests: New file.
26569         * tests/test-sys_wait-c++.cc: New file.
26570         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26571         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26572
26573 2010-09-29  Bruno Haible  <bruno@clisp.org>
26574
26575         New module 'waitpid'.
26576         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26577         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26578         Don't include <process.h>.
26579         (waitpid): Declare only, using modern idiom.
26580         * m4/waitpid.m4: New file.
26581         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26582         * modules/waitpid: New file.
26583         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26584         (Makefile.am): Update.
26585         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26586
26587 2010-09-28  Bruno Haible  <bruno@clisp.org>
26588
26589         poll: Assume ANSI C.
26590         * lib/poll.c (poll): Use an ANSI C declaration.
26591
26592 2010-09-28  Bruno Haible  <bruno@clisp.org>
26593
26594         poll-h: Create poll.h on all platforms.
26595         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26596         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26597         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26598         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26599         (gl_REPLACE_POLL_H): Don't set POLL_H.
26600         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26601         * modules/poll-h (Depends-on): Add include_next.
26602         (Makefile.am): Create poll.h unconditionally. Substitute also
26603         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26604
26605 2010-09-28  Bruno Haible  <bruno@clisp.org>
26606
26607         Tests for module 'poll-h'.
26608         * modules/poll-h-c++-tests: New file.
26609         * tests/test-poll-h-c++.cc: New file.
26610
26611         Tests for module 'poll-h'.
26612         * modules/poll-h-tests: New file.
26613         * tests/test-poll-h.c: New file.
26614
26615 2010-09-28  Bruno Haible  <bruno@clisp.org>
26616
26617         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26618         * modules/poll-h (Depends-on): Add 'extensions'.
26619
26620 2010-09-28  Bruno Haible  <bruno@clisp.org>
26621
26622         New module 'poll-h'.
26623         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26624         (poll): Use modern idiom.
26625         * modules/poll-h: New file.
26626         * modules/poll (Files): Remove lib/poll.in.h.
26627         (Depends-on): Add poll-h.
26628         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26629         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26630         * m4/poll_h.m4: New file.
26631         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26632         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26633         and invoke gl_REPLACE_POLL_H.
26634         * lib/poll.c: Use common idiom.
26635         * tests/test-poll.c: Likewise.
26636         * doc/posix-headers/poll.texi: Mention the poll-h module.
26637         Suggested by Eric Blake.
26638
26639 2010-09-26  Bruno Haible  <bruno@clisp.org>
26640
26641         sys_wait: Implement WSTOPSIG.
26642         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26643         Reported by Simon Josefsson.
26644
26645 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26646
26647         stdlib, sys_wait: Avoid compilation error on mingw.
26648         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26649
26650 2010-09-26  Bruno Haible  <bruno@clisp.org>
26651
26652         stdlib tests: Avoid code duplication.
26653         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26654         * modules/sys_wait-tests (Files): Likewise.
26655         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26656         * tests/test-stdlib.c: Include test-sys_wait.h.
26657         (main): Invoke test_sys_wait_macros.
26658         * tests/test-sys_wait.c: Include test-sys_wait.h.
26659         (main): Invoke test_sys_wait_macros.
26660
26661 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26662
26663         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26664         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26665         sure Windows sockets are working before calling getaddrinfo.
26666         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26667         * doc/gnulib.texi (Windows sockets): Fix typo.
26668
26669 2010-09-25  Bruno Haible  <bruno@clisp.org>
26670
26671         Tests for module 'regex-quote'.
26672         * modules/regex-quote-tests: New file.
26673         * tests/test-regex-quote.c: New file.
26674
26675         New module 'regex-quote'.
26676         * lib/regex-quote.h: New file.
26677         * lib/regex-quote.c: New file.
26678         * modules/regex-quote: New file.
26679         Suggested by Reuben Thomas <rrt@sc3d.org>.
26680
26681 2010-09-24  Bruno Haible  <bruno@clisp.org>
26682
26683         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26684         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26685
26686 2010-09-23  Bruno Haible  <bruno@clisp.org>
26687
26688         setenv: Relax license.
26689         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26690         Blake.
26691         Requested by Eric Blake.
26692
26693 2010-09-22  Bruno Haible  <bruno@clisp.org>
26694
26695         termios: Relax license.
26696         * modules/termios (License): Change to LGPLv2+.
26697         Requested by Eric Blake.
26698
26699 2010-09-22  Bruno Haible  <bruno@clisp.org>
26700
26701         threadlib: Allow the package to change the default to 'no'.
26702         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26703         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26704         Reported by Paul Eggert.
26705
26706 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26707             Bruno Haible  <bruno@clisp.org>
26708
26709         Fix endless loop in mbmemcasecoll.
26710         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26711         byte.
26712         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26713
26714 2010-09-22  Bruno Haible  <bruno@clisp.org>
26715
26716         Tests for module 'memcoll'.
26717         * modules/memcoll-tests: New file.
26718         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26719
26720         memcoll, xmemcoll: Clarify size vs. length.
26721         * modules/memcoll.c (memcoll0): Clarify specification.
26722         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26723         passed to collate_error.
26724
26725 2010-09-22  Bruno Haible  <bruno@clisp.org>
26726
26727         Tests for module 'memcasecmp'.
26728         * modules/memcasecmp-tests: New file.
26729         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26730
26731 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26732
26733         * lib/pthread.in.h: Add split double-inclusion guard, and include
26734         system <pthread.h> if there is one.  Use @@-style as in other
26735         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26736         pthread.h doesn't.
26737         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26738         (pthread_mutexattr_settype, pthread_mutex_trylock):
26739         New static inline functions, if there's no system <pthread.h>.
26740         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26741         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26742         Approximate with mutexes if the system lacks spinlocks, as in
26743         MacOS.
26744         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26745         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26746         @@-style.  Check for spinlocks separately.
26747         (gl_PTHREAD_DEFAULTS): New macro.
26748         * modules/pthread: Redo to use a more typical style for in.h files.
26749
26750 2010-09-21  Eric Blake  <eblake@redhat.com>
26751
26752         net_if: enhance tests
26753         * tests/test-net_if.c (main): Move signature checks earlier.
26754         Print failures to stderr.
26755         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26756         Document the bug that we do not yet fix.
26757
26758 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26759
26760         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26761         about gnulib, not GSS.
26762
26763 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26764
26765         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26766         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26767         for Emacs.
26768         * build-aux/pmccabe2html: Make Makefile.am example code more
26769         cut-and-paste friendly.
26770
26771 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26772
26773         * tests/test-net_if.c: New file.
26774         * modules/net_if-tests: New file.
26775
26776 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26777
26778         pthread: add pthread_spin_destroy
26779         * lib/pthread.in.h (pthread_spin_destroy): New function.
26780
26781 2010-09-19  Bruno Haible  <bruno@clisp.org>
26782
26783         gnulib-tool: Fix --help output.
26784         * gnulib-tool (func_usage): Fix help message.
26785         Reported by Reuben Thomas <rrt@sc3d.org>.
26786
26787 2010-09-18  Jim Meyering  <meyering@redhat.com>
26788
26789         maint.mk: avoid unexpanded \n in two diagnostics
26790         * top/maint.mk (sc_prohibit_always_true_header_tests):
26791         Don't use a literal \n in a halt=... assignment.  It would not be
26792         expanded, and the two \n bytes would appear in the diagnostic output
26793         rather than the desired newline.  Use halt=$$(printf ... instead.
26794         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26795
26796 2010-09-18  Bruno Haible  <bruno@clisp.org>
26797
26798         netinet_in: Doc tweak.
26799         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26800         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26801
26802 2010-09-18  Jim Meyering  <meyering@redhat.com>
26803
26804         init.sh: correct an outdated comment
26805         * tests/init.sh (create_exe_shims_):  s/function/alias/
26806
26807         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26808         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26809         a file named "*.exe" is removed between the glob expansion and the
26810         processing of that oddly named file.
26811
26812 2010-09-17  Eric Blake  <eblake@redhat.com>
26813
26814         mirbsd: add some more support
26815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26816         in BSD family.
26817         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26818         devices as OpenBSD.
26819         * m4/host-os.m4 (mirbsd): Add MirBSD.
26820
26821         tests: fix unportable assumption on sys/wait.h
26822         * tests/test-sys_wait.c (main): Relax test.
26823         * tests/test-stdlib.c (main): Likewise.
26824
26825         init.sh: accommodate directory with no .exes
26826         * tests/init.sh: Accomodate directory containing only scripts.
26827
26828         tests: avoid compiler warning
26829         * tests/test-stdlib.c (main): Use the variable.
26830
26831         fdutimens, fdutimensat: update signature, again
26832         * lib/utimens.h (gl_futimens): Delete, and move signature...
26833         (fdutimens): ...here.
26834         (fdutimensat): Rearrange signature.
26835         (lutimensat): Rename variable for clarity.
26836         * lib/fdutimensat.c (fdutimensat): Update signature.
26837         * lib/utimens.c (fdutimens): Likewise.
26838         (gl_futimens): Delete.
26839         (utimens, lutimens): Update callers.
26840         * lib/futimens.c (futimens): Likewise.
26841         * tests/test-fdutimensat.c: Likewise.
26842         * tests/test-utimens.c: Likewise.
26843         * tests/test-futimens.h: Update comment.
26844         * NEWS: Mention this.
26845         Suggested by Paul Eggert.
26846
26847 2010-09-17  Bruno Haible  <bruno@clisp.org>
26848
26849         Take over the maintenance of some older macros from Autoconf.
26850         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26851         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26852         GNU Autoconf.
26853         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26854         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26855
26856 2010-09-17  Eric Blake  <eblake@redhat.com>
26857
26858         fdutimensat: drop atflag validation
26859         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26860         with valid fd, to close a race scenario where futimens is
26861         unsupported and FILE was replaced by a symlink.
26862         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26863         accordingly.
26864         Suggested by Paul Eggert.
26865
26866 2010-09-16  Bruno Haible  <bruno@clisp.org>
26867
26868         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26869         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26870
26871 2010-09-16  Bruno Haible  <bruno@clisp.org>
26872
26873         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26874         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26875         login_tty exists.
26876         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26877
26878 2010-09-16  Bruno Haible  <bruno@clisp.org>
26879
26880         login_tty: Make the replacement code work on BSD systems.
26881         * lib/login_tty.c: Include <sys/ioctl.h>.
26882         (login_tty): Use ioctl TIOCSCTTY when available.
26883         * modules/login_tty (Depends-on): Add sys_ioctl.
26884         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26885
26886 2010-09-16  Bruno Haible  <bruno@clisp.org>
26887
26888         login_tty: Stricter unit test.
26889         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26890         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26891         and tcgetsid() after login_tty.
26892         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26893
26894 2010-09-16  Bruno Haible  <bruno@clisp.org>
26895
26896         New module 'tcgetsid'.
26897         * lib/tcgetsid.c: New file.
26898         * m4/tcgetsid.m4: New file.
26899         * modules/tcgetsid: New file.
26900         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26901         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26902         GNULIB_TCGETSID, HAVE_TCGETSID.
26903         * lib/termios.in.h: Include <sys/types.h>.
26904         (tcgetsid): New declaration.
26905         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26906         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26907         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26908         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26909
26910 2010-09-16  Bruno Haible  <bruno@clisp.org>
26911
26912         Tests for module 'termios'.
26913         * modules/termios-c++-tests: New file.
26914         * modules/termios-tests: New file.
26915         * tests/test-termios-c++.cc: New file.
26916         * tests/test-termios.c: New file.
26917
26918         New module 'termios'.
26919         * modules/termios: New file.
26920         * lib/termios.in.h: New file.
26921         * m4/termios_h.m4: New file.
26922         * doc/posix-headers/termios.texi: Mention the new module.
26923
26924 2010-09-16  Eric Blake  <eblake@redhat.com>
26925
26926         fdutimensat: add an atflag parameter
26927         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26928         * lib/utimens.h (fdutimensat): Update prototype.
26929         * tests/test-fdutimensat.c: Adjust test to match.
26930         * NEWS: Document the change.
26931         Suggested by Paul Eggert.
26932
26933 2010-09-16  Bruno Haible  <bruno@clisp.org>
26934
26935         Fix typos in comments.
26936         * lib/striconveh.h: Fix typo in comment.
26937         * lib/login_tty.c (login_tty): Likewise.
26938
26939 2010-09-15  Bruno Haible  <bruno@clisp.org>
26940
26941         stdlib: clarify MirBSD WEXITSTATUS bug
26942         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26943         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26944
26945 2010-09-15  Eric Blake  <eblake@redhat.com>
26946
26947         stdlib: work around MirBSD WEXITSTATUS bug
26948         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26949         * modules/stdlib (Depends-on): Add sys_wait.
26950         * tests/test-sys_wait.c (main): Enhance test.
26951         * tests/test-stdlib.c (main): Likewise.
26952         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26953
26954         docs: mention MacOS issue with WEXITSTATUS(constant)
26955         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26956         issue.
26957         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26958
26959         strnlen: add tests
26960         * modules/strnlen-tests: New file.
26961         * tests/test-strnlen.c: Likewise.
26962
26963 2010-09-14  Bruno Haible  <bruno@clisp.org>
26964
26965         unistr/base: Avoid link errors when module 'libunistring' is also used.
26966         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26967         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26968         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26969         Declare also when HAVE_LIBUNISTRING is set.
26970         Reported by Pádraig Brady <P@draigbrady.com>.
26971
26972 2010-09-14  Eric Blake  <eblake@redhat.com>
26973
26974         test-rawmemchr: make more robust
26975         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26976         (Depends-on, configure.ac): Add needed prerequisites to use it.
26977         * modules/memchr-tests (Files, Depends-on, configure.ac):
26978         Likewise, to avoid implicit reliance on memchr module prereqs.
26979         * tests/test-memchr.c (main): Ensure proper masking.
26980         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26981         reads.
26982
26983         memchr: detect glibc Alpha bug
26984         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26986         Alpha.
26987         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26988         * tests/test-memchr.c (main): Enhance test.
26989         Reported by Nelson H. F. Beebe.
26990
26991 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26992
26993         fts, getcwd, glob: audit for dirfd returning -1
26994         * lib/fts.c (opendir): Remove #define; no longer used.
26995         (opendirat): New arg PDIR_FD.  All callers changed.
26996         (fts_build, _opendir2): Use new opendirat to avoid the need for
26997         dirfd, or for checking whether dirfd returns a negative value.
26998         Don't use opendir; always use openat followed by fdopendir.
26999         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27000         it.
27001         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27002         returns -1 here.
27003         * modules/fts (Depends-on): Remove dirfd.
27004         * modules/getcwd (Depends-on): Likewise.
27005
27006 2010-09-13  Eric Blake  <eblake@redhat.com>
27007
27008         float: fix broken MirBSD header
27009         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27010         * doc/posix-headers/float.texi (float.h): Document it.
27011
27012 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27013
27014         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27015         * lib/fts.c (opendirat): New arg extra_flags.
27016         (__opendir2): Use it to avoid following symlinks when opening
27017         a directory, if symlinks are not supposed to be followed.  See
27018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27019
27020         fdopendir: preserve argument fd before returning
27021         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27022         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27023         (fdopendir): Use them, arranging for FD to be open to the same
27024         directory that it was when it started.  (It might be temporarily
27025         closed while fdopendir is running, so this not thread- or
27026         signal-safe.)  Be careful to do the right thing even when file
27027         descriptors are scarce and dup fails with errno == EMFILE.  See
27028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27029
27030 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27031
27032         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27033         * NEWS: Document change.
27034         * m4/regex.m4: Disable test for regoff_t size.
27035
27036 2010-09-13  Jim Meyering  <meyering@redhat.com>
27037
27038         fts: don't operate on an invalid file descriptor after failed dup
27039         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27040         negative file descriptor.
27041
27042 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27043
27044         savedir: add streamsavedir, deprecate fdsavedir
27045         * NEWS: Mention deprecation of fdsavedir.
27046         * lib/savedir.c (streamsavedir): New extern function, whose name
27047         ends in "savedir" to be consistent with the others.  This differs
27048         from savedirstream in that it doesn't close its argument.  The
27049         next version of GNU tar will use this instead of fdsavedir, to
27050         avoid some race conditions and conserve file descriptors.
27051         (savedirstream): Reimplement as a wrapper around streamsavedir.
27052         (fdsavedir): Add a comment deprecating this function.  As far as
27053         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27054         * lib/savedir.h (streamsavedir): New decl.
27055         (fdsavedir): Add a comment deprecating this.
27056
27057 2010-09-10  Bruno Haible  <bruno@clisp.org>
27058
27059         langinfo: Fix last commit.
27060         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27061         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27063
27064 2010-09-10  Bruno Haible  <bruno@clisp.org>
27065
27066         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27067         * lib/progreloc.c (O_EXEC): Define fallback.
27068
27069 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27070
27071         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27072         * NEWS: Document recent changes to fcntl-h.
27073         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27074         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27075         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27076         Similarly for O_SEARCH; this last was already true, but not documented.
27077         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27078         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27079         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27080         Likewise.
27081         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27082         is zero, not whether it is defined.
27083         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27084         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27085         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27086
27087 2010-09-10  Bruno Haible  <bruno@clisp.org>
27088
27089         langinfo, nl_langinfo: Fix for IRIX 5.3.
27090         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27091         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27092         HAVE_LANGINFO_YESEXPR.
27093         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27094         HAVE_LANGINFO_YESEXPR.
27095         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27096         HAVE_LANGINFO_T_FMT_AMPM is 0.
27097         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27098         HAVE_LANGINFO_YESEXPR is 0.
27099         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27100         NOEXPR.
27101         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27102         * doc/posix-functions/nl_langinfo.texi: Likewise.
27103         Reported by Eric Blake.
27104
27105 2010-09-10  Bruno Haible  <bruno@clisp.org>
27106
27107         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27108         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27109         on FreeBSD 8.0 and OpenBSD 4.6.
27110         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27111         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27112         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27113         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27114         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27115         ac_includes_default.
27116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27117
27118 2010-09-09  Eric Blake  <eblake@redhat.com>
27119
27120         strsignal: work around NetBSD bug
27121         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27122         * lib/string.in.h (includes): Likewise.
27123         * doc/posix-functions/strsignal.texi (strsignal): Document the
27124         bug.
27125         Reported by Nelson H. F. Beebe.
27126
27127         gnulib-tool: work with NetBSD /bin/sh
27128         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27129         (func_get_description, func_get_comment, func_get_status)
27130         (func_get_notice, func_get_applicability, func_get_filelist)
27131         (func_get_dependencies, func_get_autoconf_early_snippet)
27132         (func_get_autoconf_snippet, func_get_automake_snippet)
27133         (func_get_include_directive, func_get_link_directive)
27134         (func_get_license, func_get_maintainer, func_import): Avoid
27135         shell syntax errors from parsing syntax extensions.
27136
27137 2010-09-09  Bruno Haible  <bruno@clisp.org>
27138
27139         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27140         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27141         a reliable way to determine whether the 'alias' command works.
27142
27143 2010-09-08  Jim Meyering  <meyering@redhat.com>
27144
27145         init.sh: penalize a set-x-impaired shell; don't disqualify it
27146         * tests/init.sh: Too many shells corrupt application stderr when
27147         you set -x, so we can't afford to disqualify them, since at least
27148         on Irix-6.5, that would disqualify all bourne shells.
27149         Instead, use a two-pass approach.
27150         On the first pass, try to find a shell that meets the stricter
27151         condition that set -x does not corrupt stderr.
27152         If no shell meets the stricter condition, retest each candidate
27153         shell, but without that extra condition.  Finally, when
27154         VERBOSE=yes is requested and set -x might cause trouble, simply
27155         issue a warning and refrain from enabling debug output.
27156
27157 2010-09-08  Eric Blake  <eblake@redhat.com>
27158
27159         unsetenv: fix OpenBSD bug
27160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27161         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27162         documentation.
27163         Reported by Jim Meyering.
27164
27165         strtod: work around IRIX 6.5 bug
27166         * lib/strtod.c (strtod): Reparse number on shorter string if
27167         exponent parse was invalid.
27168         * tests/test-strtod.c (main): Add check for "0x1p 2".
27169         Reported by Tom G. Christensen.
27170
27171         getopt: optimize previous patch
27172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27173         empty variable.  Speed up awk script.
27174         Reported by Paolo Bonzini.
27175
27176 2010-09-08  Jim Meyering  <meyering@redhat.com>
27177
27178         test.sh: disqualify shells for which set -x corrupts stderr
27179         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27180         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27181         appear in stderr output.  For example, this command:
27182             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27183         prints "P=1" on those two systems:
27184
27185 2010-09-08  Bruno Haible  <bruno@clisp.org>
27186
27187         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27188         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27189         commands, because some shells ignore redirections when there is an
27190         error in the command lookup.
27191         Reported by Eric Blake.
27192
27193 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27194
27195         * lib/regex.h: Fix a mention of `regex_compile' (should be
27196         `re_compile_pattern').
27197         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27198         (re_set_registers): Correct name of parameter in comment.
27199
27200         * doc/regex.texi: Add documentation for missing syntax flags.
27201         Remove commented-out documentation of defunct syntax option
27202         RE_NO_EMPTY_ALTS.
27203         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27204         Add documentation of re_set_registers.
27205         Document trick to re-use a pattern buffer by setting fastmap manually.
27206         Update documentation of struct re_pattern_buffer per public members.
27207         Uncomment documentation of equivalence class operators and
27208         collating symbol operators, since they are now implemented,
27209         Explain leftmost-longest matching in relation to alternatives.
27210         Tidy documentation of substring matching.
27211         Remove POSIX documentation, which is done better in
27212         glibc, and refer the reader there. Keep BSD API documentation, as
27213         that is not readily available elsewhere.
27214
27215 2010-09-07  Eric Blake  <eblake@redhat.com>
27216
27217         getopt: handle POSIXLY_CORRECT set but not exported
27218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27219         export state of POSIXLY_CORRECT, due to bash set -o posix.
27220         Reported by Dustin J. Mitchell.
27221
27222 2010-09-05  Bruno Haible  <bruno@clisp.org>
27223
27224         gnulib-tool: Highlight the changed options.
27225         * gnulib-tool (func_usage): Display the --import, --add-import,
27226         --remove-import explanations in bold font.
27227
27228 2010-09-06  Karl Berry  <karl@gnu.org>
27229
27230         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27231
27232 2010-09-05  Bruno Haible  <bruno@clisp.org>
27233
27234         uniwidth/width: Update comment.
27235         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27236         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27237
27238 2010-09-05  Bruno Haible  <bruno@clisp.org>
27239
27240         isinf, isnan: Relax license.
27241         * modules/isinf (License): Change from GPL to LGPL, with consent from
27242         Ben Pfaff.
27243         * modules/isnan (License): Likewise.
27244         Requested by Ludovic Courtès.
27245
27246 2010-09-04  Bruno Haible  <bruno@clisp.org>
27247
27248         gnulib-tool: Help migration from --import to --add-import or --update.
27249         * gnulib-tool: Emit a verbose error message when --import is used
27250         without any module name.
27251
27252 2010-09-04  Bruno Haible  <bruno@clisp.org>
27253
27254         Update doc about gnulib-tool.
27255         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27256         'gnulib-tool --update' in more detail.
27257         Reported by Eric Blake.
27258
27259 2010-09-04  Bruno Haible  <bruno@clisp.org>
27260
27261         gnulib-tool: Change --import. New options --add/remove-import.
27262         * gnulib-tool: New options --add-import, --remove-import.
27263         (func_usage): Document them.
27264         (have_associative): Define always.
27265         (func_import): In import mode, don't merge the specified settings with
27266         the cached settings. Implement remove-import mode.
27267         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27268         Explain when to use them versus --import.
27269         (Simple update): Use --add-import instead of --import.
27270         * NEWS: Mention the change.
27271
27272 2010-09-04  Bruno Haible  <bruno@clisp.org>
27273
27274         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27275         separate gnulib.mk.
27276
27277 2010-09-04  Bruno Haible  <bruno@clisp.org>
27278
27279         gnulib-tool: Don't talk about CVS any more.
27280         * gnulib-tool (func_usage, func_import): Write "version control"
27281         instead of CVS.
27282
27283 2010-09-04  Jim Meyering  <meyering@redhat.com>
27284
27285         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27286         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27287         false positives (whose names may be ill-chosen) when searching
27288         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27289         would cause a false-positive.
27290
27291         avoid coreutils "make distcheck" failure
27292         Coreutils tests with an absolute build directory name that contains
27293         a space.  Not quoting this directory name caused a failure.
27294         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27295         * tests/test-vc-list-files-cvs.sh: Likewise.
27296
27297 2010-09-04  Bruno Haible  <bruno@clisp.org>
27298
27299         gnulib-tool: Avoid error when run in a package without Makefile.am.
27300         * gnulib-tool: When collecting the m4dirs in a package that does not
27301         have a Makefile.am, eliminate those directories that contain no
27302         gnulib-cache.m4. Fix expression that counts these directories.
27303
27304 2010-09-04  Bruno Haible  <bruno@clisp.org>
27305
27306         update-copyright test: Improve output when perl is missing or too old.
27307         * tests/test-update-copyright.sh: Move test of Perl version down after
27308         the test whether Perl exists. Provide an explanation relating Perl's
27309         error message to Automake's SKIP: message.
27310
27311 2010-09-04  Bruno Haible  <bruno@clisp.org>
27312
27313         Don't augment PATH in TESTS_ENVIRONMENT.
27314         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27315         set abs_aux_dir instead of augmenting PATH.
27316         * modules/vc-list-files-tests (Makefile.am): Likewise.
27317         * tests/test-update-copyright.sh: Augment PATH here.
27318         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27319         path_prepend_.
27320         * tests/test-vc-list-files-git.sh: Likewise.
27321
27322 2010-09-04  Jim Meyering  <meyering@redhat.com>
27323
27324         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27325         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27326
27327 2010-09-04  Bruno Haible  <bruno@clisp.org>
27328
27329         strdup: Fix compilation error in C++ mode.
27330         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27331         the macro.
27332
27333 2010-09-04  Bruno Haible  <bruno@clisp.org>
27334
27335         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27336         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27337         macro into a function.
27338         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27339
27340 2010-09-04  Bruno Haible  <bruno@clisp.org>
27341
27342         Set PATH_SEPARATOR the same way autoconf does.
27343         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27344         the value of PATH_SEPARATOR the same way autoconf-generated configure
27345         scripts do.
27346         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27347         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27348
27349 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27350
27351         Set PATH_SEPARATOR the same way autoconf does.
27352         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27353         the same way autoconf-generated configure scripts do.
27354         * posix-modules: Likewise.
27355
27356 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27357
27358         hash: fix safe_hasher const typo
27359         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27360         const; otherwise, there is a type error later.
27361
27362 2010-09-02  Jim Meyering  <meyering@redhat.com>
27363
27364         test-update-copyright.sh: require perl 5.8.0
27365         * tests/test-update-copyright.sh: Require 5.8.0,
27366         which Tom G. Christensen has confirmed is adequate,
27367         while 5.6.1 is not.
27368
27369 2010-09-02  Eric Blake  <eblake@redhat.com>
27370
27371         tests: init.sh improvements for re-exec'ing with zsh
27372         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27373         -vx through shell re-exec.
27374         Reported by Tom G. Christensen.
27375
27376         wctype: fix typo in previous commit
27377         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27378         Reported by Ludovic Courtès.
27379
27380 2010-09-02  Jim Meyering  <meyering@redhat.com>
27381
27382         test-update-copyright.sh: skip test if Perl is too old
27383         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27384         Reported by Tom G. Christensen.
27385
27386 2010-09-02  Bruno Haible  <bruno@clisp.org>
27387
27388         wctype: Avoid compilation error on IRIX 6.5.30.
27389         * lib/wctype.in.h (iswblank): Declare with a replacement if
27390         REPLACE_ISWBLANK is set.
27391         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27392         declared. Set REPLACE_ISWBLANK.
27393         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27394         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27395         * doc/posix-headers/wctype.texi: Likewise.
27396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27397
27398 2010-09-01  Bruno Haible  <bruno@clisp.org>
27399
27400         New module 'socketlib'.
27401         * modules/socketlib: New file.
27402         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27403         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27404         * modules/sockets (Depends-on): Add socketlib.
27405         Suggested by Sam Steingold <sds@gnu.org>.
27406
27407 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27408
27409         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27410
27411         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27412         when one needs search access to a directory but not read access.
27413         On systems where it is available, it works in some cases where
27414         O_RDONLY does not, namely on directories that are searchable but
27415         not readable, and which need only to be searchable.  If O_SEARCH
27416         is not available, fall back to the traditional method of using
27417         O_RDONLY.
27418
27419         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27420         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27421         when opening a directory that needs only to be searchable.
27422         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27423         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27424         * lib/openat-proc.c (openat_proc_name): Likewise.
27425         * lib/openat.c (openat_needs_fchdir): Likewise.
27426         * lib/save-cwd.c (save_cwd): Likewise.
27427         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27428
27429 2010-08-28  Bruno Haible  <bruno@clisp.org>
27430
27431         New module 'host-cpu-c-abi'.
27432         * modules/host-cpu-c-abi: New file.
27433         * m4/host-cpu-c-abi.m4: New file, based on part of
27434         clisp/src/m4/general.m4.
27435         Requested by Sam Steingold <sds@gnu.org>.
27436
27437 2010-08-31  Eric Blake  <eblake@redhat.com>
27438         and Jim Meyering  <meyering@redhat.com>
27439
27440         hash: factor, and guard against misbehaving hasher function
27441         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27442         of table->hasher's return value.  Also protect against a hash value
27443         so large that adding it to table->bucket results in a NULL pointer.
27444         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27445         Use it in place of open-coded check-and-abort.
27446
27447 2010-08-30  Bruno Haible  <bruno@clisp.org>
27448
27449         hash: silence spurious clang warning
27450         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27451         Reported by Eric Blake.
27452
27453 2010-08-30  Eric Blake  <eblake@redhat.com>
27454
27455         strstr, memmem, strcasestr: avoid leaked shell message
27456         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27457         FreeBSD.
27458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27460
27461         tests: silence clang warning
27462         * tests/test-malloca.c (do_allocation): Avoid dead store.
27463
27464 2010-08-29  Bruno Haible  <bruno@clisp.org>
27465
27466         gettext: Fix recent mistake.
27467         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27468
27469 2010-08-29  Bruno Haible  <bruno@clisp.org>
27470
27471         selinux-h: Offer a --without-selinux option.
27472         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27473         --without-selinux was specified, skip all tests and define
27474         HAVE_SELINUX_SELINUX_H to 0.
27475         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27476         set LIB_SELINUX to empty.
27477         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27478         gl_LIBSELINUX. If --without-selinux was specified, replace
27479         selinux/context.h.
27480         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27481
27482 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27483             Bruno Haible  <bruno@clisp.org>
27484
27485         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27486         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27487         of HAVE_REALLOC.
27488         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27489         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27490         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27491         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27492
27493 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27494             Bruno Haible  <bruno@clisp.org>
27495
27496         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27497         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27498         HAVE_CALLOC.
27499         * lib/xmalloc.c: Update accordingly.
27500         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27501         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27502         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27503
27504 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27505             Bruno Haible  <bruno@clisp.org>
27506
27507         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27508         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27509         HAVE_MALLOC.
27510         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27511         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27512         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27513
27514 2010-08-29  Bruno Haible  <bruno@clisp.org>
27515
27516         Update modules list.
27517         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27518         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27519         (String handling <string.h>): Add astrxfrm.
27520         (File system functions): Add readlinkat.
27521
27522 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27523
27524         Tests for module 'realloc-gnu'.
27525         * modules/realloc-gnu-tests: New file.
27526         * tests/test-realloc-gnu.c: New file.
27527
27528         Tests for module 'calloc-gnu'.
27529         * modules/calloc-gnu-tests: New file.
27530         * tests/test-calloc-gnu.c: New file.
27531
27532         Tests for module 'malloc-gnu'.
27533         * modules/malloc-gnu-tests: New file.
27534         * tests/test-malloc-gnu.c: New file.
27535
27536 2010-08-28  Bruno Haible  <bruno@clisp.org>
27537
27538         Rename module 'realloc' -> 'realloc-gnu'.
27539         * modules/realloc-gnu: New file, copied from modules/realloc.
27540         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27541         obsolete.
27542         * modules/mgetgroups (Depends-on): Update.
27543         * doc/posix-functions/realloc.texi: Update.
27544         * NEWS: Mention the change.
27545
27546         Rename module 'calloc' -> 'calloc-gnu'.
27547         * modules/calloc-gnu: New file, copied from modules/calloc.
27548         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27549         obsolete.
27550         * doc/posix-functions/calloc.texi: Update.
27551         * NEWS: Mention the change.
27552
27553         Rename module 'malloc' -> 'malloc-gnu'.
27554         * modules/malloc-gnu: New file, copied from modules/malloc.
27555         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27556         obsolete.
27557         * modules/argp (Depends-on): Update.
27558         * modules/regex (Depends-on): Update.
27559         * doc/posix-functions/malloc.texi: Update.
27560         * NEWS: Mention the change.
27561
27562 2010-08-28  Eric Blake  <eblake@redhat.com>
27563
27564         pread, pwrite: add missing dependency
27565         * modules/pread (Depends-on): Add extensions.
27566         * modules/pwrite (Depends-on): Likewise.
27567
27568 2010-08-28  Bruno Haible  <bruno@clisp.org>
27569
27570         unistr/u*-strchr: Fix tests dependencies.
27571         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27572         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27573         Reported by Ian Beckwith <ianb@erislabs.net>.
27574
27575 2010-08-28  Bruno Haible  <bruno@clisp.org>
27576
27577         read-file: Don't occupy too much unused memory.
27578         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27579
27580 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27581             Eric Blake  <eblake@redhat.com>
27582             Bruno Haible  <bruno@clisp.org>
27583
27584         read-file: Avoid memory reallocations with regular files.
27585         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27586         (fread_file): With regular files, use the remaining length as the
27587         initial buffer size.  Check against overflow.
27588         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27589         sys_stat.
27590
27591 2010-08-28  Bruno Haible  <bruno@clisp.org>
27592
27593         ftello: Relax license.
27594         * modules/ftello (License): Relax to LGPLv2+.
27595         Reported by Eric Blake.
27596
27597 2010-08-28  Bruno Haible  <bruno@clisp.org>
27598
27599         Avoid relocwrapper link errors due to gnulib replacement functions.
27600         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27601         function.
27602         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27603
27604 2010-08-28  Bruno Haible  <bruno@clisp.org>
27605
27606         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27607         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27608         defined.
27609         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27610         Suggested by Eric Blake.
27611
27612 2010-08-28  Bruno Haible  <bruno@clisp.org>
27613
27614         sys_socket, netdb: Ensure socklen_t gets defined.
27615         * modules/sys_socket (Depends-on): Add socklen.
27616         * modules/netdb (Depends-on): Likewise.
27617         * modules/getaddrinfo (Depends-on): Remove socklen.
27618         * modules/getsockopt (Depends-on): Likewise.
27619         * modules/setsockopt (Depends-on): Likewise.
27620         * tests/test-sys_socket.c: Check that socklen_t is defined.
27621         * tests/test-netdb.c: Likewise.
27622         * m4/socklen.m4: Update comments.
27623         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27624
27625 2010-08-27  Eric Blake  <eblake@redhat.com>
27626
27627         login_tty: add missing dependency
27628         * modules/login_tty (Depends-on): Add pty.
27629
27630 2010-08-26  Eric Blake  <eblake@redhat.com>
27631
27632         lib-symbol-versions: fix m4 quoting
27633         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27634         format for AC_LINK_IFELSE.
27635
27636         glob: fix compile test
27637         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27638
27639         btowc: fix missing file
27640         * modules/btowc (Files): Also ship locale-fr.m4.
27641
27642         lseek: fix link test
27643         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27644         AC_LINK_IFELSE.
27645
27646         include_next: silence autoconf 2.68 warning
27647         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27648         AC_COMPILE_IFELSE as special.
27649         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27650         autoconf < 2.68.
27651
27652         acl: fix compilation test
27653         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27654         AC_COMPILE_IFELSE.
27655
27656 2010-08-26  Bruno Haible  <bruno@clisp.org>
27657
27658         Modernize AC_TRY_RUN invocations.
27659         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27660         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27661         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27662         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27663         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27664         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27667         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27668         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27670         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27671         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27672         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27673         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27674         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27675         gl_MBRLEN_NUL_RETVAL): Likewise.
27676         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27677         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27678         Likewise.
27679         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27680         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27681         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27682         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27683         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27684         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27685         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27686         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27687         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27688         Likewise.
27689         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27690         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27692         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27694         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27696         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27697         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27699
27700 2010-08-26  Bruno Haible  <bruno@clisp.org>
27701
27702         Modernize AC_TRY_LINK invocations.
27703         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27704         AC_TRY_LINK.
27705         * m4/argp.m4 (gl_ARGP): Likewise.
27706         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27707         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27708         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27709         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27710         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27711         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27712         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27713         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27714         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27715         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27716         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27717         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27718         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27719         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27720         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27721         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27722         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27723         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27724         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27725         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27726         Likewise.
27727         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27728         Likewise.
27729         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27730         Likewise.
27731         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27733         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27734         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27735         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27736         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27737         * m4/servent.m4 (gl_SERVENT): Likewise.
27738         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27739         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27740         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27741         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27742         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27743         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27744         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27745         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27746         * modules/tsearch-tests (configure.ac): Likewise.
27747
27748 2010-08-26  Bruno Haible  <bruno@clisp.org>
27749
27750         Modernize AC_TRY_COMPILE invocations.
27751         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27752         AC_TRY_COMPILE.
27753         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27754         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27755         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27756         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27757         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27758         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27759         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27760         * m4/lock.m4 (gl_LOCK): Likewise.
27761         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27762         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27763         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27765         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27766         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27767         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27769         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27770         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27771         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27772         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27773         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27774         extraneous semicolon.
27775
27776 2010-08-26  Jim Meyering  <meyering@redhat.com>
27777
27778         stat-time: relax license LGPL
27779         * modules/stat-time (License): Change from GPL to LGPL,
27780         with consent from all contributors, for use in libguile.
27781         Requested by Ludovic Courtès.
27782
27783 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27784
27785         poll: return immediately on POLLHUP.
27786         * lib/poll.c (poll): Always set timeout before wait_timeout is
27787         computed.
27788
27789 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27790
27791         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27792         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27793         rmdir ("dir/.//"), unlinkat.
27794
27795 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27796
27797         stdbool: avoid spurious failure with modern xlc
27798         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27799
27800 2010-08-24  Bruno Haible  <bruno@clisp.org>
27801
27802         getloadavg: simplify code
27803         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27804         gl_have_func. Update comments.
27805
27806 2010-08-24  Eric Blake  <eblake@redhat.com>
27807
27808         getloadavg: don't define SVR4 on cygwin
27809         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27810         only define SVR4 when -lkvm is required.
27811         Reported by Yaakov Selkowitz.
27812
27813 2010-08-24  Bruno Haible  <bruno@clisp.org>
27814
27815         priv-set: fix comment
27816         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27817
27818 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27819
27820         priv-set: fix comments
27821         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27822         to match code, as suggested by David Bartley in:
27823         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27824
27825 2010-08-23  Eric Blake  <eblake@redhat.com>
27826
27827         stdbool: avoid rejecting clang
27828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27829         * tests/test-stdbool.c: Enable more tests if using the system
27830         <stdbool.h> instead of the gnulib replacement.
27831         (main): Move xlc bug test to a runtime test for all compilers.
27832         Reported by Anders Kaseorg.
27833
27834         argz: fix shell quoting issue
27835         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27836         Reported by Charles Wilson.
27837
27838 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27839             Erik Faye-Lund <kusmabite@gmail.com>
27840
27841         poll, select: handle ERROR_BROKEN_PIPE.
27842         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27843         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27844         * lib/select.c (win32_compute_revents): Do not mark a pipe
27845         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27846
27847 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27848
27849         fts: allow compilation with C++
27850         * lib/fts_.h: Specify extern "C" linkage with C++.
27851
27852 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27853
27854         Fix gnulib-tool sed script de-commentation for AIX sed.
27855         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27856         sed.
27857
27858 2010-08-17  Eric Blake  <eblake@redhat.com>
27859
27860         test-stddef: test for (some) offsetof bugs
27861         * tests/test-stddef.c: Enhance test to ensure correct type of
27862         offsetof.
27863         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27864         that we are not fixing at this time.
27865
27866 2010-08-15  Bruno Haible  <bruno@clisp.org>
27867
27868         stpncpy: Allow stpncpy to be defined as a macro.
27869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27870         if it's already correctly declared.
27871         * lib/string.in.h (stpncpy): Undefine before redefining.
27872         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27873
27874 2010-08-14  Bruno Haible  <bruno@clisp.org>
27875
27876         Rename module 'memxfrm' to 'amemxfrm'.
27877         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27878         (amemxfrm): Renamed from memxfrm.
27879         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27880         (amemxfrm): Renamed from memxfrm.
27881         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27882         * NEWS: Mention the change.
27883         * MODULES.html.sh (String handling <string.h>): Update.
27884         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27885         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27886         * lib/unicase/u16-casexfrm.c: Likewise.
27887         * lib/unicase/u32-casexfrm.c: Likewise.
27888         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27889         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27890         * lib/uninorm/u16-normxfrm.c: Likewise.
27891         * lib/uninorm/u32-normxfrm.c: Likewise.
27892         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27893         memxfrm.
27894         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27895         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27896         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27897         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27898         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27899         Suggested by Paul Eggert.
27900
27901 2010-08-14  Bruno Haible  <bruno@clisp.org>
27902
27903         Tests for module 'astrxfrm'.
27904         * modules/astrxfrm-tests: New file.
27905         * tests/test-astrxfrm.c: New file.
27906
27907         New module 'astrxfrm'.
27908         * lib/astrxfrm.h: New file.
27909         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27910         * modules/astrxfrm: New file.
27911
27912 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27913
27914         regex: Tweak doc.
27915         * doc/regex.texi (Overview): Don't mention regex.c.
27916         (GNU Regular Expression Compiling): Likewise.
27917         (Match-end-of-line Operator): Mention 'not_eol'.
27918
27919 2010-08-14  Brian Gough  <bjg@gnu.org>
27920             Bruno Haible  <bruno@clisp.org>
27921
27922         git-merge-changelog: add doc relating to use with bzr and hg.
27923         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27924
27925 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27926
27927         pthread: fix pthread.h creation for srcdir != builddir
27928         * modules/pthread (Makefile.am): Fix the rule to work also in a
27929         non-srcdir build.
27930
27931 2010-08-13  Karl Berry  <karl@gnu.org>
27932
27933         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27934         * doc/posix-*/*: force line break before @url of POSIX
27935         specifications.
27936         Suggested by Werner Lemberg.
27937
27938 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27939
27940         strtod: fix const diagnostic
27941         * lib/strtod.c (strtod): Don't assign const char * to char *,
27942         as this elicits a warning from GCC when warnings are enabled.
27943
27944 2010-08-10  Pádraig Brady <P@draigbrady.com>
27945         and Eric Blake  <eblake@redhat.com>
27946
27947         copy-acl: ignore ENOTSUP on HP-UX
27948         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27949         so that it is available for HP-UX.
27950         * lib/copy-acl.c (qcopy_acl): Use it.
27951         Reported by Patrick M. Callahan.
27952
27953 2010-08-10  Eric Blake  <eblake@redhat.com>
27954
27955         open, chown: relax license
27956         * modules/open (License): Change to LGPLv2+, with consent by all
27957         authors, for use in augeas.
27958         * modules/chown (License): Likewise.
27959         * modules/lchown (Likewise): Likewise.
27960         Requested by Adam Stokes.
27961
27962 2010-08-09  Karl Berry  <karl@gnu.org>
27963
27964         * build-aux/ar-lib: new file, import from Automake.
27965         * config/srclist.txt: autocheck for updates.
27966
27967 2010-08-09  Eric Blake  <eblake@redhat.com>
27968
27969         readlinkat: adjust client modules
27970         * modules/areadlinkat (Depends-on): Use readlinkat, not
27971         symlinkat.
27972         * modules/areadlinkat-with-size (Depends-on): Likewise.
27973
27974         mknod: be more vocal about danger of running tests as root
27975         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27976         root, since that is just asking for problems.
27977         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27978
27979         readlinkat: split into its own module
27980         * modules/symlinkat: Split readlinkat...
27981         * modules/readlinkat: ...into separate module.
27982         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27983         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27984         * lib/symlinkat.c (readlinkat): Move...
27985         * lib/readlinkat.c: ...into new file.
27986         * modules/symlinkat-tests: Split readlinkat test...
27987         * modules/readlinkat-tests: ...into separate module.
27988         * tests/test-symlinkat.c: Split...
27989         * tests/test-readlinkat.c: ...into new file.
27990         * NEWS: Document the split.
27991         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27992         * lib/unistd.in.h (readlinkat): Likewise.
27993         Suggested by Bruno Haible.
27994
27995 2010-08-08  Bruno Haible  <bruno@clisp.org>
27996
27997         memxfrm: Speed up.
27998         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27999         that usually only one call to strxfrm is necessary for each string
28000         part.
28001         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28002
28003 2010-08-07  Karl Berry  <karl@gnu.org>
28004
28005         * doc/posix-headers/limits.texi,
28006         * doc/posix-functions/malloc.texi,
28007         * doc/posix-functions/strsignal.texi: missing @item.
28008         * doc/ld-version-script.texi: spurious leading i.
28009         * doc/regex.texi (Interval Operators): no commas inside @var.
28010
28011 2010-08-01  Bruno Haible  <bruno@clisp.org>
28012
28013         Integrate the regex documentation.
28014         * doc/gnulib.texi: Define 'cn' index.
28015         (Regular expressions): New a chapter that includes regex.texi and
28016         regexprops-generic.texi.
28017         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28018         syntax.
28019
28020         Whitespace cleanup.
28021         * doc/regex.texi: Remove trailing spaces.
28022
28023         Add regex documentation.
28024         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28025         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28026         Written by Kathy A. Hargreaves and Karl Berry.
28027
28028 2010-08-01  Bruno Haible  <bruno@clisp.org>
28029
28030         link: Update documentation.
28031         * doc/posix-functions/link.texi: Update regarding Solaris.
28032
28033 2010-07-31  Bruno Haible  <bruno@clisp.org>
28034
28035         Update modules list.
28036         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28037         (String handling <string.h>): Add memcmp2, memxfrm.
28038         (Container data structures): Add xlist, xsublist, xoset.
28039         (Core language properties): Add alignof, unused-parameter.
28040         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28041         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28042         (Unibyte characters <ctype.h>): New section.
28043         (String handling <string.h>): New section.
28044         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28045         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28046         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28047         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28048         tan, tanh, tanl, y0, y1, yn.
28049         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28050         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28051         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28052         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28053         unlockpt, vdprintf, vdprintf-posix.
28054         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28055         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28056         xconcat-filename.
28057         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28058         getdtablesize, pipe2, pipe2-safer.
28059         (Security): New section.
28060         (Networking functions): Add accept4.
28061         (Signal handling): Add sigpipe.
28062         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28063         mbmemcasecoll.
28064         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28065         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28066         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28067         pipe-filter-ii.
28068         (Misc): Add argp-version-etc, login_tty, parse-duration.
28069
28070 2010-07-31  Bruno Haible  <bruno@clisp.org>
28071
28072         Improve doc in MODULES.html.
28073         * modules/linkat (Description): Add the word "function".
28074         * modules/mkfifo (Description): Likewise.
28075         * modules/mknod (Description): Likewise.
28076         * modules/remove (Description): Likewise.
28077         * modules/renameat (Description): Likewise.
28078         * modules/stat (Description): Likewise.
28079         * modules/symlink (Description): Likewise.
28080         * modules/unlink (Description): Likewise.
28081
28082 2010-07-31  Bruno Haible  <bruno@clisp.org>
28083
28084         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28085         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28086         option --enable/disable-c++ instead of --enable/disable-cxx.
28087         * NEWS: Mention the change.
28088
28089 2010-07-31  Bruno Haible  <bruno@clisp.org>
28090
28091         readlink, areadlink: Relax test a bit.
28092         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28093         alternative to ENOTDIR.
28094         * tests/test-areadlink.h (test_areadlink): Likewise.
28095         Reported by Rainer Tammer.
28096
28097 2010-07-31  Bruno Haible  <bruno@clisp.org>
28098
28099         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28100         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28101         character, perform the search using U_STRCHR.
28102         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28103         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28104         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28105         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28106         Suggested by Paolo Bonzini.
28107
28108 2010-07-31  Bruno Haible  <bruno@clisp.org>
28109
28110         unistr/u*-strstr: Fix dependencies.
28111         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28112         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28113         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28114
28115 2010-07-31  Bruno Haible  <bruno@clisp.org>
28116
28117         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28118         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28119         the beginning of the loop.
28120         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28121         cases in 'switch' statement.
28122
28123         unistr/u8-strchr: Fix several bugs.
28124         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28125         the string. When not found, return NULL, not a pointer near the end.
28126
28127         More tests for unistr/u8-strchr.
28128         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28129         that the function does not read past the first occurrence of the byte
28130         being searched.
28131         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28132         * tests/unistr/test-u16-strchr.c (main): New function.
28133         * tests/unistr/test-u32-strchr.c (main): New function.
28134
28135 2010-07-31  Bruno Haible  <bruno@clisp.org>
28136
28137         posix-modules: Ignore backup files of documentation files.
28138         * posix-modules: grep only through files named *.texi.
28139
28140 2010-07-31  Bruno Haible  <bruno@clisp.org>
28141
28142         symlinkat: Fix documentation.
28143         * doc/posix-functions/readlinkat.texi: Fix module name.
28144
28145 2010-07-31  Bruno Haible  <bruno@clisp.org>
28146
28147         fchownat: Replace also when chown has the trailing slash bug.
28148         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28149         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28150         introduced on 2010-04-10.
28151         Reported by Rainer Tammer.
28152
28153 2010-07-31  Bruno Haible  <bruno@clisp.org>
28154
28155         linkat: Work around AIX 7.1 bug.
28156         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28157         whether linkat handles trailing slash correctly. If not, replace linkat
28158         and define LINKAT_TRAILING_SLASH_BUG.
28159         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28160         check whether (fd1,file1) points to a directory if file1 or file2 ends
28161         in a slash. Code taken from lib/link.c.
28162         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28163         Reported by Rainer Tammer.
28164
28165 2010-07-31  Bruno Haible  <bruno@clisp.org>
28166
28167         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28168         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28169         This disables an xlc optimization that was causing wrong test results.
28170         Reported by Rainer Tammer.
28171
28172 2010-07-31  Bruno Haible  <bruno@clisp.org>
28173
28174         iconv: Work around AIX 6.1..7.1 bug.
28175         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28176         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28177         cross-compiling, guess no on all versions of AIX.
28178         Reported by Rainer Tammer.
28179
28180 2010-07-31  Bruno Haible  <bruno@clisp.org>
28181
28182         readlink: Relax test a bit.
28183         * tests/test-readlink.h (test_readlink): Allow different errno value
28184         when readlink is called with a file name that ends in / and refers to
28185         a file.
28186         Suggested by Eric Blake.
28187         Reported by Rainer Tammer.
28188
28189 2010-07-31  Bruno Haible  <bruno@clisp.org>
28190
28191         copysign: Does not require -lm on glibc systems.
28192         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28193         gl_COMMON_DOUBLE_MATHFUNC.
28194         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28195
28196 2010-07-31  Bruno Haible  <bruno@clisp.org>
28197
28198         duplocale: Work around AIX 7.1 bug.
28199         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28200         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28201         * lib/duplocale.c (rpl_duplocale): Update comment.
28202         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28203         Reported by Rainer Tammer.
28204
28205 2010-07-30  Bruno Haible  <bruno@clisp.org>
28206
28207         dirfd: Avoid link error on AIX 7.1.
28208         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28209         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28210         exist, set REPLACE_DIRFD.
28211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28212         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28213         * doc/posix-functions/dirfd.texi: Update.
28214         Reported by Rainer Tammer.
28215
28216 2010-07-30  Eric Blake  <eblake@redhat.com>
28217
28218         strtod: next round of AIX fixes
28219         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28220         exponent.
28221         * tests/test-strtod.c (main): Enhance tests.
28222         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28223         Reported by Rainer Tammer.
28224
28225         futimens: fix configure check
28226         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28227         Reported by Bruno Haible.
28228
28229 2010-07-30  Bruno Haible  <bruno@clisp.org>
28230
28231         getline: Update regarding AIX.
28232         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28233         Reported by Rainer Tammer.
28234
28235 2010-07-30  Bruno Haible  <bruno@clisp.org>
28236
28237         wcwidth: Drop replacement on AIX 7.
28238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28239         AIX 7.
28240         Reported by Rainer Tammer.
28241
28242 2010-07-30  Bruno Haible  <bruno@clisp.org>
28243
28244         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28245         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28246         a 'char *'.
28247         Reported by Rainer Tammer.
28248
28249 2010-07-30  Bruno Haible  <bruno@clisp.org>
28250
28251         unlink: Update regarding AIX.
28252         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28253         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28254         Reported by Rainer Tammer.
28255
28256 2010-07-30  Bruno Haible  <bruno@clisp.org>
28257
28258         symlink: Update regarding AIX.
28259         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28260         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28261         Reported by Rainer Tammer.
28262
28263 2010-07-30  Bruno Haible  <bruno@clisp.org>
28264
28265         strndup: Update regarding AIX.
28266         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28267         AIX 7.
28268         Reported by Rainer Tammer.
28269
28270 2010-07-30  Bruno Haible  <bruno@clisp.org>
28271
28272         stat: Update regarding AIX.
28273         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28274         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28275         Reported by Rainer Tammer.
28276
28277 2010-07-30  Bruno Haible  <bruno@clisp.org>
28278
28279         truncl: Fix autoconf test.
28280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28281         whether truncl works.
28282         Reported by Rainer Tammer.
28283
28284 2010-07-30  Bruno Haible  <bruno@clisp.org>
28285
28286         round: Update regarding AIX.
28287         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28288         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28289         Reported by Rainer Tammer.
28290
28291 2010-07-30  Bruno Haible  <bruno@clisp.org>
28292
28293         rename: Update regarding AIX.
28294         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28295         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28296         Reported by Rainer Tammer.
28297
28298 2010-07-30  Bruno Haible  <bruno@clisp.org>
28299
28300         printf.m4: Update regarding AIX.
28301         * m4/printf.m4: Update comments regarding AIX.
28302         Reported by Rainer Tammer.
28303
28304 2010-07-30  Bruno Haible  <bruno@clisp.org>
28305
28306         iconv: Update regarding AIX.
28307         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28308         AIX 7.
28309         Reported by Rainer Tammer.
28310
28311 2010-07-30  Bruno Haible  <bruno@clisp.org>
28312
28313         getopt: Update regarding AIX.
28314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28315         no on AIX.
28316         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28317         Reported by Rainer Tammer.
28318
28319 2010-07-30  Bruno Haible  <bruno@clisp.org>
28320
28321         ldexpl; Update regarding AIX.
28322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28323         on AIX 7.
28324         Reported by Rainer Tammer.
28325
28326 2010-07-30  Bruno Haible  <bruno@clisp.org>
28327
28328         frexpl: Update regarding AIX.
28329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28330         on AIX 7.
28331         Reported by Rainer Tammer.
28332
28333 2010-07-30  Bruno Haible  <bruno@clisp.org>
28334
28335         open, fopen: Update regarding AIX.
28336         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28337         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28338         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28339         * doc/posix-functions/fopen.texi: Likewise.
28340         Reported by Rainer Tammer.
28341
28342 2010-07-30  Bruno Haible  <bruno@clisp.org>
28343
28344         chown: Update doc regarding AIX.
28345         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28346         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28347         Reported by Rainer Tammer.
28348
28349 2010-07-30  Eric Blake  <eblake@redhat.com>
28350
28351         strtod: fix bug in replacement function on AIX
28352         * lib/strtod.c (strtod): Special case broken "0x" parse in
28353         underlying strtod.
28354         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28355         * doc/posix-functions/strtod.texi (strtod): Likewise.
28356         Reported by Rainer Tammer.
28357
28358 2010-07-30  Bruno Haible  <bruno@clisp.org>
28359
28360         mbrlen: Fix cross-compilation guess for AIX.
28361         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28362         guess. Leftover from 2008-12-22.
28363
28364 2010-07-30  Bruno Haible  <bruno@clisp.org>
28365
28366         mbrtowc: Fix cross-compilation guess for AIX.
28367         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28368         guess. Leftover from 2008-12-21.
28369
28370 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28371
28372         init.sh: work around trap limitation of some shells
28373         * tests/init.sh (setup_): Move exit trap outside of shell function.
28374
28375 2010-07-29  Eric Blake  <eblake@redhat.com>
28376
28377         strtod: aid debugging
28378         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28379         understanding why strtod is rejected.
28380
28381 2010-07-28  Bruno Haible  <bruno@clisp.org>
28382
28383         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28384         * lib/unistr/u8-chr.c: Include <string.h>.
28385         * tests/unistr/test-u8-chr.c: Likewise.
28386         * tests/unistr/test-u16-chr.c: Likewise.
28387         * tests/unistr/test-u32-chr.c: Likewise.
28388         * tests/unistr/test-u8-strchr.c: Likewise.
28389         * tests/unistr/test-u16-strchr.c: Likewise.
28390         * tests/unistr/test-u32-strchr.c: Likewise.
28391         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28392         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28393         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28394         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28395
28396 2010-07-28  Bruno Haible  <bruno@clisp.org>
28397
28398         Use spaces for indentation, not tabs.
28399         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28400
28401 2010-07-27  Bruno Haible  <bruno@clisp.org>
28402
28403         mbspcasecmp: Fix function specification.
28404         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28405         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28406         Reported by Eric Blake <eblake@redhat.com>.
28407
28408 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28409
28410         timespec: use cast and not conditional, as truncation isn't possible
28411         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28412         instead of a conditional.  Comment about the situation in more detail.
28413         This undoes most of the 2009-10-29 patch.
28414
28415 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28416
28417         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28418         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28419         * lib/unistr/u8-strchr.c: Likewise.
28420         * modules/unistr/u8-chr: Depend on memchr.
28421
28422         unistr/u*-strchr: add tests
28423         * modules/unistr/u8-strchr-tests: New file.
28424         * modules/unistr/u16-strchr-tests: New file.
28425         * modules/unistr/u32-strchr-tests: New file.
28426         * tests/unistr/test-strchr.h: New file.
28427         * tests/unistr/test-u8-strchr.c: New file.
28428         * tests/unistr/test-u16-strchr.c: New file.
28429         * tests/unistr/test-u32-strchr.c: New file.
28430
28431         unistr/u*-chr: test multibyte sequences more
28432         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28433         test vector.
28434         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28435         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28436         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28437
28438         unistr/u*-chr: test multibyte sequences
28439         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28440
28441         unistr/u*-chr: prepare for multibyte tests
28442         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28443         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28444         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28445         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28446         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28447         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28448
28449 2010-07-18  Bruno Haible  <bruno@clisp.org>
28450
28451         unistr/u8-strchr: Optimize non-ASCII argument case.
28452         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28453         because the first byte often matches anyway.
28454         Reported by Pádraig Brady <P@draigbrady.com>.
28455
28456 2010-07-15  Karl Berry  <karl@gnu.org>
28457
28458         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28459
28460 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28461
28462         getcwd: on Solaris, work better if ancestors are inaccessible
28463         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28464         buffer and size, try again with a large buffer.  This works better
28465         on Solaris, since its getcwd succeeds even if the path to the root
28466         is inaccessible, and this is helpful in common cases such as .zfs
28467         hidden directories.  Problem reported by J Chapman Flack in
28468         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28469         Use system getcwd if it's declared, not merely if it's partly
28470         working; use the partly-working test only to avoid needless effort
28471         if the system getcwd fails.
28472         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28473         comment that was already obsolete and is now even more obsolete.
28474         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28475         now might call strdup.
28476
28477 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28478
28479         pthread: Add enough so that coreutils/src/sort.c compiles.
28480         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28481         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28482         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28483         Include <sys/types.h>, in case it defines pthread_t.
28484         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28485         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28486         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28487         (pthread_rwlockattr_t, pthread_spinlock_t):
28488         New typedefs, if HAVE_PTHREAD_T is not defined.
28489         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28490         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28491         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28492         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28493         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28494         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28495         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28496         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28497         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28498         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28499         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28500         New macros.
28501         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28502         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28503         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28504         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28505         (pthread_spin_unlock): New dummy functions.
28506         (pthread_create): Return EAGAIN; don't set errno.
28507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28508         require AC_C_INLINE.
28509         * modules/pthread (Depends-on): Add sched, time.
28510         (pthread.h): Use AM_V_GEN.
28511
28512 2010-07-13  Bruno Haible  <bruno@clisp.org>
28513
28514         striconveh: Don't malloc memory if the result buffer is sufficient.
28515         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28516         buffer if its size is sufficient.
28517         Reported by Ludovic Courtès <ludo@gnu.org>.
28518
28519 2010-07-13  Bruno Haible  <bruno@clisp.org>
28520
28521         strtod: Add safety check.
28522         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28523
28524 2010-07-12  Bruno Haible  <bruno@clisp.org>
28525
28526         Unify tests that set gl_cv_func_ldexpl_no_libm.
28527         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28528         gl_FUNC_LDEXPL.
28529         (gl_FUNC_LDEXPL): Invoke it.
28530         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28531
28532 2010-07-12  Bruno Haible  <bruno@clisp.org>
28533
28534         Unify tests that set gl_cv_func_ldexp_no_libm.
28535         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28536         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28537         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28538         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28539         * modules/strtod (Files): Add m4/ldexp.m4.
28540
28541 2010-07-12  Bruno Haible  <bruno@clisp.org>
28542
28543         Unify tests that set gl_cv_func_frexpl_no_libm.
28544         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28545         gl_FUNC_FREXPL_NO_LIBM.
28546         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28547         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28548
28549 2010-07-12  Bruno Haible  <bruno@clisp.org>
28550
28551         Unify tests that set gl_cv_func_frexp_no_libm.
28552         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28553         gl_FUNC_FREXP_NO_LIBM.
28554         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28555         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28556
28557 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28558
28559         memcoll: clarify sizes versus lengths, document better, and tweak perf
28560         * lib/memcoll.c (strcoll_loop, memcoll0):
28561         Improve quality of descriptive comments.  Name variables
28562         consistently as to whether they are lengths (which do not include
28563         terminating null) versus sizes (which do).
28564         * lib/xmemcoll.c (xmemcoll0): Likewise.
28565         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28566         returned when s1size == 0; this is easier to compile and saves
28567         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28568
28569 2010-07-12  Bruno Haible  <bruno@clisp.org>
28570
28571         Tests for module '_Exit'.
28572         * modules/_Exit-tests: New file.
28573         * tests/test-_Exit.sh: New file.
28574         * tests/test-_Exit.c: New file.
28575
28576         New module '_Exit'.
28577         * lib/stdlib.in.h (__attribute__): New macro.
28578         (_Exit): New declaration.
28579         * lib/_Exit.c: New file.
28580         * m4/_Exit.m4: New file.
28581         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28582         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28583         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28584         * modules/_Exit: New file.
28585         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28586         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28587
28588 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28589
28590         strtod: make it more-accurate typically, and don't require libm
28591         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28592         Include limits.h.  Don't include string.h.
28593         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28594         (locale_isspace): New function, so that no casts are needed to
28595         check whether *s is a space.
28596         (ldexp): Provide an unused dummy if not available.
28597         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28598         (strtod): Use them.  This implementation prefers to use the
28599         underlying strtod if available, falling back on our own code
28600         only to fix known bugs.  This is more likely to produce an
28601         accurate result.  Also, it avoids the use of libm functions.
28602         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28603         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28604         was absent, but it caused a test failure with coreutils.
28605         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28606         with libm.
28607         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28608         * modules/strtod-tests (Makefile.am): Likewise.
28609
28610 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28611             Bruno Haible  <bruno@clisp.org>
28612
28613         unistr/u8-strchr: Optimize ASCII argument case.
28614         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28615
28616 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28617
28618         (x)memcoll: minor tweaks
28619         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28620         is after the type that it qualifies.
28621         (memcoll0): Likewise.
28622         * lib/memcoll.h (memcoll0): Likewise.
28623         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28624         * lib/xmemcoll.h (xmemcoll0): Likewise.
28625         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28626         differs from memcoll in that the NUL byte is part of the argument.
28627         Omit the abort-checks, as performance is a real issue here.  Plus,
28628         the checks were wrong anyway (an off-by-one error).  Omit local
28629         variable 'diff', as it's a bit clearer that way.
28630         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28631         no longer needed.
28632
28633 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28634
28635         (x)memcoll: speedup when input is known to be NUL delimited
28636         * lib/memcoll.c: Include stdlib.
28637         (memcoll0): New function.
28638         (strcoll_loop): New function, refactored for use in both memcoll
28639         and memcoll0.
28640         * lib/memcoll.h (memcoll0): Add prototype.
28641         * lib/xmemcoll.c (xmemcoll0): New function.
28642         (collate_error): New function, refactored for use in both xmemcoll
28643         and xmemcoll0.
28644         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28645         * m4/memcoll.m4: add inline invocation.
28646
28647 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28648
28649         * build-aux/bootstrap: Remove any local translations
28650         from the translation project synchronization directory,
28651         so that local only translations are not distributed.
28652
28653 2010-07-04  Bruno Haible  <bruno@clisp.org>
28654
28655         fsusage: Clarify which code applies to which platforms.
28656         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28657         platform.
28658         * lib/fsusage.c (get_fs_usage): Likewise.
28659
28660 2010-07-04  Bruno Haible  <bruno@clisp.org>
28661
28662         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28663         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28664         Reported by Martin Lambers <marlam@marlam.de>.
28665
28666 2010-07-04  Jim Meyering  <meyering@redhat.com>
28667
28668         hash: once again explicitly disallow insertion of NULL
28669         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28670         inserting a NULL pointer cannot work with these functions.
28671         Add a comment with details.
28672         This reverts part of the 2010-07-01 commit, 5bef1a35
28673         "hash: extend module to deal with non-pointer keys".
28674
28675 2010-07-01  Bruno Haible  <bruno@clisp.org>
28676
28677         stdbool: Update doc.
28678         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28679         Info from Christian Weisgerber <naddy@mips.inka.de>.
28680
28681 2010-07-01  Jim Meyering  <meyering@redhat.com>
28682
28683         hash: extend module to deal with non-pointer keys
28684         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28685         but that allows insertion of non-pointer entries.
28686         Do not disallow an ENTRY value of NULL.
28687         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28688         * lib/hash.h (hash_insert0): Declare.
28689
28690 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28691
28692         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28693         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28694         not present (i.e. with autoconf 2.59 and when using gettextize, not
28695         gnulib), require AC_GNU_SOURCE instead.
28696
28697 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28698
28699         idpriv-drop: Fix tests.
28700         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28701         not to the test-idpriv-droptemp program.
28702
28703 2010-06-29  Bruno Haible  <bruno@clisp.org>
28704
28705         string: Fix syntax error with g++ 2.96.
28706         * lib/string.in.h (__pure__): Remove definition.
28707         (_GL_ATTRIBUTE_PURE): New macro.
28708         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28709         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28710         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28711
28712 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28713
28714         unitypes: Fix bug introduced on 2010-05-18.
28715         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28716
28717 2010-06-22  Eric Blake  <eblake@redhat.com>
28718
28719         memmem: slight optimization
28720         * lib/str-two-way.h (critical_factorization): Update comments.
28721         Reduce work during factorization phase.
28722         Reported by Carlos Bueno <carlos@bueno.org>.
28723
28724 2010-06-21  Bruno Haible  <bruno@clisp.org>
28725
28726         Fix HAVE_CALLOC_POSIX misnomer.
28727         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28728         !HAVE_CALLOC_POSIX.
28729         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28730         HAVE_CALLOC_POSIX.
28731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28732         instead of HAVE_CALLOC_POSIX.
28733         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28734         HAVE_CALLOC_POSIX.
28735
28736         Use modern idiom for calloc() replacement.
28737         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28738         AC_FUNC_CALLOC.
28739         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28740         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28741         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28742         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28743         (gl_REPLACE_CALLOC): New macro.
28744
28745 2010-06-21  Bruno Haible  <bruno@clisp.org>
28746
28747         Fix HAVE_REALLOC_POSIX misnomer.
28748         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28749         !HAVE_REALLOC_POSIX.
28750         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28751         HAVE_REALLOC_POSIX.
28752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28753         instead of HAVE_REALLOC_POSIX.
28754         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28755         HAVE_REALLOC_POSIX.
28756
28757         Use modern idiom for realloc() replacement.
28758         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28759         AC_FUNC_REALLOC.
28760         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28761         Autoconf's AC_FUNC_REALLOC.
28762         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28763         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28764         (gl_REPLACE_REALLOC): New macro.
28765         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28766
28767 2010-06-21  Bruno Haible  <bruno@clisp.org>
28768
28769         Fix HAVE_MALLOC_POSIX misnomer.
28770         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28771         !HAVE_MALLOC_POSIX.
28772         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28773         HAVE_MALLOC_POSIX.
28774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28775         instead of HAVE_MALLOC_POSIX.
28776         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28777         HAVE_MALLOC_POSIX.
28778
28779         Use modern idiom for malloc() replacement.
28780         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28781         AC_FUNC_MALLOC.
28782         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28783         Autoconf's AC_FUNC_MALLOC.
28784         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28785         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28786         (gl_REPLACE_MALLOC): New macro.
28787         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28788
28789 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28790
28791         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28792         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28793         This macro takes 3 arguments, not 4.
28794
28795 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28796
28797         ipv6: fix detection under mingw
28798         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28799         in6_addr.
28800
28801 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28802
28803         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28804         that strtod() works when cross-compiling to a glibc version known
28805         to work.
28806
28807 2010-06-15  Bruno Haible  <bruno@clisp.org>
28808
28809         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28810
28811 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28812
28813         select: Correct timeout.
28814         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28815
28816 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28817
28818         git-version-gen: init shell var to avoid env var influence
28819         * build-aux/git-version-gen (v): Init shell var to empty.
28820
28821 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28822
28823         priv-set: Don't assume that priv.h exists merely because getppriv does.
28824         See Jan Andersen's bug report about AIX 5L in
28825         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28826         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28827         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28828         * lib/priv-set.h: Likewise.
28829         * tests/test-priv-set.c: Likewise.
28830
28831 2010-06-13  Bruno Haible  <bruno@clisp.org>
28832
28833         relocatable: Make it easier to test whether to install wrappers.
28834         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28835         RELOCATABLE_VIA_WRAPPER.
28836
28837 2010-06-13  Bruno Haible  <bruno@clisp.org>
28838
28839         gnulib-tool: Display specified modules and dependencies differently.
28840         * gnulib-tool (func_show_module_list): New function.
28841         (func_import, func_create_testdir): Invoke it.
28842         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28843
28844 2010-06-13  Bruno Haible  <bruno@clisp.org>
28845
28846         gnulib-tool: Align code of func_import and func_create_testdir.
28847         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28848         specified_modules.
28849
28850 2010-06-12  Jim Meyering  <meyering@redhat.com>
28851
28852         test-inttostr: avoid spurious failure on Solaris 9
28853         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28854         to accept "%ju".  Reported by Bruno Haible.
28855
28856 2010-06-11  Jim Meyering  <meyering@redhat.com>
28857
28858         test-sys_socket: mark variables as used more readably
28859         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28860         as "used" explicitly via (void) statement casts.  This is more
28861         readable than using them in an artificial return expression.
28862         Suggestion from Bruno Haible.
28863
28864 2010-06-11  Bruno Haible  <bruno@clisp.org>
28865
28866         Avoid some more warnings from "gcc -Wwrite-strings".
28867         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28868         to 'const char *'.
28869         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28870         * tests/test-c-strcasestr.c (main): Likewise.
28871         * tests/test-mbscasestr1.c (main): Likewise.
28872         * tests/test-mbscasestr2.c (main): Likewise.
28873         * tests/test-memmem.c (main): Likewise.
28874         * tests/test-strstr.c (main): Likewise.
28875         * tests/test-strcasestr.c (main): Likewise.
28876
28877 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28878
28879         init.sh: change framework_failure_ to fail with status 99, not 1
28880         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28881         automake's parallel-tests rule that this is an unexpected failure,
28882         even if the test is listed in XFAIL_TESTS.
28883
28884 2010-06-11  Jim Meyering  <meyering@redhat.com>
28885
28886         test-inttostr: avoid warnings about 4-6KB literal strings
28887         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28888         Include "macros.h", for its definition of ASSERT.
28889         (CK): s/assert/ASSERT/
28890         * modules/inttostr-tests (Files): Add macros.h.
28891
28892         init.sh: don't use $ME_ or skip_ before they are defined
28893         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28894         their first uses.  Also hoist their companions: warn_, fail_,
28895         framework_failure_, $stderr_fileno.  Prompted by a patch from
28896         Stefano Lattarini.
28897
28898         test-sys_socket: avoid set-but-not-used warnings from gcc
28899         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28900         avoid warning about set-but-not-used variables.
28901
28902         test-xvasprintf: avoid 'const' discard warnings
28903         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28904         "const" when assigning from literal strings.
28905         (test_xasprintf): Add "void" in function argument list to placate
28906         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28907
28908         tests: avoid compilation warnings in argmatch and exclude tests...
28909         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28910         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28911         Since it always exits, declare with the "noreturn" attribute.
28912         * tests/test-argmatch.c: Likewise.
28913
28914         tests: avoid 'const' discard warnings in mbsstr tests
28915         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28916         * tests/test-mbsstr2.c (main): Likewise.
28917
28918         test-verify: avoid warning from gcc's -Wmissing-declarations
28919         * tests/test-verify.c (function): Declare to be static.
28920
28921         test-inttostr.c: include <string.h> for use of strcmp
28922         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28923
28924         test-linkat: avoid failed assertion on "other" architectures
28925         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28926         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28927         sparc: https://bugs.launchpad.net/bugs/591968
28928
28929 2010-06-11  Jim Meyering  <meyering@redhat.com>
28930
28931         printf.m4: avoid autoconf's "Expanded Before Required" warning
28932         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28933         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28934         autoconf warning.
28935
28936 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28937
28938         Replacement header templates are now named with ".in", not "_".
28939         * doc/gnulib-intro.texi: Correct.
28940
28941 2010-06-10  Jim Meyering  <meyering@redhat.com>
28942
28943         inttostr-tests: depend on snprintf, not snprintf-posix
28944         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28945         snprintf-posix, to avoid this aclocal failure:
28946           missing file gnulib-tests/vasnprintf.c
28947           configure.ac:45: error: expected source file, required through \
28948           AC_LIBSOURCES, not found
28949
28950 2010-06-10  Jim Meyering  <meyering@redhat.com>
28951
28952         inttostr: add a new function, inttostr, and tests
28953         The namesake function was not available.  The existence of the
28954         template file, inttostr.c makes its addition nontrivial.
28955         * lib/anytostr.c: Rename from inttostr.c.
28956         (anytostr): Rename from inttostr.
28957         * lib/inttostr.c: New file.
28958         * modules/inttostr (Files): Add anytostr.c.
28959         (Makefile.am): Set lib_SOURCES instead of ...
28960         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28961         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28962         * lib/offtostr.c: Likewise.
28963         * lib/uinttostr.c: Likewise.
28964         * lib/umaxtostr.c: Likewise.
28965         * modules/inttostr-tests: New file.
28966         * tests/test-inttostr.c: New file.  Test these functions.
28967
28968 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28969             Bruno Haible  <bruno@clisp.org>
28970
28971         Add "Extending Gnulib" chapter to manual.
28972         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28973         chapter.
28974         (Extending Gnulib): New chapter.
28975         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28976         chapter.
28977
28978 2010-06-09  Bruno Haible  <bruno@clisp.org>
28979
28980         Avoid relocwrapper link errors due to gnulib replacement functions.
28981         * lib/areadlink.c: Use the system's malloc, realloc functions.
28982         (areadlink): Set errno to ENOMEM explicitly.
28983         * modules/areadlink (Depends-on): Remove malloc-posix.
28984         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28985
28986 2010-06-09  Bruno Haible  <bruno@clisp.org>
28987
28988         Avoid relocwrapper link errors due to gnulib replacement functions.
28989         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28990         * lib/malloca.c: Likewise.
28991         * lib/relocatable.c: Likewise.
28992         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28993         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28994         * lib/setenv.c: Use the system's malloc, realloc functions.
28995         * lib/strerror.c: Use the system's sprintf function.
28996         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28997
28998 2010-06-04  Bruno Haible  <bruno@clisp.org>
28999
29000         Prefer documented low-level autoconf macro names.
29001         * m4/lib-link.m4: Use m4_translit instead of translit.
29002         * m4/environ.m4: Likewise.
29003         * m4/mathfunc.m4: Likewise.
29004         * m4/onceonly.m4: Likewise.
29005         * m4/stdint.m4: Likewise.
29006         Suggested by Eric Blake.
29007
29008 2010-06-04  Martin Lambers  <marlam@marlam.de>
29009             Bruno Haible  <bruno@clisp.org>
29010
29011         havelib: Allow library names with '+' characters.
29012         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29013         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29014
29015 2010-06-09  Bruno Haible  <bruno@clisp.org>
29016
29017         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29018         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29019         realloc failed.
29020
29021 2010-06-08  Peter Simons  <simons@cryp.to>
29022
29023         maint.mk: make the news-check rule more configurable
29024         * top/maint.mk (news-check-lines-spec): New variable.
29025         (news-check): Use "sed -n 1,10p" in place of "head".
29026
29027 2010-06-07  Jim Meyering  <meyering@redhat.com>
29028
29029         do-release-commit-and-tag: fix typo in --help
29030         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29031
29032         regex: avoid new dead-code warning with gcc-4.6.0
29033         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29034         if-block containing a while-loop.  It's been unused for at least
29035         5 years.
29036
29037 2010-06-05  Bruno Haible  <bruno@clisp.org>
29038
29039         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29040         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29041
29042 2010-06-04  Bruno Haible  <bruno@clisp.org>
29043
29044         Update to GNU gettext 0.18.1.
29045         * modules/gettext (configure.ac): Require gettext infrastructure from
29046         version 0.18.1.
29047
29048 2010-06-03  Bruno Haible  <bruno@clisp.org>
29049
29050         Don't use AC_LIBOBJ with file names in subdirectories.
29051         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29052         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29053         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29054         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29055         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29056         gl_LIBUNISTRING_LIBSOURCE.
29057         (Makefile.am): Augment lib_SOURCES here, conditionally.
29058         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29059
29060 2010-06-03  Bruno Haible  <bruno@clisp.org>
29061
29062         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29063         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29064         expansion does not end with a newline.
29065         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29066         unnecessary newline.
29067
29068 2010-06-03  Bruno Haible  <bruno@clisp.org>
29069
29070         Reduce dependencies.
29071         * tests/test-quotearg.h: New file, extracted from
29072         tests/test-quotearg.c.
29073         * tests/test-quotearg-simple.c: New file, extracted from
29074         tests/test-quotearg.c.
29075         * tests/test-quotearg.c: Don't include <ctype.h>.
29076         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29077         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29078         use_quote_double_quotes, use_quotearg_colon): Moved to
29079         tests/test-quotearg.h.
29080         (results_g, flag_results, custom_quotes, custom_results): Moved
29081         to tests/test-quotearg-simple.c.
29082         (main): Moved the part that does not depend on gettext to
29083         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29084         performed.
29085         * modules/quotearg-simple: New file.
29086         * modules/quotearg-simple-tests: New file.
29087         * modules/quotearg (Depends-on): Add quotearg-simple.
29088         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29089         (Files): Add tests/test-quotearg.h.
29090         Reported by Paolo Bonzini.
29091
29092 2010-06-03  Bruno Haible  <bruno@clisp.org>
29093
29094         Reduce dependencies.
29095         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29096
29097 2010-06-03  Bruno Haible  <bruno@clisp.org>
29098
29099         time: Undefine more broken macros.
29100         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29101         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29102         Reported by Eric Blake.
29103
29104 2010-06-03  Bruno Haible  <bruno@clisp.org>
29105
29106         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29107         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29108         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29109         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29110         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29111         Reported by Ludovic Courtès <ludo@gnu.org>.
29112
29113 2010-06-02  Eric Blake  <eblake@redhat.com>
29114
29115         time: work with mingw + pthreads-win32 library
29116         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29117         if timespec is defined only in pthread.h.
29118         * modules/time (Makefile.am): Substitute it.
29119         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29120         <pthread.h>, when needed.
29121         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29122         from the library.
29123
29124 2010-05-31  Bruno Haible  <bruno@clisp.org>
29125
29126         Avoid expanding two macros in the wrong order.
29127         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29128         gl_LIBUNISTRING if it is defined.
29129         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29130         autoconf >= 2.64.
29131         Reported by Ludovic Courtès <ludo@gnu.org>.
29132
29133 2010-05-27  Jim Meyering  <meyering@redhat.com>
29134
29135         maint.mk: also prohibit "#undef" of always-defined symbols
29136         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29137         Allow more than one space before the symbol name.
29138         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29139         the regexp uses alternation.
29140
29141 2010-05-26  Eric Blake  <eblake@redhat.com>
29142
29143         maint.mk: avoid echo -e
29144         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29145         Convert all uses of echo -* to printf.
29146         Reported by Matthias Bolte.
29147
29148 2010-05-25  Bruno Haible  <bruno@clisp.org>
29149
29150         Update to GNU gettext 0.18, part 2.
29151         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29152         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29153
29154 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29155
29156         Add missing include in test-pwrite.c.
29157         * tests/test-pwrite.c: Include string.h, for strcmp.
29158
29159 2010-05-24  Bruno Haible  <bruno@clisp.org>
29160
29161         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29162
29163 2010-05-24  Bruno Haible  <bruno@clisp.org>
29164
29165         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29166         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29167         iconveh_error argument.
29168         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29169         U_STRCONV_TO_LOCALE.
29170         * lib/unistr/u16-strcoll.c: Likewise.
29171         * lib/unistr/u32-strcoll.c: Likewise.
29172         * modules/unistr/u8-strcoll (Depends-on): Add
29173         uniconv/u8-strconv-to-enc, localcharset. Remove
29174         uniconv/u8-strconv-to-locale.
29175         (configure.ac): Bump version number.
29176         * modules/unistr/u16-strcoll (Depends-on): Add
29177         uniconv/u16-strconv-to-enc, localcharset. Remove
29178         uniconv/u16-strconv-to-locale.
29179         (configure.ac): Bump version number.
29180         * modules/unistr/u32-strcoll (Depends-on): Add
29181         uniconv/u32-strconv-to-enc, localcharset. Remove
29182         uniconv/u32-strconv-to-locale.
29183         (configure.ac): Bump version number.
29184
29185 2010-05-24  Bruno Haible  <bruno@clisp.org>
29186
29187         Avoid a test failure on NetBSD 5.0.
29188         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29189         an iconv() bug.
29190
29191 2010-05-24  Bruno Haible  <bruno@clisp.org>
29192
29193         Adjust #include directive style.
29194         * modules/regex (Includes): Recommend to write <regex.h>.
29195
29196 2010-05-24  Bruno Haible  <bruno@clisp.org>
29197
29198         regex: Don't require alloca.
29199         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29200         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29201         only inside if (0).
29202
29203 2010-05-23  Jim Meyering  <meyering@redhat.com>
29204
29205         test-renameat.c: include <sys/stat.h>
29206         * tests/test-renameat.c: Include <sys/stat.h>; required for
29207         definition of S_IS* macros.
29208
29209 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29210
29211         Update maintainer documentation for 'relocatable-prog' module.
29212         * doc/relocatable-maint.texi: Update.
29213         Comments by Bruno Haible.
29214
29215 2010-05-23  Bruno Haible  <bruno@clisp.org>
29216
29217         git-merge-changelog: Enable --split-merged-entry by default.
29218         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29219         (usage): Don't mention this option any more.
29220         Reported by Ralf Wildenhues.
29221
29222 2010-05-23  Jim Meyering  <meyering@redhat.com>
29223
29224         test-pwrite: do not leave behind a test file named "out"
29225         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29226         The trivial-looking use of init.sh is really necessary.
29227         It ensures that the temporary file, "out", is created in
29228         a temporary directory, and removed upon termination.
29229         * tests/test-pwrite.sh: Re-add file.
29230         * modules/pwrite-tests: Reference it.
29231
29232 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29233
29234         Fix output redirection buglet in init.sh.
29235         * tests/init.sh: Fix redirection of stderr.
29236
29237 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29238
29239         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29240
29241 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29242
29243         * modules/valgrind-tests: New file.
29244         * m4/valgrind-tests.m4: New file.
29245         * doc/valgrind-tests.texi: New file.
29246         * doc/gnulib.texi (Running self-tests under valgrind): New
29247         section.
29248
29249 2010-05-19  Bruno Haible  <bruno@clisp.org>
29250
29251         Clean up dead code in recent commit.
29252         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29253         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29254         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29255         Suggested by Paolo Bonzini.
29256
29257 2010-05-19  Bruno Haible  <bruno@clisp.org>
29258
29259         Avoid valgrind error reports from libunistring.
29260         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29261         * modules/libunistring (Files): Add it.
29262         * modules/libunistring-optional (Files): Likewise.
29263
29264 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29265             Bruno Haible  <bruno@clisp.org>
29266
29267         New module 'libunistring-optional'.
29268         * modules/libunistring-optional: New file.
29269         * m4/libunistring-base.m4: New file.
29270         * m4/libunistring-optional.m4: New file.
29271         * lib/unicase.in.h: Renamed from lib/unicase.h.
29272         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29273         * lib/unictype.in.h: Renamed from lib/unictype.h.
29274         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29275         * lib/uniname.in.h: Renamed from lib/uniname.h.
29276         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29277         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29278         * lib/unistr.in.h: Renamed from lib/unistr.h.
29279         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29280         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29281         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29282         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29283         gl_LIBUNISTRING. If the library was found, determine the installed
29284         version and set LIBUNISTRING_VERSION.
29285         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29286         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29287         handle a configuration option --with-included-libunistring.
29288         * modules/libunistring (Files): Add m4/absolute-header.m4.
29289         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29290         Add m4/libunistring-base.m4.
29291         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29292         (Makefile.am): Build unicase.h from unicase.in.h.
29293         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29294         Add m4/libunistring-base.m4.
29295         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29296         (Makefile.am): Build uniconv.h from uniconv.in.h.
29297         * modules/unictype/base (Files): Use unictype.in.h instead of
29298         unictype.h. Add m4/libunistring-base.m4.
29299         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29300         (Makefile.am): Build unictype.h from unictype.in.h.
29301         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29302         Add m4/libunistring-base.m4.
29303         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29304         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29305         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29306         Add m4/libunistring-base.m4.
29307         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29308         (Makefile.am): Build uniname.h from uniname.in.h.
29309         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29310         Add m4/libunistring-base.m4.
29311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29312         (Makefile.am): Build uninorm.h from uninorm.in.h.
29313         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29314         unistdio.h. Add m4/libunistring-base.m4.
29315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29316         (Makefile.am): Build unistdio.h from unistdio.in.h.
29317         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29318         Add m4/libunistring-base.m4.
29319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29320         (Makefile.am): Build unistr.h from unistr.in.h.
29321         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29322         Add m4/libunistring-base.m4.
29323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29324         (Makefile.am): Build unitypes.h from unitypes.in.h.
29325         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29326         Add m4/libunistring-base.m4.
29327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29328         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29329         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29330         uniwidth.h. Add m4/libunistring-base.m4.
29331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29332         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29333         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29334         instead of augmenting lib_SOURCES.
29335         * modules/unicase/empty-suffix-context: Likewise.
29336         * modules/unicase/locale-language: Likewise.
29337         * modules/unicase/tolower: Likewise.
29338         * modules/unicase/totitle: Likewise.
29339         * modules/unicase/toupper: Likewise.
29340         * modules/unicase/u8-casecmp: Likewise.
29341         * modules/unicase/u8-casecoll: Likewise.
29342         * modules/unicase/u8-casefold: Likewise.
29343         * modules/unicase/u8-casexfrm: Likewise.
29344         * modules/unicase/u8-ct-casefold: Likewise.
29345         * modules/unicase/u8-ct-tolower: Likewise.
29346         * modules/unicase/u8-ct-totitle: Likewise.
29347         * modules/unicase/u8-ct-toupper: Likewise.
29348         * modules/unicase/u8-is-cased: Likewise.
29349         * modules/unicase/u8-is-casefolded: Likewise.
29350         * modules/unicase/u8-is-lowercase: Likewise.
29351         * modules/unicase/u8-is-titlecase: Likewise.
29352         * modules/unicase/u8-is-uppercase: Likewise.
29353         * modules/unicase/u8-prefix-context: Likewise.
29354         * modules/unicase/u8-suffix-context: Likewise.
29355         * modules/unicase/u8-tolower: Likewise.
29356         * modules/unicase/u8-totitle: Likewise.
29357         * modules/unicase/u8-toupper: Likewise.
29358         * modules/unicase/u16-casecmp: Likewise.
29359         * modules/unicase/u16-casecoll: Likewise.
29360         * modules/unicase/u16-casefold: Likewise.
29361         * modules/unicase/u16-casexfrm: Likewise.
29362         * modules/unicase/u16-ct-casefold: Likewise.
29363         * modules/unicase/u16-ct-tolower: Likewise.
29364         * modules/unicase/u16-ct-totitle: Likewise.
29365         * modules/unicase/u16-ct-toupper: Likewise.
29366         * modules/unicase/u16-is-cased: Likewise.
29367         * modules/unicase/u16-is-casefolded: Likewise.
29368         * modules/unicase/u16-is-lowercase: Likewise.
29369         * modules/unicase/u16-is-titlecase: Likewise.
29370         * modules/unicase/u16-is-uppercase: Likewise.
29371         * modules/unicase/u16-prefix-context: Likewise.
29372         * modules/unicase/u16-suffix-context: Likewise.
29373         * modules/unicase/u16-tolower: Likewise.
29374         * modules/unicase/u16-totitle: Likewise.
29375         * modules/unicase/u16-toupper: Likewise.
29376         * modules/unicase/u32-casecmp: Likewise.
29377         * modules/unicase/u32-casecoll: Likewise.
29378         * modules/unicase/u32-casefold: Likewise.
29379         * modules/unicase/u32-casexfrm: Likewise.
29380         * modules/unicase/u32-ct-casefold: Likewise.
29381         * modules/unicase/u32-ct-tolower: Likewise.
29382         * modules/unicase/u32-ct-totitle: Likewise.
29383         * modules/unicase/u32-ct-toupper: Likewise.
29384         * modules/unicase/u32-is-cased: Likewise.
29385         * modules/unicase/u32-is-casefolded: Likewise.
29386         * modules/unicase/u32-is-lowercase: Likewise.
29387         * modules/unicase/u32-is-titlecase: Likewise.
29388         * modules/unicase/u32-is-uppercase: Likewise.
29389         * modules/unicase/u32-prefix-context: Likewise.
29390         * modules/unicase/u32-suffix-context: Likewise.
29391         * modules/unicase/u32-tolower: Likewise.
29392         * modules/unicase/u32-totitle: Likewise.
29393         * modules/unicase/u32-toupper: Likewise.
29394         * modules/unicase/ulc-casecmp: Likewise.
29395         * modules/unicase/ulc-casecoll: Likewise.
29396         * modules/unicase/ulc-casexfrm: Likewise.
29397         * modules/uniconv/u8-conv-from-enc: Likewise.
29398         * modules/uniconv/u8-conv-to-enc: Likewise.
29399         * modules/uniconv/u8-strconv-from-enc: Likewise.
29400         * modules/uniconv/u8-strconv-from-locale: Likewise.
29401         * modules/uniconv/u8-strconv-to-enc: Likewise.
29402         * modules/uniconv/u8-strconv-to-locale: Likewise.
29403         * modules/uniconv/u16-conv-from-enc: Likewise.
29404         * modules/uniconv/u16-conv-to-enc: Likewise.
29405         * modules/uniconv/u16-strconv-from-enc: Likewise.
29406         * modules/uniconv/u16-strconv-from-locale: Likewise.
29407         * modules/uniconv/u16-strconv-to-enc: Likewise.
29408         * modules/uniconv/u16-strconv-to-locale: Likewise.
29409         * modules/uniconv/u32-conv-from-enc: Likewise.
29410         * modules/uniconv/u32-conv-to-enc: Likewise.
29411         * modules/uniconv/u32-strconv-from-enc: Likewise.
29412         * modules/uniconv/u32-strconv-from-locale: Likewise.
29413         * modules/uniconv/u32-strconv-to-enc: Likewise.
29414         * modules/uniconv/u32-strconv-to-locale: Likewise.
29415         * modules/unictype/bidicategory-byname: Likewise.
29416         * modules/unictype/bidicategory-name: Likewise.
29417         * modules/unictype/bidicategory-of: Likewise.
29418         * modules/unictype/bidicategory-test: Likewise.
29419         * modules/unictype/block-list: Likewise.
29420         * modules/unictype/block-test: Likewise.
29421         * modules/unictype/category-C: Likewise.
29422         * modules/unictype/category-Cc: Likewise.
29423         * modules/unictype/category-Cf: Likewise.
29424         * modules/unictype/category-Cn: Likewise.
29425         * modules/unictype/category-Co: Likewise.
29426         * modules/unictype/category-Cs: Likewise.
29427         * modules/unictype/category-L: Likewise.
29428         * modules/unictype/category-Ll: Likewise.
29429         * modules/unictype/category-Lm: Likewise.
29430         * modules/unictype/category-Lo: Likewise.
29431         * modules/unictype/category-Lt: Likewise.
29432         * modules/unictype/category-Lu: Likewise.
29433         * modules/unictype/category-M: Likewise.
29434         * modules/unictype/category-Mc: Likewise.
29435         * modules/unictype/category-Me: Likewise.
29436         * modules/unictype/category-Mn: Likewise.
29437         * modules/unictype/category-N: Likewise.
29438         * modules/unictype/category-Nd: Likewise.
29439         * modules/unictype/category-Nl: Likewise.
29440         * modules/unictype/category-No: Likewise.
29441         * modules/unictype/category-P: Likewise.
29442         * modules/unictype/category-Pc: Likewise.
29443         * modules/unictype/category-Pd: Likewise.
29444         * modules/unictype/category-Pe: Likewise.
29445         * modules/unictype/category-Pf: Likewise.
29446         * modules/unictype/category-Pi: Likewise.
29447         * modules/unictype/category-Po: Likewise.
29448         * modules/unictype/category-Ps: Likewise.
29449         * modules/unictype/category-S: Likewise.
29450         * modules/unictype/category-Sc: Likewise.
29451         * modules/unictype/category-Sk: Likewise.
29452         * modules/unictype/category-Sm: Likewise.
29453         * modules/unictype/category-So: Likewise.
29454         * modules/unictype/category-Z: Likewise.
29455         * modules/unictype/category-Zl: Likewise.
29456         * modules/unictype/category-Zp: Likewise.
29457         * modules/unictype/category-Zs: Likewise.
29458         * modules/unictype/category-and: Likewise.
29459         * modules/unictype/category-and-not: Likewise.
29460         * modules/unictype/category-byname: Likewise.
29461         * modules/unictype/category-name: Likewise.
29462         * modules/unictype/category-none: Likewise.
29463         * modules/unictype/category-of: Likewise.
29464         * modules/unictype/category-or: Likewise.
29465         * modules/unictype/category-test: Likewise.
29466         * modules/unictype/combining-class: Likewise.
29467         * modules/unictype/ctype-alnum: Likewise.
29468         * modules/unictype/ctype-alpha: Likewise.
29469         * modules/unictype/ctype-blank: Likewise.
29470         * modules/unictype/ctype-cntrl: Likewise.
29471         * modules/unictype/ctype-digit: Likewise.
29472         * modules/unictype/ctype-graph: Likewise.
29473         * modules/unictype/ctype-lower: Likewise.
29474         * modules/unictype/ctype-print: Likewise.
29475         * modules/unictype/ctype-punct: Likewise.
29476         * modules/unictype/ctype-space: Likewise.
29477         * modules/unictype/ctype-upper: Likewise.
29478         * modules/unictype/ctype-xdigit: Likewise.
29479         * modules/unictype/decimal-digit: Likewise.
29480         * modules/unictype/digit: Likewise.
29481         * modules/unictype/mirror: Likewise.
29482         * modules/unictype/numeric: Likewise.
29483         * modules/unictype/property-alphabetic: Likewise.
29484         * modules/unictype/property-ascii-hex-digit: Likewise.
29485         * modules/unictype/property-bidi-arabic-digit: Likewise.
29486         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29487         * modules/unictype/property-bidi-block-separator: Likewise.
29488         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29489         * modules/unictype/property-bidi-common-separator: Likewise.
29490         * modules/unictype/property-bidi-control: Likewise.
29491         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29492         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29493         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29494         * modules/unictype/property-bidi-european-digit: Likewise.
29495         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29496         * modules/unictype/property-bidi-left-to-right: Likewise.
29497         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29498         * modules/unictype/property-bidi-other-neutral: Likewise.
29499         * modules/unictype/property-bidi-pdf: Likewise.
29500         * modules/unictype/property-bidi-segment-separator: Likewise.
29501         * modules/unictype/property-bidi-whitespace: Likewise.
29502         * modules/unictype/property-byname: Likewise.
29503         * modules/unictype/property-combining: Likewise.
29504         * modules/unictype/property-composite: Likewise.
29505         * modules/unictype/property-currency-symbol: Likewise.
29506         * modules/unictype/property-dash: Likewise.
29507         * modules/unictype/property-decimal-digit: Likewise.
29508         * modules/unictype/property-default-ignorable-code-point: Likewise.
29509         * modules/unictype/property-deprecated: Likewise.
29510         * modules/unictype/property-diacritic: Likewise.
29511         * modules/unictype/property-extender: Likewise.
29512         * modules/unictype/property-format-control: Likewise.
29513         * modules/unictype/property-grapheme-base: Likewise.
29514         * modules/unictype/property-grapheme-extend: Likewise.
29515         * modules/unictype/property-grapheme-link: Likewise.
29516         * modules/unictype/property-hex-digit: Likewise.
29517         * modules/unictype/property-hyphen: Likewise.
29518         * modules/unictype/property-id-continue: Likewise.
29519         * modules/unictype/property-id-start: Likewise.
29520         * modules/unictype/property-ideographic: Likewise.
29521         * modules/unictype/property-ids-binary-operator: Likewise.
29522         * modules/unictype/property-ids-trinary-operator: Likewise.
29523         * modules/unictype/property-ignorable-control: Likewise.
29524         * modules/unictype/property-iso-control: Likewise.
29525         * modules/unictype/property-join-control: Likewise.
29526         * modules/unictype/property-left-of-pair: Likewise.
29527         * modules/unictype/property-line-separator: Likewise.
29528         * modules/unictype/property-logical-order-exception: Likewise.
29529         * modules/unictype/property-lowercase: Likewise.
29530         * modules/unictype/property-math: Likewise.
29531         * modules/unictype/property-non-break: Likewise.
29532         * modules/unictype/property-not-a-character: Likewise.
29533         * modules/unictype/property-numeric: Likewise.
29534         * modules/unictype/property-other-alphabetic: Likewise.
29535         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29536         * modules/unictype/property-other-grapheme-extend: Likewise.
29537         * modules/unictype/property-other-id-continue: Likewise.
29538         * modules/unictype/property-other-id-start: Likewise.
29539         * modules/unictype/property-other-lowercase: Likewise.
29540         * modules/unictype/property-other-math: Likewise.
29541         * modules/unictype/property-other-uppercase: Likewise.
29542         * modules/unictype/property-paired-punctuation: Likewise.
29543         * modules/unictype/property-paragraph-separator: Likewise.
29544         * modules/unictype/property-pattern-syntax: Likewise.
29545         * modules/unictype/property-pattern-white-space: Likewise.
29546         * modules/unictype/property-private-use: Likewise.
29547         * modules/unictype/property-punctuation: Likewise.
29548         * modules/unictype/property-quotation-mark: Likewise.
29549         * modules/unictype/property-radical: Likewise.
29550         * modules/unictype/property-sentence-terminal: Likewise.
29551         * modules/unictype/property-soft-dotted: Likewise.
29552         * modules/unictype/property-space: Likewise.
29553         * modules/unictype/property-terminal-punctuation: Likewise.
29554         * modules/unictype/property-test: Likewise.
29555         * modules/unictype/property-titlecase: Likewise.
29556         * modules/unictype/property-unassigned-code-value: Likewise.
29557         * modules/unictype/property-unified-ideograph: Likewise.
29558         * modules/unictype/property-uppercase: Likewise.
29559         * modules/unictype/property-variation-selector: Likewise.
29560         * modules/unictype/property-white-space: Likewise.
29561         * modules/unictype/property-xid-continue: Likewise.
29562         * modules/unictype/property-xid-start: Likewise.
29563         * modules/unictype/property-zero-width: Likewise.
29564         * modules/unictype/scripts: Likewise.
29565         * modules/unictype/syntax-c-ident: Likewise.
29566         * modules/unictype/syntax-c-whitespace: Likewise.
29567         * modules/unictype/syntax-java-ident: Likewise.
29568         * modules/unictype/syntax-java-whitespace: Likewise.
29569         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29570         * modules/unilbrk/u8-width-linebreaks: Likewise.
29571         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29572         * modules/unilbrk/u16-width-linebreaks: Likewise.
29573         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29574         * modules/unilbrk/u32-width-linebreaks: Likewise.
29575         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29576         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29577         * modules/uniname/uniname: Likewise.
29578         * modules/uninorm/canonical-decomposition: Likewise.
29579         * modules/uninorm/composition: Likewise.
29580         * modules/uninorm/decomposing-form: Likewise.
29581         * modules/uninorm/decomposition: Likewise.
29582         * modules/uninorm/filter: Likewise.
29583         * modules/uninorm/nfc: Likewise.
29584         * modules/uninorm/nfd: Likewise.
29585         * modules/uninorm/nfkc: Likewise.
29586         * modules/uninorm/nfkd: Likewise.
29587         * modules/uninorm/u8-normalize: Likewise.
29588         * modules/uninorm/u8-normcmp: Likewise.
29589         * modules/uninorm/u8-normcoll: Likewise.
29590         * modules/uninorm/u8-normxfrm: Likewise.
29591         * modules/uninorm/u16-normalize: Likewise.
29592         * modules/uninorm/u16-normcmp: Likewise.
29593         * modules/uninorm/u16-normcoll: Likewise.
29594         * modules/uninorm/u16-normxfrm: Likewise.
29595         * modules/uninorm/u32-normalize: Likewise.
29596         * modules/uninorm/u32-normcmp: Likewise.
29597         * modules/uninorm/u32-normcoll: Likewise.
29598         * modules/uninorm/u32-normxfrm: Likewise.
29599         * modules/unistdio/u8-asnprintf: Likewise.
29600         * modules/unistdio/u8-asprintf: Likewise.
29601         * modules/unistdio/u8-snprintf: Likewise.
29602         * modules/unistdio/u8-sprintf: Likewise.
29603         * modules/unistdio/u8-u8-asnprintf: Likewise.
29604         * modules/unistdio/u8-u8-asprintf: Likewise.
29605         * modules/unistdio/u8-u8-snprintf: Likewise.
29606         * modules/unistdio/u8-u8-sprintf: Likewise.
29607         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29608         * modules/unistdio/u8-u8-vasprintf: Likewise.
29609         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29610         * modules/unistdio/u8-u8-vsprintf: Likewise.
29611         * modules/unistdio/u8-vasnprintf: Likewise.
29612         * modules/unistdio/u8-vasprintf: Likewise.
29613         * modules/unistdio/u8-vsnprintf: Likewise.
29614         * modules/unistdio/u8-vsprintf: Likewise.
29615         * modules/unistdio/u16-asnprintf: Likewise.
29616         * modules/unistdio/u16-asprintf: Likewise.
29617         * modules/unistdio/u16-snprintf: Likewise.
29618         * modules/unistdio/u16-sprintf: Likewise.
29619         * modules/unistdio/u16-u16-asnprintf: Likewise.
29620         * modules/unistdio/u16-u16-asprintf: Likewise.
29621         * modules/unistdio/u16-u16-snprintf: Likewise.
29622         * modules/unistdio/u16-u16-sprintf: Likewise.
29623         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29624         * modules/unistdio/u16-u16-vasprintf: Likewise.
29625         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29626         * modules/unistdio/u16-u16-vsprintf: Likewise.
29627         * modules/unistdio/u16-vasnprintf: Likewise.
29628         * modules/unistdio/u16-vasprintf: Likewise.
29629         * modules/unistdio/u16-vsnprintf: Likewise.
29630         * modules/unistdio/u16-vsprintf: Likewise.
29631         * modules/unistdio/u32-asnprintf: Likewise.
29632         * modules/unistdio/u32-asprintf: Likewise.
29633         * modules/unistdio/u32-snprintf: Likewise.
29634         * modules/unistdio/u32-sprintf: Likewise.
29635         * modules/unistdio/u32-u32-asnprintf: Likewise.
29636         * modules/unistdio/u32-u32-asprintf: Likewise.
29637         * modules/unistdio/u32-u32-snprintf: Likewise.
29638         * modules/unistdio/u32-u32-sprintf: Likewise.
29639         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29640         * modules/unistdio/u32-u32-vasprintf: Likewise.
29641         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29642         * modules/unistdio/u32-u32-vsprintf: Likewise.
29643         * modules/unistdio/u32-vasnprintf: Likewise.
29644         * modules/unistdio/u32-vasprintf: Likewise.
29645         * modules/unistdio/u32-vsnprintf: Likewise.
29646         * modules/unistdio/u32-vsprintf: Likewise.
29647         * modules/unistdio/ulc-asnprintf: Likewise.
29648         * modules/unistdio/ulc-asprintf: Likewise.
29649         * modules/unistdio/ulc-fprintf: Likewise.
29650         * modules/unistdio/ulc-snprintf: Likewise.
29651         * modules/unistdio/ulc-sprintf: Likewise.
29652         * modules/unistdio/ulc-vasnprintf: Likewise.
29653         * modules/unistdio/ulc-vasprintf: Likewise.
29654         * modules/unistdio/ulc-vfprintf: Likewise.
29655         * modules/unistdio/ulc-vsnprintf: Likewise.
29656         * modules/unistdio/ulc-vsprintf: Likewise.
29657         * modules/unistr/u8-check: Likewise.
29658         * modules/unistr/u8-chr: Likewise.
29659         * modules/unistr/u8-cmp: Likewise.
29660         * modules/unistr/u8-cmp2: Likewise.
29661         * modules/unistr/u8-cpy: Likewise.
29662         * modules/unistr/u8-cpy-alloc: Likewise.
29663         * modules/unistr/u8-endswith: Likewise.
29664         * modules/unistr/u8-mblen: Likewise.
29665         * modules/unistr/u8-mbsnlen: Likewise.
29666         * modules/unistr/u8-mbtouc: Likewise.
29667         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29668         * modules/unistr/u8-mbtoucr: Likewise.
29669         * modules/unistr/u8-move: Likewise.
29670         * modules/unistr/u8-next: Likewise.
29671         * modules/unistr/u8-prev: Likewise.
29672         * modules/unistr/u8-set: Likewise.
29673         * modules/unistr/u8-startswith: Likewise.
29674         * modules/unistr/u8-stpcpy: Likewise.
29675         * modules/unistr/u8-stpncpy: Likewise.
29676         * modules/unistr/u8-strcat: Likewise.
29677         * modules/unistr/u8-strchr: Likewise.
29678         * modules/unistr/u8-strcmp: Likewise.
29679         * modules/unistr/u8-strcoll: Likewise.
29680         * modules/unistr/u8-strcpy: Likewise.
29681         * modules/unistr/u8-strcspn: Likewise.
29682         * modules/unistr/u8-strdup: Likewise.
29683         * modules/unistr/u8-strlen: Likewise.
29684         * modules/unistr/u8-strmblen: Likewise.
29685         * modules/unistr/u8-strmbtouc: Likewise.
29686         * modules/unistr/u8-strncat: Likewise.
29687         * modules/unistr/u8-strncmp: Likewise.
29688         * modules/unistr/u8-strncpy: Likewise.
29689         * modules/unistr/u8-strnlen: Likewise.
29690         * modules/unistr/u8-strpbrk: Likewise.
29691         * modules/unistr/u8-strrchr: Likewise.
29692         * modules/unistr/u8-strspn: Likewise.
29693         * modules/unistr/u8-strstr: Likewise.
29694         * modules/unistr/u8-strtok: Likewise.
29695         * modules/unistr/u8-to-u16: Likewise.
29696         * modules/unistr/u8-to-u32: Likewise.
29697         * modules/unistr/u8-uctomb: Likewise.
29698         * modules/unistr/u16-check: Likewise.
29699         * modules/unistr/u16-chr: Likewise.
29700         * modules/unistr/u16-cmp: Likewise.
29701         * modules/unistr/u16-cmp2: Likewise.
29702         * modules/unistr/u16-cpy: Likewise.
29703         * modules/unistr/u16-cpy-alloc: Likewise.
29704         * modules/unistr/u16-endswith: Likewise.
29705         * modules/unistr/u16-mblen: Likewise.
29706         * modules/unistr/u16-mbsnlen: Likewise.
29707         * modules/unistr/u16-mbtouc: Likewise.
29708         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29709         * modules/unistr/u16-mbtoucr: Likewise.
29710         * modules/unistr/u16-move: Likewise.
29711         * modules/unistr/u16-next: Likewise.
29712         * modules/unistr/u16-prev: Likewise.
29713         * modules/unistr/u16-set: Likewise.
29714         * modules/unistr/u16-startswith: Likewise.
29715         * modules/unistr/u16-stpcpy: Likewise.
29716         * modules/unistr/u16-stpncpy: Likewise.
29717         * modules/unistr/u16-strcat: Likewise.
29718         * modules/unistr/u16-strchr: Likewise.
29719         * modules/unistr/u16-strcmp: Likewise.
29720         * modules/unistr/u16-strcoll: Likewise.
29721         * modules/unistr/u16-strcpy: Likewise.
29722         * modules/unistr/u16-strcspn: Likewise.
29723         * modules/unistr/u16-strdup: Likewise.
29724         * modules/unistr/u16-strlen: Likewise.
29725         * modules/unistr/u16-strmblen: Likewise.
29726         * modules/unistr/u16-strmbtouc: Likewise.
29727         * modules/unistr/u16-strncat: Likewise.
29728         * modules/unistr/u16-strncmp: Likewise.
29729         * modules/unistr/u16-strncpy: Likewise.
29730         * modules/unistr/u16-strnlen: Likewise.
29731         * modules/unistr/u16-strpbrk: Likewise.
29732         * modules/unistr/u16-strrchr: Likewise.
29733         * modules/unistr/u16-strspn: Likewise.
29734         * modules/unistr/u16-strstr: Likewise.
29735         * modules/unistr/u16-strtok: Likewise.
29736         * modules/unistr/u16-to-u32: Likewise.
29737         * modules/unistr/u16-to-u8: Likewise.
29738         * modules/unistr/u16-uctomb: Likewise.
29739         * modules/unistr/u32-check: Likewise.
29740         * modules/unistr/u32-chr: Likewise.
29741         * modules/unistr/u32-cmp: Likewise.
29742         * modules/unistr/u32-cmp2: Likewise.
29743         * modules/unistr/u32-cpy: Likewise.
29744         * modules/unistr/u32-cpy-alloc: Likewise.
29745         * modules/unistr/u32-endswith: Likewise.
29746         * modules/unistr/u32-mblen: Likewise.
29747         * modules/unistr/u32-mbsnlen: Likewise.
29748         * modules/unistr/u32-mbtouc: Likewise.
29749         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29750         * modules/unistr/u32-mbtoucr: Likewise.
29751         * modules/unistr/u32-move: Likewise.
29752         * modules/unistr/u32-next: Likewise.
29753         * modules/unistr/u32-prev: Likewise.
29754         * modules/unistr/u32-set: Likewise.
29755         * modules/unistr/u32-startswith: Likewise.
29756         * modules/unistr/u32-stpcpy: Likewise.
29757         * modules/unistr/u32-stpncpy: Likewise.
29758         * modules/unistr/u32-strcat: Likewise.
29759         * modules/unistr/u32-strchr: Likewise.
29760         * modules/unistr/u32-strcmp: Likewise.
29761         * modules/unistr/u32-strcoll: Likewise.
29762         * modules/unistr/u32-strcpy: Likewise.
29763         * modules/unistr/u32-strcspn: Likewise.
29764         * modules/unistr/u32-strdup: Likewise.
29765         * modules/unistr/u32-strlen: Likewise.
29766         * modules/unistr/u32-strmblen: Likewise.
29767         * modules/unistr/u32-strmbtouc: Likewise.
29768         * modules/unistr/u32-strncat: Likewise.
29769         * modules/unistr/u32-strncmp: Likewise.
29770         * modules/unistr/u32-strncpy: Likewise.
29771         * modules/unistr/u32-strnlen: Likewise.
29772         * modules/unistr/u32-strpbrk: Likewise.
29773         * modules/unistr/u32-strrchr: Likewise.
29774         * modules/unistr/u32-strspn: Likewise.
29775         * modules/unistr/u32-strstr: Likewise.
29776         * modules/unistr/u32-strtok: Likewise.
29777         * modules/unistr/u32-to-u16: Likewise.
29778         * modules/unistr/u32-to-u8: Likewise.
29779         * modules/unistr/u32-uctomb: Likewise.
29780         * modules/uniwbrk/u8-wordbreaks: Likewise.
29781         * modules/uniwbrk/u16-wordbreaks: Likewise.
29782         * modules/uniwbrk/u32-wordbreaks: Likewise.
29783         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29784         * modules/uniwbrk/wordbreak-property: Likewise.
29785         * modules/uniwidth/u8-strwidth: Likewise.
29786         * modules/uniwidth/u8-width: Likewise.
29787         * modules/uniwidth/u16-strwidth: Likewise.
29788         * modules/uniwidth/u16-width: Likewise.
29789         * modules/uniwidth/u32-strwidth: Likewise.
29790         * modules/uniwidth/u32-width: Likewise.
29791         * modules/uniwidth/width: Likewise.
29792         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29793         with $(LIBUNISTRING).
29794         * modules/unicase/ignorable-tests: Likewise.
29795         * modules/unicase/locale-language-tests: Likewise.
29796         * modules/unicase/tolower-tests: Likewise.
29797         * modules/unicase/totitle-tests: Likewise.
29798         * modules/unicase/toupper-tests: Likewise.
29799         * modules/unicase/u8-casecmp-tests: Likewise.
29800         * modules/unicase/u8-casecoll-tests: Likewise.
29801         * modules/unicase/u8-casefold-tests: Likewise.
29802         * modules/unicase/u8-is-cased-tests: Likewise.
29803         * modules/unicase/u8-is-casefolded-tests: Likewise.
29804         * modules/unicase/u8-is-lowercase-tests: Likewise.
29805         * modules/unicase/u8-is-titlecase-tests: Likewise.
29806         * modules/unicase/u8-is-uppercase-tests: Likewise.
29807         * modules/unicase/u8-tolower-tests: Likewise.
29808         * modules/unicase/u8-totitle-tests: Likewise.
29809         * modules/unicase/u8-toupper-tests: Likewise.
29810         * modules/unicase/u16-casecmp-tests: Likewise.
29811         * modules/unicase/u16-casecoll-tests: Likewise.
29812         * modules/unicase/u16-casefold-tests: Likewise.
29813         * modules/unicase/u16-is-cased-tests: Likewise.
29814         * modules/unicase/u16-is-casefolded-tests: Likewise.
29815         * modules/unicase/u16-is-lowercase-tests: Likewise.
29816         * modules/unicase/u16-is-titlecase-tests: Likewise.
29817         * modules/unicase/u16-is-uppercase-tests: Likewise.
29818         * modules/unicase/u16-tolower-tests: Likewise.
29819         * modules/unicase/u16-totitle-tests: Likewise.
29820         * modules/unicase/u16-toupper-tests: Likewise.
29821         * modules/unicase/u32-casecmp-tests: Likewise.
29822         * modules/unicase/u32-casecoll-tests: Likewise.
29823         * modules/unicase/u32-casefold-tests: Likewise.
29824         * modules/unicase/u32-is-cased-tests: Likewise.
29825         * modules/unicase/u32-is-casefolded-tests: Likewise.
29826         * modules/unicase/u32-is-lowercase-tests: Likewise.
29827         * modules/unicase/u32-is-titlecase-tests: Likewise.
29828         * modules/unicase/u32-is-uppercase-tests: Likewise.
29829         * modules/unicase/u32-tolower-tests: Likewise.
29830         * modules/unicase/u32-totitle-tests: Likewise.
29831         * modules/unicase/u32-toupper-tests: Likewise.
29832         * modules/unicase/ulc-casecmp-tests: Likewise.
29833         * modules/unicase/ulc-casecoll-tests: Likewise.
29834         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29835         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29836         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29837         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29838         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29839         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29840         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29841         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29842         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29843         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29844         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29845         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29846         * modules/unictype/bidicategory-byname-tests: Likewise.
29847         * modules/unictype/bidicategory-name-tests: Likewise.
29848         * modules/unictype/bidicategory-of-tests: Likewise.
29849         * modules/unictype/bidicategory-test-tests: Likewise.
29850         * modules/unictype/block-list-tests: Likewise.
29851         * modules/unictype/block-of-tests: Likewise.
29852         * modules/unictype/block-test-tests: Likewise.
29853         * modules/unictype/category-C-tests: Likewise.
29854         * modules/unictype/category-Cc-tests: Likewise.
29855         * modules/unictype/category-Cf-tests: Likewise.
29856         * modules/unictype/category-Cn-tests: Likewise.
29857         * modules/unictype/category-Co-tests: Likewise.
29858         * modules/unictype/category-Cs-tests: Likewise.
29859         * modules/unictype/category-L-tests: Likewise.
29860         * modules/unictype/category-Ll-tests: Likewise.
29861         * modules/unictype/category-Lm-tests: Likewise.
29862         * modules/unictype/category-Lo-tests: Likewise.
29863         * modules/unictype/category-Lt-tests: Likewise.
29864         * modules/unictype/category-Lu-tests: Likewise.
29865         * modules/unictype/category-M-tests: Likewise.
29866         * modules/unictype/category-Mc-tests: Likewise.
29867         * modules/unictype/category-Me-tests: Likewise.
29868         * modules/unictype/category-Mn-tests: Likewise.
29869         * modules/unictype/category-N-tests: Likewise.
29870         * modules/unictype/category-Nd-tests: Likewise.
29871         * modules/unictype/category-Nl-tests: Likewise.
29872         * modules/unictype/category-No-tests: Likewise.
29873         * modules/unictype/category-P-tests: Likewise.
29874         * modules/unictype/category-Pc-tests: Likewise.
29875         * modules/unictype/category-Pd-tests: Likewise.
29876         * modules/unictype/category-Pe-tests: Likewise.
29877         * modules/unictype/category-Pf-tests: Likewise.
29878         * modules/unictype/category-Pi-tests: Likewise.
29879         * modules/unictype/category-Po-tests: Likewise.
29880         * modules/unictype/category-Ps-tests: Likewise.
29881         * modules/unictype/category-S-tests: Likewise.
29882         * modules/unictype/category-Sc-tests: Likewise.
29883         * modules/unictype/category-Sk-tests: Likewise.
29884         * modules/unictype/category-Sm-tests: Likewise.
29885         * modules/unictype/category-So-tests: Likewise.
29886         * modules/unictype/category-Z-tests: Likewise.
29887         * modules/unictype/category-Zl-tests: Likewise.
29888         * modules/unictype/category-Zp-tests: Likewise.
29889         * modules/unictype/category-Zs-tests: Likewise.
29890         * modules/unictype/category-and-not-tests: Likewise.
29891         * modules/unictype/category-and-tests: Likewise.
29892         * modules/unictype/category-byname-tests: Likewise.
29893         * modules/unictype/category-name-tests: Likewise.
29894         * modules/unictype/category-none-tests: Likewise.
29895         * modules/unictype/category-of-tests: Likewise.
29896         * modules/unictype/category-or-tests: Likewise.
29897         * modules/unictype/category-test-withtable-tests: Likewise.
29898         * modules/unictype/combining-class-tests: Likewise.
29899         * modules/unictype/ctype-alnum-tests: Likewise.
29900         * modules/unictype/ctype-alpha-tests: Likewise.
29901         * modules/unictype/ctype-blank-tests: Likewise.
29902         * modules/unictype/ctype-cntrl-tests: Likewise.
29903         * modules/unictype/ctype-digit-tests: Likewise.
29904         * modules/unictype/ctype-graph-tests: Likewise.
29905         * modules/unictype/ctype-lower-tests: Likewise.
29906         * modules/unictype/ctype-print-tests: Likewise.
29907         * modules/unictype/ctype-punct-tests: Likewise.
29908         * modules/unictype/ctype-space-tests: Likewise.
29909         * modules/unictype/ctype-upper-tests: Likewise.
29910         * modules/unictype/ctype-xdigit-tests: Likewise.
29911         * modules/unictype/decimal-digit-tests: Likewise.
29912         * modules/unictype/digit-tests: Likewise.
29913         * modules/unictype/mirror-tests: Likewise.
29914         * modules/unictype/numeric-tests: Likewise.
29915         * modules/unictype/property-alphabetic-tests: Likewise.
29916         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29917         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29918         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29919         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29920         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29921         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29922         * modules/unictype/property-bidi-control-tests: Likewise.
29923         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29924         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29925         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29926         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29927         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29928         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29929         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29930         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29931         * modules/unictype/property-bidi-pdf-tests: Likewise.
29932         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29933         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29934         * modules/unictype/property-byname-tests: Likewise.
29935         * modules/unictype/property-combining-tests: Likewise.
29936         * modules/unictype/property-composite-tests: Likewise.
29937         * modules/unictype/property-currency-symbol-tests: Likewise.
29938         * modules/unictype/property-dash-tests: Likewise.
29939         * modules/unictype/property-decimal-digit-tests: Likewise.
29940         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29941         * modules/unictype/property-deprecated-tests: Likewise.
29942         * modules/unictype/property-diacritic-tests: Likewise.
29943         * modules/unictype/property-extender-tests: Likewise.
29944         * modules/unictype/property-format-control-tests: Likewise.
29945         * modules/unictype/property-grapheme-base-tests: Likewise.
29946         * modules/unictype/property-grapheme-extend-tests: Likewise.
29947         * modules/unictype/property-grapheme-link-tests: Likewise.
29948         * modules/unictype/property-hex-digit-tests: Likewise.
29949         * modules/unictype/property-hyphen-tests: Likewise.
29950         * modules/unictype/property-id-continue-tests: Likewise.
29951         * modules/unictype/property-id-start-tests: Likewise.
29952         * modules/unictype/property-ideographic-tests: Likewise.
29953         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29954         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29955         * modules/unictype/property-ignorable-control-tests: Likewise.
29956         * modules/unictype/property-iso-control-tests: Likewise.
29957         * modules/unictype/property-join-control-tests: Likewise.
29958         * modules/unictype/property-left-of-pair-tests: Likewise.
29959         * modules/unictype/property-line-separator-tests: Likewise.
29960         * modules/unictype/property-logical-order-exception-tests: Likewise.
29961         * modules/unictype/property-lowercase-tests: Likewise.
29962         * modules/unictype/property-math-tests: Likewise.
29963         * modules/unictype/property-non-break-tests: Likewise.
29964         * modules/unictype/property-not-a-character-tests: Likewise.
29965         * modules/unictype/property-numeric-tests: Likewise.
29966         * modules/unictype/property-other-alphabetic-tests: Likewise.
29967         * modules/unictype/property-other-default-ignorable-code-point-tests:
29968         Likewise.
29969         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29970         * modules/unictype/property-other-id-continue-tests: Likewise.
29971         * modules/unictype/property-other-id-start-tests: Likewise.
29972         * modules/unictype/property-other-lowercase-tests: Likewise.
29973         * modules/unictype/property-other-math-tests: Likewise.
29974         * modules/unictype/property-other-uppercase-tests: Likewise.
29975         * modules/unictype/property-paired-punctuation-tests: Likewise.
29976         * modules/unictype/property-paragraph-separator-tests: Likewise.
29977         * modules/unictype/property-pattern-syntax-tests: Likewise.
29978         * modules/unictype/property-pattern-white-space-tests: Likewise.
29979         * modules/unictype/property-private-use-tests: Likewise.
29980         * modules/unictype/property-punctuation-tests: Likewise.
29981         * modules/unictype/property-quotation-mark-tests: Likewise.
29982         * modules/unictype/property-radical-tests: Likewise.
29983         * modules/unictype/property-sentence-terminal-tests: Likewise.
29984         * modules/unictype/property-soft-dotted-tests: Likewise.
29985         * modules/unictype/property-space-tests: Likewise.
29986         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29987         * modules/unictype/property-test-tests: Likewise.
29988         * modules/unictype/property-titlecase-tests: Likewise.
29989         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29990         * modules/unictype/property-unified-ideograph-tests: Likewise.
29991         * modules/unictype/property-uppercase-tests: Likewise.
29992         * modules/unictype/property-variation-selector-tests: Likewise.
29993         * modules/unictype/property-white-space-tests: Likewise.
29994         * modules/unictype/property-xid-continue-tests: Likewise.
29995         * modules/unictype/property-xid-start-tests: Likewise.
29996         * modules/unictype/property-zero-width-tests: Likewise.
29997         * modules/unictype/scripts-tests: Likewise.
29998         * modules/unictype/syntax-c-ident-tests: Likewise.
29999         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30000         * modules/unictype/syntax-java-ident-tests: Likewise.
30001         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30002         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30003         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30004         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30005         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30006         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30007         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30008         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30009         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30010         * modules/uniname/uniname-tests: Likewise.
30011         * modules/uninorm/canonical-decomposition-tests: Likewise.
30012         * modules/uninorm/compat-decomposition-tests: Likewise.
30013         * modules/uninorm/composition-tests: Likewise.
30014         * modules/uninorm/decomposing-form-tests: Likewise.
30015         * modules/uninorm/decomposition-tests: Likewise.
30016         * modules/uninorm/filter-tests: Likewise.
30017         * modules/uninorm/nfc-tests: Likewise.
30018         * modules/uninorm/nfd-tests: Likewise.
30019         * modules/uninorm/nfkc-tests: Likewise.
30020         * modules/uninorm/nfkd-tests: Likewise.
30021         * modules/uninorm/u8-normcmp-tests: Likewise.
30022         * modules/uninorm/u8-normcoll-tests: Likewise.
30023         * modules/uninorm/u16-normcmp-tests: Likewise.
30024         * modules/uninorm/u16-normcoll-tests: Likewise.
30025         * modules/uninorm/u32-normcmp-tests: Likewise.
30026         * modules/uninorm/u32-normcoll-tests: Likewise.
30027         * modules/unistdio/u8-asnprintf-tests: Likewise.
30028         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30029         * modules/unistdio/u8-vasprintf-tests: Likewise.
30030         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30031         * modules/unistdio/u8-vsprintf-tests: Likewise.
30032         * modules/unistdio/u16-asnprintf-tests: Likewise.
30033         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30034         * modules/unistdio/u16-vasprintf-tests: Likewise.
30035         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30036         * modules/unistdio/u16-vsprintf-tests: Likewise.
30037         * modules/unistdio/u32-asnprintf-tests: Likewise.
30038         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30039         * modules/unistdio/u32-vasprintf-tests: Likewise.
30040         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30041         * modules/unistdio/u32-vsprintf-tests: Likewise.
30042         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30043         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30044         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30045         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30046         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30047         * modules/unistr/u8-check-tests: Likewise.
30048         * modules/unistr/u8-chr-tests: Likewise.
30049         * modules/unistr/u8-cmp-tests: Likewise.
30050         * modules/unistr/u8-cmp2-tests: Likewise.
30051         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30052         * modules/unistr/u8-cpy-tests: Likewise.
30053         * modules/unistr/u8-mblen-tests: Likewise.
30054         * modules/unistr/u8-mbsnlen-tests: Likewise.
30055         * modules/unistr/u8-mbtouc-tests: Likewise.
30056         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30057         * modules/unistr/u8-mbtoucr-tests: Likewise.
30058         * modules/unistr/u8-move-tests: Likewise.
30059         * modules/unistr/u8-next-tests: Likewise.
30060         * modules/unistr/u8-prev-tests: Likewise.
30061         * modules/unistr/u8-set-tests: Likewise.
30062         * modules/unistr/u8-stpcpy-tests: Likewise.
30063         * modules/unistr/u8-stpncpy-tests: Likewise.
30064         * modules/unistr/u8-strcat-tests: Likewise.
30065         * modules/unistr/u8-strcmp-tests: Likewise.
30066         * modules/unistr/u8-strcoll-tests: Likewise.
30067         * modules/unistr/u8-strcpy-tests: Likewise.
30068         * modules/unistr/u8-strdup-tests: Likewise.
30069         * modules/unistr/u8-strlen-tests: Likewise.
30070         * modules/unistr/u8-strmblen-tests: Likewise.
30071         * modules/unistr/u8-strmbtouc-tests: Likewise.
30072         * modules/unistr/u8-strncat-tests: Likewise.
30073         * modules/unistr/u8-strncmp-tests: Likewise.
30074         * modules/unistr/u8-strncpy-tests: Likewise.
30075         * modules/unistr/u8-strnlen-tests: Likewise.
30076         * modules/unistr/u8-to-u16-tests: Likewise.
30077         * modules/unistr/u8-to-u32-tests: Likewise.
30078         * modules/unistr/u8-uctomb-tests: Likewise.
30079         * modules/unistr/u16-check-tests: Likewise.
30080         * modules/unistr/u16-chr-tests: Likewise.
30081         * modules/unistr/u16-cmp-tests: Likewise.
30082         * modules/unistr/u16-cmp2-tests: Likewise.
30083         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30084         * modules/unistr/u16-cpy-tests: Likewise.
30085         * modules/unistr/u16-mblen-tests: Likewise.
30086         * modules/unistr/u16-mbsnlen-tests: Likewise.
30087         * modules/unistr/u16-mbtouc-tests: Likewise.
30088         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30089         * modules/unistr/u16-mbtoucr-tests: Likewise.
30090         * modules/unistr/u16-move-tests: Likewise.
30091         * modules/unistr/u16-next-tests: Likewise.
30092         * modules/unistr/u16-prev-tests: Likewise.
30093         * modules/unistr/u16-set-tests: Likewise.
30094         * modules/unistr/u16-stpcpy-tests: Likewise.
30095         * modules/unistr/u16-stpncpy-tests: Likewise.
30096         * modules/unistr/u16-strcat-tests: Likewise.
30097         * modules/unistr/u16-strcmp-tests: Likewise.
30098         * modules/unistr/u16-strcoll-tests: Likewise.
30099         * modules/unistr/u16-strcpy-tests: Likewise.
30100         * modules/unistr/u16-strdup-tests: Likewise.
30101         * modules/unistr/u16-strlen-tests: Likewise.
30102         * modules/unistr/u16-strmblen-tests: Likewise.
30103         * modules/unistr/u16-strmbtouc-tests: Likewise.
30104         * modules/unistr/u16-strncat-tests: Likewise.
30105         * modules/unistr/u16-strncmp-tests: Likewise.
30106         * modules/unistr/u16-strncpy-tests: Likewise.
30107         * modules/unistr/u16-strnlen-tests: Likewise.
30108         * modules/unistr/u16-to-u32-tests: Likewise.
30109         * modules/unistr/u16-to-u8-tests: Likewise.
30110         * modules/unistr/u16-uctomb-tests: Likewise.
30111         * modules/unistr/u32-check-tests: Likewise.
30112         * modules/unistr/u32-chr-tests: Likewise.
30113         * modules/unistr/u32-cmp-tests: Likewise.
30114         * modules/unistr/u32-cmp2-tests: Likewise.
30115         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30116         * modules/unistr/u32-cpy-tests: Likewise.
30117         * modules/unistr/u32-mblen-tests: Likewise.
30118         * modules/unistr/u32-mbsnlen-tests: Likewise.
30119         * modules/unistr/u32-mbtouc-tests: Likewise.
30120         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30121         * modules/unistr/u32-mbtoucr-tests: Likewise.
30122         * modules/unistr/u32-move-tests: Likewise.
30123         * modules/unistr/u32-next-tests: Likewise.
30124         * modules/unistr/u32-prev-tests: Likewise.
30125         * modules/unistr/u32-set-tests: Likewise.
30126         * modules/unistr/u32-stpcpy-tests: Likewise.
30127         * modules/unistr/u32-stpncpy-tests: Likewise.
30128         * modules/unistr/u32-strcat-tests: Likewise.
30129         * modules/unistr/u32-strcmp-tests: Likewise.
30130         * modules/unistr/u32-strcoll-tests: Likewise.
30131         * modules/unistr/u32-strcpy-tests: Likewise.
30132         * modules/unistr/u32-strdup-tests: Likewise.
30133         * modules/unistr/u32-strlen-tests: Likewise.
30134         * modules/unistr/u32-strmblen-tests: Likewise.
30135         * modules/unistr/u32-strmbtouc-tests: Likewise.
30136         * modules/unistr/u32-strncat-tests: Likewise.
30137         * modules/unistr/u32-strncmp-tests: Likewise.
30138         * modules/unistr/u32-strncpy-tests: Likewise.
30139         * modules/unistr/u32-strnlen-tests: Likewise.
30140         * modules/unistr/u32-to-u16-tests: Likewise.
30141         * modules/unistr/u32-to-u8-tests: Likewise.
30142         * modules/unistr/u32-uctomb-tests: Likewise.
30143         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30144         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30145         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30146         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30147         * modules/uniwidth/u8-strwidth-tests: Likewise.
30148         * modules/uniwidth/u8-width-tests: Likewise.
30149         * modules/uniwidth/u16-strwidth-tests: Likewise.
30150         * modules/uniwidth/u16-width-tests: Likewise.
30151         * modules/uniwidth/u32-strwidth-tests: Likewise.
30152         * modules/uniwidth/u32-width-tests: Likewise.
30153         * modules/uniwidth/width-tests: Likewise.
30154
30155 2010-05-18  Richard Jones  <rjones@redhat.com>
30156
30157         doc: users.txt: list hivex
30158         * users.txt: Add hivex.
30159
30160 2010-05-18  Richard Jones  <rjones@redhat.com>
30161
30162         doc: users.txt: list febootstrap
30163         * users.txt: Add febootstrap.
30164
30165 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30166
30167         bootstrap: fix an error when gnulib is not used as a git submodule
30168         * build-aux/bootstrap (gnulib_path): If its length is zero then
30169         assign "gnulib" to it.
30170         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30171
30172 2010-05-16  Bruno Haible  <bruno@clisp.org>
30173
30174         Avoid autoconf warnings about AM_ICONV.
30175         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30176         2.64.
30177
30178 2010-05-16  Bruno Haible  <bruno@clisp.org>
30179
30180         absolute-header: Make the macro usable in more situations.
30181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30182         from gl_ABSOLUTE_HEADER.
30183         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30184
30185 2010-05-16  James Youngman  <jay@gnu.org>
30186
30187         doc: update users.txt
30188         * users.txt: Add CSSC.
30189
30190 2010-05-16  Jim Meyering  <meyering@redhat.com>
30191
30192         init.sh: fix an error in the previous change; add more comments
30193         * tests/init.sh: Compare exit code in loop against 9, not 2.
30194         Patch by Bruno Haible.
30195         Make the two tests more similar by adding an empty "then" clause.
30196         Add comments.
30197
30198         init.sh: avoid unnecessary shell re-exec
30199         * tests/init.sh: Improve the re-exec-required check to first test the
30200         current shell.  If it passes the test, do not search for a shell that
30201         does pass, and do not re-exec.  This test is particularly contorted to
30202         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30203         of $(...) evokes a syntax error and causes immediate shell exit with
30204         status 2.  Bruno Haible reported that the re-exec made it impossible
30205         to single-step through any init.sh-using script.
30206
30207 2010-05-16  Bruno Haible  <bruno@clisp.org>
30208
30209         Fix collision between gnulib's and libintl's printf replacements.
30210         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30211         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30212         (printf): When using GNU C, map the __printf__ function to rpl_printf
30213         via __asm__. When not using GNU C, define rpl_printf instead of
30214         __printf__.
30215         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30216         commit.
30217         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30218         commit.
30219         * m4/asm-underscore.m4: New file.
30220         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30221         * modules/stdio (Files): Add m4/asm-underscore.m4.
30222         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30223         Reported by Ben Pfaff.
30224
30225 2010-05-16  Bruno Haible  <bruno@clisp.org>
30226
30227         verify: Avoid skipping the test on openSUSE 11.0.
30228         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30229
30230 2010-05-13  Bruno Haible  <bruno@clisp.org>
30231
30232         Avoid useless warnings from G++.
30233         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30234         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30235         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30236
30237 2010-05-11  Jim Meyering  <meyering@redhat.com>
30238
30239         maint.mk: tweak preceding change
30240         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30241         regexps tighter by anchoring at EOL, and make the new group "shy"
30242         for slightly decreased overhead.
30243
30244 2010-05-11  Eric Blake  <eblake@redhat.com>
30245
30246         maint.mk: gnulib doesn't guarantee NSIG
30247         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30248
30249 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30250
30251         test-pwrite.c: Remove unused variable declaration.
30252         * tests/test-pwrite.c (main): Remove read_buf declaration.
30253
30254         Remove useless test-pwrite.sh file.
30255         * tests/test-pwrite.sh: Delete file.
30256         * modules/pwrite-tests: Remove references.
30257         Reported by Bruno Haible.
30258
30259 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30260
30261         init.sh: fix a typo
30262         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30263
30264 2010-05-10  Jim Meyering  <meyering@redhat.com>
30265
30266         maint.mk: avoid using a temporary file in the always-defined-macros check
30267         * top/maint.mk (.re-defmac): Remove rule.
30268         (gl_trap_): Remove definition.
30269         (sc_prohibit_always-defined_macros): Rewrite not to create and
30270         depend on a temporary file.  Instead, depend on GNU grep's ability
30271         to read a list of regular expressions from stdin when given "-f -".
30272
30273 2010-05-09  Bruno Haible  <bruno@clisp.org>
30274
30275         Update to GNU gettext 0.18, part 1.
30276         * m4/gettext.m4: Update to GNU gettext 0.18.
30277         * m4/intl.m4: Likewise.
30278         * m4/po.m4: Likewise.
30279         * modules/gettext (Files): Add m4/fcntl-o.m4.
30280         (configure.ac): Require gettext infrastructure from version 0.18.
30281
30282 2010-05-09  Jim Meyering  <meyering@redhat.com>
30283
30284         init.sh: enable MALLOC_PERTURB_
30285         * tests/init.sh: Enable glibc's malloc-perturbing option.
30286
30287         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30288         With my recent change in init.sh from the two-line form:
30289             -#   : ${srcdir=.}
30290             -#   . "$srcdir/init.sh"; path_prepend_ .
30291             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30292         I noticed that using the one-line form would cause this test
30293         to fail with a false-positive, or to stop working altogether,
30294         depending on whether help-version changed or all the tests did.
30295         * top/maint.mk (_hv_regex): Remove this definition.
30296         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30297         (_hv_regex_strong): Use a stronger regex to check for conformance.
30298         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30299         Give a separate diagnostic for lack of conforming use.
30300
30301         maint.mk: prohibit definition of symbols defined by gnulib
30302         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30303         definition of symbols defined by gnulib.
30304
30305 2010-05-09  Bruno Haible  <bruno@clisp.org>
30306
30307         acl: Avoid test failure on Cygwin-hosted mingw.
30308         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30309
30310 2010-05-09  Bruno Haible  <bruno@clisp.org>
30311
30312         error: Use system's fcntl function.
30313         * lib/error.c (fcntl): Undefine.
30314
30315 2010-05-09  Jim Meyering  <meyering@redhat.com>
30316
30317         verify: adjust formatting to be more consistent
30318         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30319         argument-list '('s, and after one comma.
30320
30321 2010-05-09  Bruno Haible  <bruno@clisp.org>
30322
30323         error: More reliable output on mingw.
30324         * lib/error.c: Include <windows.h>.
30325         (is_open): New function.
30326         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30327         defined.
30328
30329 2010-05-09  Bruno Haible  <bruno@clisp.org>
30330
30331         vasnprintf: Fix syntax errors in libintl build on mingw.
30332         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30333         pad_ourselves and prec_ourselves after use.
30334
30335 2010-05-08  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/config.charset: Update comments for Cygwin 1.7.
30338         * lib/localcharset.c: Likewise.
30339
30340 2010-05-07  Jim Meyering  <meyering@redhat.com>
30341
30342         init.sh: improve comments
30343         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30344         . "${srcdir=.}/init.sh"; path_prepend_ .
30345         Add a note about path_prepend_ and the alternative of using
30346         TESTS_ENVIRONMENT.
30347
30348 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30349
30350         exclude: Unescape hashed patterns in wildcard mode.
30351         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30352         to the hash list.
30353         * tests/test-exclude8.sh: New test case.
30354         * modules/exclude-tests: Add new test.
30355
30356 2010-05-05  Eric Blake  <eblake@redhat.com>
30357
30358         verify: automate tests
30359         * modules/verify-tests: New module.
30360         * tests/test-verify.sh: New file.
30361         * tests/test-verify.c: Guard each negative test with a unique id.
30362         Also avoid warning about unused left hand of comma expressions.
30363
30364 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30365
30366         Further improvements to verify.h, suggested by Eric Blake.
30367         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30368         the GL_* versions, to avoid collision with OpenGL.
30369         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30370         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30371         than testing merely whether it's defined.
30372
30373         Modify verify.h to pacify gcc -Wredundant_decls.
30374         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30375         These use the prefix "GL_" since they're likely to be useful elsewhere.
30376         We may need to break them out into a different .h file.
30377         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30378         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30379         of verify_function__.
30380
30381 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30382
30383         Tests for module pwrite.
30384         * modules/pwrite-tests: New file.
30385         * tests/test-pwrite.sh: New file.
30386         * tests/test-pwrite.c: New file.
30387
30388         New module pwrite.
30389         * lib/unistd.in.h (pwrite): New declaration.
30390         * lib/pwrite.c: New file, from glibc with modifications.
30391         * m4/pwrite.m4: New file.
30392         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30393         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30394         REPLACE_PWRITE.
30395         * modules/pwrite: New file.
30396         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30397         REPLACE_PWRITE.
30398         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30399         * doc/posix-functions/pwrite.texi: Mention the new module.
30400
30401 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30402
30403         pread: Update documentation.
30404         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30405
30406 2010-05-04  Eric Blake  <eblake@redhat.com>
30407
30408         docs: update cygwin progress
30409         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30410         this bug.
30411         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30412         Added in cygwin 1.7.2.
30413         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30414         Likewise.
30415         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30416         Likewise.
30417         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30418         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30419         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30420         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30421         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30422         Mention nproc module.
30423         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30424         bug in cygwin 1.7.5 addition.
30425         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30426         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30427         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30428         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30429         1.7.5.
30430         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30431         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30432         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30433         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30434         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30435         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30436         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30437         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30438         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30439         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30440         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30441         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30442         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30443         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30444         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30445         Likewise.
30446         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30447         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30448         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30449         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30450         Likewise.
30451         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30452         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30453         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30454         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30455         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30456         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30457         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30458         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30459         Likewise.
30460         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30461         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30462         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30463         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30464         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30465         Likewise.
30466         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30467         Likewise.
30468         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30469         Likewise.
30470         * doc/glibc-functions/xdrrec_endofrecord.texi
30471         (xdrrec_endofrecord): Likewise.
30472         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30473         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30474         Likewise.
30475         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30476         Likewise.
30477
30478 2010-05-04  Jim Meyering  <meyering@redhat.com>
30479
30480         gendocs.sh: make its "-s FILE" option more useful
30481         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30482         $PACKAGE to reflect the probably-different basename of "FILE".
30483
30484 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30485
30486         bootstrap: don't ignore download_po_files failure
30487         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30488         failure.
30489
30490 2010-05-03  Jim Meyering  <meyering@redhat.com>
30491
30492         maint.mk: allow to pass options to gendocs.sh
30493         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30494         (gendocs_options_): New overridable variable.
30495
30496         gnu-web-doc-update: don't ignore configure or build failure
30497         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30498
30499         announce-gen: backslash-escape '@'s in --help output
30500         * build-aux/announce-gen: Fix syntax errors.
30501
30502         maint.mk, announce-gen: allow project-specific announcement mail headers
30503         * top/maint.mk (translation_project_): Define default.
30504         (announcement_Cc_, announcement_mail_headers_): Likewise.
30505         (announcement): Invoke announce-gen with new --mail-headers option.
30506         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30507
30508         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30509         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30510         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30511         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30512         line in the "err2" output file when running "make check" in verbose
30513         mode (i.e., with set -x enabled).
30514
30515 2010-05-03  Bruno Haible  <bruno@clisp.org>
30516
30517         wctob: Fix for weird platforms.
30518         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30519         argument value.
30520
30521 2010-05-03  Jim Meyering  <meyering@redhat.com>
30522
30523         maint.mk: prohibit unwarranted use of <strings.h>
30524         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30525         strings.h in a file that does not also use strcasecmp, strncasecmp,
30526         ffs or ffsll.
30527
30528         maint.mk: remove obsolete comments
30529         * top/maint.mk: Remove stale, commented-out rules.
30530
30531 2010-05-02  Bruno Haible  <bruno@clisp.org>
30532
30533         wcwidth: Declare also when it's aliased.
30534         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30535         macro.
30536
30537 2010-05-02  Bruno Haible  <bruno@clisp.org>
30538
30539         Fix regression from 2010-04-25.
30540         * gnulib-tool (func_modules_transitive_closure): Check the status of
30541         all modules, not only of the tests that are of the form foo-tests where
30542         foo is a module.
30543
30544 2010-05-02  Bruno Haible  <bruno@clisp.org>
30545
30546         wctob: Work around nasty Cygwin 1.7.2 bug.
30547         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30548         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30549
30550 2010-05-01  Bruno Haible  <bruno@clisp.org>
30551
30552         fpurge: Sharper test.
30553         * tests/test-fpurge.c (main): Add one more ftell check.
30554         * modules/fpurge-tests (Depends-on): Add ftell.
30555         Suggested by Eric Blake.
30556
30557 2010-05-01  Bruno Haible  <bruno@clisp.org>
30558
30559         ftello: Another test.
30560         * tests/test-ftello3.c: New file.
30561         * modules/ftello-tests (Files): Add it.
30562         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30563         MOSTLYCLEANFILES.
30564
30565         ftell: Another test.
30566         * tests/test-ftell3.c: New file.
30567         * modules/ftell-tests (Files): Add it.
30568         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30569         MOSTLYCLEANFILES.
30570
30571 2010-05-01  Bruno Haible  <bruno@clisp.org>
30572
30573         ftell, ftello: Work around Solaris bug.
30574         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30575         * lib/ftello.c: Include stdio-impl.h.
30576         (ftello): On Solaris, when _IOWRT is set, compute the result without
30577         looking at _IOREAD.
30578         * modules/ftello (Files): Add lib/stdio-impl.h.
30579         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30580         * doc/posix-functions/ftello.texi: Likewise.
30581         Reported by Eric Blake.
30582
30583 2010-05-01  Bruno Haible  <bruno@clisp.org>
30584
30585         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30586         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30587         the _IOWRT flag is also set.
30588
30589 2010-05-01  Bruno Haible  <bruno@clisp.org>
30590
30591         Fix doc about a HP-UX stdio bug.
30592         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30593         * doc/posix-functions/ftello.texi: Likewise.
30594
30595 2010-05-01  Bruno Haible  <bruno@clisp.org>
30596
30597         lseek test: Fix failure on Solaris.
30598         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30599         output.
30600
30601 2010-04-30  Jim Meyering  <meyering@redhat.com>
30602
30603         bootstrap: don't ignore failure to generate po*/Makevars
30604         * build-aux/bootstrap (with_gettext): Don't ignore failure
30605         to create po/Makevars or runtime-po/Makevars.
30606
30607 2010-04-29  Eric Blake  <eblake@redhat.com>
30608
30609         headers: relax license to LGPLv2+
30610         * modules/fcntl-h (License): Relax license.
30611         * modules/getopt-posix (License): Likewise.
30612         * modules/locale (License): Likewise.
30613         * modules/math (License): Likewise.
30614         * modules/pty (License): Likewise.
30615         * modules/sched (License): Likewise.
30616         * modules/search (License): Likewise.
30617         * modules/spawn (License): Likewise.
30618         * modules/stdarg (License): Likewise.
30619         * modules/sysexits (License): Likewise.
30620
30621 2010-04-29  Jim Meyering  <meyering@redhat.com>
30622
30623         inttypes: relax license to LGPLv2+
30624         * modules/inttypes (License): Relax license.
30625
30626 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30627
30628         * top/maint.mk (indent): Run twice to produce idempotent results.
30629
30630 2010-04-28  Bruno Haible  <bruno@clisp.org>
30631
30632         getdate: Generate getdate.c in the source directory.
30633         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30634         MOSTLYCLEANFILES.
30635         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30636
30637 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30638
30639         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30640         is not declared as a const *; avoid warnings in that case.
30641
30642 2010-04-28  Eric Blake  <eblake@redhat.com>
30643
30644         canonicalize-lgpl: avoid compiler warning
30645         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30646         declaration' / 'extraneous semicolon' warning with some compilers.
30647         Reported by Andreas Gruenbacher.
30648
30649 2010-04-28  Jim Meyering  <meyering@redhat.com>
30650
30651         init.sh: ensure a more reliable exit status when exiting via trap
30652         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30653         Inspired by patches from Dmitry V. Levin.
30654         Also trap on signal 3 (SIGQUIT).
30655
30656 2010-04-27  Bruno Haible  <bruno@clisp.org>
30657
30658         Update doc about utimes().
30659         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30660         'utimens' module.
30661         Reported by Andreas Gruenbacher <agruen@suse.de>.
30662
30663 2010-04-27  Eric Blake  <eblake@redhat.com>
30664
30665         full-read, full-write: relax license
30666         * modules/full-read (License): Drop to LGPLv2+.
30667         * modules/full-write (License): Likewise.
30668         * modules/safe-read (License): Likewise.
30669         * modules/safe-write (License): Likewise.
30670
30671         pthread: mention library for linking
30672         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30673
30674 2010-04-27  Jim Meyering  <meyering@redhat.com>
30675
30676         maint.mk: fix a bug introduced in last change
30677         * top/maint.mk (gl_assured_headers_): Now that all names are on
30678         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30679         is not anchored to end of word, it should be adequate.
30680
30681         maint.mk: avoid side-effect in latest syntax-check
30682         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30683         to run commands via $(shell...), and hence to incur cost only when
30684         the new rule is actually run.
30685
30686         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30687         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30688         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30689         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30690         (gl_assured_headers_, az_, AZ_): Define.
30691         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30692
30693 2010-04-26  Jim Meyering  <jim@meyering.net>
30694             Bruno Haible  <bruno@clisp.org>
30695
30696         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30697         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30698         Prompted by an exchange with Gilles Espinasse.
30699
30700 2010-04-26  Jim Meyering  <meyering@redhat.com>
30701
30702         git-version-gen: aesthetic tweak
30703         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30704         so that the command remains on a single line.
30705
30706 2010-04-26  Eric Blake  <eblake@redhat.com>
30707
30708         git-version-gen: allow use on EBCDIC hosts
30709         * build-aux/git-version-gen (dirty): Use literal rather than tying
30710         ourselves to ascii.
30711         Reported by Steve Goetze.
30712
30713 2010-04-25  Bruno Haible  <bruno@clisp.org>
30714
30715         netdb: Add support for GNULIB_POSIXCHECK.
30716         * lib/netdb.in.h: Include warn-on-use.h.
30717         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30718         functions are used when GNULIB_POSIXCHECK is defined and the
30719         getaddrinfo module is not in use.
30720         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30721         freeaddrinfo, gai_strerror, getnameinfo are declared.
30722         * modules/netdb (Depends-on): Add warn-on-use.
30723         (Makefile.am): Include warn-on-use.h in netdb.h.
30724
30725 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30726
30727         build: avoid "make check" failure without .git/ directory
30728         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30729         there is no .git/ directory.
30730
30731 2010-04-25  Bruno Haible  <bruno@clisp.org>
30732
30733         ptsname: Fix misuse of ttyname_r.
30734         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30735         of errno.
30736
30737 2010-04-25  Bruno Haible  <bruno@clisp.org>
30738
30739         ttyname_r: Make it work on Solaris 10.
30740         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30741         if the system function has the POSIX declaration. Test whether the
30742         function fails if the buffer is less than 128 bytes large.
30743         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30744         system's ttyname_r function. Provide a reasonably large buffer.
30745         * modules/ttyname_r (Depends-on): Add extensions.
30746         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30747
30748 2010-04-25  Bruno Haible  <bruno@clisp.org>
30749
30750         Use the 'extensions' module for some more functions on Solaris.
30751         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30752         module.
30753         * doc/posix-functions/ctime_r.texi: Likewise.
30754         * doc/posix-functions/getgrgid_r.texi: Likewise.
30755         * doc/posix-functions/getgrnam_r.texi: Likewise.
30756         * doc/posix-functions/getpwnam_r.texi: Likewise.
30757         * doc/posix-functions/getpwuid_r.texi: Likewise.
30758         * doc/posix-functions/readdir_r.texi: Likewise.
30759         * doc/posix-functions/sigwait.texi: Likewise.
30760         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30761         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30762
30763 2010-04-25  Bruno Haible  <bruno@clisp.org>
30764
30765         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30766         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30767         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30768         * lib/ttyname_r.c: Include <limits.h>.
30769         (ttyname_r): Define using the system's ttyname_r function, if it exists
30770         and not on Solaris.
30771         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30772         set.
30773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30774         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30775         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30776         Reported by Simon Josefsson.
30777
30778 2010-04-25  Bruno Haible  <bruno@clisp.org>
30779
30780         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30781         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30782         * doc/posix-functions/ctime_r.texi: Likewise.
30783         * doc/posix-functions/getgrgid_r.texi: Likewise.
30784         * doc/posix-functions/getgrnam_r.texi: Likewise.
30785         * doc/posix-functions/getlogin_r.texi: Likewise.
30786         * doc/posix-functions/getpwnam_r.texi: Likewise.
30787         * doc/posix-functions/getpwuid_r.texi: Likewise.
30788         * doc/posix-functions/readdir_r.texi: Likewise.
30789         * doc/posix-functions/sigwait.texi: Likewise.
30790         * doc/posix-functions/ttyname_r.texi: Likewise.
30791         Reported by Simon Josefsson.
30792
30793 2010-04-25  Bruno Haible  <bruno@clisp.org>
30794
30795         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30796         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30797         also to --create-testdir.
30798         (func_acceptable): Don't consider the status of *-tests modules here.
30799         (func_modules_transitive_closure): Consider it here, before including a
30800         test module.
30801         (func_import, func_create_testdir): Set inc_all_direct_tests,
30802         inc_all_indirect_tests.
30803         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30804         --create-testdir and --create-megatestdir.
30805
30806 2010-04-25  Bruno Haible  <bruno@clisp.org>
30807
30808         gnulib-tool: Add --without-*-tests options.
30809         * gnulib-tool (func_usage): Document the --without-*-tests options.
30810         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30811         excl_unportable_tests): New variables.
30812         Fail if they are specified with --import or --update.
30813         (func_acceptable): Respect the excl_*_tests variables.
30814         (func_import): Set the excl_*_tests variables to empty.
30815
30816 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30817             Bruno Haible  <bruno@clisp.org>
30818
30819         Work around a MacOS X 10.4 bug with openpty.
30820         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30821         * tests/test-openpty.c (main): Close the master side explicitly.
30822
30823 2010-04-25  Bruno Haible  <bruno@clisp.org>
30824
30825         strnlen: Fix a C++ test error on MacOS X and Solaris.
30826         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30827         the function is not declared.
30828         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30829         Simon Josefsson.
30830
30831 2010-04-24  Bruno Haible  <bruno@clisp.org>
30832
30833         Avoid a gcc warning.
30834         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30835         of correct type for %08lx directive.
30836         Reported by Eric Blake.
30837
30838 2010-04-24  Bruno Haible  <bruno@clisp.org>
30839
30840         vasnprintf: Correct errno value in case of out-of-memory.
30841         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30842         or sprintf. Use the errno value from SNPRINTF or sprintf.
30843         Reported by Ian Beckwith <ianb@erislabs.net>.
30844
30845 2010-04-24  Bruno Haible  <bruno@clisp.org>
30846
30847         ansi-c++-opt: Find correct compiler when cross-compiling.
30848         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30849         AC_CHECK_PROGS.
30850         Reported by Simon Josefsson.
30851
30852 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30853
30854         vc-list-files: Add support for subversion
30855         * build-aux/vc-list-files: Use "svn list" to generate the list of
30856         files controlled by subversion.
30857
30858 2010-04-23  Jim Meyering  <meyering@redhat.com>
30859
30860         vc-list-files tests: convert to use init.sh
30861         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30862         path_prepend_.
30863         Use Exit, not exit.
30864         Use skip_ rather than open coding it.
30865         Remove trap set-up and compare definitions.
30866         * tests/test-vc-list-files-git.sh: Likewise.
30867         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30868
30869 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30870
30871         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30872         backup files.
30873
30874 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30875
30876         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30877
30878 2010-04-20  Eric Blake  <eblake@redhat.com>
30879
30880         tests: be robust to ignored SIGPIPE
30881         * tests/test-select-in.sh: Consume all output.
30882         * tests/test-lseek.sh: Check correct exit status, while avoiding
30883         EPIPE.
30884
30885 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30886             Bruno Haible  <bruno@clisp.org>
30887
30888         visibility: Don't use -fvisibility if it leads to a warning.
30889         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30890         yes, don't pretend that visibility works if it leads to a warning.
30891         Reported by Mike Gran <spk121@yahoo.com>.
30892
30893 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30894
30895         * build-aux/bootstrap: Use "git -h" for testing for supported options
30896         instead of "git --help".  The short-form option only shows a summary,
30897         and doesn't layout the full man page.  Grep for the full option name
30898         in the summary, too.
30899
30900 2010-04-19  Bruno Haible  <bruno@clisp.org>
30901
30902         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30903         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30904         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30905         mention of RELOCATABLE_STRIP.
30906         Reported by Sylvain Beucler <beuc@beuc.net>.
30907
30908 2010-04-19  Bruno Haible  <bruno@clisp.org>
30909
30910         * lib/diffseq.h: Fix typo in comment.
30911         Reported by Eric Blake.
30912
30913 2010-04-19  Bruno Haible  <bruno@clisp.org>
30914
30915         ioctl: Move autoconf macro to a .m4 file.
30916         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30917         * modules/ioctl (Files): Add it.
30918         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30919         Reported by Ian Beckwith <ianb@erislabs.net>.
30920
30921 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30922             Bruno Haible  <bruno@clisp.org>
30923
30924         diffseq: Accommodate use-case with abstract arrays.
30925         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30926         is not defined.
30927         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30928         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30929
30930 2010-04-18  Bruno Haible  <bruno@clisp.org>
30931
30932         * doc/posix-headers/stdbool.texi: More precise wording.
30933
30934 2010-04-17  Jim Meyering  <meyering@redhat.com>
30935
30936         maint.mk: use gnu-style indentation in an embedded perl script
30937         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30938         Rename variable: s/two/last_two_bytes/
30939
30940 2010-04-16  Eric Blake  <eblake@redhat.com>
30941
30942         test-stdbool: skip test that fails with Solaris CC
30943         * tests/test-stdbool.c (f): Skip test that causes compilation
30944         error under buggy C++ compiler.
30945         * lib/stdbool.in.h: Document the limitation.
30946         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30947
30948         setenv: allow compilation with C++
30949         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30950         register keyword.
30951
30952         stdint: allow test to pass with C++
30953         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30954
30955         getopt: allow compilation with C++
30956         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30957         struct.
30958         * lib/getopt.c (_getopt_internal_r): Use correct type.
30959         Reported by Dagobert Michelson, via Joel E. Denny.
30960
30961 2010-04-16  Bruno Haible  <bruno@clisp.org>
30962
30963         Override netdb.h always.
30964         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30965         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30966         Reported by Ludovic Courtès <ludo@gnu.org>.
30967
30968 2010-04-15  Bruno Haible  <bruno@clisp.org>
30969
30970         openpty: Fix mistake from 2010-03-21.
30971         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30972         Reported by Simon Josefsson.
30973
30974 2010-04-15  Eric Blake  <eblake@redhat.com>
30975
30976         test-forkpty: fix expected signature
30977         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30978         Reported by Simon Josefsson.
30979
30980 2010-04-15  Jim Meyering  <meyering@redhat.com>
30981
30982         maint.mk: texinfo_suffix_re_: correct the default regexp
30983         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30984
30985         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30986         make it configurable via texinfo_suffix_re_.
30987
30988 2010-04-14  Eric Blake  <eblake@redhat.com>
30989
30990         strtok_r: relax license to LGPLv2+
30991         * modules/strtok_r (License): Relax license.
30992         Reported by Matthias Bolte.
30993
30994 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30995
30996         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30997         version 1.4.4 by default instead of requiring the libgcrypt
30998         version used during build.  This makes it possible to use the
30999         application with older but still binary compatible libgcrypt
31000         versions.
31001
31002 2010-04-13  Eric Blake  <eblake@redhat.com>
31003
31004         getopt-gnu: match recent glibc fixes and posix ruling
31005         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31006         '+' handling, when requesting extensions.
31007         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31008         'W;' handling.
31009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31010         * doc/posix-functions/getopt.texi (getopt): Document this.
31011         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31012         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31013         Likewise.
31014
31015         getopt: merge bug fixes from glibc
31016         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31017         diagnostics.  Honor '+:' correctly.  Reject ';'.
31018
31019         getopt-posix: detect MacOS bug
31020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31021         optind when missing a required argument.
31022         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31023         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31024         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31025         Likewise.
31026
31027         getopt-posix: avoid spurious failure on Solaris
31028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31029         an indicator that setting optind=1 is sufficient for reset.
31030
31031         getopt-posix: avoid spurious failure on FreeBSD
31032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31033         in POSIX mode, since the m4 test uses it.
31034
31035         gnulib-tool: silence warning on BSD sh
31036         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31037
31038 2010-04-13  Jim Meyering  <meyering@redhat.com>
31039
31040         doc: users.txt: GNU patch now uses gnulib
31041         * users.txt: Add patch.
31042
31043 2010-04-12  Jim Meyering  <meyering@redhat.com>
31044
31045         maint.mk: generate more concise timing data for syntax-check rules
31046         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31047         " done" from each line that reports a syntax-check test duration.
31048
31049 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31050
31051         git-version-gen: use "git update-index..." rather than "git status"
31052         * build-aux/git-version-gen: Use git update-index --refresh, not
31053         "git status".  With some versions of git, "git status" would fail
31054         to update the index and result in an unwarranted "-dirty" suffix.
31055
31056 2010-04-11  Jim Meyering  <meyering@redhat.com>
31057
31058         openat: correct formatting (no semantic change)
31059         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31060         Suggested by Bruno Haible.
31061
31062 2010-04-11  Bruno Haible  <bruno@clisp.org>
31063
31064         Stricter declaration checking in testdirs.
31065         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31066         If for_tests is true, augment AM_CPPFLAGS to define
31067         GNULIB_STRICT_CHECKING.
31068         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31069         GNULIB_STRICT_CHECKING is defined, verify that the function is
31070         declared.
31071
31072 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31073             Bruno Haible  <bruno@clisp.org>
31074
31075         libunistring: Improve configure output.
31076         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31077         Don't say "consider installing GNU libunistring" when checking again
31078         with libiconv.
31079
31080 2010-04-11  Bruno Haible  <bruno@clisp.org>
31081
31082         libunistring: Correct value of $LTLIBUNISTRING.
31083         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31084         correct the value of $LTLIBUNISTRING.
31085
31086 2010-04-11  Bruno Haible  <bruno@clisp.org>
31087
31088         havelib: Add static libraries to LIBS in the right order.
31089         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31090         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31091
31092 2010-04-11  Bruno Haible  <bruno@clisp.org>
31093
31094         libunistring: Detect libunistring also when it depends on libiconv.
31095         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31096         the second AC_LIB_HAVE_LINKFLAGS invocation.
31097
31098 2010-04-11  James Youngman  <jay@gnu.org>
31099
31100         close-stream: declare local scalars to be "const"
31101         * lib/close-stream.c (close_stream): Make boolean variables const
31102         to document the fact that we set but do not change them.
31103
31104 2010-04-11  Bruno Haible  <bruno@clisp.org>
31105
31106         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31107
31108 2010-04-11  Jim Meyering  <meyering@redhat.com>
31109
31110         maint.mk: don't include dist-check.mk
31111         * top/maint.mk: Remove bogus include directive.
31112
31113         maint.mk: improve empty-line-at-EOF check
31114         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31115         solution, rather than tail+Perl-based one.  The latter would read
31116         a few kilobytes from the end of each file, and did not handle empty
31117         files properly.
31118
31119         maint.mk: print the elapsed time for each syntax-check rule
31120         * top/maint.mk (sc_m_rules_): Save start time in a file.
31121         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31122         (local-check): Interpose the .z rules
31123
31124 2010-04-11  Jim Meyering  <meyering@redhat.com>
31125
31126         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31127         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31128         empty file with one that ends in an empty line.
31129
31130 2010-04-10  Bruno Haible  <bruno@clisp.org>
31131
31132         mkdir: Make it work on mingw64.
31133         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31134         * lib/mkdir.c: Update comment.
31135         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31136
31137 2010-04-10  Bruno Haible  <bruno@clisp.org>
31138
31139         Don't override improved macro from newer autoconf.
31140         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31141         autoconf >= 2.62.
31142         Reported by Joel E. Denny <jdenny@clemson.edu>.
31143
31144 2010-04-10  Jim Meyering  <meyering@redhat.com>
31145
31146         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31147         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31148
31149         maint.mk: correct a diagnostic
31150         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31151         in diagnostic; now use $prohibit.
31152
31153 2010-04-10  Bruno Haible  <address@hidden>
31154
31155         fchownat: Fix a C++ test error on Solaris 8.
31156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31157         the function does not exist.
31158
31159 2010-04-10  Bruno Haible  <bruno@clisp.org>
31160
31161         vasnprintf: Add more tests.
31162         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31163         (test_function): Test converting an invalid wide string.
31164
31165         vasnprintf: Correct handling of unconvertible wide string arguments.
31166         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31167         VASNPRINTF.
31168         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31169         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31170         smaller than the expected maximum need for the directive. Set errno to
31171         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31172         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31174         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31175         * modules/vasnprintf (Files): Add m4/printf.m4.
31176         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31177
31178 2010-04-10  Bruno Haible  <bruno@clisp.org>
31179
31180         vasnprintf: Fix crash in %ls directive.
31181         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31182         string is passed as argument to %ls, with no precision and no width.
31183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31184
31185 2010-04-10  Bruno Haible  <bruno@clisp.org>
31186
31187         vasnprintf: Fix multiple test failures on mingw.
31188         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31189         _snprintf, or snwprintf, not _snwprintf.
31190
31191 2010-04-10  Bruno Haible  <bruno@clisp.org>
31192
31193         write: Fix a C++ test error on mingw.
31194         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31195
31196 2010-04-10  Bruno Haible  <bruno@clisp.org>
31197
31198         vasnprintf test: Reduce code duplication.
31199         * tests/test-vasnprintf.c (test_function): New function, extracted from
31200         test_vasnprintf.
31201         (test_vasnprintf, test_asnprintf): Invoke it.
31202
31203 2010-04-10  Bruno Haible  <bruno@clisp.org>
31204
31205         strnlen: Fix warning in C++ mode on MacOS X.
31206         * lib/string.in.h (strnlen): Use the modern idiom.
31207         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31208         defining strnlen as a macro already in <config.h>.
31209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31210         REPLACE_STRNLEN.
31211         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31212         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31213
31214 2010-04-08  James Youngman  <jay@gnu.org>
31215
31216         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31217         the example.
31218
31219 2010-04-09  Jim Meyering  <meyering@redhat.com>
31220
31221         maint.mk: print better diagnostic when there is no $(_hv_file)
31222         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31223         announce that when $(_hv_file) (aka help-version) does not exist.
31224
31225         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31226         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31227         not try to interpret its random input bytes.  Jarno Rajahalme reported
31228         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31229         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31230         (mktempd_): Likewise, just in case.
31231
31232         ftruncate: add two years to projected module removal date: 2012
31233         * m4/ftruncate.m4: Adjust comments.
31234
31235         ftruncate: mark module as obsolete; even MinGW provides it, now
31236         * modules/ftruncate (Status): Obsolete.
31237         (Notice): Say that.
31238         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31240
31241 2010-04-08  Bruno Haible  <bruno@clisp.org>
31242
31243         Fix side effects from tests-related modules.
31244         * modules/dprintf-posix (Comment): New section.
31245         * modules/fprintf-posix (Comment): Likewise.
31246         * modules/obstack-printf-posix (Comment): Likewise.
31247         * modules/printf-posix (Comment): Likewise.
31248         * modules/snprintf-posix (Comment): Likewise.
31249         * modules/sprintf-posix (Comment): Likewise.
31250         * modules/vasnprintf-posix (Comment): Likewise.
31251         * modules/vasprintf-posix (Comment): Likewise.
31252         * modules/vdprintf-posix (Comment): Likewise.
31253         * modules/vfprintf-posix (Comment): Likewise.
31254         * modules/vprintf-posix (Comment): Likewise.
31255         * modules/vsnprintf-posix (Comment): Likewise.
31256         * modules/vsprintf-posix (Comment): Likewise.
31257         * modules/xprintf-posix (Comment): Likewise.
31258         * modules/xvasprintf-posix (Comment): Likewise.
31259         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31260         * modules/floorf-tests (Depends-on): Likewise.
31261         * modules/round-tests (Depends-on): Likewise.
31262         * modules/roundf-tests (Depends-on): Likewise.
31263         * modules/trunc-tests (Depends-on): Likewise.
31264         * modules/truncf-tests (Depends-on): Likewise.
31265         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31266         'fprintf-posix' module is not present.
31267         * tests/test-floorf2.c (check): Likewise.
31268         * tests/test-trunc2.c (check): Likewise.
31269         * tests/test-truncf2.c (check): Likewise.
31270         * tests/test-round2.c (equal): Likewise.
31271         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31272
31273 2010-04-07  Karl Berry  <karl@gnu.org>
31274
31275         * config/srclist.txt,
31276         * config/srclistvars.sh,
31277         * config/srclist-update: doc fixes.
31278
31279 2010-04-07  Jim Meyering  <meyering@redhat.com>
31280
31281         maint.mk: add a PATH crosschecking syntax-check rule
31282         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31283         Useful if you use a test like the one in help-version (coreutils,
31284         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31285         printed by prog --version.
31286
31287 2010-04-06  Bruno Haible  <bruno@clisp.org>
31288
31289         Fix link error on mingw.
31290         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31291         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31292
31293 2010-04-06  Bruno Haible  <bruno@clisp.org>
31294
31295         Assume rmdir exists.
31296         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31297
31298 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31299
31300         doc: update users.txt
31301         * users.txt: Add gcal.
31302
31303 2010-04-06  Jim Meyering  <meyering@redhat.com>
31304
31305         init.sh: simply unset TMPDIR rather than risking env -i
31306         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31307         although it probably works fine on all Unix-based systems, some
31308         systems (Cygwin?) cannot tolerate a totally cleared environment.
31309         Suggestion from Eric Blake.
31310
31311 2010-04-06  Jim Meyering  <meyering@redhat.com>
31312
31313         init.sh: portability fix: use env's POSIX-specified -i option not -u
31314         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31315         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31316
31317 2010-04-05  Bruno Haible  <bruno@clisp.org>
31318
31319         btowc: Work around Cygwin 1.7.2 bug.
31320         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31321         does not map NUL to 0.
31322         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31323
31324 2010-04-05  Bruno Haible  <bruno@clisp.org>
31325
31326         Make the multithread modules work on Cygwin 1.7.2.
31327         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31328         imported symbols can be declared weak, so that it returns "no" on
31329         Cygwin 1.7.2.
31330
31331 2010-04-05  Bruno Haible  <bruno@clisp.org>
31332
31333         Use the module 'strncat'.
31334         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31335
31336         Tests for module 'strncat'.
31337         * modules/strncat-tests: New file.
31338         * tests/test-strncat.c: New file.
31339
31340         New module 'strncat'.
31341         * lib/string.in.h (strncat): New declaration.
31342         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31343         * m4/strncat.m4: New file, based on m4/memchr.m4.
31344         * modules/strncat: New file.
31345         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31346         is declared.
31347         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31348         REPLACE_STRNCAT.
31349         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31350         REPLACE_STRNCAT.
31351         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31352         module.
31353         * tests/test-string-c++.cc: Check signature of strncat.
31354
31355 2010-04-05  Jim Meyering  <meyering@redhat.com>
31356
31357         xstrtoumax-tests: convert to use init.sh
31358         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31359         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31360         Use Exit, not exit.
31361         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31362
31363         xstrtoimax-tests: convert to use init.sh
31364         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31365         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31366         Use Exit, not exit.
31367         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31368
31369 2010-04-05  Bruno Haible  <bruno@clisp.org>
31370
31371         sys_socket: Avoid #define replacements in C++ mode.
31372         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31373         warning to the function if possible, rather than #defining the symbol
31374         to a dysfunctional alias.
31375
31376 2010-04-05  Bruno Haible  <bruno@clisp.org>
31377
31378         fseeko: Fix C++ test error on mingw.
31379         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31380         gl_FUNC_FSEEKO.
31381         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31382         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31383         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31384         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31385
31386 2010-04-05  Bruno Haible  <bruno@clisp.org>
31387
31388         duplocale: Improve test output.
31389         * tests/test-duplocale.c (main): Print reason for skipped test.
31390
31391 2010-04-05  Bruno Haible  <bruno@clisp.org>
31392
31393         Assume rmdir exists.
31394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31395         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31396
31397 2010-04-05  Bruno Haible  <bruno@clisp.org>
31398
31399         Fix link error on Solaris 8 with cc.
31400         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31401
31402 2010-04-05  Bruno Haible  <bruno@clisp.org>
31403
31404         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31405         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31406
31407 2010-04-05  Bruno Haible  <bruno@clisp.org>
31408
31409         vasprintf: Update documentation.
31410         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31411
31412 2010-04-05  Bruno Haible  <bruno@clisp.org>
31413
31414         ptsname: Improve test.
31415         * tests/test-ptsname.c (main): Also try the various master names of BSD
31416         systems.
31417
31418 2010-04-05  Bruno Haible  <bruno@clisp.org>
31419
31420         memchr: Avoid a possible C++ test error.
31421         * lib/string.in.h (memchr): Provide declaration if function is missing.
31422         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31423         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31425         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31426
31427 2010-04-05  Bruno Haible  <bruno@clisp.org>
31428
31429         strtok_r: Improve idiom.
31430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31431         AC_LIBOBJ is used.
31432
31433 2010-04-05  Bruno Haible  <bruno@clisp.org>
31434
31435         strdup: Improve idiom.
31436         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31437         AC_LIBOBJ is used.
31438         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31439         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31440         when AC_LIBOBJ is used.
31441
31442 2010-04-05  Bruno Haible  <bruno@clisp.org>
31443
31444         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31445         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31446         don't set REPLACE_MBSINIT to 1.
31447         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31448         don't set REPLACE_MBRTOWC to 1.
31449         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31450         exist, don't set REPLACE_MBSRTOWCS to 1.
31451         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31452         exist, don't set REPLACE_MBSNRTOWCS to 1.
31453         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31454         don't set REPLACE_WCRTOMB to 1.
31455         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31456         exist, don't set REPLACE_WCSRTOMBS to 1.
31457         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31458         exist, don't set REPLACE_WCSNRTOMBS to 1.
31459
31460 2010-04-05  Bruno Haible  <bruno@clisp.org>
31461
31462         ldexpl: Improve idiom.
31463         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31464         make sure to set HAVE_DECL_LDEXPL to 0.
31465
31466 2010-04-05  Jim Meyering  <meyering@redhat.com>
31467
31468         xstrtol-tests: convert to use init.sh
31469         * modules/xstrtol-tests (Files): Add tests/init.sh.
31470         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31471         Use Exit, not exit.
31472         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31473
31474         atexit-tests: convert to use init.sh
31475         * modules/atexit-tests (Files): Add tests/init.sh.
31476         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31477         Use Exit, not exit.
31478         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31479
31480         init.sh: fix typo
31481         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31482
31483         init.sh: make it easier for a test script to write to the tty, ...
31484         when using automake's parallel-tests mode.
31485         * tests/init.sh (stderr_fileno_): Define overridable variable.
31486         (warn_): New function, to use it.
31487         (fail_, skip_, framework_failure_): Use warn_.
31488
31489 2010-04-04  Bruno Haible  <bruno@clisp.org>
31490
31491         btowc: Avoid warning.
31492         * lib/btowc.c: Include <stdlib.h>.
31493         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31494
31495 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31496             Bruno Haible  <bruno@clisp.org>
31497
31498         wchar: Port to NetBSD 1.5.
31499         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31500         * lib/wctype.in.h (WEOF): Likewise.
31501
31502 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31503             Bruno Haible  <bruno@clisp.org>
31504
31505         Port extended stdio to NetBSD 1.5.
31506         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31507         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31508         older.
31509
31510 2010-04-04  Bruno Haible  <bruno@clisp.org>
31511
31512         string: Remove unused substitution.
31513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31514         HAVE_DECL_STRERROR.
31515         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31516
31517 2010-04-04  Bruno Haible  <bruno@clisp.org>
31518
31519         strtod: Avoid a possible C++ test error.
31520         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31521         set REPLACE_STRTOD.
31522
31523 2010-04-04  Bruno Haible  <bruno@clisp.org>
31524
31525         strerror: Update documentation.
31526         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31527
31528 2010-04-04  Bruno Haible  <bruno@clisp.org>
31529
31530         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31531         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31532         _GL_CXXALIAS_SYS_CAST.
31533
31534 2010-04-04  Bruno Haible  <bruno@clisp.org>
31535
31536         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31537         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31538         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31539         REPLACE_FREXPL to 1.
31540         * doc/posix-functions/frexpl.texi: Update documentation.
31541
31542 2010-04-04  Bruno Haible  <bruno@clisp.org>
31543
31544         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31545         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31546
31547 2010-04-04  Bruno Haible  <bruno@clisp.org>
31548
31549         Implement nanosleep for native Windows.
31550         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31551
31552 2010-04-04  Bruno Haible  <bruno@clisp.org>
31553
31554         math: Fix some C++ test errors on Solaris 8.
31555         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31556
31557 2010-04-04  Bruno Haible  <bruno@clisp.org>
31558
31559         math: Fix some C++ test errors on Cygwin.
31560         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31561         truncl): Provide declaration if the system does not have it.
31562         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31563         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31564         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31565         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31566         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31567         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31568         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31569         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31570         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31571         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31572         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31573         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31574         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31575         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31576         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31577         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31579         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31580         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31581         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31582         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31583         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31584
31585 2010-04-04  Bruno Haible  <bruno@clisp.org>
31586
31587         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31588         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31589         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31590         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31591         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31592         * m4/isinf.m4 (gl_ISINF): Likewise.
31593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31594
31595 2010-04-04  Bruno Haible  <bruno@clisp.org>
31596
31597         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31598         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31599
31600 2010-04-04  Bruno Haible  <bruno@clisp.org>
31601
31602         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31603         * modules/tmpfile (configure.ac): Update.
31604
31605         tmpfile: Fix C++ test error on mingw.
31606         * lib/stdio.in.h (tmpfile): New declaration.
31607         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31608         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31609         * modules/tmpfile (Depends-on): Add stdio.
31610         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31611         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31612         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31613         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31614         REPLACE_TMPFILE.
31615         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31616
31617 2010-04-04  Bruno Haible  <bruno@clisp.org>
31618
31619         ioctl: Fix C++ test error on mingw.
31620         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31621         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31622         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31623
31624 2010-04-03  Bruno Haible  <bruno@clisp.org>
31625
31626         wcwidth: Fix C++ test error on mingw.
31627         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31629         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31630
31631 2010-04-03  Bruno Haible  <bruno@clisp.org>
31632
31633         nanosleep: Fix C++ test error on mingw.
31634         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31635         * lib/time.in.h (nanosleep): Use modern idiom.
31636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31637         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31638         REPLACE_NANOSLEEP to 1.
31639         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31640         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31641
31642 2010-04-03  Bruno Haible  <bruno@clisp.org>
31643
31644         strptime: Fix C++ test error on mingw.
31645         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31646         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31647         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31648         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31649         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31650         not REPLACE_STRPTIME.
31651         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31652         REPLACE_STRPTIME.
31653
31654 2010-04-03  Bruno Haible  <bruno@clisp.org>
31655
31656         timegm: Fix C++ test error on mingw.
31657         * lib/time.in.h (timegm): Use modern idiom.
31658         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31659         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31661         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31662
31663 2010-04-03  Bruno Haible  <bruno@clisp.org>
31664
31665         timegm: Assume declaration if function exists.
31666         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31667         if it exists. Don't clobber ac_cv_func_timegm.
31668
31669 2010-04-03  Bruno Haible  <bruno@clisp.org>
31670
31671         time_r: Fix C++ test error on mingw.
31672         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31673         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31674         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31675         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31676         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31677
31678 2010-04-03  Bruno Haible  <bruno@clisp.org>
31679
31680         time_r: Minor updates.
31681         * modules/time_r (Description): Mention the provided functions.
31682         * lib/time_r.c: Don't include <string.h>.
31683         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31684         * doc/posix-functions/localtime_r.texi: Likewise.
31685
31686 2010-04-03  Bruno Haible  <bruno@clisp.org>
31687
31688         time: Fix regression introduced on 2010-03-08.
31689         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31690         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31691
31692 2010-04-03  Jim Meyering  <meyering@redhat.com>
31693
31694         maint.mk: don't silently disable project-specific syntax-check rules
31695         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31696         that they need to convert their project-specific syntax-check rules
31697         to use the new _sc_search_regexp.
31698
31699 2010-04-03  Bruno Haible  <bruno@clisp.org>
31700
31701         fchdir: Fix regression introduced on 2010-03-08.
31702         * lib/unistd.in.h (fchdir): Fix declaration.
31703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31705         REPLACE_FCHDIR.
31706         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31707         REPLACE_FCHDIR.
31708
31709 2010-04-03  Bruno Haible  <bruno@clisp.org>
31710
31711         getpagesize: Fix C++ test error on mingw.
31712         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31713         system does not declare the function.
31714         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31715         declared.
31716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31717         HAVE_DECL_GETPAGESIZE.
31718         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31719
31720 2010-04-03  Bruno Haible  <bruno@clisp.org>
31721
31722         stdio: Make C++ tests work on mingw.
31723         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31724         does not declare the function.
31725
31726 2010-04-03  Bruno Haible  <bruno@clisp.org>
31727
31728         ftello: Fix C++ test error on mingw.
31729         * lib/stdio.in.h (ftello): Use modern idiom.
31730         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31731         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31732         is missing and that it needs to be replaced.
31733         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31735         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31736
31737 2010-04-03  Bruno Haible  <bruno@clisp.org>
31738
31739         fseeko: Fix C++ test error on mingw.
31740         * lib/stdio.in.h (fseeko): Use modern idiom.
31741         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31743         is missing and that it needs to be replaced.
31744         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31746         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31747
31748 2010-04-03  Bruno Haible  <bruno@clisp.org>
31749
31750         mkstemp: Fix C++ test error on mingw.
31751         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31752         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31753         function is missing and that it needs to be replaced.
31754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31755         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31756
31757 2010-04-03  Bruno Haible  <bruno@clisp.org>
31758
31759         stpncpy: Fix C++ test error on mingw.
31760         * lib/string.in.h (stpncpy): Use modern idiom.
31761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31762         function is missing and that it needs to be replaced.
31763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31764         REPLACE_STPNCPY.
31765         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31766
31767 2010-04-03  Bruno Haible  <bruno@clisp.org>
31768
31769         sys_stat: Fix C++ test error on mingw.
31770         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31771         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31772
31773 2010-04-03  Bruno Haible  <bruno@clisp.org>
31774
31775         pty: Update doc.
31776         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31777
31778 2010-04-03  Bruno Haible  <bruno@clisp.org>
31779
31780         unistd: Fix C++ test error on mingw.
31781         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31782
31783 2010-04-03  Bruno Haible  <bruno@clisp.org>
31784
31785         Update doc regarding mingw.
31786         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31787         * doc/glibc-functions/login_tty.texi: Likewise.
31788         * doc/glibc-functions/forkpty.texi: Likewise.
31789
31790 2010-04-03  Bruno Haible  <bruno@clisp.org>
31791
31792         stdlib: Avoid compilation failure of c-strtold on mingw.
31793         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31794
31795 2010-04-03  Bruno Haible  <bruno@clisp.org>
31796
31797         locale: Make C++ tests work on Cygwin and mingw.
31798         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31799         cannot provide the function.
31800         Reported by Simon Josefsson.
31801
31802 2010-04-03  Bruno Haible  <bruno@clisp.org>
31803
31804         localename: Port to MacOS X 10.6.
31805         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31806         memory layout of the locales in MacOS X 10.6 as well.
31807         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31808
31809 2010-04-02  Bruno Haible  <bruno@clisp.org>
31810
31811         gnulib-tool: Ensure that long-running tests are executed last.
31812         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31813         running tests after the one for the other tests.
31814
31815 2010-04-02  Bruno Haible  <bruno@clisp.org>
31816
31817         gnulib-tool: Ensure the tests in the main directory are executed first.
31818         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31819         start with the current directory.
31820
31821 2010-04-02  Bruno Haible  <bruno@clisp.org>
31822
31823         Tests for module 'havelib', moved here from GNU gettext.
31824         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31825         modifications.
31826         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31827         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31828         with modifications.
31829         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31830         modifications.
31831         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31832         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31833         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31834         with modifications.
31835         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31836         with modifications.
31837         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31838         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31839         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31840         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31841         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31842         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31843         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31844         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31845         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31846         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31847         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31848         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31849         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31850         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31851         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31852         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31853         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31854         with modifications.
31855         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31856         with modifications.
31857         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31858         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31859         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31860         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31861         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31862         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31863         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31864         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31865         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31866         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31867         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31868         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31869         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31870         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31871         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31872         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31873         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31874         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31875         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31876         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31877         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31878         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31879         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31880         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31881         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31882         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31883         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31884         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31885         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31886         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31887         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31888         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31889         * tests/havelib/rpathx/rpathx.c: New file, from
31890         gettext/autoconf-lib-link.
31891         * tests/havelib/rpathx/Makefile.am: New file, from
31892         gettext/autoconf-lib-link.
31893         * tests/havelib/rpathx/configure.ac: New file, from
31894         gettext/autoconf-lib-link with modifications.
31895         * tests/havelib/rpathy/rpathy.c: New file, from
31896         gettext/autoconf-lib-link.
31897         * tests/havelib/rpathy/Makefile.am: New file, from
31898         gettext/autoconf-lib-link.
31899         * tests/havelib/rpathy/configure.ac: New file, from
31900         gettext/autoconf-lib-link with modifications.
31901         * tests/havelib/rpathz/rpathz.c: New file, from
31902         gettext/autoconf-lib-link.
31903         * tests/havelib/rpathz/Makefile.am: New file, from
31904         gettext/autoconf-lib-link.
31905         * tests/havelib/rpathz/configure.ac: New file, from
31906         gettext/autoconf-lib-link with modifications.
31907         * tests/havelib/rpathlx/usex.c: New file, from
31908         gettext/autoconf-lib-link.
31909         * tests/havelib/rpathlx/Makefile.am: New file, from
31910         gettext/autoconf-lib-link.
31911         * tests/havelib/rpathlx/configure.ac: New file, from
31912         gettext/autoconf-lib-link with modifications.
31913         * tests/havelib/rpathly/usey.c: New file, from
31914         gettext/autoconf-lib-link.
31915         * tests/havelib/rpathly/Makefile.am: New file, from
31916         gettext/autoconf-lib-link.
31917         * tests/havelib/rpathly/configure.ac: New file, from
31918         gettext/autoconf-lib-link with modifications.
31919         * tests/havelib/rpathlz/usez.c: New file, from
31920         gettext/autoconf-lib-link.
31921         * tests/havelib/rpathlz/Makefile.am: New file, from
31922         gettext/autoconf-lib-link.
31923         * tests/havelib/rpathlz/configure.ac: New file, from
31924         gettext/autoconf-lib-link with modifications.
31925         * tests/havelib/rpathlyx/usey.c: New file, from
31926         gettext/autoconf-lib-link.
31927         * tests/havelib/rpathlyx/Makefile.am: New file, from
31928         gettext/autoconf-lib-link.
31929         * tests/havelib/rpathlyx/configure.ac: New file, from
31930         gettext/autoconf-lib-link with modifications.
31931         * tests/havelib/rpathlzyx/usez.c: New file, from
31932         gettext/autoconf-lib-link.
31933         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31934         gettext/autoconf-lib-link.
31935         * tests/havelib/rpathlzyx/configure.ac: New file, from
31936         gettext/autoconf-lib-link with modifications.
31937         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31938         with modifications.
31939
31940 2010-04-02  Bruno Haible  <bruno@clisp.org>
31941
31942         gnulib-tool: Create distributed built sources also for the tests.
31943         * gnulib-tool (func_create_testdir): Also generate distributed built
31944         sources in the tests directory.
31945
31946 2010-04-02  Bruno Haible  <bruno@clisp.org>
31947
31948         gnulib-tool: Obey user's environment variables.
31949         * gnulib-tool (func_create_testdir): When creating built sources,
31950         respect the environment variables for autoconf, automake, etc. given by
31951         the user.
31952
31953 2010-04-02  Bruno Haible  <bruno@clisp.org>
31954
31955         gnulib-tool: Provide the value of --m4-base to modules.
31956         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31957         of gl_m4_base.
31958
31959 2010-04-02  Eric Blake  <eblake@redhat.com>
31960
31961         maint.mk: fix some fallout
31962         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31963         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31964
31965 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31966
31967         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31968         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31969         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31970         (sc_cast_of_x_alloc_return_value): Likewise.
31971         (sc_cast_of_alloca_return_value): Likewise.
31972         (sc_space_tab): Likewise.
31973         (sc_prohibit_atoi_atof): Likewise.
31974         (sc_prohibit_magic_number_exit): Likewise.
31975         (sc_error_exit_success): Likewise.
31976         (sc_file_system): Likewise.
31977         (sc_prohibit_have_config_h): Likewise.
31978         (sc_require_config_h): Likewise.
31979         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31980         (sc_obsolete_symbols): Likewise.
31981         (sc_changelog): Likewise.
31982         (sc_program_name): Likewise.
31983         (sc_the_the): Likewise.
31984         (sc_trailing_blank): Likewise.
31985         (sc_two_space_separator_in_usage): Likewise.
31986         (sc_useless_cpp_parens): Likewise.
31987         (sc_GPL_version): Likewise.
31988         (sc_GFDL_version): Likewise.
31989         (sc_texinfo_acronym): Likewise.
31990         (sc_prohibit_cvs_keyword): Likewise.
31991         (sc_prohibit_stat_st_blocks): Likewise.
31992         (sc_prohibit_S_IS_definition): Likewise.
31993         (sc_redundant_const): Likewise.
31994         (sc_makefile_TAB_only_indentation): Likewise.
31995         (sc_m4_quote_check): Likewise.
31996         (sc_makefile_path_separator_check): Likewise.
31997         (sc_copyright_check): Likewise.
31998         (sc_Wundef_boolean): Likewise.
31999         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32000
32001         maint.mk: match 0 or more whitespace-before-function-call '('
32002         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32003         that have zero or two-and-more spaces between the function name
32004         and the open parenthesis.
32005         (sc_error_message_warn_fatal): Likewise.
32006         (sc_error_message_uppercase): Likewise.
32007         (sc_error_message_period): Likewise.
32008
32009 2010-03-31  Eric Blake  <eblake@redhat.com>
32010
32011         maint.mk: check for [ as well as test
32012         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32013         Based on a libvirt report by Matthias Bolte.
32014
32015         gnumakefile: don't squelch _version output
32016         * top/GNUmakefile (_version): Create one-shot dependency rather
32017         than using $(shell) when version must be regenerated.
32018         (_autoreconf): Run verbosely, by default.
32019
32020         sys_time: avoid compiler warnings
32021         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32022         unconditional, fixing regression from 2010-03-29.
32023         Reported by Simon Josefsson.
32024
32025 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32026
32027         maint.mk: s/_header_without_use/_sc_header_without_use/
32028         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32029         (sc_prohibit_assert_without_use): Use the new name.
32030         (sc_prohibit_close_stream_without_use): Likewise.
32031         (sc_prohibit_getopt_without_use): Likewise.
32032         (sc_prohibit_quotearg_without_use): Likewise.
32033         (sc_prohibit_quote_without_use): Likewise.
32034         (sc_prohibit_long_options_without_use): Likewise.
32035         (sc_prohibit_inttostr_without_use): Likewise.
32036         (sc_prohibit_ignore_value_without_use): Likewise.
32037         (sc_prohibit_error_without_use): Likewise.
32038         (sc_prohibit_xalloc_without_use): Likewise.
32039         (sc_prohibit_hash_without_use): Likewise.
32040         (sc_prohibit_hash_pjw_without_use): Likewise.
32041         (sc_prohibit_safe_read_without_use): Likewise.
32042         (sc_prohibit_argmatch_without_use): Likewise.
32043         (sc_prohibit_canonicalize_without_use): Likewise.
32044         (sc_prohibit_root_dev_ino_without_use): Likewise.
32045         (sc_prohibit_openat_without_use): Likewise.
32046         (sc_prohibit_c_ctype_without_use): Likewise.
32047         (sc_prohibit_signal_without_use): Likewise.
32048         (sc_prohibit_intprops_without_use): Likewise.
32049
32050 2010-03-30  Eric Blake  <eblake@redhat.com>
32051
32052         maint: improve module indicators
32053         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32054         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32055         columns, and avoid extra macro expansion.
32056
32057         fdopendir: work around FreeBSD bug
32058         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32059         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32060         * modules/dirent (Makefile.am): Substitute it.
32061         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32062         declaration.
32063         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32064         fix.
32065         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32066
32067 2010-03-29  Bruno Haible  <bruno@clisp.org>
32068
32069         Emit #pragma system_header after the inclusion guard, not before.
32070         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32071         guard that spans the entire file, not before. This enables an
32072         optimization in GCC's preprocessor.
32073         * lib/ctype.in.h: Likewise.
32074         * lib/dirent.in.h: Likewise.
32075         * lib/errno.in.h: Likewise.
32076         * lib/float.in.h: Likewise.
32077         * lib/getopt.in.h: Likewise.
32078         * lib/iconv.in.h: Likewise.
32079         * lib/langinfo.in.h: Likewise.
32080         * lib/locale.in.h: Likewise.
32081         * lib/math.in.h: Likewise.
32082         * lib/netdb.in.h: Likewise.
32083         * lib/netinet_in.in.h: Likewise.
32084         * lib/pty.in.h: Likewise.
32085         * lib/sched.in.h: Likewise.
32086         * lib/se-selinux.in.h: Likewise.
32087         * lib/search.in.h: Likewise.
32088         * lib/spawn.in.h: Likewise.
32089         * lib/stdarg.in.h: Likewise.
32090         * lib/stdint.in.h: Likewise.
32091         * lib/string.in.h: Likewise.
32092         * lib/strings.in.h: Likewise.
32093         * lib/sys_file.in.h: Likewise.
32094         * lib/sys_ioctl.in.h: Likewise.
32095         * lib/sys_time.in.h: Likewise.
32096         * lib/sys_times.in.h: Likewise.
32097         * lib/sys_utsname.in.h: Likewise.
32098         * lib/sys_wait.in.h: Likewise.
32099         * lib/sysexits.in.h: Likewise.
32100         * lib/wctype.in.h: Likewise.
32101
32102 2010-03-28  James Youngman  <jay@gnu.org>
32103
32104         save-cwd: don't leak a file descriptor when the caller execs.
32105         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32106         saved file descriptor.
32107         * modules/save-cwd (Depends-on): Depend on cloexec.
32108
32109 2010-03-29  Bruno Haible  <bruno@clisp.org>
32110
32111         Remove vestiges of fts-lgpl module.
32112         * lib/fts_.h: Assume GNULIB_FTS is 1.
32113         * lib/fts.c: Likewise.
32114         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32115
32116 2010-03-28  Bruno Haible  <bruno@clisp.org>
32117
32118         Fix definition of tests witness macro.
32119         * gnulib-tool (func_import): Fix definition of witness macro.
32120
32121 2010-03-28  Bruno Haible  <bruno@clisp.org>
32122
32123         Fix ioctl's protoype on glibc systems.
32124         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32125         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32126         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32127         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32128         signature. If not, arrange to replace the ioctl function.
32129         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32130         REPLACE_IOCTL.
32131         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32132         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32133         Reported by Ludovic Courtès <ludo@gnu.org>.
32134
32135 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32136
32137         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32138         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32139         made it so grep -r --include=GLOB* ... did not work.
32140
32141 2010-03-26  Jim Meyering  <meyering@redhat.com>
32142             Eric Blake  <eblake@redhat.com>
32143
32144         maint.mk: prohibit use of test's -o and -a operators
32145         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32146
32147 2010-03-28  Bruno Haible  <bruno@clisp.org>
32148
32149         Remove unused GNULIB_XYZ macro definitions.
32150         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32151         invocation.
32152
32153 2010-03-28  Bruno Haible  <bruno@clisp.org>
32154
32155         Mark privileged tests modules.
32156         * modules/idpriv-drop-tests (Status): New section.
32157         * modules/idpriv-droptemp-tests (Status): New section.
32158
32159 2010-03-28  Bruno Haible  <bruno@clisp.org>
32160
32161         Split C++ tests into separate tests modules.
32162         * modules/dirent-c++-tests: New file, extracted from
32163         modules/dirent-tests.
32164         * modules/dirent-tests: Depend on it.
32165         * modules/fcntl-h-c++-tests: New file, extracted from
32166         modules/fcntl-h-tests.
32167         * modules/fcntl-h-tests: Depend on it.
32168         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32169         * modules/glob-tests: Depend on it.
32170         * modules/iconv-h-c++-tests: New file, extracted from
32171         modules/iconv-h-tests.
32172         * modules/iconv-h-tests: Depend on it.
32173         * modules/langinfo-c++-tests: New file, extracted from
32174         modules/langinfo-tests.
32175         * modules/langinfo-tests: Depend on it.
32176         * modules/locale-c++-tests: New file, extracted from
32177         modules/locale-tests.
32178         * modules/locale-tests: Depend on it.
32179         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32180         * modules/math-tests: Depend on it.
32181         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32182         * modules/pty-tests: Depend on it.
32183         * modules/search-c++-tests: New file, extracted from
32184         modules/search-tests.
32185         * modules/search-tests: Depend on it.
32186         * modules/signal-c++-tests: New file, extracted from
32187         modules/signal-tests.
32188         * modules/signal-tests: Depend on it.
32189         * modules/spawn-c++-tests: New file, extracted from
32190         modules/spawn-tests.
32191         * modules/spawn-tests: Depend on it.
32192         * modules/stdio-c++-tests: New file, extracted from
32193         modules/stdio-tests.
32194         * modules/stdio-tests: Depend on it.
32195         * modules/stdlib-c++-tests: New file, extracted from
32196         modules/stdlib-tests.
32197         * modules/stdlib-tests: Depend on it.
32198         * modules/string-c++-tests: New file, extracted from
32199         modules/string-tests.
32200         * modules/string-tests: Depend on it.
32201         * modules/sys_ioctl-c++-tests: New file, extracted from
32202         modules/sys_ioctl-tests.
32203         * modules/sys_ioctl-tests: Depend on it.
32204         * modules/sys_select-c++-tests: New file, extracted from
32205         modules/sys_select-tests.
32206         * modules/sys_select-tests: Depend on it.
32207         * modules/sys_socket-c++-tests: New file, extracted from
32208         modules/sys_socket-tests.
32209         * modules/sys_socket-tests: Depend on it.
32210         * modules/sys_stat-c++-tests: New file, extracted from
32211         modules/sys_stat-tests.
32212         * modules/sys_stat-tests: Depend on it.
32213         * modules/sys_time-c++-tests: New file, extracted from
32214         modules/sys_time-tests.
32215         * modules/sys_time-tests: Depend on it.
32216         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32217         * modules/time-tests: Depend on it.
32218         * modules/unistd-c++-tests: New file, extracted from
32219         modules/unistd-tests.
32220         * modules/unistd-tests: Depend on it.
32221         * modules/wchar-c++-tests: New file, extracted from
32222         modules/wchar-tests.
32223         * modules/wchar-tests: Depend on it.
32224         * modules/wctype-c++-tests: New file, extracted from
32225         modules/wctype-tests.
32226         * modules/wctype-tests: Depend on it.
32227         Reported by Simon Josefsson.
32228
32229 2010-03-28  Bruno Haible  <bruno@clisp.org>
32230
32231         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32232         * gnulib-tool (func_exists_module): New function, extracted from
32233         func_verify_module.
32234         (func_verify_module): Use it.
32235         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32236         'foo' only if 'foo' exists.
32237         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32238         module.
32239
32240 2010-03-28  Bruno Haible  <bruno@clisp.org>
32241
32242         gnulib-tool: Add support for special categories of tests.
32243         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32244         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32245         (func_usage): Document them.
32246         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32247         inc_unportable_tests, inc_all_tests): New variables.
32248         (func_acceptable): Consider these variables.
32249         (func_modules_transitive_closure): Make it work when the 'Status' field
32250         consists of multiple words.
32251         (func_import): Store and restore the values of inc_cxx_tests,
32252         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32253         inc_all_tests in gnulib-comp.m4.
32254         (func_create_testdir): Set inc_all_tests to true.
32255         * doc/gnulib.texi (Extra tests modules): New section.
32256         Suggested by Jim Meyering.
32257
32258 2010-03-28  Bruno Haible  <bruno@clisp.org>
32259
32260         ansi-c++-opt: Allow turning off the C++ build by default.
32261         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32262         gl_CXX_CHOICE_DEFAULT_NO is defined.
32263         Requested by Eric Blake.
32264
32265 2010-03-28  Bruno Haible  <bruno@clisp.org>
32266
32267         unistd: Avoid #define replacements in C++ mode.
32268         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32269         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32270         setsockopt, shutdown, select): In C++, attach a warning to the function
32271         if possible, rather than #defining the symbol to a dysfunctional alias.
32272         Reported by John W. Eaton <jwe@gnu.org>.
32273
32274 2010-03-28  Bruno Haible  <bruno@clisp.org>
32275
32276         Fix link errors on mingw.
32277         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32278         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32279         $(LIBSOCKET).
32280         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32281         $(LIBSOCKET).
32282
32283 2010-03-28  Bruno Haible  <bruno@clisp.org>
32284             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32285
32286         lib-ignore: Determine different options for different compilers.
32287         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32288         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32289         Add comments.
32290         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32291         * NEWS: Mention the change.
32292
32293 2010-03-27  Bruno Haible  <bruno@clisp.org>
32294
32295         Remove unused GNULIB_XYZ macro definitions.
32296         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32297         * modules/fseek (configure.ac): Likewise.
32298         * modules/ioctl (configure.ac): Likewise.
32299         * modules/open (configure.ac): Likewise.
32300         * modules/stdlib-safer (configure.ac): Likewise.
32301
32302 2010-03-27  Bruno Haible  <bruno@clisp.org>
32303
32304         Add a remark about certain modules.
32305         * modules/malloc (Comment): New section.
32306         * modules/realloc (Comment): Likewise.
32307         * modules/sigpipe (Comment): Likewise.
32308
32309 2010-03-27  Bruno Haible  <bruno@clisp.org>
32310
32311         Resolve conflict between the two kinds of module indicators.
32312         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32313         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32314         * modules/canonicalize (configure.ac): Invoke
32315         gl_MODULE_INDICATOR_FOR_TESTS.
32316         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32317         GNULIB_XYZ.
32318         * tests/test-dirent-c++.cc: Likewise.
32319         * tests/test-dirent-safer.c: Likewise.
32320         * tests/test-dup2.c: Likewise.
32321         * tests/test-fchdir.c: Likewise.
32322         * tests/test-fcntl-h-c++.cc: Likewise.
32323         * tests/test-getopt.c: Likewise.
32324         * tests/test-getopt.h: Likewise.
32325         * tests/test-langinfo-c++.cc: Likewise.
32326         * tests/test-locale-c++.cc: Likewise.
32327         * tests/test-math-c++.cc: Likewise.
32328         * tests/test-pty-c++.cc: Likewise.
32329         * tests/test-search-c++.cc: Likewise.
32330         * tests/test-signal-c++.cc: Likewise.
32331         * tests/test-spawn-c++.cc: Likewise.
32332         * tests/test-stdio-c++.cc: Likewise.
32333         * tests/test-stdlib-c++.cc: Likewise.
32334         * tests/test-string-c++.cc: Likewise.
32335         * tests/test-sys_ioctl-c++.cc: Likewise.
32336         * tests/test-sys_select-c++.cc: Likewise.
32337         * tests/test-sys_socket-c++.cc: Likewise.
32338         * tests/test-sys_stat-c++.cc: Likewise.
32339         * tests/test-sys_time-c++.cc: Likewise.
32340         * tests/test-time-c++.cc: Likewise.
32341         * tests/test-unistd-c++.cc: Likewise.
32342         * tests/test-wchar-c++.cc: Likewise.
32343         * tests/uninorm/test-u8-nfc.c: Likewise.
32344         * tests/uninorm/test-u8-nfd.c: Likewise.
32345         * tests/uninorm/test-u8-nfkc.c: Likewise.
32346         * tests/uninorm/test-u8-nfkd.c: Likewise.
32347         * tests/uninorm/test-u16-nfc.c: Likewise.
32348         * tests/uninorm/test-u16-nfd.c: Likewise.
32349         * tests/uninorm/test-u16-nfkc.c: Likewise.
32350         * tests/uninorm/test-u16-nfkd.c: Likewise.
32351         * tests/uninorm/test-u32-nfc.c: Likewise.
32352         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32353         * tests/uninorm/test-u32-nfd.c: Likewise.
32354         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32355         * tests/uninorm/test-u32-nfkc.c: Likewise.
32356         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32357         * tests/uninorm/test-u32-nfkd.c: Likewise.
32358         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32359         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32360
32361 2010-03-27  Bruno Haible  <bruno@clisp.org>
32362
32363         Distinguish two kinds of module indicators.
32364         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32365         gl_MODULE_INDICATOR.
32366         (gl_MODULE_INDICATOR): New macro.
32367         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32368         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32369         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32370         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32371         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32372         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32373         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32374         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32375         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32376         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32377         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32378         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32381         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32382         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32383         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32384         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32385         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32386         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32387         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32388         * modules/cloexec (configure.ac): Likewise.
32389         * modules/getopt-gnu (configure.ac): Likewise.
32390         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32391         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32392         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32393         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32394
32395 2010-03-27  Bruno Haible  <bruno@clisp.org>
32396
32397         New module description field 'Comment'.
32398         * gnulib-tool: New option --extract-comment.
32399         (func_usage): Document it.
32400         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32401         (func_get_comment): New function.
32402         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32403
32404 2010-03-27  Bruno Haible  <bruno@clisp.org>
32405
32406         Addendum to 2010-02-07 commit.
32407         * gnulib-tool (func_usage): Document --extract-applicability option.
32408
32409 2010-03-27  Bruno Haible  <bruno@clisp.org>
32410
32411         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32412         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32413         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32414         rather than link errors.
32415
32416 2010-03-27  Bruno Haible  <bruno@clisp.org>
32417
32418         Avoid side effects from tests-related modules on the compilation of lib.
32419         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32420         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32421         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32422         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32423         macro.
32424         (func_import): Define a witness macro. Assign it a value that depends
32425         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32426         tests-related modules.
32427         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32428         Reported by Jim Meyering.
32429
32430 2010-03-27  Bruno Haible  <bruno@clisp.org>
32431
32432         Factorize common .m4 code.
32433         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32434         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32435         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32436         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32437         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32438         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32439         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32440         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32441         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32442         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32443         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32444         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32445         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32446         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32447         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32448         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32449         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32450         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32452         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32454         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32455         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32456         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32457         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32458         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32459         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32460         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32461         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32462         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32464         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32465
32466 2010-03-27  Bruno Haible  <bruno@clisp.org>
32467
32468         Fix a compilation error on Cygwin with g++ >= 4.3.
32469         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32470         if it is undefined or if we alias it to chmod.
32471         (lstat): Don't warn about the use of this function if it is undefined
32472         or if we alias it to stat.
32473         Reported by Simon Josefsson.
32474
32475 2010-03-27  Bruno Haible  <bruno@clisp.org>
32476
32477         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32478         * modules/getlogin (configure.ac): Update.
32479
32480         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32481         * modules/getlogin_r (configure.ac): Update.
32482
32483         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32485         * modules/inet_ntop (configure.ac): Update.
32486
32487         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32488         * modules/inet_pton (configure.ac): Update.
32489
32490         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32491         * modules/mbslen (configure.ac): Update.
32492
32493         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32494         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32495         * modules/forkpty (configure.ac): Update.
32496         * modules/openpty (configure.ac): Update.
32497
32498 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32499
32500         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32501         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32502
32503 2010-03-25  Eric Blake  <eblake@redhat.com>
32504
32505         maint: use pragma consistently across replacement headers
32506         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32507         * lib/dirent.in.h (system_header): Likewise.
32508         * lib/errno.in.h (system_header): Likewise.
32509         * lib/float.in.h (system_header): Likewise.
32510         * lib/getopt.in.h (system_header): Likewise.
32511         * lib/iconv.in.h (system_header): Likewise.
32512         * lib/inttypes.in.h (system_header): Likewise.
32513         * lib/langinfo.in.h (system_header): Likewise.
32514         * lib/locale.in.h (system_header): Likewise.
32515         * lib/math.in.h (system_header): Likewise.
32516         * lib/netdb.in.h (system_header): Likewise.
32517         * lib/netinet_in.in.h (system_header): Likewise.
32518         * lib/pty.in.h (system_header): Likewise.
32519         * lib/sched.in.h (system_header): Likewise.
32520         * lib/se-selinux.in.h (system_header): Likewise.
32521         * lib/search.in.h (system_header): Likewise.
32522         * lib/spawn.in.h (system_header): Likewise.
32523         * lib/stdarg.in.h (system_header): Likewise.
32524         * lib/stdint.in.h (system_header): Likewise.
32525         * lib/string.in.h (system_header): Likewise.
32526         * lib/strings.in.h (system_header): Likewise.
32527         * lib/sys_file.in.h (system_header): Likewise.
32528         * lib/sys_ioctl.in.h (system_header): Likewise.
32529         * lib/sys_socket.in.h (system_header): Likewise.
32530         * lib/sys_times.in.h (system_header): Likewise.
32531         * lib/sys_utsname.in.h (system_header): Likewise.
32532         * lib/sys_wait.in.h (system_header): Likewise.
32533         * lib/sysexits.in.h (system_header): Likewise.
32534         * lib/unistd.in.h (system_header): Likewise.
32535         * lib/wctype.in.h (system_header): Likewise.
32536
32537         arpa/inet: fix mingw compilation warning
32538         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32539         Reported by Matthew Bolte.
32540
32541 2010-03-25  Bruno Haible  <bruno@clisp.org>
32542
32543         Avoid collision between gnulib wrapper and libintl wrapper.
32544         * lib/printf.c (printf): Don't define if a printf wrapper is already
32545         defined in intl/printf.c.
32546         Reported by Michel Boaventura <michel@michelboaventura.com>.
32547
32548 2010-03-25  Bruno Haible  <bruno@clisp.org>
32549
32550         Use ANSI C.
32551         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32552
32553 2010-03-25  Bruno Haible  <bruno@clisp.org>
32554
32555         Minor formatting changes.
32556         * lib/acosl.c: Insert space before function argument list.
32557         * lib/argz.c: Likewise.
32558         * lib/asinl.c: Likewise.
32559         * lib/expl.c: Likewise.
32560         * lib/gen-uni-tables.c: Likewise.
32561         * lib/gettext.h: Likewise.
32562         * lib/glthread/lock.h: Likewise.
32563         * lib/tanl.c: Likewise.
32564         * lib/uniname/uniname.c: Likewise.
32565         * tests/test-idpriv-drop.c: Likewise.
32566         * tests/test-idpriv-droptemp.c: Likewise.
32567         * tests/test-lock.c: Likewise.
32568         * tests/test-tls.c: Likewise.
32569         * lib/argp-help.c: Insert space before function-like macro argument
32570         list.
32571         * lib/memcmp.c: Likewise.
32572         * tests/test-base64.c: Likewise.
32573         * lib/localename.c: Insert space before sizeof's argument list.
32574         * lib/safe-alloc.h: Likewise.
32575         * lib/file-set.h: Insert space before macro argument list.
32576         * tests/test-argp.c: Likewise.
32577         * lib/argp-namefrob.h: Insert space before function parameter list.
32578         * lib/getaddrinfo.c: Likewise.
32579         * lib/netdb.in.h: Likewise.
32580         * lib/parse-duration.h: Likewise.
32581         * lib/parse-duration.c: Likewise.
32582         * lib/poll.c: Likewise.
32583         * lib/select.c: Likewise.
32584         * lib/trim.h: Likewise.
32585         * tests/test-usleep.c: Likewise.
32586         * lib/ldexpl.c: Insert space before function parameter list and before
32587         function argument list.
32588         * lib/logl.c: Likewise.
32589         * lib/sqrtl.c: Likewise.
32590         * lib/trim.c: Likewise.
32591         * lib/cosl.c: Use GNU style indentation. Insert space before function
32592         argument list.
32593         * lib/sinl.c: Likewise.
32594         * lib/tsearch.c: Insert space after 'for'.
32595         Reported by Jim Meyering.
32596
32597 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32598
32599         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32600         config header before grepping, as it's not present before
32601         autoreconf/configure are run.  Reported by Simon Josefsson.
32602
32603 2010-03-23  Bruno Haible  <bruno@clisp.org>
32604
32605         pt_chown: Make it work with automake < 1.11.
32606         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32607         Reported by Simon Josefsson.
32608
32609 2010-03-23  Bruno Haible  <bruno@clisp.org>
32610
32611         pt_chown: Don't depend on GPLed modules.
32612         * lib/pt_chown.c: Don't include idpriv.h.
32613         (main): Don't drop privileges.
32614         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32615         Reported by Simon Josefsson.
32616
32617 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32618
32619         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32620         suggestions from karl@freefriends.org (Karl Berry).
32621
32622 2010-03-22  Eric Blake  <eblake@redhat.com>
32623
32624         gethostname: further tweaks
32625         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32626         are overriding gethostname.
32627         Suggested by Bruno Haible.
32628
32629 2010-03-21  Bruno Haible  <bruno@clisp.org>
32630
32631         Fix comments.
32632         * lib/forkpty.c (rpl_forkpty): Fix comment.
32633         * lib/openpty.c (rpl_openpty): Likewise.
32634         Reported by Eric Blake.
32635
32636 2010-03-22  Eric Blake  <eblake@redhat.com>
32637
32638         gethostname: fix build on mingw
32639         * lib/unistd.in.h (includes): Work around fact that mingw
32640         <winsock2.h> re-includes <unistd.h>, by avoiding any
32641         redeclarations if we are being included by <winsock2.h>.
32642         Reported by Matthias Bolte.
32643
32644 2010-03-21  Bruno Haible  <bruno@clisp.org>
32645
32646         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32647         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32648         modifications.
32649         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32650         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32651         provide the replacement.
32652         * modules/forkpty (Depends-on): Add openpty, login_tty.
32653         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32654         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32655         * doc/glibc-functions/forkpty.texi: More supported platforms.
32656         * config/srclist.txt: Add forkpty.c (commented).
32657
32658 2010-03-21  Bruno Haible  <bruno@clisp.org>
32659
32660         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32661         (Makefile.am): Verify that PTY_LIB is defined.
32662
32663         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32664
32665 2010-03-21  Bruno Haible  <bruno@clisp.org>
32666
32667         Tests for module 'login_tty'.
32668         * modules/login_tty-tests: New file.
32669         * tests/test-login_tty.c: New file.
32670
32671         New module 'login_tty'.
32672         * lib/login_tty.c: New file.
32673         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32674         * modules/login_tty: New file.
32675         * doc/glibc-functions/login_tty.texi: Mention the new module.
32676
32677 2010-03-21  Bruno Haible  <bruno@clisp.org>
32678
32679         login_tty: Documentation.
32680         * doc/glibc-functions/login_tty.texi: New file.
32681         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32682
32683 2010-03-21  Bruno Haible  <bruno@clisp.org>
32684
32685         pty: Consistent macro naming.
32686         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32687         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32688         * modules/pty (configure.ac): Update.
32689
32690 2010-03-21  Bruno Haible  <bruno@clisp.org>
32691
32692         Tests for openpty: Make stricter.
32693         * tests/test-openpty.c (main): Add test of canonical processing and
32694         erase.
32695         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32696
32697         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32698         * lib/openpty.c (openpty): New replacement function.
32699         * lib/pty.in.h: Include <termios.h>.
32700         (openpty): Update declaration. Add comments.
32701         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32702         is not declared, arrange to provide the replacement. Check for _getpty
32703         and posix_openpt.
32704         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32705         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32706         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32707         * modules/pty-tests (test_pty_c___LDADD): New variable.
32708         * doc/glibc-functions/openpty.texi: More supported platforms.
32709
32710 2010-03-21  Bruno Haible  <bruno@clisp.org>
32711
32712         setenv: Tweaks.
32713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32714         the test program.
32715         * doc/posix-functions/setenv.texi: Update platforms list.
32716
32717 2010-03-21  Bruno Haible  <bruno@clisp.org>
32718
32719         New module 'unlockpt'.
32720         * lib/unlockpt.c: New file, from glibc with modifications.
32721         * m4/unlockpt.m4: New file.
32722         * modules/unlockpt: New file.
32723         * lib/stdlib.in.h (unlockpt): New declaration.
32724         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32725         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32726         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32727         HAVE_UNLOCKPT.
32728         * doc/posix-functions/unlockpt.texi: Mention the new module.
32729         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32730         * config/srclist.txt: Add unlockpt.c (commented).
32731
32732 2010-03-21  Jim Meyering  <meyering@redhat.com>
32733
32734         maint.mk: prohibit inclusion of "intprops.h" without use
32735         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32736
32737 2010-03-21  Bruno Haible  <bruno@clisp.org>
32738
32739         New module 'grantpt'.
32740         * lib/grantpt.c: New file, from glibc with modifications.
32741         * m4/grantpt.m4: New file.
32742         * modules/grantpt: New file.
32743         * lib/stdlib.in.h (grantpt): New declaration.
32744         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32745         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32746         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32747         HAVE_GRANTPT.
32748         * doc/posix-functions/grantpt.texi: Mention the new module.
32749         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32750         * config/srclist.txt: Add grantpt.c (commented).
32751
32752 2010-03-21  Bruno Haible  <bruno@clisp.org>
32753
32754         New module 'pt_chown'.
32755         * lib/pt_chown.c: New file, from glibc with modifications.
32756         * lib/pty-private.h: New file, from glibc with modifications.
32757         * modules/pt_chown: New file.
32758         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32759
32760 2010-03-21  Bruno Haible  <bruno@clisp.org>
32761
32762         Tests for module 'ptsname'.
32763         * modules/ptsname-tests: New file.
32764         * tests/test-ptsname.c: New file.
32765
32766         New module 'ptsname'.
32767         * lib/ptsname.c: New file, from glibc with modifications.
32768         * m4/ptsname.m4: New file.
32769         * modules/ptsname: New file.
32770         * lib/stdlib.in.h (ptsname): New declaration.
32771         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32772         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32773         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32774         HAVE_PTSNAME.
32775         * doc/posix-functions/ptsname.texi: Mention the new module.
32776         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32777         * config/srclist.txt: Add ptsname.c (commented).
32778
32779 2010-03-21  Bruno Haible  <bruno@clisp.org>
32780
32781         Tests for module 'ttyname_r'.
32782         * modules/ttyname_r-tests: New file.
32783         * tests/test-ttyname_r.c: New file.
32784
32785         New module 'ttyname_r'.
32786         * lib/ttyname_r.c: New file.
32787         * m4/ttyname_r.m4: New file.
32788         * modules/ttyname_r: New file.
32789         * lib/unistd.in.h (ttyname_r): New declaration.
32790         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32791         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32792         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32793         HAVE_TTYNAME_R.
32794         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32795         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32796
32797 2010-03-20  Bruno Haible  <bruno@clisp.org>
32798
32799         signal: Undefine macro definitions in C++ mode.
32800         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32801         sigfillset): Undefine macro definitions from the system header in C++
32802         mode.
32803         Reported by John W. Eaton <jwe@gnu.org>.
32804
32805 2010-03-20  Bruno Haible  <bruno@clisp.org>
32806
32807         Ensure no #include statements inside extern "C" { ... }.
32808         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32809         contain #include statements.
32810         * lib/time.in.h: Likewise.
32811
32812 2010-03-20  Bruno Haible  <bruno@clisp.org>
32813
32814         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32815         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32816         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32817         Reported by John W. Eaton <jwe@gnu.org>.
32818
32819 2010-03-20  Bruno Haible  <bruno@clisp.org>
32820
32821         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32822         Reported by Jim Meyering.
32823
32824 2010-03-20  Bruno Haible  <bruno@clisp.org>
32825
32826         pipe: Set errno upon failure.
32827         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32828         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32829         errno value in error message.
32830
32831 2010-03-20  Bruno Haible  <bruno@clisp.org>
32832             Jim Meyering  <meyering@redhat.com>
32833
32834         lchown: Avoid "unused variable" warning.
32835         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32836
32837 2010-03-20  Bruno Haible  <bruno@clisp.org>
32838
32839         Work around unlink() bug on MacOS X 10.5.6.
32840         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32841         attempting to unlink a parent directory.
32842         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32843         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32844         activate for the replacement function.
32845         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32846
32847 2010-03-20  Bruno Haible  <bruno@clisp.org>
32848
32849         Fix link errors on Solaris 8.
32850         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32851         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32852
32853 2010-03-19  Jim Meyering  <meyering@redhat.com>
32854
32855         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32856         The _LIBC implementation of build_range_exp correctly honors the
32857         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32858         However, the non-_LIBC implementation would ignore that syntax-bit
32859         flag and return REG_ERANGE unconditionally.
32860         This change makes it honor that flag.
32861         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32862         Make two pointer parameters "const".
32863         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32864         (parse_bracket_exp): Update caller.
32865
32866         regex.m4: correct the reversed range endpoint ([b-a]) test
32867         * m4/regex.m4: When requiring that [b-a] evoke failure,
32868         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32869         test pass once again for x86-based systems.
32870
32871 2010-03-19  Bruno Haible  <bruno@clisp.org>
32872
32873         scandir: Fix link error on Solaris 8.
32874         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32875         macros.
32876
32877 2010-03-19  Bruno Haible  <bruno@clisp.org>
32878
32879         getusershell: Fix documentation.
32880         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32881         module.
32882         * doc/glibc-functions/setusershell.texi: Likewise.
32883
32884         getusershell: Provide declaration, missing on Solaris 9.
32885         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32886         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32887         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32888         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32890         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32891         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32892         HAVE_GETUSERSHELL.
32893         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32894
32895 2010-03-19  Bruno Haible  <bruno@clisp.org>
32896
32897         wctype: Provide iswblank function.
32898         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32899         exists and is fine.
32900         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32901         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32902         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32903         * doc/posix-functions/iswblank.texi: Update.
32904
32905 2010-03-19  Bruno Haible  <bruno@clisp.org>
32906
32907         Tests of module 'pty' in C++ mode.
32908         * modules/pty-tests: New file.
32909         * tests/test-pty-c++.cc: New file.
32910         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32911
32912 2010-03-19  Eric Blake  <eblake@redhat.com>
32913
32914         logb: fix documentation
32915         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32916         1.5 declaration bug.
32917
32918         forkpty, openpty: prefer glibc's const-safe prototype
32919         * lib/forkpty.c (rpl_forkpty): New file.
32920         * lib/openpty.c (rpl_openpty): Likewise.
32921         * modules/forkpty (Files): Distribute it.
32922         * modules/openpty (Files): Likewise.
32923         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32924         check...
32925         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32926         replacement for for non-const BSD signature.
32927         * modules/pty (Makefile.am): Substitute witnesses.
32928         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32929         * tests/test-forkpty.c: Update signature check.
32930         * tests/test-openpty.c: Likewise.
32931         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32932         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32933
32934         forkpty, openpty: split functions into new modules
32935         * modules/pty (Makefile.am): Substitute new witnesses.
32936         (Libraries): Move library detection...
32937         * modules/forkpty: ...into new module.
32938         * modules/openpty: Another new module.
32939         * modules/pty-tests: Rename and split...
32940         * modules/forkpty-tests: ...to this...
32941         * modules/openpty-tests: ...and this.
32942         * tests/test-pty.c: Rename and split...
32943         * tests/test-forkpty.c: ...to this...
32944         * tests/test-openpty.c: ...and this.
32945         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32946         (gl_PTY): Split library searching...
32947         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32948         (gl_FORKPTY, gl_OPENPTY): New macros.
32949         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32950         * NEWS: Mention the split.
32951         * MODULES.html.sh (Misc): Document the modules.
32952         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32953         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32954
32955         pty: improve replacement header
32956         * lib/pty.in.h: New file.
32957         * modules/pty (Files): Ship it.
32958         (Makefile.am): Always build replacement.
32959         * m4/pty.m4: Rename...
32960         * m4/pty_h.m4: ...to this.
32961         (gl_PTY): Modernize setting of witness macros; update check of
32962         forkpty to take proper advantage of cache.
32963         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32964
32965         getopt: avoid compiler warning
32966         * lib/getopt.c (attribute_hidden): Remove unused macro.
32967
32968 2010-03-18  Bruno Haible  <bruno@clisp.org>
32969
32970         Fix link errors on Solaris 8.
32971         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32972         * modules/search-tests (test_search_c___LDADD): Likewise.
32973         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32974         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32975         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32976         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32977         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32978         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32979         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32980
32981 2010-03-18  Bruno Haible  <bruno@clisp.org>
32982
32983         Fix bug introduced on 2010-03-14.
32984         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32985         (gl_SPAWN_H): Require it.
32986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32987         Reported by Simon Josefsson.
32988
32989 2010-03-18  Bruno Haible  <bruno@clisp.org>
32990
32991         Fix typo introduced on 2009-12-31.
32992         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32993         posix_spawn_file_actions_adddup2.
32994
32995 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32996         and Eric Blake  <eblake@redhat.com>
32997
32998         test-vc-list-files-git: make more robust
32999         * tests/test-vc-list-files-git.sh: Unset problematic environment
33000         variables.  Chain commands together.
33001
33002 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33003
33004         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33005         `AC_CHECK_DECL' invocation.
33006
33007 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33008
33009         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33010         appears before executable statements. Suggested by Petr Sumbera
33011         <Petr.Sumbera@Sun.COM>.
33012
33013 2010-03-14  Bruno Haible  <bruno@clisp.org>
33014
33015         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33016         portability problems. Instead use a simpler test.
33017         (main): Check that invalid arguments are rejected only on Linux.
33018
33019 2010-03-14  Bruno Haible  <bruno@clisp.org>
33020
33021         Fix bug introduced on 2009-12-31.
33022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33023         gl_PREREQ_SYS_H_WINSOCK2 always.
33024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33025         SYS_SOCKET_H variable.
33026         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33027         Update comments.
33028         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33030         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33031         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33032         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33033
33034 2010-03-14  Bruno Haible  <bruno@clisp.org>
33035
33036         Fix values returned by sinl, cosl.
33037         * lib/trigl.h: Add specification comments.
33038         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33039         that combines the values from the precomputed table with the values of
33040         the Chebyshev polynomials.
33041
33042 2010-03-14  Bruno Haible  <bruno@clisp.org>
33043
33044         Fix compilation error when modules 'posix_spawn[p]' are not used.
33045         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33046         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33047
33048 2010-03-14  Bruno Haible  <bruno@clisp.org>
33049
33050         Fix compilation error on mingw when module 'time_r' is not used.
33051         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33052         is 1.
33053         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33054         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33055         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33056         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33057
33058 2010-03-14  Bruno Haible  <bruno@clisp.org>
33059
33060         Fix compilation error with Sun C.
33061         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33062         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33063         instead of GCC specific ULONG_LONG_MAX.
33064         * lib/xstrtoll.c: Likewise.
33065         * lib/xstrtoull.c: Likewise.
33066
33067 2010-03-13  Bruno Haible  <bruno@clisp.org>
33068
33069         Allow the user to disable C++ code and tests.
33070         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33071         (gl_PROG_ANSI_CXX): Require it.
33072
33073 2010-03-13  Bruno Haible  <bruno@clisp.org>
33074
33075         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33076         cases.
33077
33078 2010-03-13  Bruno Haible  <bruno@clisp.org>
33079
33080         Test that gnulib does not break the standard C++ headers.
33081         * tests/test-locale-c++2.cc: New file.
33082         * modules/locale-tests (Files): Add it.
33083         (Makefile.am): Compile it for test-locale-c++.
33084         * tests/test-math-c++2.cc: New file.
33085         * modules/math-tests (Files): Add it.
33086         (Makefile.am): Compile it for test-math-c++.
33087         * tests/test-signal-c++2.cc: New file.
33088         * modules/signal-tests (Files): Add it.
33089         (Makefile.am): Compile it for test-signal-c++.
33090         * tests/test-stdio-c++2.cc: New file.
33091         * modules/stdio-tests (Files): Add it.
33092         (Makefile.am): Compile it for test-stdio-c++.
33093         * tests/test-stdlib-c++2.cc: New file.
33094         * modules/stdlib-tests (Files): Add it.
33095         (Makefile.am): Compile it for test-stdlib-c++.
33096         * tests/test-string-c++2.cc: New file.
33097         * modules/string-tests (Files): Add it.
33098         (Makefile.am): Compile it for test-string-c++.
33099         * tests/test-time-c++2.cc: New file.
33100         * modules/time-tests (Files): Add it.
33101         (Makefile.am): Compile it for test-time-c++.
33102         Reported by John W. Eaton <jwe@gnu.org>.
33103
33104 2010-03-13  Bruno Haible  <bruno@clisp.org>
33105
33106         * gnulib-tool (func_usage): Clarify which options are available for
33107         --create-testdir and --create-megatestdir.
33108
33109 2010-03-13  Bruno Haible  <bruno@clisp.org>
33110
33111         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33112         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33113         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33114         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33115         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33116         when appropriate.
33117         Reported by Jim Meyering.
33118
33119 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33120
33121         * gnulib-tool (func_import): Explain origin of code.
33122
33123 2010-03-12  Bruno Haible  <bruno@clisp.org>
33124
33125         Fix problem with automake's definition of CXXLINK.
33126         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33127         Reported by Simon Josefsson and Ludovic Courtès.
33128
33129 2010-03-12  Bruno Haible  <bruno@clisp.org>
33130
33131         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33132         stable releases.
33133
33134 2010-03-11  Bruno Haible  <bruno@clisp.org>
33135
33136         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33137         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33138         whether the system provides one variant or multiple variants of the
33139         function.
33140         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33141         C++ compilers.
33142         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33143         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33144         Reported by Jim Meyering.
33145
33146 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33147
33148         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33149
33150 2010-03-08  Bruno Haible  <bruno@clisp.org>
33151
33152         gnulib-tool: Add support for --libtool in --create-testdir.
33153         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33154         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33155
33156 2010-03-08  Eric Blake  <eblake@redhat.com>
33157
33158         gnulib-tool.texi: mention possibility of git submodule
33159         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33160         submodules.
33161         * doc/.gitignore: Ignore another generated file.
33162
33163 2010-03-08  Karl Berry  <karl@gnu.org>
33164
33165         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33166         of committing gnulib files while skipping others.
33167
33168 2010-03-07  Bruno Haible  <bruno@clisp.org>
33169
33170         Tests of module 'wctype' in C++ mode.
33171         * tests/test-wctype-c++.cc: New file.
33172         * modules/wctype-tests (Files): Add it and tests/signature.h.
33173         (Depends-on): Add ansi-c++-opt.
33174         (Makefile.am): Arrange to compile and run test-wctype-c++.
33175
33176         Tests of module 'wchar' in C++ mode.
33177         * tests/test-wchar-c++.cc: New file.
33178         * modules/wchar-tests (Files): Add it and tests/signature.h.
33179         (Depends-on): Add ansi-c++-opt.
33180         (Makefile.am): Arrange to compile and run test-wchar-c++.
33181         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33182         gl_MODULE_INDICATOR.
33183
33184         Tests of module 'unistd' in C++ mode.
33185         * tests/test-unistd-c++.cc: New file.
33186         * modules/unistd-tests (Files): Add it and tests/signature.h.
33187         (Depends-on): Add ansi-c++-opt.
33188         (Makefile.am): Arrange to compile and run test-unistd-c++.
33189         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33190         gl_MODULE_INDICATOR.
33191
33192         Tests of module 'time' in C++ mode.
33193         * tests/test-time-c++.cc: New file.
33194         * modules/time-tests (Files): Add it and tests/signature.h.
33195         (Depends-on): Add ansi-c++-opt.
33196         (Makefile.am): Arrange to compile and run test-time-c++.
33197         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33198
33199         Tests of module 'sys_time' in C++ mode.
33200         * tests/test-sys_time-c++.cc: New file.
33201         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33202         (Depends-on): Add ansi-c++-opt.
33203         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33204         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33205         gl_MODULE_INDICATOR.
33206
33207         Tests of module 'sys_stat' in C++ mode.
33208         * tests/test-sys_stat-c++.cc: New file.
33209         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33210         (Depends-on): Add ansi-c++-opt.
33211         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33212         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33213         gl_MODULE_INDICATOR.
33214
33215         Tests of module 'sys_socket' in C++ mode.
33216         * tests/test-sys_socket-c++.cc: New file.
33217         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33218         (Depends-on): Add ansi-c++-opt.
33219         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33220         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33221         gl_MODULE_INDICATOR.
33222
33223         Tests of module 'sys_select' in C++ mode.
33224         * tests/test-sys_select-c++.cc: New file.
33225         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33226         (Depends-on): Add ansi-c++-opt.
33227         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33228         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33229         gl_MODULE_INDICATOR.
33230
33231         Tests of module 'sys_ioctl' in C++ mode.
33232         * tests/test-sys_ioctl-c++.cc: New file.
33233         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33234         (Depends-on): Add ansi-c++-opt.
33235         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33236         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33237         gl_MODULE_INDICATOR.
33238
33239         Tests of module 'string' in C++ mode.
33240         * tests/test-string-c++.cc: New file.
33241         * modules/string-tests (Files): Add it and tests/signature.h.
33242         (Depends-on): Add ansi-c++-opt.
33243         (Makefile.am): Arrange to compile and run test-string-c++.
33244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33245         gl_MODULE_INDICATOR.
33246
33247         Tests of module 'stdlib' in C++ mode.
33248         * tests/test-stdlib-c++.cc: New file.
33249         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33250         (Depends-on): Add ansi-c++-opt.
33251         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33252         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33253         gl_MODULE_INDICATOR.
33254
33255         Tests of module 'stdio' in C++ mode.
33256         * tests/test-stdio-c++.cc: New file.
33257         * modules/stdio-tests (Files): Add it and tests/signature.h.
33258         (Depends-on): Add ansi-c++-opt.
33259         (Makefile.am): Arrange to compile and run test-stdio-c++.
33260         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33261         gl_MODULE_INDICATOR.
33262
33263         Tests of module 'spawn' in C++ mode.
33264         * tests/test-spawn-c++.cc: New file.
33265         * modules/spawn-tests (Files): Add it and tests/signature.h.
33266         (Depends-on): Add ansi-c++-opt.
33267         (Makefile.am): Arrange to compile and run test-spawn-c++.
33268         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33269         gl_MODULE_INDICATOR.
33270
33271         Tests of module 'signal' in C++ mode.
33272         * tests/test-signal-c++.cc: New file.
33273         * modules/signal-tests (Files): Add it and tests/signature.h.
33274         (Depends-on): Add ansi-c++-opt.
33275         (Makefile.am): Arrange to compile and run test-signal-c++.
33276         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33277         gl_MODULE_INDICATOR.
33278
33279         Tests of module 'search' in C++ mode.
33280         * tests/test-search-c++.cc: New file.
33281         * modules/search-tests (Files): Add it and tests/signature.h.
33282         (Depends-on): Add ansi-c++-opt.
33283         (Makefile.am): Arrange to compile and run test-search-c++.
33284         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33285         gl_MODULE_INDICATOR.
33286
33287         Tests of module 'math' in C++ mode.
33288         * tests/test-math-c++.cc: New file.
33289         * modules/math-tests (Files): Add it and tests/signature.h.
33290         (Depends-on): Add ansi-c++-opt.
33291         (Makefile.am): Arrange to compile and run test-math-c++.
33292         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33293
33294         Tests of module 'locale' in C++ mode.
33295         * tests/test-locale-c++.cc: New file.
33296         * modules/locale-tests (Files): Add it and tests/signature.h.
33297         (Depends-on): Add ansi-c++-opt.
33298         (Makefile.am): Arrange to compile and run test-locale-c++.
33299         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33300         gl_MODULE_INDICATOR.
33301
33302         Tests of module 'langinfo' in C++ mode.
33303         * tests/test-langinfo-c++.cc: New file.
33304         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33305         (Depends-on): Add ansi-c++-opt.
33306         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33307         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33308         gl_MODULE_INDICATOR.
33309
33310         Tests of module 'iconv-h' in C++ mode.
33311         * tests/test-iconv-h-c++.cc: New file.
33312         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33313         (Depends-on): Add ansi-c++-opt.
33314         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33315
33316         Tests of module 'glob' in C++ mode.
33317         * tests/test-glob-c++.cc: New file.
33318         * modules/glob-tests (Files): Add it.
33319         (Depends-on): Add ansi-c++-opt.
33320         (Makefile.am): Arrange to compile and run test-glob-c++.
33321
33322         Tests of module 'fcntl-h' in C++ mode.
33323         * tests/test-fcntl-h-c++.cc: New file.
33324         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33325         (Depends-on): Add ansi-c++-opt.
33326         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33327         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33328         gl_MODULE_INDICATOR.
33329
33330         Tests of module 'dirent' in C++ mode.
33331         * tests/test-dirent-c++.cc: New file.
33332         * modules/dirent-tests (Files): Add it and tests/signature.h.
33333         (Depends-on): Add ansi-c++-opt.
33334         (Makefile.am): Arrange to compile and run test-dirent-c++.
33335         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33336         gl_MODULE_INDICATOR.
33337
33338         New module 'ansi-c++-opt'.
33339         * modules/ansi-c++-opt: New file.
33340         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33341
33342         Document C++ namespace mode.
33343         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33344
33345         wctype: Avoid #define replacements in C++ mode.
33346         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33347         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33348         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33349         In C++, define a namespaced alias symbol.
33350         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33351         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33352         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33353         rule.
33354
33355         wchar: Avoid #define replacements in C++ mode.
33356         * lib/wchar.in.h: Include c++defs.h.
33357         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33358         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33359         symbol.
33360         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33361         * modules/wchar (Depends-on): Add c++defs.
33362         (Makefile.am): Update wchar.h rule.
33363
33364         unistd: Avoid #define replacements in C++ mode.
33365         * lib/unistd.in.h: Include c++defs.h.
33366         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33367         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33368         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33369         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33370         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33371         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33372         symbol.
33373         (environ): Update.
33374         * modules/unistd (Depends-on): Add c++defs.
33375         (Makefile.am): Update unistd.h rule.
33376
33377         time: Avoid #define replacements in C++ mode.
33378         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33379         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33380         define a namespaced alias symbol.
33381         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33382         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33383         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33384         * modules/time (Depends-on): Add c++defs, warn-on-use.
33385         (Makefile.am): Update time.h rule.
33386         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33387         * modules/nanosleep (configure.ac): Likewise.
33388         * modules/strptime (configure.ac): Likewise.
33389         * modules/timegm (configure.ac): Likewise.
33390
33391         sys_time: Avoid #define replacements in C++ mode.
33392         * lib/sys_time.in.h: Include c++defs.h.
33393         (gettimeofday): In C++, define a namespaced alias symbol.
33394         * modules/sys_time (Depends-on): Add c++defs.
33395         (Makefile.am): Update sys/time.h rule.
33396
33397         sys_stat: Avoid #define replacements in C++ mode.
33398         * lib/sys_stat.in.h: Include c++defs.h.
33399         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33400         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33401         namespaced alias symbol.
33402         In C++, define a namespaced alias symbol.
33403         * modules/sys_stat (Depends-on): Add c++defs.
33404         (Makefile.am): Update sys/stat.h rule.
33405
33406         sys_socket: Avoid #define replacements in C++ mode.
33407         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33408         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33409         definitions also when the system has a <sys/socket.h>.
33410         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33411         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33412         In C++, define a namespaced alias symbol.
33413         * modules/sys_socket (Depends-on): Add c++defs.
33414         (Makefile.am): Update sys/socket.h rule.
33415
33416         sys_select: Avoid #define replacements in C++ mode.
33417         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33418         definitions also when the system has a <sys/select.h>.
33419         (select): In C++, define a namespaced alias symbol.
33420         * modules/sys_select (Depends-on): Add c++defs.
33421         (Makefile.am): Update sys/select.h rule.
33422
33423         sys_ioctl: Avoid #define replacements in C++ mode.
33424         * lib/sys_ioctl.in.h: Include c++defs.h.
33425         (ioctl): In C++, define a namespaced alias symbol.
33426         * modules/sys_ioctl (Depends-on): Add c++defs.
33427         (Makefile.am): Update sys/ioctl.h rule.
33428
33429         string: Avoid #define replacements in C++ mode.
33430         * lib/string.in.h: Include c++defs.h.
33431         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33432         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33433         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33434         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33435         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33436         * modules/string (Depends-on): Add c++defs.
33437         (Makefile.am): Update string.h rule.
33438
33439         stdlib: Avoid #define replacements in C++ mode.
33440         * lib/stdlib.in.h: Include c++defs.h.
33441         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33442         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33443         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33444         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33445         symbol.
33446         * modules/stdlib (Depends-on): Add c++defs.
33447         (Makefile.am): Update stdlib.h rule.
33448
33449         stdio: Avoid #define replacements in C++ mode.
33450         * lib/stdio.in.h: Include c++defs.h.
33451         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33452         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33453         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33454         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33455         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33456         namespaced alias symbol.
33457         * modules/stdio (Depends-on): Add c++defs.
33458         (Makefile.am): Update stdio.h rule.
33459
33460         spawn: Avoid #define replacements in C++ mode.
33461         * lib/spawn.in.h: Include c++defs.h.
33462         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33463         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33464         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33465         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33466         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33467         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33468         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33469         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33470         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33471         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33472         In C++, define a namespaced alias symbol.
33473         * modules/spawn (Depends-on): Add c++defs.
33474         (Makefile.am): Update spawn.h rule.
33475
33476         signal: Avoid #define replacements in C++ mode.
33477         * lib/signal.in.h: Include c++defs.h.
33478         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33479         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33480         namespaced alias symbol.
33481         * modules/signal (Depends-on): Add c++defs.
33482         (Makefile.am): Update signal.h rule.
33483
33484         search: Avoid #define replacements in C++ mode.
33485         * lib/search.in.h: Include c++defs.h.
33486         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33487         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33488         symbol.
33489         * modules/search (Depends-on): Add c++defs.
33490         (Makefile.am): Update search.h rule.
33491
33492         math: Avoid #define replacements in C++ mode.
33493         * lib/math.in.h: Include c++defs.h.
33494         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33495         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33496         trunc, truncl): In C++, define a namespaced alias symbol.
33497         * modules/math (Depends-on): Add c++defs.
33498         (Makefile.am): Update math.h rule.
33499
33500         locale: Avoid #define replacements in C++ mode.
33501         * lib/locale.in.h: Include c++defs.h.
33502         (duplocale): In C++, define a namespaced alias symbol.
33503         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33504         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33505         * modules/locale (Depends-on): Add c++defs.
33506         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33507
33508         langinfo: Avoid #define replacements in C++ mode.
33509         * lib/langinfo.in.h: Include c++defs.h.
33510         (nl_langinfo): In C++, define a namespaced alias symbol.
33511         * modules/langinfo (Depends-on): Add c++defs.
33512         (Makefile.am): Update langinfo.h rule.
33513
33514         iconv-h: Avoid #define replacements in C++ mode.
33515         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33516         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33517         symbol.
33518         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33519         whenever iconv is present.
33520         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33521         (Makefile.am): Update iconv.h rule.
33522
33523         glob: Avoid #define replacements in C++ mode.
33524         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33525         (_gl_glob_errfunc_fn): New type.
33526         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33527         symbol.
33528         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33529         (Makefile.am): Update glob.h rule.
33530
33531         fcntl-h: Avoid #define replacements in C++ mode.
33532         * lib/fcntl.in.h: Include c++defs.h.
33533         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33534         * modules/fcntl-h (Depends-on): Add c++defs.
33535         (Makefile.am): Update fcntl.h rule.
33536
33537         dirent: Avoid #define replacements in C++ mode.
33538         * lib/dirent.in.h: Include c++defs.h.
33539         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33540         namespaced alias symbol.
33541         (dirfd): Update declaration.
33542         * modules/dirent (Depends-on): Add c++defs.
33543         (Makefile.am): Update dirent.h rule.
33544
33545         ctype: Make it usable in C++ code.
33546         * lib/ctype.in.h: Include c++defs.h.
33547         (isblank): Declare as extern "C".
33548         * modules/ctype (Depends-on): Add c++defs.
33549         (Makefile.am): Update ctype.h rule.
33550
33551         New module 'c++defs'.
33552         * modules/c++defs: New file.
33553         * build-aux/c++defs.h: New file.
33554         Reported by John W. Eaton <jwe@gnu.org>.
33555
33556 2010-03-07  Bruno Haible  <bruno@clisp.org>
33557
33558         logb: Provide missing declaration for Cygwin.
33559         * lib/math.in.h (logb): New declaration.
33560         * m4/logb.m4: New file.
33561         * modules/logb (Files): Add m4/logb.m4.
33562         (Depends-on): Add math.
33563         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33564         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33566         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33567         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33568
33569 2010-03-07  Bruno Haible  <bruno@clisp.org>
33570
33571         Fix test-cond link error.
33572         * tests/test-cond.c: Include <stdio.h>.
33573
33574 2010-03-07  Bruno Haible  <bruno@clisp.org>
33575
33576         Fix test-dirent-safer link error.
33577         * modules/dirent-safer-tests (Makefile.am): Define
33578         test_dirent_safer_LDADD.
33579
33580 2010-03-07  Bruno Haible  <bruno@clisp.org>
33581
33582         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33583         among default module list.
33584
33585 2010-03-07  Bruno Haible  <bruno@clisp.org>
33586
33587         Fix link error on platforms with GNU libiconv.
33588         * modules/unistr/u8-strcoll-tests (Makefile): Define
33589         test_u8_strcoll_LDADD.
33590         * modules/unistr/u16-strcoll-tests (Makefile): Define
33591         test_u16_strcoll_LDADD.
33592         * modules/unistr/u32-strcoll-tests (Makefile): Define
33593         test_u32_strcoll_LDADD.
33594
33595 2010-03-07  Bruno Haible  <bruno@clisp.org>
33596
33597         Use POSIX declarations for socket functions.
33598         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33599         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33600         rpl_sendto): Change declaration to match POSIX.
33601         * lib/connect.c (rpl_connect): Likewise.
33602         * lib/accept.c (rpl_accept): Likewise.
33603         * lib/bind.c (rpl_bind): Likewise.
33604         * lib/getpeername.c (rpl_getpeername): Likewise.
33605         * lib/getsockname.c (rpl_getsockname): Likewise.
33606         * lib/recv.c (rpl_recv): Likewise.
33607         * lib/send.c (rpl_send): Likewise.
33608         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33609         * lib/sendto.c (rpl_sendto): Likewise.
33610
33611 2010-03-06  Bruno Haible  <bruno@clisp.org>
33612
33613         Clarify access, euidaccess, faccessat.
33614         * doc/posix-functions/faccessat.texi: Mention security problem under
33615         "Other problems", not "Portability problems".
33616         * doc/posix-functions/access.texi: Likewise. Mention a related security
33617         problem.
33618         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33619         * lib/euidaccess.c: Add comments about platforms.
33620         * lib/unistd.in.h (access, euidaccess): Add warnings.
33621
33622 2010-03-07  Bruno Haible  <bruno@clisp.org>
33623
33624         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33625         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33626         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33627         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33628         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33629         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33630         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33631         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33632         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33633         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33634         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33635         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33636         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33637         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33638         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33639         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33640         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33641         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33642         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33643         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33644         Likewise.
33645         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33646         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33647         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33648         Likewise.
33649         * tests/test-spawn.c (main): Make it work when
33650         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33651
33652 2010-03-07  Bruno Haible  <bruno@clisp.org>
33653
33654         Fix incorrect Makefile.am generation in German locale.
33655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33656         Execute sed command with character range in C locale.
33657
33658 2010-03-06  Bruno Haible  <bruno@clisp.org>
33659
33660         Tests for module 'iconv-h'.
33661         * modules/iconv-h-tests: New file.
33662         * tests/test-iconv-h.c: New file.
33663
33664         New module 'iconv-h'.
33665         * modules/iconv-h: New file.
33666         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33667         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33668         (configure.ac): Remove gl_ICONV_H.
33669         (Makefile.am): Remove rule for iconv.h.
33670
33671 2010-03-06  Bruno Haible  <bruno@clisp.org>
33672
33673         More consistent naming of *.m4 files.
33674         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33675         * modules/wctype (Files): Update.
33676
33677         More consistent naming of *.m4 files.
33678         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33679         * modules/wchar (Files): Update.
33680
33681 2010-03-06  Jim Meyering  <meyering@redhat.com>
33682
33683         euidaccess: relax license to LGPLv2+
33684         * modules/euidaccess (License): Relax to LGPLv2+.
33685
33686 2010-03-06  Bruno Haible  <bruno@clisp.org>
33687
33688         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33689         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33690         (Makefile.am): Augment lib_SOURCES instead.
33691
33692 2010-03-04  Jim Meyering  <meyering@redhat.com>
33693
33694         utime: remove obsolete module
33695         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33696         unnecessary for years, and has been marked as obsolete for 10 months.
33697         * modules/utime: Remove file.
33698         * lib/utime.c: Remove file.
33699         * m4/utime.m4: Remove file.
33700         * m4/utimes-null.m4: Remove file.
33701         * doc/posix-functions/utime.texi (utime): Remove reference to
33702         the module.  Move the sole "fixed by gnulib" item into the
33703         "problems not fixed by Gnulib" list.
33704         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33705
33706 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33707
33708         * modules/exit (License): Relax license to LGPLv2+.
33709         (Status): Mark as obsolete.
33710         * NEWS: Mention deprecated 'exit' module.
33711         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33712         of now obsolete 'exit'.
33713
33714 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33715
33716         fts-lgpl: remove unused module
33717         * modules/fts-lgpl: Remove.
33718         * MODULES.html.sh (func_all_modules): Adjust.
33719         * check-module (find_included_lib_files): Adjust.
33720         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33721
33722 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33723
33724         copy-acl: enhance Solaris ACL error handling
33725         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33726         * lib/set-mode-acl.c (qset_acl): Likewise.
33727
33728 2010-03-02  Bruno Haible  <bruno@clisp.org>
33729
33730         spawn: Don't override the system defined values on FreeBSD 8.
33731         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33732         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33733         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33734         if HAVE_POSIX_SPAWN is 1.
33735         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33736
33737 2010-03-01  Bruno Haible  <bruno@clisp.org>
33738
33739         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33740         regarding Automake.
33741
33742 2010-02-25  Bruno Haible  <bruno@clisp.org>
33743
33744         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33745         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33746         setting, not afterwards.
33747         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33748
33749 2010-02-24  Eric Blake  <eblake@redhat.com>
33750
33751         bootstrap, git-version-gen: use timestamp
33752         * build-aux/git-version-gen (scriptversion): Force UTC.
33753         * build-aux/bootstrap (scriptversion): New variable.
33754
33755         bootstrap: allow older git
33756         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33757         older than 1.6.4.  Requested by the libvirt project.
33758
33759 2010-02-23  Eric Blake  <eblake@redhat.com>
33760
33761         warn-on-use: work with old autoconf
33762         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33763         AS_VAR semantics of autoconf 2.60.
33764         Reported by Bruno Haible.
33765
33766         bootstrap: improve some comments
33767         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33768         clarification comments.
33769
33770         gettimeofday: provide correct function
33771         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33772         when replacement is declared, otherwise provide gettimeofday.
33773         Reported by Michael Goffioul.
33774
33775 2010-02-23  Jim Meyering  <meyering@redhat.com>
33776
33777         lib-ignore: relax license to "unlimited", not LGPLv2+
33778         * modules/lib-ignore (License): Relax to "unlimited".
33779
33780 2010-02-23  Jim Meyering  <meyering@redhat.com>
33781
33782         lib-ignore: relax license to LGPLv2+
33783         * modules/lib-ignore (License): Relax to LGPLv2+.
33784
33785 2010-02-22  Eric Blake  <eblake@redhat.com>
33786
33787         lseek: avoid bash 3.2 broken pipe bug
33788         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33789         warning from bash 3.2.
33790         Reported by Ben Pfaff, with analysis from Bruno Haible.
33791
33792         bootstrap: support non-FSF copyright holder
33793         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33794         bootstrap.conf override of COPYRIGHT_HOLDER.
33795         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33796
33797         bootstrap: interoperate with gettext 0.14.1
33798         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33799
33800         bootstrap: allow for alternate submodule location
33801         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33802         hardcoding submodule location.
33803         (gnulib_mk): Allow direct use of Makefile.am.
33804
33805         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33806         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33807         rather than reconfiguring where the submodule points.
33808
33809         gettimeofday: restore support for platforms that lack function
33810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33811         replacement if function is missing.
33812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33813         * modules/sys_time (Makefile.am): Substitute it.
33814         * lib/sys_time.in.h (gettimeofday): Check it.
33815         Reported by Michael Goffioul.
33816
33817 2010-02-21  Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/stdio.in.h (obstack_printf): Fix typo.
33820
33821 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33822
33823         vc-list-files: use bzr ls's -R option
33824         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33825         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33826
33827 2010-02-21  Jim Meyering  <meyering@redhat.com>
33828
33829         init.sh: fix EXEEXT shims to work also for names like test-prog
33830         * tests/init.sh: Re-exec a better shell, when needed.
33831         If the current shell lacks support for posix $(...), an init.sh-using
33832         test will now try to find a shell that supports that.  If EXEEXT is
33833         nonempty, we also require support for hyphen-in-alias-name and shell
33834         substitutions like ${var#glob}.  Failure to find such a shell results
33835         in a skipped test.
33836
33837 2010-02-21  Bruno Haible  <bruno@clisp.org>
33838
33839         Really work around around "broken pipe" error message from bash 3.2.
33840         * gnulib-tool (func_reset_sigpipe): Remove function.
33841         (echo): In bash 3.2, define to a function that uses printf.
33842         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33843
33844 2010-02-20  Bruno Haible  <bruno@clisp.org>
33845
33846         Restore support for automake 1.9.6 with autoconf 2.61.
33847         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33848         Reported by James Youngman <jay@gnu.org>.
33849
33850 2010-02-20  Bruno Haible  <bruno@clisp.org>
33851
33852         Improve *printf warning condition.
33853         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33854         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33855         and the function is overridden due to SIGPIPE emulation.
33856
33857 2010-02-20  Bruno Haible  <bruno@clisp.org>
33858
33859         * lib/stdio.in.h: Tweak comments.
33860
33861 2010-02-19  Bruno Haible  <bruno@clisp.org>
33862
33863         Make it easier to find modules. New gnulib-tool option '--find'.
33864         * gnulib-tool: New option --find.
33865         (func_usage): Document it.
33866         (func_sanitize_modulelist): New function, extracted from
33867         func_all_modules.
33868         (func_all_modules): Invoke it.
33869         * doc/gnulib-tool.texi (Which modules?): New node.
33870
33871 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33872
33873         * lib/sys_select.in.h: Provide select replacement even if
33874         sys/select.h exists on a system, for Interix.
33875
33876 2010-02-18  Jim Meyering  <meyering@redhat.com>
33877
33878         init.sh: don't use $(...) just yet
33879         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33880         to accommodate e.g., Solaris' /bin/sh.
33881
33882 2010-02-17  Bruno Haible  <bruno@clisp.org>
33883
33884         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33885         Reported by Ludovic Courtès <ludo@gnu.org>.
33886
33887 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33888
33889         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33890         linking with -lintl.
33891
33892 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33893
33894         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33895         if not provided by the system's netdb.h.  Reported by
33896         ludo@gnu.org (Ludovic Courtès).
33897
33898 2010-02-15  Jim Meyering  <meyering@redhat.com>
33899
33900         init.sh: improve portability and efficiency
33901         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33902         "dummy" in a for loop.
33903         Use '!', not '^' to select the complement of a character set used
33904         in a "case" statement.
33905         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33906         Suggestions from Eric Blake.
33907
33908         init.sh: automatically accommodate programs with the .exe suffix
33909         Automatically arrange for an invocation of "prog" to execute the
33910         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33911         may use the simpler "prog", yet still work when built on a system
33912         that requires specifying the added suffix.
33913         Do this by constructing a function named "prog" that invokes
33914         "prog.exe" for each .exe file in selected directories.
33915         * tests/init.sh (find_exe_basenames_): New function.
33916         (create_exe_shim_functions_): New function.
33917         (path_prepend_): Use it.
33918
33919         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33920         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33921         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33922
33923 2010-02-14  Jim Meyering  <meyering@redhat.com>
33924
33925         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33926         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33927         (sc_prohibit_hash_pjw_without_use): New rule.
33928
33929         maint.mk: allow the default upload destination dir to be overridden
33930         * top/maint.mk (upload_dest_dir_): Define with a default that
33931         preserves the status quo.
33932         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33933         Reported by Peter Simons.
33934
33935         maint.mk: prohibit inclusion of "hash.h" without_use
33936         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33937
33938 2010-02-10  Jim Meyering  <meyering@redhat.com>
33939
33940         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33941         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33942
33943 2010-02-09  Eric Blake  <ebb9@byu.net>
33944         and Bruno Haible  <bruno@clisp.org>
33945
33946         obstack-printf-posix: ensure declaration
33947         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33948         extracted from gl_FUNC_OBSTACK_PRINTF.
33949         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33950         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33951         Likewise.
33952         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33953         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33954         0.
33955
33956 2010-02-08  Bruno Haible  <bruno@clisp.org>
33957
33958         gnulib-tool: Fix typo in 2010-02-07 commit.
33959         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33960         Reported by Eric Blake.
33961
33962 2010-02-07  Bruno Haible  <bruno@clisp.org>
33963
33964         gnulib-tool: Fix up caching patches.
33965         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33966         option --no-cache. Use associative arrays when supported by the shell.
33967         (sed_comments): New variable.
33968         (modcache): Renamed from do_cache.
33969         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33970         abbreviate unnecessarily.
33971         (have_associative): New variable.
33972         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33973         way also for ksh and zsh.
33974         (func_init_sed_convert_to_cache_statements): New function, extracted
33975         from func_cache_lookup_module. Add support for associative arrays.
33976         Don't set the c_MODULE_cached variable here. Ignore all lines before
33977         the first field header. Remove only the final newline, not all trailing
33978         newlines. Support empty fields correctly. Limit the use of 'eval' to
33979         assignments.
33980         (func_get_description, func_get_status, func_get_notice,
33981         func_get_applicability, func_get_filelist, func_get_dependencies,
33982         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33983         func_get_automake_snippet, func_get_include_directive,
33984         func_get_link_directive, func_get_license, func_get_maintainer):
33985         Update documentation. List the unoptimized code first. Add support for
33986         associative arrays. Limit the use of 'eval' to assignments.
33987         (func_get_applicability): Undo stylistic pessimisations.
33988         (func_get_automake_snippet, func_get_include_directive): Reduce code
33989         duplication.
33990         (func_modules_transitive_closure, func_modules_add_dummy,
33991         func_modules_notice, func_modules_to_filelist, func_add_file,
33992         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33993         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33994         func_create_testdir, func_create_megatestdir): Update documentation.
33995
33996 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33997
33998         * gnulib-tool (func_cache_lookup_module): Store the module name
33999         belonging to the cache variable; error out if two different
34000         module names map to the same cache variable name.
34001
34002 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34003
34004         gnulib-tool: Make caching optional.
34005         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34006         Update matching short versions of --no-changelog.
34007         (func_usage): Update.
34008         (sed_extract_cache_prog): Renamed from ...
34009         (sed_extract_prog): ... this; revert to old extraction script.
34010         (func_get_description, func_get_status)
34011         (func_get_notice, func_get_applicability, func_get_filelist)
34012         (func_get_dependencies, func_get_autoconf_early_snippet)
34013         (func_get_autoconf_snippet, func_get_automake_snippet)
34014         (func_get_include_directive, func_get_link_directive)
34015         (func_get_license, func_get_maintainer): If $do_cache is false,
34016         use old, non-caching extraction scripts.
34017         Suggestion by Bruno Haible.
34018
34019 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34020
34021         gnulib-tool: cache module metainformation.
34022         * gnulib-tool (sed_extract_prog): Match newline before each
34023         header, and rewrite header to a shell variable suffix.
34024         (func_cache_var, func_cache_lookup_module): New functions,
34025         to turn a module name into a cache variable prefix, and to
34026         look up and cache module metainformation.
34027         (func_get_description, func_get_status)
34028         (func_get_notice, func_get_applicability, func_get_filelist)
34029         (func_get_dependencies, func_get_autoconf_early_snippet)
34030         (func_get_autoconf_snippet, func_get_automake_snippet)
34031         (func_get_include_directive, func_get_link_directive)
34032         (func_get_license, func_get_maintainer): Use
34033         func_cache_lookup_module.
34034
34035 2010-02-07  Bruno Haible  <bruno@clisp.org>
34036
34037         fnctl: Fix missing dependency.
34038         * modules/fcntl (Depends-on): Add getdtablesize.
34039         Reported by John W. Eaton <jwe@gnu.org>.
34040
34041 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34042
34043         Argp: fix recognition of short alias options.
34044
34045         * lib/argp-parse.c (convert_options): Fix improper use of
34046         `|' between character values.
34047         * tests/test-argp.c (group1_option): New alias option
34048         --read (-r).
34049         (group1_parser): Special handling for 'r'.
34050         (test15): New test case.
34051         (test_fun): Add test15.
34052         * tests/test-argp-2.sh: Update expected --help and --usage
34053         outputs.
34054
34055 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34056
34057         * tests/test-argp.c: Fix indentation.
34058
34059 2010-02-04  Eric Blake  <ebb9@byu.net>
34060
34061         gettimeofday: expose type of second argument
34062         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34063         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34064         * tests/test-gettimeofday.c: Use it to silence warning.
34065         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34066         the issue.
34067
34068 2010-02-03  Jim Meyering  <meyering@redhat.com>
34069
34070         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34071         * lib/regcomp.c (TYPE_SIGNED): Define.
34072         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34073
34074         regcomp.c: avoid a new -Wshadow warning
34075         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34076
34077 2010-02-01  Jim Meyering  <meyering@redhat.com>
34078
34079         removing useless parentheses in cpp #define directives
34080         For motivation, see commit c0221df4, "define STREQ(a,b)
34081         consistently, removing useless parentheses"
34082         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34083         * lib/mountlist.c (MNT_IGNORE): Likewise.
34084         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34085
34086 2010-02-01  Eric Blake  <ebb9@byu.net>
34087
34088         sys_time: use link-warning
34089         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34090         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34091         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34092         * modules/sys_time (Depends-on): Add warn-on-use.
34093         (Makefile.am): Always build replacement.
34094         (configure.ac): Update substitutions.
34095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34096         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34097         bother with SYS_TIME_H.
34098         * modules/gettimeofday (configure.ac): Declare indicator.
34099         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34100         in use.
34101
34102         closein-tests: silence compiler warning
34103         * tests/test-closein.c (main): Ignore fread result.
34104         * modules/closein-tests (Depends-on): Add ignore-value.
34105
34106         tests: silence warning about system return
34107         * tests/test-areadlink-with-size.c (main): Ignore system result.
34108         * tests/test-areadlink.c (main): Likewise.
34109         * tests/test-areadlinkat-with-size.c (main): Likewise.
34110         * tests/test-areadlinkat.c (main): Likewise.
34111         * tests/test-canonicalize-lgpl.c (main): Likewise.
34112         * tests/test-canonicalize.c (main): Likewise.
34113         * tests/test-chown.c (main): Likewise.
34114         * tests/test-fchownat.c (main): Likewise.
34115         * tests/test-fdutimensat.c (main): Likewise.
34116         * tests/test-fstatat.c (main): Likewise.
34117         * tests/test-futimens.c (main): Likewise.
34118         * tests/test-lchown.c (main): Likewise.
34119         * tests/test-link.c (main): Likewise.
34120         * tests/test-linkat.c (main): Likewise.
34121         * tests/test-lstat.c (main): Likewise.
34122         * tests/test-mkdir.c (main): Likewise.
34123         * tests/test-mkdirat.c (main): Likewise.
34124         * tests/test-mkfifo.c (main): Likewise.
34125         * tests/test-mkfifoat.c (main): Likewise.
34126         * tests/test-mknod.c (main): Likewise.
34127         * tests/test-readlink.c (main): Likewise.
34128         * tests/test-remove.c (main): Likewise.
34129         * tests/test-rename.c (main): Likewise.
34130         * tests/test-renameat.c (main): Likewise.
34131         * tests/test-rmdir.c (main): Likewise.
34132         * tests/test-symlink.c (main): Likewise.
34133         * tests/test-symlinkat.c (main): Likewise.
34134         * tests/test-unlink.c (main): Likewise.
34135         * tests/test-unlinkat.c (main): Likewise.
34136         * tests/test-utimens.c (main): Likewise.
34137         * tests/test-utimensat.c (main): Likewise.
34138         * modules/areadlink-tests (Depends-on): Add ignore-value.
34139         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34140         * modules/areadlinkat-tests (Depends-on): Likewise.
34141         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34142         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34143         * modules/canonicalize-tests (Depends-on): Likewise.
34144         * modules/chown-tests (Depends-on): Likewise.
34145         * modules/fdutimensat-tests (Depends-on): Likewise.
34146         * modules/futimens-tests (Depends-on): Likewise.
34147         * modules/lchown-tests (Depends-on): Likewise.
34148         * modules/link-tests (Depends-on): Likewise.
34149         * modules/linkat-tests (Depends-on): Likewise.
34150         * modules/lstat-tests (Depends-on): Likewise.
34151         * modules/mkdir-tests (Depends-on): Likewise.
34152         * modules/mkfifo-tests (Depends-on): Likewise.
34153         * modules/mkfifoat-tests (Depends-on): Likewise.
34154         * modules/mknod-tests (Depends-on): Likewise.
34155         * modules/openat-tests (Depends-on): Likewise.
34156         * modules/readlink-tests (Depends-on): Likewise.
34157         * modules/remove-tests (Depends-on): Likewise.
34158         * modules/rename-tests (Depends-on): Likewise.
34159         * modules/renameat-tests (Depends-on): Likewise.
34160         * modules/rmdir-tests (Depends-on): Likewise.
34161         * modules/symlink-tests (Depends-on): Likewise.
34162         * modules/symlinkat-tests (Depends-on): Likewise.
34163         * modules/unlink-tests (Depends-on): Likewise.
34164         * modules/utimens-tests (Depends-on): Likewise.
34165         * modules/utimensat-tests (Depends-on): Likewise.
34166
34167 2010-01-31  Bruno Haible  <bruno@clisp.org>
34168
34169         Perform the same test for many <math.h> functions.
34170         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34171         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34172         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34173         of gl_MATHFUNC.
34174         * modules/acos (configure.ac): Likewise.
34175         * modules/asin (configure.ac): Likewise.
34176         * modules/atan (configure.ac): Likewise.
34177         * modules/atan2 (configure.ac): Likewise.
34178         * modules/cbrt (configure.ac): Likewise.
34179         * modules/copysign (configure.ac): Likewise.
34180         * modules/cos (configure.ac): Likewise.
34181         * modules/cosh (configure.ac): Likewise.
34182         * modules/erf (configure.ac): Likewise.
34183         * modules/erfc (configure.ac): Likewise.
34184         * modules/exp (configure.ac): Likewise.
34185         * modules/fmod (configure.ac): Likewise.
34186         * modules/hypot (configure.ac): Likewise.
34187         * modules/j0 (configure.ac): Likewise.
34188         * modules/j1 (configure.ac): Likewise.
34189         * modules/jn (configure.ac): Likewise.
34190         * modules/lgamma (configure.ac): Likewise.
34191         * modules/log (configure.ac): Likewise.
34192         * modules/log10 (configure.ac): Likewise.
34193         * modules/log1p (configure.ac): Likewise.
34194         * modules/pow (configure.ac): Likewise.
34195         * modules/remainder (configure.ac): Likewise.
34196         * modules/sin (configure.ac): Likewise.
34197         * modules/sinh (configure.ac): Likewise.
34198         * modules/tan (configure.ac): Likewise.
34199         * modules/tanh (configure.ac): Likewise.
34200         * modules/y0 (configure.ac): Likewise.
34201         * modules/y1 (configure.ac): Likewise.
34202         * modules/yn (configure.ac): Likewise.
34203         Suggested by Paolo Bonzini.
34204
34205 2010-01-31  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34208
34209 2010-01-31  Bruno Haible  <bruno@clisp.org>
34210
34211         Work around getdelim() bug on FreeBSD 8.0.
34212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34213         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34214         not work.
34215         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34216         is 1.
34217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34218         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34219         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34220         a non-zero size.
34221         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34222
34223 2010-01-31  Bruno Haible  <bruno@clisp.org>
34224
34225         Work around getline() bug on FreeBSD 8.0.
34226         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34227         and a non-zero size.
34228         * tests/test-getline.c (main): Likewise.
34229         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34230         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34231
34232 2010-01-28  Eric Blake  <ebb9@byu.net>
34233
34234         regex: fix build failure
34235         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34236         platforms.
34237
34238 2010-01-28  Jim Meyering  <meyering@redhat.com>
34239
34240         regex: do not ignore memory allocation failure
34241         * lib/regex_internal.c (create_cd_newstate): Detect
34242         re_node_set_init_copy failure.   Extracted from glibc commit
34243         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34244
34245         regex: sync more white-space changes from libc
34246         * lib/regex_internal.c: White-space only changes.
34247         * lib/regexec.c: Likewise.
34248
34249         regex: add many uses of __attribute_warn_unused_result__
34250         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34251         * lib/regexec.c: Likewise.
34252         Extracted from a messy glibc commit.
34253
34254         regcomp.c: spelling and merge-artifact from glibc
34255         * lib/regcomp.c: Merge remainder of glibc's
34256         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34257
34258         regcomp.c: sync white-space changes from glibc
34259         * lib/regcomp.c: Merge to accommodate white space
34260         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34261
34262         regcomp.c: do not ignore internal return values
34263         * lib/regcomp.c: Do not ignore internal return values.
34264         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34265         but without its white-space changes and spelling fixes.
34266
34267         regex_internal.h: define __attribute_warn_unused_result__
34268         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34269
34270         maint: add a syntax-check rule to check for vulnerable Makefile.in
34271         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34272
34273 2010-01-27  Jim Meyering  <meyering@redhat.com>
34274
34275         ncftpput-ftp: clean up spaces
34276         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34277         Remove trailing blanks.
34278
34279 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34280
34281         * build-aux/git-version-gen: Fix copyright statement.
34282         * build-aux/gnupload: Likewise.
34283         * tests/test-arcfour.c: Likewise.
34284         * tests/test-arctwo.c: Likewise.
34285         * tests/test-count-one-bits.c: Likewise.
34286         * tests/test-crc.c: Likewise.
34287         * tests/test-des.c: Likewise.
34288         * tests/test-gc-arcfour.c: Likewise.
34289         * tests/test-gc-arctwo.c: Likewise.
34290         * tests/test-gc-des.c: Likewise.
34291         * tests/test-gc-hmac-md5.c: Likewise.
34292         * tests/test-gc-hmac-sha1.c: Likewise.
34293         * tests/test-gc-md2.c: Likewise.
34294         * tests/test-gc-md4.c: Likewise.
34295         * tests/test-gc-md5.c: Likewise.
34296         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34297         * tests/test-gc-rijndael.c: Likewise.
34298         * tests/test-gc-sha1.c: Likewise.
34299         * tests/test-gc.c: Likewise.
34300         * tests/test-gethostname.c: Likewise.
34301         * tests/test-gettimeofday.c: Likewise.
34302         * tests/test-hash.c: Likewise.
34303         * tests/test-hmac-md5.c: Likewise.
34304         * tests/test-hmac-sha1.c: Likewise.
34305         * tests/test-md2.c: Likewise.
34306         * tests/test-md4.c: Likewise.
34307         * tests/test-md5.c: Likewise.
34308         * tests/test-memchr.c: Likewise.
34309         * tests/test-memchr2.c: Likewise.
34310         * tests/test-memcmp.c: Likewise.
34311         * tests/test-memmem.c: Likewise.
34312         * tests/test-memrchr.c: Likewise.
34313         * tests/test-rawmemchr.c: Likewise.
34314         * tests/test-read-file.c: Likewise.
34315         * tests/test-rijndael.c: Likewise.
34316         * tests/test-sockets.c: Likewise.
34317         * tests/test-strchrnul.c: Likewise.
34318         * tests/test-strstr.c: Likewise.
34319         * tests/test-strtod.c: Likewise.
34320         * build-aux/ncftpput-ftp: Likewise.
34321
34322 2010-01-26  Eric Blake  <ebb9@byu.net>
34323
34324         ignore-value: update recommended header name
34325         * modules/ignore-value (Include): Only use <> for headers that
34326         exist in glibc.
34327
34328 2010-01-26  Jim Meyering  <meyering@redhat.com>
34329
34330         test-userspec.c: avoid compiler warnings
34331         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34332         and "initialization discards qualifiers..." warnings.
34333         Put the first "uid" in its own scope, and make char* members "const".
34334
34335 2010-01-25  Bruno Haible  <bruno@clisp.org>
34336
34337         gnulib-tool: Make warning diagnostics consistent.
34338         * gnulib-tool (func_warning): New function.
34339         Use it everywhere where gnulib-tool produces output to stderr and it is
34340         not a fatal error.
34341
34342 2010-01-25  Bruno Haible  <bruno@clisp.org>
34343
34344         Fix test dependencies.
34345         * modules/xstrtol-tests (Depends-on): Add inttypes.
34346         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34347
34348 2010-01-25 Pádraig Brady <P@draigBrady.com>
34349
34350         syntax-check: detect incorrect boolean macro values in config.h
34351         * modules/maintainer-makefile (configure.ac): Parameterize the location
34352         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34353         The logic is from Eric Blake and the location indicated by Jim Meyering.
34354         Note the more natural CONFIG_HEADER name is prohibited by automake
34355         for backwards compatibility reasons.
34356         * top/maint.mk (sc_Wundef_boolean): New rule.
34357
34358 2010-01-25  Jim Meyering  <meyering@redhat.com>
34359
34360         bootstrap: detect MacOS 10.6's shasum, too
34361         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34362         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34363
34364 2010-01-23  Jim Meyering  <meyering@redhat.com>
34365
34366         xstrtoll: new module
34367         * modules/xstrtoll: New file.
34368         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34369         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34370         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34371         ./configure fails if you use this module and lack "long long".
34372         * modules/xstrtoll-tests: New module.
34373         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34374         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34375         new init.sh-based test framework.
34376
34377 2010-01-24  Bruno Haible  <bruno@clisp.org>
34378
34379         Tests for module 'yn'.
34380         * modules/yn-tests: New file.
34381         * tests/test-yn.c: New file.
34382
34383         Tests for module 'y1'.
34384         * modules/y1-tests: New file.
34385         * tests/test-y1.c: New file.
34386
34387         Tests for module 'y0'.
34388         * modules/y0-tests: New file.
34389         * tests/test-y0.c: New file.
34390
34391         Tests for module 'tanh'.
34392         * modules/tanh-tests: New file.
34393         * tests/test-tanh.c: New file.
34394
34395         Tests for module 'tan'.
34396         * modules/tan-tests: New file.
34397         * tests/test-tan.c: New file.
34398
34399         Tests for module 'sqrt'.
34400         * modules/sqrt-tests: New file.
34401         * tests/test-sqrt.c: New file.
34402
34403         Tests for module 'sinh'.
34404         * modules/sinh-tests: New file.
34405         * tests/test-sinh.c: New file.
34406
34407         Tests for module 'sin'.
34408         * modules/sin-tests: New file.
34409         * tests/test-sin.c: New file.
34410
34411         Tests for module 'rint'.
34412         * modules/rint-tests: New file.
34413         * tests/test-rint.c: New file.
34414
34415         Tests for module 'remainder'.
34416         * modules/remainder-tests: New file.
34417         * tests/test-remainder.c: New file.
34418
34419         Tests for module 'pow'.
34420         * modules/pow-tests: New file.
34421         * tests/test-pow.c: New file.
34422
34423         Tests for module 'nextafter'.
34424         * modules/nextafter-tests: New file.
34425         * tests/test-nextafter.c: New file.
34426
34427         Tests for module 'modf'.
34428         * modules/modf-tests: New file.
34429         * tests/test-modf.c: New file.
34430
34431         Tests for module 'logb'.
34432         * modules/logb-tests: New file.
34433         * tests/test-logb.c: New file.
34434
34435         Tests for module 'log1p'.
34436         * modules/log1p-tests: New file.
34437         * tests/test-log1p.c: New file.
34438
34439         Tests for module 'log10'.
34440         * modules/log10-tests: New file.
34441         * tests/test-log10.c: New file.
34442
34443         Tests for module 'log'.
34444         * modules/log-tests: New file.
34445         * tests/test-log.c: New file.
34446
34447         Tests for module 'lgamma'.
34448         * modules/lgamma-tests: New file.
34449         * tests/test-lgamma.c: New file.
34450
34451         Tests for module 'ldexp'.
34452         * modules/ldexp-tests: New file.
34453         * tests/test-ldexp.c: New file.
34454
34455         Tests for module 'jn'.
34456         * modules/jn-tests: New file.
34457         * tests/test-jn.c: New file.
34458
34459         Tests for module 'j1'.
34460         * modules/j1-tests: New file.
34461         * tests/test-j1.c: New file.
34462
34463         Tests for module 'j0'.
34464         * modules/j0-tests: New file.
34465         * tests/test-j0.c: New file.
34466
34467         Tests for module 'hypot'.
34468         * modules/hypot-tests: New file.
34469         * tests/test-hypot.c: New file.
34470
34471         Tests for module 'fmod'.
34472         * modules/fmod-tests: New file.
34473         * tests/test-fmod.c: New file.
34474
34475         Tests for module 'fabs'.
34476         * modules/fabs-tests: New file.
34477         * tests/test-fabs.c: New file.
34478
34479         Tests for module 'exp'.
34480         * modules/exp-tests: New file.
34481         * tests/test-exp.c: New file.
34482
34483         Tests for module 'erfc'.
34484         * modules/erfc-tests: New file.
34485         * tests/test-erfc.c: New file.
34486
34487         Tests for module 'erf'.
34488         * modules/erf-tests: New file.
34489         * tests/test-erf.c: New file.
34490
34491         Tests for module 'cosh'.
34492         * modules/cosh-tests: New file.
34493         * tests/test-cosh.c: New file.
34494
34495         Tests for module 'cos'.
34496         * modules/cos-tests: New file.
34497         * tests/test-cos.c: New file.
34498
34499         Tests for module 'copysign'.
34500         * modules/copysign-tests: New file.
34501         * tests/test-copysign.c: New file.
34502
34503         Tests for module 'cbrt'.
34504         * modules/cbrt-tests: New file.
34505         * tests/test-cbrt.c: New file.
34506
34507         Tests for module 'atan2'.
34508         * modules/atan2-tests: New file.
34509         * tests/test-atan2.c: New file.
34510
34511         Tests for module 'atan'.
34512         * modules/atan-tests: New file.
34513         * tests/test-atan.c: New file.
34514
34515         Tests for module 'asin'.
34516         * modules/asin-tests: New file.
34517         * tests/test-asin.c: New file.
34518
34519         Tests for module 'acos'.
34520         * modules/acos-tests: New file.
34521         * tests/test-acos.c: New file.
34522
34523 2010-01-24  Bruno Haible  <bruno@clisp.org>
34524
34525         Fix tests for common <math.h> functions.
34526         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34527         code snippet that references the function pointer, rather than merely
34528         calling the function. Substitute the FUNC_LIBM variable.
34529         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34530         * modules/acos (configure.ac): Likewise.
34531         * modules/asin (configure.ac): Likewise.
34532         * modules/atan (configure.ac): Likewise.
34533         * modules/atan2 (configure.ac): Likewise.
34534         * modules/cbrt (configure.ac): Likewise.
34535         * modules/copysign (configure.ac): Likewise.
34536         * modules/cos (configure.ac): Likewise.
34537         * modules/cosh (configure.ac): Likewise.
34538         * modules/erf (configure.ac): Likewise.
34539         * modules/erfc (configure.ac): Likewise.
34540         * modules/exp (configure.ac): Likewise.
34541         * modules/fabs (configure.ac): Likewise.
34542         * modules/fmod (configure.ac): Likewise.
34543         * modules/hypot (configure.ac): Likewise.
34544         * modules/j0 (configure.ac): Likewise.
34545         * modules/j1 (configure.ac): Likewise.
34546         * modules/jn (configure.ac): Likewise.
34547         * modules/ldexp (configure.ac): Likewise.
34548         * modules/lgamma (configure.ac): Likewise.
34549         * modules/log (configure.ac): Likewise.
34550         * modules/log10 (configure.ac): Likewise.
34551         * modules/log1p (configure.ac): Likewise.
34552         * modules/logb (configure.ac): Likewise.
34553         * modules/modf (configure.ac): Likewise.
34554         * modules/nextafter (configure.ac): Likewise.
34555         * modules/pow (configure.ac): Likewise.
34556         * modules/remainder (configure.ac): Likewise.
34557         * modules/rint (configure.ac): Likewise.
34558         * modules/sin (configure.ac): Likewise.
34559         * modules/sinh (configure.ac): Likewise.
34560         * modules/tan (configure.ac): Likewise.
34561         * modules/tanh (configure.ac): Likewise.
34562         * modules/y0 (configure.ac): Likewise.
34563         * modules/y1 (configure.ac): Likewise.
34564         * modules/yn (configure.ac): Likewise.
34565
34566 2010-01-24  Bruno Haible  <bruno@clisp.org>
34567
34568         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34569         * tests/test-acosl.c (x): New variable.
34570         (main): Store argument in x and fetch it from x.
34571         * tests/test-asinl.c (x): New variable.
34572         (main): Store argument in x and fetch it from x.
34573         * tests/test-atanl.c (x): New variable.
34574         (main): Store argument in x and fetch it from x.
34575         * tests/test-cosl.c (x): New variable.
34576         (main): Store argument in x and fetch it from x.
34577         * tests/test-expl.c (x): New variable.
34578         (main): Store argument in x and fetch it from x.
34579         * tests/test-logl.c (x): New variable.
34580         (main): Store argument in x and fetch it from x.
34581         * tests/test-sinl.c (x): New variable.
34582         (main): Store argument in x and fetch it from x.
34583         * tests/test-sqrtl.c (x): New variable.
34584         (main): Store argument in x and fetch it from x.
34585         * tests/test-tanl.c (x): New variable.
34586         (main): Store argument in x and fetch it from x.
34587
34588 2010-01-24  Bruno Haible  <bruno@clisp.org>
34589
34590         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34591         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34592         assignments to the initial TESTS_ENVIRONMENT.
34593         * doc/gnulib.texi (Unit test modules): Document it.
34594         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34595         TESTS_ENVIRONMENT.
34596         * modules/btowc-tests (Makefile.am): Likewise.
34597         * modules/c-stack-tests (Makefile.am): Likewise.
34598         * modules/c-strcase-tests (Makefile.am): Likewise.
34599         * modules/copy-file-tests (Makefile.am): Likewise.
34600         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34601         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34602         * modules/mbrtowc-tests (Makefile.am): Likewise.
34603         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34604         * modules/mbscasestr-tests (Makefile.am): Likewise.
34605         * modules/mbschr-tests (Makefile.am): Likewise.
34606         * modules/mbscspn-tests (Makefile.am): Likewise.
34607         * modules/mbsinit-tests (Makefile.am): Likewise.
34608         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34609         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34610         * modules/mbspbrk-tests (Makefile.am): Likewise.
34611         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34612         * modules/mbsrchr-tests (Makefile.am): Likewise.
34613         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34614         * modules/mbsspn-tests (Makefile.am): Likewise.
34615         * modules/mbsstr-tests (Makefile.am): Likewise.
34616         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34617         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34618         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34619         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34620         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34621         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34622         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34623         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34624         * modules/wcrtomb-tests (Makefile.am): Likewise.
34625         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34626         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34627         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34628         assignments from TESTS_ENVIRONMENT.
34629         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34630         augmentation.
34631         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34632         * modules/atexit-tests (Makefile.am): Likewise.
34633         * modules/binary-io-tests (Makefile.am): Likewise.
34634         * modules/closein-tests (Makefile.am): Likewise.
34635         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34636         * modules/exclude-tests (Makefile.am): Likewise.
34637         * modules/fflush-tests (Makefile.am): Likewise.
34638         * modules/fpending-tests (Makefile.am): Likewise.
34639         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34640         * modules/freadahead-tests (Makefile.am): Likewise.
34641         * modules/freadptr-tests (Makefile.am): Likewise.
34642         * modules/freadseek-tests (Makefile.am): Likewise.
34643         * modules/fseek-tests (Makefile.am): Likewise.
34644         * modules/fseeko-tests (Makefile.am): Likewise.
34645         * modules/ftell-tests (Makefile.am): Likewise.
34646         * modules/ftello-tests (Makefile.am): Likewise.
34647         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34648         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34649         * modules/lseek-tests (Makefile.am): Likewise.
34650         * modules/parse-duration-tests (Makefile.am): Likewise.
34651         * modules/perror-tests (Makefile.am): Likewise.
34652         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34653         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34654         * modules/pipe-tests (Makefile.am): Likewise.
34655         * modules/pread-tests (Makefile.am): Likewise.
34656         * modules/printf-posix-tests (Makefile.am): Likewise.
34657         * modules/select-tests (Makefile.am): Likewise.
34658         * modules/sigpipe-tests (Makefile.am): Likewise.
34659         * modules/tsearch-tests (Makefile.am): Likewise.
34660         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34661         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34662         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34663         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34664         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34665         * modules/version-etc-tests (Makefile.am): Likewise.
34666         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34667         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34668         * modules/xalloc-die-tests (Makefile.am): Likewise.
34669         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34670         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34671         * modules/xstrtol-tests (Makefile.am): Likewise.
34672         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34673         * modules/yesno-tests (Makefile.am): Likewise.
34674         Suggested by Jim Meyering.
34675
34676 2010-01-24  Bruno Haible  <bruno@clisp.org>
34677
34678         More documentation.
34679         * doc/gnulib.texi (Writing modules): New chapter.
34680         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34681         the new chapter.
34682
34683 2010-01-24  Jim Meyering  <meyering@redhat.com>
34684
34685         maint.mk: do not prepend "./" after filtering
34686         * top/maint.mk (_prepend_srcdir_prefix): New variable
34687         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34688         "./" when $(srcdir) is ".".
34689
34690         define STREQ(a,b) consistently, removing useless parentheses
34691         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34692         since the only risk is that "a" or "b" contains an unparenthesized
34693         comma, but if either did that, STREQ would have 3 or more arguments.
34694         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34695         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34696         * lib/hash-triple.c (STREQ): Likewise.
34697         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34698         * lib/getugroups.c (STREQ): Likewise.
34699
34700 2010-01-23  Jim Meyering  <meyering@redhat.com>
34701
34702         maint.mk: fix syntax-check in a non-srcdir build directory
34703         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34704         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34705
34706 2010-01-22  Jim Meyering  <meyering@redhat.com>
34707
34708         userspec: add unit tests
34709         * tests/test-userspec.c: New file.
34710         * modules/userspec-tests: Likewise.
34711
34712 2010-01-21  Jim Meyering  <meyering@redhat.com>
34713
34714         maint.mk: handle source file names containing "." robustly
34715         * top/maint.mk (_dot_escaped_srcdir): Define.
34716         (VC_LIST): Use it in LHS of sed substitution.
34717
34718 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34719
34720         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34721         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34722         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34723         from a non-srcdir build.
34724
34725 2010-01-20  Eric Blake  <ebb9@byu.net>
34726
34727         warn-on-use: use instead of link-warning
34728         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34729         * modules/unistd (Depends-on, Makefile.am): Likewise.
34730         * modules/arpa_inet (Depends-on): Replace link-warning with
34731         warn-on-use.
34732         (Makefile.am): Update rules accordingly.
34733         * modules/ctype (Depends-on, Makefile.am): Likewise.
34734         * modules/dirent (Depends-on, Makefile.am): Likewise.
34735         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34736         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34737         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34738         * modules/locale (Depends-on, Makefile.am): Likewise.
34739         * modules/math (Depends-on, Makefile.am): Likewise.
34740         * modules/search (Depends-on, Makefile.am): Likewise.
34741         * modules/signal (Depends-on, Makefile.am): Likewise.
34742         * modules/spawn (Depends-on, Makefile.am): Likewise.
34743         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34744         * modules/string (Depends-on, Makefile.am): Likewise.
34745         * modules/strings (Depends-on, Makefile.am): Likewise.
34746         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34747         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34748         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34749         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34750         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34751         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34752         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34753         * modules/wchar (Depends-on, Makefile.am): Likewise.
34754         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34755         should be poisoned.
34756         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34757         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34758         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34759         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34760         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34761         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34762         * m4/math_h.m4 (gl_MATH_H): Likewise.
34763         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34764         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34765         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34766         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34767         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34768         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34769         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34770         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34771         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34777         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34778         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34779         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34780         GL_LINK_WARNING.
34781         * lib/ctype.in.h: Likewise.
34782         * lib/dirent.in.h: Likewise.
34783         * lib/fcntl.in.h: Likewise.
34784         * lib/inttypes.in.h: Likewise.
34785         * lib/langinfo.in.h: Likewise.
34786         * lib/locale.in.h: Likewise.
34787         * lib/math.in.h: Likewise.
34788         * lib/search.in.h: Likewise.
34789         * lib/signal.in.h: Likewise.
34790         * lib/spawn.in.h: Likewise.
34791         * lib/stdio.in.h: Likewise.
34792         * lib/stdlib.in.h: Likewise.
34793         * lib/string.in.h: Likewise.
34794         * lib/strings.in.h: Likewise.
34795         * lib/sys_file.in.h: Likewise.
34796         * lib/sys_ioctl.in.h: Likewise.
34797         * lib/sys_select.in.h: Likewise.
34798         * lib/sys_socket.in.h: Likewise.
34799         * lib/sys_stat.in.h: Likewise.
34800         * lib/sys_times.in.h: Likewise.
34801         * lib/sys_utsname.in.h: Likewise.
34802         * lib/unistd.in.h: Likewise.
34803         * lib/wchar.in.h: Likewise.
34804
34805 2010-01-20  Bruno Haible  <bruno@clisp.org>
34806
34807         Avoid duplicate -lm.
34808         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34809         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34810         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34812         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34813         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34814         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34815         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34816         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34817         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34818         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34819         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34820         Reported by Paolo Bonzini.
34821
34822 2010-01-19  Bruno Haible  <bruno@clisp.org>
34823
34824         langinfo, nl_langinfo: Relicense under LGPLv2+.
34825         * modules/langinfo (License): Change to LGPLv2+.
34826         * modules/nl_langinfo (License): Likewise.
34827         Patch by David Lutterkort <lutter@redhat.com>.
34828
34829 2010-01-19  Bruno Haible  <bruno@clisp.org>
34830
34831         Avoid compilation error with cc on OSF/1 5.1.
34832         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34833         statement, not before.
34834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34835
34836 2010-01-18  Bruno Haible  <bruno@clisp.org>
34837
34838         Avoid a link error due to the __printf__ symbol.
34839         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34840         and 2.6.x.
34841         (__format__, __printf__): Remove definitions.
34842         * lib/argp-fmtstream.h: Likewise.
34843         * lib/argp.h: Likewise.
34844         * lib/error.h: Likewise.
34845         * lib/vasnprintf.h: Likewise.
34846         * lib/xprintf.h: Likewise.
34847         * lib/xvasprintf.h: Likewise.
34848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34849
34850 2010-01-18  Bruno Haible  <bruno@clisp.org>
34851
34852         Tests for module 'tanl'.
34853         * modules/tanl-tests: New file.
34854         * tests/test-tanl.c: New file.
34855
34856         Tests for module 'sqrtl'.
34857         * modules/sqrtl-tests: New file.
34858         * tests/test-sqrtl.c: New file.
34859
34860         Tests for module 'sinl'.
34861         * modules/sinl-tests: New file.
34862         * tests/test-sinl.c: New file.
34863
34864         Tests for module 'logl'.
34865         * modules/logl-tests: New file.
34866         * tests/test-logl.c: New file.
34867
34868         Tests for module 'expl'.
34869         * modules/expl-tests: New file.
34870         * tests/test-expl.c: New file.
34871
34872         Tests for module 'cosl'.
34873         * modules/cosl-tests: New file.
34874         * tests/test-cosl.c: New file.
34875
34876         Tests for module 'atanl'.
34877         * modules/atanl-tests: New file.
34878         * tests/test-atanl.c: New file.
34879
34880         Tests for module 'asinl'.
34881         * modules/asinl-tests: New file.
34882         * tests/test-asinl.c: New file.
34883
34884         Tests for module 'acosl'.
34885         * modules/acosl-tests: New file.
34886         * tests/test-acosl.c: New file.
34887
34888         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34889         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34890         tanl): Use the standard gnulib idiom.
34891         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34892         * lib/sinl.c: Likewise.
34893         * lib/tanl.c: Don't include trigl.c.
34894         (kernel_tanl): Make static.
34895         * lib/sincosl.c: Include trigl.h first.
34896         * lib/trigl.c: Likewise.
34897         * m4/acosl.m4: New file.
34898         * m4/asinl.m4: New file.
34899         * m4/atanl.m4: New file.
34900         * m4/cosl.m4: New file.
34901         * m4/expl.m4: New file.
34902         * m4/logl.m4: New file.
34903         * m4/sinl.m4: New file.
34904         * m4/sqrtl.m4: New file.
34905         * m4/tanl.m4: New file.
34906         * m4/mathl.m4: Remove file.
34907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34908         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34909         Don't initialize GNULIB_MATHL.
34910         * modules/acosl: New file.
34911         * modules/asinl: New file.
34912         * modules/atanl: New file.
34913         * modules/cosl: New file.
34914         * modules/expl: New file.
34915         * modules/logl: New file.
34916         * modules/sinl: New file.
34917         * modules/sqrtl: New file.
34918         * modules/tanl: New file.
34919         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34920         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34921         substitute GNULIB_MATHL.
34922         * modules/mathl: Rewritten.
34923         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34924         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34925         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34926         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34927         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34928         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34929         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34930         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34931         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34932
34933 2010-01-18  Bruno Haible  <bruno@clisp.org>
34934
34935         sqrt: Make gl_FUNC_SQRT requirable.
34936         * m4/sqrt.m4: New file.
34937         * modules/sqrt (Files): Add it.
34938         (configure.ac): Invoke gl_FUNC_SQRT.
34939
34940 2010-01-18  Bruno Haible  <bruno@clisp.org>
34941
34942         New modules for common <math.h> functions.
34943         * m4/mathfunc.m4: New file.
34944         * modules/acos: New file.
34945         * modules/asin: New file.
34946         * modules/atan: New file.
34947         * modules/atan2: New file.
34948         * modules/cbrt: New file.
34949         * modules/copysign: New file.
34950         * modules/cos: New file.
34951         * modules/cosh: New file.
34952         * modules/erf: New file.
34953         * modules/erfc: New file.
34954         * modules/exp: New file.
34955         * modules/fabs: New file.
34956         * modules/fmod: New file.
34957         * modules/hypot: New file.
34958         * modules/j0: New file.
34959         * modules/j1: New file.
34960         * modules/jn: New file.
34961         * modules/ldexp: New file.
34962         * modules/lgamma: New file.
34963         * modules/log: New file.
34964         * modules/log10: New file.
34965         * modules/log1p: New file.
34966         * modules/logb: New file.
34967         * modules/modf: New file.
34968         * modules/nextafter: New file.
34969         * modules/pow: New file.
34970         * modules/remainder: New file.
34971         * modules/rint: New file.
34972         * modules/sin: New file.
34973         * modules/sinh: New file.
34974         * modules/sqrt: New file.
34975         * modules/tan: New file.
34976         * modules/tanh: New file.
34977         * modules/y0: New file.
34978         * modules/y1: New file.
34979         * modules/yn: New file.
34980         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34981         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34982         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34983         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34984         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34985         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34986         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34987         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34988         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34989         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34990         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34991         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34992         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34993         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34994         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34995         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34996         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34997         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34998         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34999         * doc/posix-functions/log.texi: Mention the 'log' module.
35000         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35001         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35002         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35003         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35004         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35005         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35006         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35007         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35008         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35009         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35010         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35011         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35012         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35013         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35014         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35015         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35016
35017 2010-01-18  Jim Meyering  <meyering@redhat.com>
35018
35019         ignore-value: relax license to LGPLv2+
35020         * modules/ignore-value (License): Relax to LGPLv2+.
35021
35022         getdate: don't leak when TZ contains two or more '"'s
35023         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35024         double quote in TZ after the first one.
35025
35026         readtokens: do not leak internal token_lengths buffer
35027         * lib/readtokens.c (readtokens): Free the local, lengths,
35028         when the supplied "token_lengths" parameter is NULL.
35029
35030 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35031
35032         Fix a couple of missing LIBTHREAD link failures on AIX.
35033         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35034         $(LIBTHREAD).
35035         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35036
35037         Link test-poll against INET_PTON_LIB.
35038         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35039         for inet_pton on Solaris 10.
35040
35041 2010-01-17  Bruno Haible  <bruno@clisp.org>
35042
35043         unistdio/*-sprintf: Fix typo in module description.
35044         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35045         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35046         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35047         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35048         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35049         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35050         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35052
35053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35054
35055         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35056         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35057         variables in shell case patterns, for AIX and HP-UX ksh.
35058
35059         Split large sed scripts, for HP-UX sed.
35060         * modules/stdio: Split sed scripts around 50 sed commands,
35061         to avoid HP-UX limit of 99 commands, in the near future.
35062         * modules/string: Likewise.
35063         * modules/unistd: Likewise.
35064
35065         gnulib-tool: avoid writing in the current directory.
35066         * gnulib-tool (func_emit_lib_Makefile_am)
35067         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35068         not in the current directory, so concurrent gnulib-tool
35069         instances do not interfere.
35070
35071 2010-01-16  Jim Meyering  <meyering@redhat.com>
35072
35073         doc: update users.txt
35074         * users.txt: Add grep.
35075         (diffutils, gzip): Update URLs.
35076
35077 2010-01-12  Bruno Haible  <bruno@clisp.org>
35078
35079         posix_spawn: Avoid test failure on Cygwin.
35080         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35081         characters.
35082         Reported by Simon Josefsson.
35083
35084 2010-01-12  Bruno Haible  <bruno@clisp.org>
35085
35086         * tests/test-cond.c (main): When skipping the test, show the reason.
35087
35088 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35089
35090         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35091
35092 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35093
35094         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35095         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35096
35097 2010-01-12  Eric Blake  <ebb9@byu.net>
35098
35099         build: guarantee AS_VAR_IF
35100         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35101         (gl_AS_VAR_IF): Move...
35102         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35103         Reported by Simon Josefsson.
35104
35105 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35106
35107         * lib/stdio.in.h: Fix typo.
35108
35109 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35110
35111         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35112         libgpg-error.
35113
35114 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35115
35116         * tests/test-xalloc-die.sh: Use $EXEEXT.
35117
35118 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35119             Bruno Haible  <bruno@clisp.org>
35120
35121         getlogin, getlogin_r: Avoid test failure.
35122         * tests/test-getlogin.c: Include <stdio.h>.
35123         (main): Skip the test when the function fails because stdin is not a
35124         tty.
35125         * tests/test-getlogin_r.c: Include <stdio.h>.
35126         (main): Skip the test when the function fails because stdin is not a
35127         tty.
35128
35129 2010-01-11  Eric Blake  <ebb9@byu.net>
35130
35131         tests: avoid more large file warnings
35132         * tests/test-fflush.c: Avoid warning about ftell use.
35133         * tests/test-fseek.c: Avoid warning about fseek use.
35134
35135 2010-01-10  Bruno Haible  <bruno@clisp.org>
35136
35137         nproc: Work better on Linux when /proc and /sys are not mounted.
35138         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35139         as lower bound when, on glibc/Linux systems,
35140         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35141         Suggested by Pádraig Brady <P@draigbrady.com>.
35142         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35143
35144         nproc: Refactor.
35145         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35146         extracted from num_processors.
35147         (num_processors): Call it.
35148
35149 2010-01-11  Jim Meyering  <meyering@redhat.com>
35150
35151         utimecmp: avoid new warning from upcoming gcc-4.5.0
35152         * lib/utimecmp.c (BILLION): Define using #define rather than an
35153         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35154
35155 2010-01-11  Eric Blake  <ebb9@byu.net>
35156
35157         math: add portability warnings for classification macros
35158         * modules/math (Depends-on): Add warn-on-use.
35159         (Makefile.am): Provide new substitutions.
35160         * m4/math_h.m4 (gl_MATH_H): Require inline.
35161         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35162         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35163         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35164         implement warnings.
35165
35166         unistd: warn on use of environ without module
35167         * modules/unistd (Depends-on): Add warn-on-use.
35168         (Makefile.am): Provide new substitutions.
35169         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35170         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35171
35172         stdio: warn on suspicious uses
35173         * modules/stdio (Depends-on): Add warn-on-use.
35174         (Makefile.am): Provide new substitutions.
35175         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35176         fseeko.
35177         * lib/stdio.in.h (gets): Always warn on use.
35178         (fseek, ftell): Adjust when warnings are issued, and honor
35179         _GL_NO_LARGE_FILES as a way to silence the warning.
35180         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35181         any warning about large file offsets.
35182         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35183         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35184         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35185         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35186         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35187         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35188         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35189         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35190
35191         warn-on-use: new module
35192         * modules/warn-on-use: New file.
35193         * build-aux/warn-on-use.h: Likewise.
35194         * m4/warn-on-use.m4: Likewise.
35195         * MODULES.html.sh (Support for building): Mention it.
35196
35197 2010-01-10  Bruno Haible  <bruno@clisp.org>
35198
35199         Tests for module 'unistr/u32-strdup'.
35200         * modules/unistr/u32-strdup-tests: New file.
35201         * tests/unistr/test-u32-strdup.c: New file.
35202
35203         Tests for module 'unistr/u16-strdup'.
35204         * modules/unistr/u16-strdup-tests: New file.
35205         * tests/unistr/test-u16-strdup.c: New file.
35206
35207         Tests for module 'unistr/u8-strdup'.
35208         * modules/unistr/u8-strdup-tests: New file.
35209         * tests/unistr/test-u8-strdup.c: New file.
35210         * tests/unistr/test-strdup.h: New file.
35211
35212         Tests for module 'unistr/u32-strncmp'.
35213         * modules/unistr/u32-strncmp-tests: New file.
35214         * tests/unistr/test-u32-strncmp.c: New file.
35215
35216         Tests for module 'unistr/u16-strncmp'.
35217         * modules/unistr/u16-strncmp-tests: New file.
35218         * tests/unistr/test-u16-strncmp.c: New file.
35219
35220         Tests for module 'unistr/u8-strncmp'.
35221         * modules/unistr/u8-strncmp-tests: New file.
35222         * tests/unistr/test-u8-strncmp.c: New file.
35223         * tests/unistr/test-strncmp.h: New file.
35224
35225         Tests for module 'unistr/u32-strcoll'.
35226         * modules/unistr/u32-strcoll-tests: New file.
35227         * tests/unistr/test-u32-strcoll.c: New file.
35228
35229         Tests for module 'unistr/u16-strcoll'.
35230         * modules/unistr/u16-strcoll-tests: New file.
35231         * tests/unistr/test-u16-strcoll.c: New file.
35232
35233         Tests for module 'unistr/u8-strcoll'.
35234         * modules/unistr/u8-strcoll-tests: New file.
35235         * tests/unistr/test-u8-strcoll.c: New file.
35236
35237         Tests for module 'unistr/u32-strcmp'.
35238         * modules/unistr/u32-strcmp-tests: New file.
35239         * tests/unistr/test-u32-strcmp.c: New file.
35240         * tests/unistr/test-u32-strcmp.h: New file.
35241
35242         Tests for module 'unistr/u16-strcmp'.
35243         * modules/unistr/u16-strcmp-tests: New file.
35244         * tests/unistr/test-u16-strcmp.c: New file.
35245         * tests/unistr/test-u16-strcmp.h: New file.
35246
35247         Tests for module 'unistr/u8-strcmp'.
35248         * modules/unistr/u8-strcmp-tests: New file.
35249         * tests/unistr/test-u8-strcmp.c: New file.
35250         * tests/unistr/test-u8-strcmp.h: New file.
35251         * tests/unistr/test-strcmp.h: New file.
35252
35253         Tests for module 'unistr/u32-strncat'.
35254         * modules/unistr/u32-strncat-tests: New file.
35255         * tests/unistr/test-u32-strncat.c: New file.
35256
35257         Tests for module 'unistr/u16-strncat'.
35258         * modules/unistr/u16-strncat-tests: New file.
35259         * tests/unistr/test-u16-strncat.c: New file.
35260
35261         Tests for module 'unistr/u8-strncat'.
35262         * modules/unistr/u8-strncat-tests: New file.
35263         * tests/unistr/test-u8-strncat.c: New file.
35264         * tests/unistr/test-strncat.h: New file.
35265
35266         Tests for module 'unistr/u32-strcat'.
35267         * modules/unistr/u32-strcat-tests: New file.
35268         * tests/unistr/test-u32-strcat.c: New file.
35269
35270         Tests for module 'unistr/u16-strcat'.
35271         * modules/unistr/u16-strcat-tests: New file.
35272         * tests/unistr/test-u16-strcat.c: New file.
35273
35274         Tests for module 'unistr/u8-strcat'.
35275         * modules/unistr/u8-strcat-tests: New file.
35276         * tests/unistr/test-u8-strcat.c: New file.
35277         * tests/unistr/test-strcat.h: New file.
35278
35279         Tests for module 'unistr/u32-stpncpy'.
35280         * modules/unistr/u32-stpncpy-tests: New file.
35281         * tests/unistr/test-u32-stpncpy.c: New file.
35282
35283         Tests for module 'unistr/u16-stpncpy'.
35284         * modules/unistr/u16-stpncpy-tests: New file.
35285         * tests/unistr/test-u16-stpncpy.c: New file.
35286
35287         Tests for module 'unistr/u8-stpncpy'.
35288         * modules/unistr/u8-stpncpy-tests: New file.
35289         * tests/unistr/test-u8-stpncpy.c: New file.
35290         * tests/unistr/test-stpncpy.h: New file.
35291
35292         Tests for module 'unistr/u32-strncpy'.
35293         * modules/unistr/u32-strncpy-tests: New file.
35294         * tests/unistr/test-u32-strncpy.c: New file.
35295
35296         Tests for module 'unistr/u16-strncpy'.
35297         * modules/unistr/u16-strncpy-tests: New file.
35298         * tests/unistr/test-u16-strncpy.c: New file.
35299
35300         Tests for module 'unistr/u8-strncpy'.
35301         * modules/unistr/u8-strncpy-tests: New file.
35302         * tests/unistr/test-u8-strncpy.c: New file.
35303         * tests/unistr/test-strncpy.h: New file.
35304
35305         Tests for module 'unistr/u32-stpcpy'.
35306         * modules/unistr/u32-stpcpy-tests: New file.
35307         * tests/unistr/test-u32-stpcpy.c: New file.
35308
35309         Tests for module 'unistr/u16-stpcpy'.
35310         * modules/unistr/u16-stpcpy-tests: New file.
35311         * tests/unistr/test-u16-stpcpy.c: New file.
35312
35313         Tests for module 'unistr/u8-stpcpy'.
35314         * modules/unistr/u8-stpcpy-tests: New file.
35315         * tests/unistr/test-u8-stpcpy.c: New file.
35316         * tests/unistr/test-stpcpy.h: New file.
35317
35318         Tests for module 'unistr/u32-strcpy'.
35319         * modules/unistr/u32-strcpy-tests: New file.
35320         * tests/unistr/test-u32-strcpy.c: New file.
35321
35322         Tests for module 'unistr/u16-strcpy'.
35323         * modules/unistr/u16-strcpy-tests: New file.
35324         * tests/unistr/test-u16-strcpy.c: New file.
35325
35326         Tests for module 'unistr/u8-strcpy'.
35327         * modules/unistr/u8-strcpy-tests: New file.
35328         * tests/unistr/test-u8-strcpy.c: New file.
35329         * tests/unistr/test-strcpy.h: New file.
35330
35331         Tests for module 'unistr/u32-strnlen'.
35332         * modules/unistr/u32-strnlen-tests: New file.
35333         * tests/unistr/test-u32-strnlen.c: New file.
35334
35335         Tests for module 'unistr/u16-strnlen'.
35336         * modules/unistr/u16-strnlen-tests: New file.
35337         * tests/unistr/test-u16-strnlen.c: New file.
35338
35339         Tests for module 'unistr/u8-strnlen'.
35340         * modules/unistr/u8-strnlen-tests: New file.
35341         * tests/unistr/test-u8-strnlen.c: New file.
35342         * tests/unistr/test-strnlen.h: New file.
35343
35344         Tests for module 'unistr/u32-strlen'.
35345         * modules/unistr/u32-strlen-tests: New file.
35346         * tests/unistr/test-u32-strlen.c: New file.
35347
35348         Tests for module 'unistr/u16-strlen'.
35349         * modules/unistr/u16-strlen-tests: New file.
35350         * tests/unistr/test-u16-strlen.c: New file.
35351
35352         Tests for module 'unistr/u8-strlen'.
35353         * modules/unistr/u8-strlen-tests: New file.
35354         * tests/unistr/test-u8-strlen.c: New file.
35355
35356         Tests for module 'unistr/u32-prev'.
35357         * modules/unistr/u32-prev-tests: New file.
35358         * tests/unistr/test-u32-prev.c: New file.
35359
35360         Tests for module 'unistr/u16-prev'.
35361         * modules/unistr/u16-prev-tests: New file.
35362         * tests/unistr/test-u16-prev.c: New file.
35363
35364         Tests for module 'unistr/u8-prev'.
35365         * modules/unistr/u8-prev-tests: New file.
35366         * tests/unistr/test-u8-prev.c: New file.
35367
35368         Tests for module 'unistr/u32-next'.
35369         * modules/unistr/u32-next-tests: New file.
35370         * tests/unistr/test-u32-next.c: New file.
35371
35372         Tests for module 'unistr/u16-next'.
35373         * modules/unistr/u16-next-tests: New file.
35374         * tests/unistr/test-u16-next.c: New file.
35375
35376         Tests for module 'unistr/u8-next'.
35377         * modules/unistr/u8-next-tests: New file.
35378         * tests/unistr/test-u8-next.c: New file.
35379
35380         Tests for module 'unistr/u32-strmbtouc'.
35381         * modules/unistr/u32-strmbtouc-tests: New file.
35382         * tests/unistr/test-u32-strmbtouc.c: New file.
35383
35384         Tests for module 'unistr/u16-strmbtouc'.
35385         * modules/unistr/u16-strmbtouc-tests: New file.
35386         * tests/unistr/test-u16-strmbtouc.c: New file.
35387
35388         Tests for module 'unistr/u8-strmbtouc'.
35389         * modules/unistr/u8-strmbtouc-tests: New file.
35390         * tests/unistr/test-u8-strmbtouc.c: New file.
35391
35392         Tests for module 'unistr/u32-strmblen'.
35393         * modules/unistr/u32-strmblen-tests: New file.
35394         * tests/unistr/test-u32-strmblen.c: New file.
35395
35396         Tests for module 'unistr/u16-strmblen'.
35397         * modules/unistr/u16-strmblen-tests: New file.
35398         * tests/unistr/test-u16-strmblen.c: New file.
35399
35400         Tests for module 'unistr/u8-strmblen'.
35401         * modules/unistr/u8-strmblen-tests: New file.
35402         * tests/unistr/test-u8-strmblen.c: New file.
35403
35404         Tests for module 'unistr/u32-cpy-alloc'.
35405         * modules/unistr/u32-cpy-alloc-tests: New file.
35406         * tests/unistr/test-u32-cpy-alloc.c: New file.
35407
35408         Tests for module 'unistr/u16-cpy-alloc'.
35409         * modules/unistr/u16-cpy-alloc-tests: New file.
35410         * tests/unistr/test-u16-cpy-alloc.c: New file.
35411
35412         Tests for module 'unistr/u8-cpy-alloc'.
35413         * modules/unistr/u8-cpy-alloc-tests: New file.
35414         * tests/unistr/test-u8-cpy-alloc.c: New file.
35415         * tests/unistr/test-cpy-alloc.h: New file.
35416
35417         Tests for module 'unistr/u32-mbsnlen'.
35418         * modules/unistr/u32-mbsnlen-tests: New file.
35419         * tests/unistr/test-u32-mbsnlen.c: New file.
35420
35421         Tests for module 'unistr/u16-mbsnlen'.
35422         * modules/unistr/u16-mbsnlen-tests: New file.
35423         * tests/unistr/test-u16-mbsnlen.c: New file.
35424
35425         Tests for module 'unistr/u8-mbsnlen'.
35426         * modules/unistr/u8-mbsnlen-tests: New file.
35427         * tests/unistr/test-u8-mbsnlen.c: New file.
35428
35429         Tests for module 'unistr/u32-chr'.
35430         * modules/unistr/u32-chr-tests: New file.
35431         * tests/unistr/test-u32-chr.c: New file.
35432
35433         Tests for module 'unistr/u16-chr'.
35434         * modules/unistr/u16-chr-tests: New file.
35435         * tests/unistr/test-u16-chr.c: New file.
35436
35437         Tests for module 'unistr/u8-chr'.
35438         * modules/unistr/u8-chr-tests: New file.
35439         * tests/unistr/test-u8-chr.c: New file.
35440         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35441
35442         Tests for module 'unistr/u32-cmp2'.
35443         * modules/unistr/u32-cmp2-tests: New file.
35444         * tests/unistr/test-u32-cmp2.c: New file.
35445
35446         Tests for module 'unistr/u16-cmp2'.
35447         * modules/unistr/u16-cmp2-tests: New file.
35448         * tests/unistr/test-u16-cmp2.c: New file.
35449
35450         Tests for module 'unistr/u8-cmp2'.
35451         * modules/unistr/u8-cmp2-tests: New file.
35452         * tests/unistr/test-u8-cmp2.c: New file.
35453         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35454
35455         Tests for module 'unistr/u32-cmp'.
35456         * modules/unistr/u32-cmp-tests: New file.
35457         * tests/unistr/test-u32-cmp.c: New file.
35458
35459         Tests for module 'unistr/u16-cmp'.
35460         * modules/unistr/u16-cmp-tests: New file.
35461         * tests/unistr/test-u16-cmp.c: New file.
35462
35463         Tests for module 'unistr/u8-cmp'.
35464         * modules/unistr/u8-cmp-tests: New file.
35465         * tests/unistr/test-u8-cmp.c: New file.
35466         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35467
35468         Tests for module 'unistr/u32-set'.
35469         * modules/unistr/u32-set-tests: New file.
35470         * tests/unistr/test-u32-set.c: New file.
35471
35472         Tests for module 'unistr/u16-set'.
35473         * modules/unistr/u16-set-tests: New file.
35474         * tests/unistr/test-u16-set.c: New file.
35475
35476         Tests for module 'unistr/u8-set'.
35477         * modules/unistr/u8-set-tests: New file.
35478         * tests/unistr/test-u8-set.c: New file.
35479         * tests/unistr/test-set.h: New file.
35480
35481         Tests for module 'unistr/u32-move'.
35482         * modules/unistr/u32-move-tests: New file.
35483         * tests/unistr/test-u32-move.c: New file.
35484
35485         Tests for module 'unistr/u16-move'.
35486         * modules/unistr/u16-move-tests: New file.
35487         * tests/unistr/test-u16-move.c: New file.
35488
35489         Tests for module 'unistr/u8-move'.
35490         * modules/unistr/u8-move-tests: New file.
35491         * tests/unistr/test-u8-move.c: New file.
35492         * tests/unistr/test-move.h: New file.
35493
35494         Tests for module 'unistr/u32-cpy'.
35495         * modules/unistr/u32-cpy-tests: New file.
35496         * tests/unistr/test-u32-cpy.c: New file.
35497
35498         Tests for module 'unistr/u16-cpy'.
35499         * modules/unistr/u16-cpy-tests: New file.
35500         * tests/unistr/test-u16-cpy.c: New file.
35501
35502         Tests for module 'unistr/u8-cpy'.
35503         * modules/unistr/u8-cpy-tests: New file.
35504         * tests/unistr/test-u8-cpy.c: New file.
35505         * tests/unistr/test-cpy.h: New file.
35506
35507 2010-01-09  Bruno Haible  <bruno@clisp.org>
35508
35509         Tests for module 'unistr/u32-uctomb'.
35510         * modules/unistr/u32-uctomb-tests: New file.
35511         * tests/unistr/test-u32-uctomb.c: New file.
35512
35513         Tests for module 'unistr/u16-uctomb'.
35514         * modules/unistr/u16-uctomb-tests: New file.
35515         * tests/unistr/test-u16-uctomb.c: New file.
35516
35517         Tests for module 'unistr/u8-uctomb'.
35518         * modules/unistr/u8-uctomb-tests: New file.
35519         * tests/unistr/test-u8-uctomb.c: New file.
35520
35521         Tests for module 'unistr/u32-mbtoucr'.
35522         * modules/unistr/u32-mbtoucr-tests: New file.
35523         * tests/unistr/test-u32-mbtoucr.c: New file.
35524
35525         Tests for module 'unistr/u16-mbtoucr'.
35526         * modules/unistr/u16-mbtoucr-tests: New file.
35527         * tests/unistr/test-u16-mbtoucr.c: New file.
35528
35529         Tests for module 'unistr/u8-mbtoucr'.
35530         * modules/unistr/u8-mbtoucr-tests: New file.
35531         * tests/unistr/test-u8-mbtoucr.c: New file.
35532
35533         Tests for module 'unistr/u32-mbtouc'.
35534         * modules/unistr/u32-mbtouc-tests: New file.
35535         * tests/unistr/test-u32-mbtouc.c: New file.
35536
35537         Tests for module 'unistr/u16-mbtouc'.
35538         * modules/unistr/u16-mbtouc-tests: New file.
35539         * tests/unistr/test-u16-mbtouc.c: New file.
35540
35541         Tests for module 'unistr/u8-mbtouc'.
35542         * modules/unistr/u8-mbtouc-tests: New file.
35543         * tests/unistr/test-u8-mbtouc.c: New file.
35544
35545         Tests for module 'unistr/u32-mbtouc-unsafe'.
35546         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35547         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35548         * tests/unistr/test-u32-mbtouc.h: New file.
35549
35550         Tests for module 'unistr/u16-mbtouc-unsafe'.
35551         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35552         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35553         * tests/unistr/test-u16-mbtouc.h: New file.
35554
35555         Tests for module 'unistr/u8-mbtouc-unsafe'.
35556         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35557         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35558         * tests/unistr/test-u8-mbtouc.h: New file.
35559
35560         Tests for module 'unistr/u32-mblen'.
35561         * modules/unistr/u32-mblen-tests: New file.
35562         * tests/unistr/test-u32-mblen.c: New file.
35563
35564         Tests for module 'unistr/u16-mblen'.
35565         * modules/unistr/u16-mblen-tests: New file.
35566         * tests/unistr/test-u16-mblen.c: New file.
35567
35568         Tests for module 'unistr/u8-mblen'.
35569         * modules/unistr/u8-mblen-tests: New file.
35570         * tests/unistr/test-u8-mblen.c: New file.
35571
35572         Tests for module 'unistr/u32-to-u16'.
35573         * modules/unistr/u32-to-u16-tests: New file.
35574         * tests/unistr/test-u32-to-u16.c: New file.
35575
35576         Tests for module 'unistr/u32-to-u8'.
35577         * modules/unistr/u32-to-u8-tests: New file.
35578         * tests/unistr/test-u32-to-u8.c: New file.
35579
35580         Tests for module 'unistr/u16-to-u32'.
35581         * modules/unistr/u16-to-u32-tests: New file.
35582         * tests/unistr/test-u16-to-u32.c: New file.
35583
35584         Tests for module 'unistr/u16-to-u8'.
35585         * modules/unistr/u16-to-u8-tests: New file.
35586         * tests/unistr/test-u16-to-u8.c: New file.
35587
35588         Tests for module 'unistr/u8-to-u32'.
35589         * modules/unistr/u8-to-u32-tests: New file.
35590         * tests/unistr/test-u8-to-u32.c: New file.
35591
35592         Tests for module 'unistr/u8-to-u16'.
35593         * modules/unistr/u8-to-u16-tests: New file.
35594         * tests/unistr/test-u8-to-u16.c: New file.
35595
35596         Tests for module 'unistr/u32-check'.
35597         * modules/unistr/u32-check-tests: New file.
35598         * tests/unistr/test-u32-check.c: New file.
35599
35600         Tests for module 'unistr/u16-check'.
35601         * modules/unistr/u16-check-tests: New file.
35602         * tests/unistr/test-u16-check.c: New file.
35603
35604         Tests for module 'unistr/u8-check'.
35605         * modules/unistr/u8-check-tests: New file.
35606         * tests/unistr/test-u8-check.c: New file.
35607
35608         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35609         (category_equals): New function.
35610         (main): Add more tests.
35611         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35612
35613         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35614
35615 2010-01-10  Bruno Haible  <bruno@clisp.org>
35616
35617         unistr/u*-strcoll: Try harder to distinguish different strings.
35618         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35619         compare s1 and s2 to see if they are different.
35620
35621 2010-01-10  Bruno Haible  <bruno@clisp.org>
35622
35623         unistr/u*-stpncpy: Fix the return value.
35624         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35625         description of the return value consistent with stpncpy in glibc.
35626         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35627         written non-NUL unit.
35628
35629 2010-01-10  Bruno Haible  <bruno@clisp.org>
35630
35631         unistr/u*-next: Add missing dependencies.
35632         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35633         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35634         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35635
35636 2010-01-10  Bruno Haible  <bruno@clisp.org>
35637
35638         unistr/u8-mbsnlen: Fix return value for incomplete character.
35639         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35640         u8_mblen.
35641         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35642         Remove unistr/u8-mblen.
35643         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35644         u16_mblen.
35645         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35646         Remove unistr/u16-mblen.
35647
35648 2010-01-10  Bruno Haible  <bruno@clisp.org>
35649
35650         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35651         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35652         Reported by Brian Gough <bjg@gnu.org> and
35653         Chris Clayton <chris2553@googlemail.com> via
35654         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35655
35656 2010-01-09  Bruno Haible  <bruno@clisp.org>
35657
35658         unistr/u16-to-u32: Reject invalid input.
35659         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35660         u16_mbtouc.
35661         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35662         Remove unistr/u16-mbtouc.
35663
35664         unistr/u16-to-u8: Reject invalid input.
35665         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35666         u16_mbtouc.
35667         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35668         Remove unistr/u16-mbtouc.
35669
35670         unistr/u8-to-u32: Reject invalid input.
35671         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35672         u8_mbtouc.
35673         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35674         Remove unistr/u8-mbtouc.
35675
35676         unistr/u8-to-u16: Reject invalid input.
35677         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35678         u8_mbtouc.
35679         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35680         Remove unistr/u8-mbtouc.
35681
35682 2010-01-09  Bruno Haible  <bruno@clisp.org>
35683
35684         Tests for module 'getlogin'.
35685         * modules/getlogin-tests: New file.
35686         * tests/test-getlogin.c: New file.
35687
35688         New module 'getlogin'.
35689         * lib/unistd.in.h (getlogin): New declaration.
35690         * lib/getlogin.c: New file.
35691         * m4/getlogin.m4: New file.
35692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35693         HAVE_GETLOGIN.
35694         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35695         HAVE_GETLOGIN.
35696         * modules/getlogin: New file.
35697         * doc/posix-functions/getlogin.texi: Mention the new module.
35698         Reported by John W. Eaton <jwe@gnu.org>.
35699
35700 2010-01-09  Bruno Haible  <bruno@clisp.org>
35701
35702         getlogin_r: Support for native Windows.
35703         * lib/getlogin_r.c: Include <windows.h>
35704         (getlogin_r): Implement for native Windows.
35705         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35706         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35707         via John W. Eaton <jwe@gnu.org>.
35708
35709 2010-01-09  Bruno Haible  <bruno@clisp.org>
35710
35711         getlogin_r: Small fixes.
35712         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35713         succeeds.
35714         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35715         before testing whether getlogin_r is declared. No need to set
35716         HAVE_DECL_GETLOGIN_R to 1.
35717         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35718
35719 2010-01-09  Bruno Haible  <bruno@clisp.org>
35720
35721         * lib/unistd.in.h (getlogin_r): Add comment.
35722
35723 2010-01-09  Bruno Haible  <bruno@clisp.org>
35724
35725         Tests for module 'getlogin_r'.
35726         * modules/getlogin_r-tests: New file.
35727         * tests/test-getlogin_r.c: New file.
35728
35729 2010-01-09  Jim Meyering  <meyering@redhat.com>
35730
35731         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35732         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35733         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35734
35735 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35736
35737         * lib/dup2.c (rpl_dup2): Improve comment.
35738
35739 2010-01-08  Eric Blake  <ebb9@byu.net>
35740
35741         maint.mk: allow packages to add makefile @@ exceptions
35742         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35743         (sc_makefile_check): Rename...
35744         (sc_makefile_at_at_check): ...to this, and use hook.
35745
35746         dup2: work around mingw bug
35747         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35748         Reported by Simon Josefsson.
35749
35750 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35751
35752         glob: Fix C++ compilation.
35753         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35754         C++.
35755
35756 2010-01-07  Bruno Haible  <bruno@clisp.org>
35757
35758         Fix indentation of wctype.in.h, broken since 2007-01-06.
35759         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35760
35761 2010-01-07  Bruno Haible  <bruno@clisp.org>
35762
35763         mbslen: Avoid collision with system function.
35764         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35765         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35766         * m4/mbslen.m4: New file.
35767         * modules/mbslen (Files): Add it.
35768         (configure.ac): Invoke gl_MBSLEN.
35769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35770         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35771         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35772         via Ian Beckwith <ianb@erislabs.net>.
35773
35774 2010-01-07  Bruno Haible  <bruno@clisp.org>
35775
35776         dirent: Document the last fix.
35777         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35778
35779 2010-01-07  Bruno Haible  <bruno@clisp.org>
35780
35781         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35782         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35783         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35784         va_list are defined.
35785         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35786         Reported by Eric Blake.
35787
35788 2010-01-07  Bruno Haible  <bruno@clisp.org>
35789
35790         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35791         * modules/xlist (Depends-on): Add 'list',
35792         * modules/xoset (Depends-on): Add 'oset'.
35793         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35794
35795 2010-01-07  Bruno Haible  <bruno@clisp.org>
35796
35797         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35798         * doc/posix-functions/strncasecmp.texi: Likewise.
35799
35800 2010-01-07  Bruno Haible  <bruno@clisp.org>
35801
35802         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35803
35804 2010-01-07  John W. Eaton  <jwe@octave.org>
35805
35806         wctype: allow C++ use
35807         * lib/wctype.in.h: Add extern "C" block for C++.
35808
35809 2010-01-06  Eric Blake  <ebb9@byu.net>
35810
35811         maint.mk: detect incorrect GFDL usage
35812         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35813
35814 2010-01-06  Jim Meyering  <meyering@redhat.com>
35815         and Eric Blake  <ebb9@byu.net>
35816
35817         maint.mk: ignore multi-line copyright in NEWS
35818         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35819
35820 2010-01-06  Eric Blake  <ebb9@byu.net>
35821
35822         select: add missing dependency
35823         * modules/select-tests (Depends-on): Move sockets dependency...
35824         * modules/select (Depends-on): ...here.
35825         Reported by Ian Beckwith.
35826
35827         doc: regenerate INSTALL
35828         * doc/INSTALL: Reflect recent autoconf update.
35829         * doc/INSTALL.ISO: Likewise.
35830         * doc/INSTALL.UTF-8: Likewise.
35831
35832         pread: fix compilation on glibc
35833         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35834         Reported by Ralf Wildenhues.
35835
35836         dirent: fix test failure
35837         * lib/dirent.in.h (includes): Guarantee ino_t.
35838         Reported by Ralf Wildenhues.
35839
35840 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35841
35842         linkat, renameat: avoid bad free
35843         * lib/at-func2.c (at_func2): Fix typo.
35844         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35845
35846 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35847
35848         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35849         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35850         to avoid failure of symlink test later.
35851
35852 2010-01-06  Eric Blake  <ebb9@byu.net>
35853
35854         stdio, unistd: guarantee ssize_t
35855         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35856         2008 are exposed when needed.
35857         * lib/stdio.in.h (includes): Likewise.
35858         Reported by Ralf Wildenhues.
35859
35860 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35861
35862         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35863         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35864         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35865
35866 2010-01-06  Jim Meyering  <meyering@redhat.com>
35867
35868         readtokens: this module *does* require xalloc.h
35869         It uses only functions that were omitted by the old syntax-check rule.
35870         * lib/readtokens.c: Include "xalloc.h" once again.
35871         * modules/readtokens (Depends-on): Add xalloc.
35872         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35873
35874 2010-01-05  Eric Blake  <ebb9@byu.net>
35875
35876         maint: support 'make announcement' from a VPATH build
35877         * top/maint.mk (announcement): Look for correct NEWS file.
35878
35879 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35880
35881         utimens (fdutimens): ignore a negative FD, per contract
35882         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35883         when we have a valid file descriptor.  Otherwise, using a brand
35884         new glibc (with just-patched futimens that now fails with EBADF)
35885         would cause this function to fail with ENOSYS.
35886         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35887         See also http://bugzilla.redhat.com/552320.
35888
35889 2010-01-05  Eric Blake  <ebb9@byu.net>
35890
35891         strcase: document what it provides
35892         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35893         gnulib module.
35894         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35895         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35896
35897 2010-01-05  Jim Meyering  <meyering@redhat.com>
35898
35899         maint: remove useless inclusions of "xalloc.h"
35900         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35901         * lib/readtokens.c: Likewise.
35902         * lib/same.c: Likewise.
35903         * modules/getloadavg (Depends-on): Remove xalloc.
35904         * modules/readtokens: Likewise.
35905         * modules/same: Likewise.
35906
35907         maint.mk: include 4 more function names in alloca.h-checking regexp
35908         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35909         regexp.  Before, we would give a false-positive (saying alloca.h
35910         is included unnecessarily) when the only uses involved omitted symbols.
35911
35912         xalloc.h: use consistent formatting
35913         * lib/xalloc.h: Move declarations to start in the first column.
35914
35915 2010-01-05  Eric Blake  <ebb9@byu.net>
35916
35917         mkdir: avoid xalloc
35918         * lib/mkdir.c (includes): Drop unused header.
35919         Reported by John W. Eaton.
35920
35921 2010-01-04  Jim Meyering  <meyering@redhat.com>
35922
35923         nl_langinfo: avoid configure-time syntax error
35924         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35925         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35926         the empty string.  Don't let that provoke a shell syntax error.
35927
35928         regcomp, regexec, fnmatch: avoid array bounds read error
35929         * lib/regcomp.c (build_equiv_class): From glibc:
35930         Use only the low 24 bits of a findidx return value as an index
35931         into the weights array.  Patch by Ulrich Drepper:
35932         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35933         * lib/regexec.c (check_node_accept_bytes): Likewise.
35934         * lib/fnmatch_loop.c (FCT): Likewise.
35935
35936         regcomp: skip collseq lookup when there are no rules
35937         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35938         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35939
35940         regcomp: recognize ill-formed { } expressions
35941         * lib/regcomp.c (parse_dup_op): From glibc:
35942         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35943
35944         regcomp: fix typo in comment
35945         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35946         s/satisfy/satisfies/.
35947
35948         regcomp: sync from glibc: remove dead store
35949         * lib/regcomp.c (duplicate_node_closure): Remove useless
35950         search_duplicated_node call and dead store.
35951
35952         regcomp: sync from glibc; always use nl_langinfo
35953         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35954         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35955         * modules/regex (Depends-on): Add nl_langinfo.
35956
35957 2010-01-04  Eric Blake  <ebb9@byu.net>
35958
35959         fdopendir: fix configure test
35960         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35961
35962 2010-01-01  Bruno Haible  <bruno@clisp.org>
35963
35964         wchar: Remove unused configure check.
35965         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35966
35967 2010-01-01  Eric Blake  <ebb9@byu.net>
35968
35969         headers: make check of system header explicit
35970         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35971         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35972         ourselves.
35973         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35976         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35977         internals.
35978         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35979         missing.
35980         Suggested by Bruno Haible.
35981
35982 2010-01-01  Jim Meyering  <meyering@redhat.com>
35983
35984         ChangeLog: tweak to eliminate unnecessary copyright line
35985         * ChangeLog: Remove a copyright line that was mistakenly updated
35986         by today's update-copyright run.  Reported by Eric Blake.
35987
35988         test-update-copyright: don't let envvar setting cause test failure
35989         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35990
35991 2010-01-01  Bruno Haible  <bruno@clisp.org>
35992
35993         localename: Avoid gcc warning.
35994         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35995         function if it is not used.
35996
35997 2010-01-01  Jim Meyering  <meyering@redhat.com>
35998
35999         update nearly all FSF copyright year lists to include 2010
36000         Use the same procedure as for 2009, outlined in
36001         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36002
36003         version-etc: set COPYRIGHT_YEAR to 2010
36004         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36005
36006 2009-12-31  Eric Blake  <ebb9@byu.net>
36007
36008         doc: correct availability of cygwin 1.5.x getopt
36009         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36010         variables.
36011         * doc/posix-functions/opterr.texi (opterr): Likewise.
36012         * doc/posix-functions/optind.texi (optind): Likewise.
36013         * doc/posix-functions/optopt.texi (optopt): Likewise.
36014         * doc/posix-functions/tzname.texi (tzname): Likewise.
36015
36016         openat: update maintainer
36017         * modules/openat (Maintainer): Add myself.
36018
36019         utimens: avoid shadowing warning
36020         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36021         buffers into one, to avoid shadowing, as well as avoiding a
36022         redundant stat.
36023         Reported by Jim Meyering.
36024
36025         test-dup2: avoid compiler warning
36026         * tests/test-dup2.c (is_inheritable): Only define if used.
36027
36028 2010-01-01  Bruno Haible  <bruno@clisp.org>
36029
36030         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36031         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36032         defined, use wctomb instead of wcrtomb.
36033
36034 2010-01-01  Bruno Haible  <bruno@clisp.org>
36035
36036         iconv: Reject native Solaris iconv.
36037         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36038         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36039
36040 2009-12-31  Bruno Haible  <bruno@clisp.org>
36041
36042         * tests/test-signal.c (main): Remove test of 'SIG'.
36043
36044 2009-12-31  Bruno Haible  <bruno@clisp.org>
36045
36046         spawn: Fix incomplete fix.
36047         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36048         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36049         warnings for GNULIB_POSIXCHECK again.
36050         Reported by Eric Blake.
36051
36052 2009-12-31  Bruno Haible  <bruno@clisp.org>
36053
36054         Avoid namespace pollution on glibc systems.
36055         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36056         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36057         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36058         glibc systems.
36059
36060 2009-12-31  Bruno Haible  <bruno@clisp.org>
36061
36062         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36063         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36064         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36065         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36066         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36067         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36068         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36069
36070 2009-12-31  Bruno Haible  <bruno@clisp.org>
36071
36072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36073         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36074         afterwards.
36075
36076 2009-12-31  Bruno Haible  <bruno@clisp.org>
36077
36078         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36079         SYS_UTSNAME_H.
36080
36081 2009-12-31  Bruno Haible  <bruno@clisp.org>
36082
36083         spawn: Fix misapplied patch.
36084         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36085         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36086         warnings for GNULIB_POSIXCHECK.
36087
36088 2009-12-31  Bruno Haible  <bruno@clisp.org>
36089
36090         times: Update after sys_times changed.
36091         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36092         * modules/times (Files): Add it.
36093         (configure.ac): Invoke gl_FUNC_TIMES.
36094
36095 2009-12-31  Bruno Haible  <bruno@clisp.org>
36096
36097         Use AC_C_INLINE where necessary.
36098         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36099         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36100         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36101         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36102         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36103         * m4/mbiter.m4 (gl_MBITER): Likewise.
36104         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36105         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36106         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36107         * modules/u64 (configure.ac): Likewise.
36108
36109 2009-12-31  Bruno Haible  <bruno@clisp.org>
36110
36111         Use AC_C_INLINE instead of module 'inline' where possible.
36112         * modules/inline (Description): Clarify purpose.
36113         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36114         * modules/count-one-bits (Depends-on): Remove inline.
36115         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36116         * modules/openat (Depends-on): Remove inline.
36117         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36118         instead of depending on module 'inline'.
36119         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36120         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36121         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36122         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36123         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36124         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36125         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36126         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36127         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36128         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36129         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36130         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36131         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36132         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36133         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36134         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36135         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36136         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36137         Likewise.
36138         * modules/unictype/property-ascii-hex-digit (Depends-on,
36139         configure.ac): Likewise.
36140         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36141         configure.ac): Likewise.
36142         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36143         configure.ac): Likewise.
36144         * modules/unictype/property-bidi-block-separator (Depends-on,
36145         configure.ac): Likewise.
36146         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36147         configure.ac): Likewise.
36148         * modules/unictype/property-bidi-common-separator (Depends-on,
36149         configure.ac): Likewise.
36150         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36151         Likewise.
36152         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36153         configure.ac): Likewise.
36154         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36155         configure.ac): Likewise.
36156         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36157         configure.ac): Likewise.
36158         * modules/unictype/property-bidi-european-digit (Depends-on,
36159         configure.ac): Likewise.
36160         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36161         configure.ac): Likewise.
36162         * modules/unictype/property-bidi-left-to-right (Depends-on,
36163         configure.ac): Likewise.
36164         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36165         configure.ac): Likewise.
36166         * modules/unictype/property-bidi-other-neutral (Depends-on,
36167         configure.ac): Likewise.
36168         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36169         Likewise.
36170         * modules/unictype/property-bidi-segment-separator (Depends-on,
36171         configure.ac): Likewise.
36172         * modules/unictype/property-bidi-whitespace (Depends-on,
36173         configure.ac): Likewise.
36174         * modules/unictype/property-combining (Depends-on, configure.ac):
36175         Likewise.
36176         * modules/unictype/property-composite (Depends-on, configure.ac):
36177         Likewise.
36178         * modules/unictype/property-currency-symbol (Depends-on,
36179         configure.ac): Likewise.
36180         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36181         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36182         Likewise.
36183         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36184         configure.ac): Likewise.
36185         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36186         Likewise.
36187         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36188         Likewise.
36189         * modules/unictype/property-extender (Depends-on, configure.ac):
36190         Likewise.
36191         * modules/unictype/property-format-control (Depends-on, configure.ac):
36192         Likewise.
36193         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36194         Likewise.
36195         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36196         Likewise.
36197         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36198         Likewise.
36199         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36200         Likewise.
36201         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36202         Likewise.
36203         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36204         Likewise.
36205         * modules/unictype/property-id-start (Depends-on, configure.ac):
36206         Likewise.
36207         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36208         Likewise.
36209         * modules/unictype/property-ids-binary-operator (Depends-on,
36210         configure.ac): Likewise.
36211         * modules/unictype/property-ids-trinary-operator (Depends-on,
36212         configure.ac): Likewise.
36213         * modules/unictype/property-ignorable-control (Depends-on,
36214         configure.ac): Likewise.
36215         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36216         Likewise.
36217         * modules/unictype/property-join-control (Depends-on, configure.ac):
36218         Likewise.
36219         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36220         Likewise.
36221         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36222         Likewise.
36223         * modules/unictype/property-logical-order-exception (Depends-on,
36224         configure.ac): Likewise.
36225         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36226         Likewise.
36227         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36228         * modules/unictype/property-non-break (Depends-on, configure.ac):
36229         Likewise.
36230         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36231         Likewise.
36232         * modules/unictype/property-numeric (Depends-on, configure.ac):
36233         Likewise.
36234         * modules/unictype/property-other-alphabetic (Depends-on,
36235         configure.ac): Likewise.
36236         * modules/unictype/property-other-default-ignorable-code-point
36237         (Depends-on, configure.ac): Likewise.
36238         * modules/unictype/property-other-grapheme-extend (Depends-on,
36239         configure.ac): Likewise.
36240         * modules/unictype/property-other-id-continue (Depends-on,
36241         configure.ac): Likewise.
36242         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36243         Likewise.
36244         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36245         Likewise.
36246         * modules/unictype/property-other-math (Depends-on, configure.ac):
36247         Likewise.
36248         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36249         Likewise.
36250         * modules/unictype/property-paired-punctuation (Depends-on,
36251         configure.ac): Likewise.
36252         * modules/unictype/property-paragraph-separator (Depends-on,
36253         configure.ac): Likewise.
36254         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36255         Likewise.
36256         * modules/unictype/property-pattern-white-space (Depends-on,
36257         configure.ac): Likewise.
36258         * modules/unictype/property-private-use (Depends-on, configure.ac):
36259         Likewise.
36260         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36261         Likewise.
36262         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36263         Likewise.
36264         * modules/unictype/property-radical (Depends-on, configure.ac):
36265         Likewise.
36266         * modules/unictype/property-sentence-terminal (Depends-on,
36267         configure.ac): Likewise.
36268         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36269         Likewise.
36270         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36271         * modules/unictype/property-terminal-punctuation (Depends-on,
36272         configure.ac): Likewise.
36273         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36274         Likewise.
36275         * modules/unictype/property-unassigned-code-value (Depends-on,
36276         configure.ac): Likewise.
36277         * modules/unictype/property-unified-ideograph (Depends-on,
36278         configure.ac): Likewise.
36279         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36280         Likewise.
36281         * modules/unictype/property-variation-selector (Depends-on,
36282         configure.ac): Likewise.
36283         * modules/unictype/property-white-space (Depends-on, configure.ac):
36284         Likewise.
36285         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36286         Likewise.
36287         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36288         Likewise.
36289         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36290         Likewise.
36291         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36292         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36293         Likewise.
36294
36295 2009-12-31  Bruno Haible  <bruno@clisp.org>
36296
36297         Remove unnecessary AC_C_INLINE invocation.
36298         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36299         since 2009-08-21.
36300
36301 2009-12-31  Jim Meyering  <meyering@redhat.com>
36302
36303         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36304         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36305         With this change, we can all remove the gpg_key_ID = ... definition
36306         from our respective cfg.mk files.
36307
36308         maint.mk: create announcement template in ~/, not in /tmp
36309         * top/maint.mk (emit_upload_commands): Adjust.
36310         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36311         Remove temporary file, .ci-msg.
36312
36313 2009-12-31  Eric Blake  <ebb9@byu.net>
36314
36315         link-warning: always build headers with link warnings
36316         * modules/arpa_inet (Makefile.am): Always build replacement
36317         header.
36318         * modules/ctype (Makefile.am): Likewise.
36319         * modules/dirent (Makefile.am): Likewise.
36320         * modules/inttypes (Makefile.am): Likewise.
36321         * modules/langinfo (Makefile.am): Likewise.
36322         * modules/locale (Makefile.am): Likewise.
36323         * modules/spawn (Makefile.am): Likewise.
36324         * modules/sys_file (Makefile.am): Likewise.
36325         * modules/sys_ioctl (Makefile.am): Likewise.
36326         * modules/sys_select (Makefile.am): Likewise.
36327         * modules/sys_socket (Makefile.am): Likewise.
36328         * modules/sys_times (Makefile.am): Likewise.
36329         * modules/sys_utsname (Makefile.am): Likewise.
36330         * modules/sys_wait (Makefile.am): Likewise.
36331         * modules/wchar (Makefile.am): Likewise.
36332         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36333         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36334         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36335         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36336         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36337         Likewise.
36338         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36339         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36341         Likewise.
36342         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36343         Likewise.
36344         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36346         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36348         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36349         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36350         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36351         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36352         (gl_WCHAR_H_DEFAULTS): Likewise.
36353
36354 2009-12-31  Eric Blake  <ebb9@byu.net>
36355
36356         signal, spawn: use link warnings
36357         * lib/signal.in.h (sigset_t): Make unconditional.
36358         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36359         (sigpending, sigprocmask, sigaction): Add link warnings.
36360         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36361         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36362         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36363         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36364         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36365         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36366         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36367         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36368         (posix_spawn_file_actions_destroy)
36369         (posix_spawn_file_actions_addopen)
36370         (posix_spawn_file_actions_addclose)
36371         (posix_spawn_file_actions_adddup2): Likewise.
36372         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36373         * tests/test-signal.c (main): Enhance test.
36374
36375         spawn: improve wrapper support
36376         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36377         (gl_SPAWN_H_DEFAULTS): New defaults.
36378         * modules/spawn (Makefile.am): Substitute them.
36379         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36380         Only declare if missing or broken.
36381
36382         sys_times, sys_utsname: use include_next
36383         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36384         header.
36385         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36387         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36388         * modules/sys_times (Depends-on): Add include_next.
36389         (Makefile.am): Substitute additional values.
36390         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36391         * lib/sys_times.in.h (includes): Include native header, if
36392         available.
36393         * lib/sys_utsname.in.h (includes): Likewise.
36394         * tests/test-sys_times.c (main): Enhance test.
36395
36396         fdutimensat: revert prior patch
36397         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36398         utimens.h.
36399         Reported by Bruno Haible.
36400
36401 2009-12-30  Eric Blake  <ebb9@byu.net>
36402
36403         sys_wait: drop link-warning dependency
36404         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36405         link-warning efforts.
36406         * lib/sys_wait.in.h: Likewise.
36407
36408         fdutimensat: remove bogus dependency
36409         * modules/fdutimensat (Depends-on): Drop inline.
36410
36411         unistd: fix typo
36412         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36413
36414 2009-12-30  Bruno Haible  <bruno@clisp.org>
36415
36416         Fix compilation error with Solaris cc.
36417         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36418         * lib/unicase/u16-is-invariant.c: Likewise.
36419         * lib/unicase/u32-is-invariant.c: Likewise.
36420         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36421
36422 2009-12-30  Bruno Haible  <bruno@clisp.org>
36423
36424         Fix test crash.
36425         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36426         locales.
36427         Reported by Simon Josefsson <simon@josefsson.org>.
36428
36429 2009-12-30  Bruno Haible  <bruno@clisp.org>
36430
36431         Fix compilation error on most platforms.
36432         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36433         Reported by Simon Josefsson <simon@josefsson.org>
36434         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36435
36436 2009-12-30  Eric Blake  <ebb9@byu.net>
36437
36438         futimens, utimensat: work around ntfs-3g bug
36439         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36440         a ctime bug is present, and expand workaround to cover ntfs-3g.
36441         * lib/utimens.c (fdutimens, lutimens): Likewise.
36442         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36443         (validate_timespec): Adjust return value.
36444         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36445         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36446         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36447
36448 2009-12-29  Eric Blake  <ebb9@byu.net>
36449
36450         link-warning: make usage consistent
36451         * modules/ctype (Depends-on): Add link-warning.
36452         (Makefile.am): Update rules accordingly.
36453         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36454         * modules/locale (Depends-on, Makefile.am): Likewise.
36455         * modules/sys_file (Makefile.am): Likewise.
36456         * modules/getopt-posix (Makefile.am): Delete unused link warning
36457         efforts.
36458         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36459         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36460         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36461         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36462
36463         stdio: remove unused variables
36464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36466         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36467
36468         tests: test more substitute headers
36469         * modules/ctype-tests: New file.
36470         * modules/dirent-tests: Likewise.
36471         * modules/spawn-tests: Likewise.
36472         * modules/sys_file-tests: Likewise.
36473         * modules/sys_ioctl-tests: Likewise.
36474         * modules/sys_wait-tests: Likewise.
36475         * tests/test-ctype.c: Likewise.
36476         * tests/test-dirent.c: Likewise.
36477         * tests/test-spawn.c: Likewise.
36478         * tests/test-sys_file.c: Likewise.
36479         * tests/test-sys_ioctl.c: Likewise.
36480         * tests/test-sys_wait.c: Likewise.
36481         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36482         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36483         whether or not flock is in use.
36484
36485         tests: remove License section from module
36486         * modules/arpa_inet-tests: Remove unneeded section.
36487         * modules/byteswap-tests: Likewise.
36488         * modules/ceilf-tests: Likewise.
36489         * modules/ceill-tests: Likewise.
36490         * modules/crypto/des-tests: Likewise.
36491         * modules/crypto/gc-arcfour-tests: Likewise.
36492         * modules/crypto/gc-arctwo-tests: Likewise.
36493         * modules/crypto/gc-des-tests: Likewise.
36494         * modules/crypto/gc-hmac-md5-tests: Likewise.
36495         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36496         * modules/crypto/gc-md2-tests: Likewise.
36497         * modules/crypto/gc-md4-tests: Likewise.
36498         * modules/crypto/gc-md5-tests: Likewise.
36499         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36500         * modules/crypto/gc-rijndael-tests: Likewise.
36501         * modules/crypto/gc-sha1-tests: Likewise.
36502         * modules/crypto/gc-tests: Likewise.
36503         * modules/crypto/md2-tests: Likewise.
36504         * modules/crypto/md4-tests: Likewise.
36505         * modules/fcntl-h-tests: Likewise.
36506         * modules/floorf-tests: Likewise.
36507         * modules/floorl-tests: Likewise.
36508         * modules/frexp-nolibm-tests: Likewise.
36509         * modules/frexp-tests: Likewise.
36510         * modules/frexpl-nolibm-tests: Likewise.
36511         * modules/frexpl-tests: Likewise.
36512         * modules/getaddrinfo-tests: Likewise.
36513         * modules/inttypes-tests: Likewise.
36514         * modules/isfinite-tests: Likewise.
36515         * modules/isinf-tests: Likewise.
36516         * modules/ldexpl-tests: Likewise.
36517         * modules/locale-tests: Likewise.
36518         * modules/math-tests: Likewise.
36519         * modules/netdb-tests: Likewise.
36520         * modules/netinet_in-tests: Likewise.
36521         * modules/printf-frexp-tests: Likewise.
36522         * modules/printf-frexpl-tests: Likewise.
36523         * modules/priv-set-tests: Likewise.
36524         * modules/random_r-tests: Likewise.
36525         * modules/round-tests: Likewise.
36526         * modules/roundf-tests: Likewise.
36527         * modules/roundl-tests: Likewise.
36528         * modules/search-tests: Likewise.
36529         * modules/select-tests: Likewise.
36530         * modules/signal-tests: Likewise.
36531         * modules/stdbool-tests: Likewise.
36532         * modules/stddef-tests: Likewise.
36533         * modules/stdint-tests: Likewise.
36534         * modules/stdio-tests: Likewise.
36535         * modules/stdlib-tests: Likewise.
36536         * modules/string-tests: Likewise.
36537         * modules/strings-tests: Likewise.
36538         * modules/sys_select-tests: Likewise.
36539         * modules/sys_socket-tests: Likewise.
36540         * modules/sys_stat-tests: Likewise.
36541         * modules/sys_time-tests: Likewise.
36542         * modules/sys_utsname-tests: Likewise.
36543         * modules/sysexits-tests: Likewise.
36544         * modules/time-tests: Likewise.
36545         * modules/trunc-tests: Likewise.
36546         * modules/truncf-tests: Likewise.
36547         * modules/truncl-tests: Likewise.
36548         * modules/tsearch-tests: Likewise.
36549         * modules/unistd-tests: Likewise.
36550         * modules/wchar-tests: Likewise.
36551         * modules/wctype-tests: Likewise.
36552
36553         tests: fix license on several tests
36554         * tests/test-des.c: Update to GPLv3+.
36555         * tests/test-flock.c: Likewise.
36556         * tests/test-fsync.c: Likewise.
36557         * tests/test-futimens.h: Likewise.
36558         * tests/test-gc-arcfour.c: Likewise.
36559         * tests/test-gc-arctwo.c: Likewise.
36560         * tests/test-gc-des.c: Likewise.
36561         * tests/test-gc-hmac-md5.c: Likewise.
36562         * tests/test-gc-hmac-sha1.c: Likewise.
36563         * tests/test-gc-md2.c: Likewise.
36564         * tests/test-gc-md4.c: Likewise.
36565         * tests/test-gc-md5.c: Likewise.
36566         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36567         * tests/test-gc-rijndael.c: Likewise.
36568         * tests/test-gc-sha1.c: Likewise.
36569         * tests/test-gc.c: Likewise.
36570         * tests/test-getcwd.c: Likewise.
36571         * tests/test-link.c: Likewise.
36572         * tests/test-link.h: Likewise.
36573         * tests/test-lutimens.h: Likewise.
36574         * tests/test-md2.c: Likewise.
36575         * tests/test-md4.c: Likewise.
36576         * tests/test-mkdir.h: Likewise.
36577         * tests/test-rename.c: Likewise.
36578         * tests/test-rename.h: Likewise.
36579         * tests/test-safe-alloc.c: Likewise.
36580         * tests/test-utimens-common.h: Likewise.
36581         * tests/test-utimens.h: Likewise.
36582
36583         maint: sync license texts
36584         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36585         * doc/gpl-3.0.texi: Revert copyright year update.
36586         * doc/lgpl-3.0.texi: Likewise.
36587
36588 2009-12-29  Jim Meyering  <meyering@redhat.com>
36589
36590         update nearly all FSF copyright year lists to include 2009
36591         The files named by the following are exempted:
36592             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36593               test -f "$dst" && { echo "$dst"; continue; }
36594               test -d "$dst" || continue
36595               echo "$dst"/$(basename "$src")
36596             done > exempt
36597             git ls-files tests/unictype >> exempt
36598         In the remaining files, convert to all-interval notation if
36599         - there is already at least one year interval like 2000-2003
36600         - the file is maintained by me
36601         - the file is in lib/uni*/, where that style already prevails
36602         Otherwise, use update-copyright's default.
36603
36604 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36605         and Eric Blake  <ebb9@byu.net>
36606
36607         tests: don't require debug system() to pass
36608         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36609         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36610         * tests/test-unlink.h (test_unlink_func): Likewise.
36611         * tests/test-fstatat.c (main): ...into callers.
36612         * tests/test-lstat.c (main): Likewise.
36613         * tests/test-rmdir.c (main): Likewise.
36614         * tests/test-unlink.c (main): Likewise.
36615         * tests/test-unlinkat.c (main): Likewise.
36616         * tests/test-areadlink-with-size.c (main): Don't require a
36617         debug-only system call to pass, aiding cross-testing to mingw.
36618         * tests/test-areadlink.c (main): Likewise.
36619         * tests/test-areadlinkat-with-size.c (main): Likewise.
36620         * tests/test-areadlinkat.c (main): Likewise.
36621         * tests/test-canonicalize-lgpl.c (main): Likewise.
36622         * tests/test-canonicalize.c (main): Likewise.
36623         * tests/test-chown.c (main): Likewise.
36624         * tests/test-fchownat.c (main): Likewise.
36625         * tests/test-lchown.c (main): Likewise.
36626         * tests/test-fdutimensat.c (main): Likewise.
36627         * tests/test-futimens.c (main): Likewise.
36628         * tests/test-link.c (main): Likewise.
36629         * tests/test-linkat.c (main): Likewise.
36630         * tests/test-mkdir.c (main): Likewise.
36631         * tests/test-mkdirat.c (main): Likewise.
36632         * tests/test-mkfifo.c (main): Likewise.
36633         * tests/test-mkfifoat.c (main): Likewise.
36634         * tests/test-mknod.c (main): Likewise.
36635         * tests/test-readlink.c (main): Likewise.
36636         * tests/test-remove.c (main): Likewise.
36637         * tests/test-rename.c (main): Likewise.
36638         * tests/test-renameat.c (main): Likewise.
36639         * tests/test-symlink.c (main): Likewise.
36640         * tests/test-symlinkat.c (main): Likewise.
36641         * tests/test-utimens.c (main): Likewise.
36642         * tests/test-utimensat.c (main): Likewise.
36643
36644 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36645
36646         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36647         on $(UNUSED_PARAMETER_H) to avoid build failure.
36648
36649 2009-12-28  Jim Meyering  <meyering@redhat.com>
36650
36651         update-copyright: you may specify a max. line length other than 72
36652         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36653
36654         maint: use consistent FSF copyright line syntax
36655         * lib/posixtm.c: Add missing comma in FSF copyright line.
36656         * lib/posixtm.h: Likewise.
36657         * lib/getugroups.c: Add missing ", Inc.".
36658
36659         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36660         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36661         FSF copyright line.  Remove trailing blanks.
36662
36663 2009-12-28  Eric Blake  <ebb9@byu.net>
36664
36665         test-dup2: reduce dependencies
36666         * modules/cloexec (Configure.ac): Set witness.
36667         * modules/dup2-tests (Depends-on): Drop cloexec.
36668         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36669         not present.
36670         Suggested by Bruno Haible.
36671
36672 2009-12-26  Bruno Haible  <bruno@clisp.org>
36673
36674         Remove an unneeded dependency.
36675         * modules/fseterr (Depends-on): Remove dup2.
36676
36677 2009-12-26  Eric Blake  <ebb9@byu.net>
36678
36679         tests: use macros.h in more places
36680         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36681         (ASSERT_STREAM): Provide default of stderr.
36682         * tests/test-dirent-safer.c: Include macros.h, using alternate
36683         stream for assertions.
36684         * tests/test-dup-safer.c: Likewise.
36685         * tests/test-freopen-safer.c: Likewise.
36686         * tests/test-getopt.c: Likewise.
36687         * tests/test-openat-safer.c: Likewise.
36688         * tests/test-pipe.c: Likewise.
36689         * tests/test-popen-safer.c: Likewise.
36690         * modules/dirent-safer-tests (Files): Include macros.h.
36691         * modules/unistd-safer-tests (Files): Likewise.
36692         * modules/freopen-safer-tests (Files): Likewise.
36693         * modules/getopt-posix-tests (Files): Likewise.
36694         * modules/openat-safer-tests (Files): Likewise.
36695         * modules/pipe-tests (Files): Likewise.
36696
36697 2009-12-26  Bruno Haible  <bruno@clisp.org>
36698
36699         javacomp: Portability fix.
36700         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36701         that it also works on Solaris.
36702
36703 2009-12-26  Bruno Haible  <bruno@clisp.org>
36704
36705         localename: Fix storage allocation of gl_locale_name_thread's result.
36706         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36707         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36708         all platforms that have 'uselocale'.
36709         (gl_locale_name_thread_unsafe): New function, extracted from
36710         gl_locale_name_thread.
36711         (gl_locale_name_thread): Call struniq on all platforms that have
36712         'uselocale'.
36713         * tests/test-localename.c (test_locale_name_thread): Check that the
36714         resulting strings are permanently allocated.
36715         * modules/localename-tests (Depends-on): Add strdup.
36716
36717 2009-12-26  Bruno Haible  <bruno@clisp.org>
36718
36719         * tests/test-localename.c (categories): Fill in the strings.
36720
36721 2009-12-26  Jim Meyering  <meyering@redhat.com>
36722
36723         isdir: complete the removal of m4/isdir.m4
36724         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36725
36726         isdir: clean up, since at least grep still uses it
36727         * lib/isdir.c: Include "isdir.h".
36728         (S_ISDIR): Remove now-unneeded definition.
36729         * modules/isdir (Files): Add lib/isdir.h.
36730         * lib/isdir.h: New file, with declaration.
36731         * m4/isdir.m4: Remove file -- unneeded.
36732
36733 2009-12-25  Bruno Haible  <bruno@clisp.org>
36734
36735         selinux-h: Make generated .h files standalone.
36736         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36737         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36738         * lib/se-selinux.in.h: Likewise.
36739         * modules/selinux-h (Depends-on): Add unused-parameter.
36740         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36741         selinux/selinux.h and selinux/context.h.
36742         Suggested by Eric Blake.
36743
36744 2009-12-25  Bruno Haible  <bruno@clisp.org>
36745
36746         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36747         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36748         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36749         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36750         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36751
36752 2009-12-24  Bruno Haible  <bruno@clisp.org>
36753
36754         openat: Fix warning.
36755         * lib/openat-proc.c: Include <unistd.h>.
36756
36757 2009-12-24  Bruno Haible  <bruno@clisp.org>
36758
36759         New module 'unused-parameter'.
36760         * build-aux/unused-parameter.h: New file, extracted from earlier
36761         gnulib-common.m4.
36762         * modules/unused-parameter: New file.
36763         * lib/unistr.h: Include unused-parameter.h.
36764         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36765         _GL_UNUSED.
36766         * modules/unistr/base (Depends-on): Add unused-parameter.
36767
36768 2009-12-24  Bruno Haible  <bruno@clisp.org>
36769
36770         Add missing dependencies to 'extensions' module.
36771         * m4/extensions.m4: Add comment.
36772         * modules/accept4 (Depends-on): Add extensions.
36773         * modules/dup3 (Depends-on): Likewise.
36774         * modules/fcntl (Depends-on): Likewise.
36775         * modules/futimens (Depends-on): Likewise.
36776         * modules/mknod (Depends-on): Likewise.
36777         * modules/pipe2 (Depends-on): Likewise.
36778         * modules/stat-time (Depends-on): Likewise.
36779         * modules/strcasestr-simple (Depends-on): Likewise.
36780         * modules/strsignal (Depends-on): Likewise.
36781         * modules/utimensat (Depends-on): Likewise.
36782         * modules/localcharset (Depends-on): Likewise. Needed because of
36783         gl_FCNTL_O_FLAGS.
36784         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36785         AC_TYPE_MBSTATE_T.
36786         * modules/wcsnrtombs (Depends-on): Likewise.
36787         * modules/wcsrtombs (Depends-on): Likewise.
36788
36789 2009-12-24  Bruno Haible  <bruno@clisp.org>
36790
36791         binary-io: Avoid gcc warning due to SET_BINARY.
36792         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36793         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36794
36795 2009-12-24  Bruno Haible  <bruno@clisp.org>
36796
36797         Avoid future namespace pollution on glibc systems.
36798         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36799         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36800         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36801         glibc systems.
36802
36803 2009-12-24  Bruno Haible  <bruno@clisp.org>
36804
36805         Refactor common macros used in tests.
36806         * tests/macros.h: New file.
36807         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36808         and/or <stdlib.h>, if appropriate.
36809         (ASSERT, SIZEOF): Remove macros.
36810         * tests/test-areadlink-with-size.c: Likewise.
36811         * tests/test-areadlinkat.c: Likewise.
36812         * tests/test-areadlinkat-with-size.c: Likewise.
36813         * tests/test-argmatch.c: Likewise.
36814         * tests/test-argv-iter.c: Likewise.
36815         * tests/test-array-mergesort.c: Likewise.
36816         * tests/test-array_list.c: Likewise.
36817         * tests/test-array_oset.c: Likewise.
36818         * tests/test-avltree_list.c: Likewise.
36819         * tests/test-avltree_oset.c: Likewise.
36820         * tests/test-avltreehash_list.c: Likewise.
36821         * tests/test-base64.c: Likewise.
36822         * tests/test-binary-io.c: Likewise.
36823         * tests/test-bitrotate.c: Likewise.
36824         * tests/test-btowc.c: Likewise.
36825         * tests/test-byteswap.c: Likewise.
36826         * tests/test-c-ctype.c: Likewise.
36827         * tests/test-c-stack.c: Likewise.
36828         * tests/test-c-strcasecmp.c: Likewise.
36829         * tests/test-c-strcasestr.c: Likewise.
36830         * tests/test-c-strncasecmp.c: Likewise.
36831         * tests/test-c-strstr.c: Likewise.
36832         * tests/test-canonicalize-lgpl.c: Likewise.
36833         * tests/test-canonicalize.c: Likewise.
36834         * tests/test-carray_list.c: Likewise.
36835         * tests/test-ceilf1.c: Likewise.
36836         * tests/test-ceilf2.c: Likewise.
36837         * tests/test-ceill.c: Likewise.
36838         * tests/test-chown.c: Likewise.
36839         * tests/test-cloexec.c: Likewise.
36840         * tests/test-copy-acl.c: Likewise.
36841         * tests/test-copy-file.c: Likewise.
36842         * tests/test-count-one-bits.c: Likewise.
36843         * tests/test-dprintf-posix.c: Likewise.
36844         * tests/test-dup2.c: Likewise.
36845         * tests/test-dup3.c: Likewise.
36846         * tests/test-duplocale.c: Likewise.
36847         * tests/test-fbufmode.c: Likewise.
36848         * tests/test-fchdir.c: Likewise.
36849         * tests/test-fchownat.c: Likewise.
36850         * tests/test-fcntl-safer.c: Likewise.
36851         * tests/test-fcntl.c: Likewise.
36852         * tests/test-fdopendir.c: Likewise.
36853         * tests/test-fdutimensat.c: Likewise.
36854         * tests/test-fflush2.c: Likewise.
36855         * tests/test-file-has-acl.c: Likewise.
36856         * tests/test-filevercmp.c: Likewise.
36857         * tests/test-flock.c: Likewise.
36858         * tests/test-floorf1.c: Likewise.
36859         * tests/test-floorf2.c: Likewise.
36860         * tests/test-floorl.c: Likewise.
36861         * tests/test-fnmatch.c: Likewise.
36862         * tests/test-fopen.h: Likewise.
36863         * tests/test-fpending.c: Likewise.
36864         * tests/test-fprintf-posix.c: Likewise.
36865         * tests/test-fpurge.c: Likewise.
36866         * tests/test-freadable.c: Likewise.
36867         * tests/test-freadahead.c: Likewise.
36868         * tests/test-freading.c: Likewise.
36869         * tests/test-freadptr.c: Likewise.
36870         * tests/test-freadptr2.c: Likewise.
36871         * tests/test-freadseek.c: Likewise.
36872         * tests/test-freopen.c: Likewise.
36873         * tests/test-frexp.c: Likewise.
36874         * tests/test-frexpl.c: Likewise.
36875         * tests/test-fseek.c: Likewise.
36876         * tests/test-fseeko.c: Likewise.
36877         * tests/test-fstatat.c: Likewise.
36878         * tests/test-fstrcmp.c: Likewise.
36879         * tests/test-fsync.c: Likewise.
36880         * tests/test-ftell.c: Likewise.
36881         * tests/test-ftello.c: Likewise.
36882         * tests/test-func.c: Likewise.
36883         * tests/test-futimens.c: Likewise.
36884         * tests/test-fwritable.c: Likewise.
36885         * tests/test-fwriting.c: Likewise.
36886         * tests/test-getcwd.c: Likewise.
36887         * tests/test-getdate.c: Likewise.
36888         * tests/test-getdelim.c: Likewise.
36889         * tests/test-getdtablesize.c: Likewise.
36890         * tests/test-getgroups.c: Likewise.
36891         * tests/test-getline.c: Likewise.
36892         * tests/test-getndelim2.c: Likewise.
36893         * tests/test-glob.c: Likewise.
36894         * tests/test-hash.c: Likewise.
36895         * tests/test-i-ring.c: Likewise.
36896         * tests/test-iconv-utf.c: Likewise.
36897         * tests/test-iconv.c: Likewise.
36898         * tests/test-idpriv-drop.c: Likewise.
36899         * tests/test-idpriv-droptemp.c: Likewise.
36900         * tests/test-inet_ntop.c: Likewise.
36901         * tests/test-inet_pton.c: Likewise.
36902         * tests/test-isblank.c: Likewise.
36903         * tests/test-isfinite.c: Likewise.
36904         * tests/test-isinf.c: Likewise.
36905         * tests/test-isnan.c: Likewise.
36906         * tests/test-isnand.h: Likewise.
36907         * tests/test-isnanf.h: Likewise.
36908         * tests/test-isnanl.h: Likewise.
36909         * tests/test-lchown.c: Likewise.
36910         * tests/test-ldexpl.c: Likewise.
36911         * tests/test-link.c: Likewise.
36912         * tests/test-linkat.c: Likewise.
36913         * tests/test-linked_list.c: Likewise.
36914         * tests/test-linkedhash_list.c: Likewise.
36915         * tests/test-localename.c: Likewise.
36916         * tests/test-lseek.c: Likewise.
36917         * tests/test-lstat.c: Likewise.
36918         * tests/test-mbmemcasecmp.c: Likewise.
36919         * tests/test-mbmemcasecoll.c: Likewise.
36920         * tests/test-mbrtowc.c: Likewise.
36921         * tests/test-mbscasecmp.c: Likewise.
36922         * tests/test-mbscasestr1.c: Likewise.
36923         * tests/test-mbscasestr2.c: Likewise.
36924         * tests/test-mbscasestr3.c: Likewise.
36925         * tests/test-mbscasestr4.c: Likewise.
36926         * tests/test-mbschr.c: Likewise.
36927         * tests/test-mbscspn.c: Likewise.
36928         * tests/test-mbsinit.c: Likewise.
36929         * tests/test-mbsncasecmp.c: Likewise.
36930         * tests/test-mbsnrtowcs.c: Likewise.
36931         * tests/test-mbspbrk.c: Likewise.
36932         * tests/test-mbspcasecmp.c: Likewise.
36933         * tests/test-mbsrchr.c: Likewise.
36934         * tests/test-mbsrtowcs.c: Likewise.
36935         * tests/test-mbsspn.c: Likewise.
36936         * tests/test-mbsstr1.c: Likewise.
36937         * tests/test-mbsstr2.c: Likewise.
36938         * tests/test-mbsstr3.c: Likewise.
36939         * tests/test-memchr.c: Likewise.
36940         * tests/test-memchr2.c: Likewise.
36941         * tests/test-memcmp.c: Likewise.
36942         * tests/test-memmem.c: Likewise.
36943         * tests/test-memrchr.c: Likewise.
36944         * tests/test-mkdir.c: Likewise.
36945         * tests/test-mkdirat.c: Likewise.
36946         * tests/test-mkfifo.c: Likewise.
36947         * tests/test-mkfifoat.c: Likewise.
36948         * tests/test-mknod.c: Likewise.
36949         * tests/test-nanosleep.c: Likewise.
36950         * tests/test-nl_langinfo.c: Likewise.
36951         * tests/test-obstack-printf.c: Likewise.
36952         * tests/test-open.c: Likewise.
36953         * tests/test-openat.c: Likewise.
36954         * tests/test-pipe-filter-gi1.c: Likewise.
36955         * tests/test-pipe-filter-gi2-main.c: Likewise.
36956         * tests/test-pipe-filter-ii1.c: Likewise.
36957         * tests/test-pipe-filter-ii2-main.c: Likewise.
36958         * tests/test-pipe2.c: Likewise.
36959         * tests/test-popen.h: Likewise.
36960         * tests/test-posixtm.c: Likewise.
36961         * tests/test-pread.c: Likewise.
36962         * tests/test-printf-frexp.c: Likewise.
36963         * tests/test-printf-frexpl.c: Likewise.
36964         * tests/test-printf-posix.c: Likewise.
36965         * tests/test-priv-set.c: Likewise.
36966         * tests/test-quotearg.c: Likewise.
36967         * tests/test-random_r.c: Likewise.
36968         * tests/test-rawmemchr.c: Likewise.
36969         * tests/test-rbtree_list.c: Likewise.
36970         * tests/test-rbtree_oset.c: Likewise.
36971         * tests/test-rbtreehash_list.c: Likewise.
36972         * tests/test-readlink.c: Likewise.
36973         * tests/test-remove.c: Likewise.
36974         * tests/test-rename.c: Likewise.
36975         * tests/test-renameat.c: Likewise.
36976         * tests/test-rmdir.c: Likewise.
36977         * tests/test-round1.c: Likewise.
36978         * tests/test-roundf1.c: Likewise.
36979         * tests/test-roundl.c: Likewise.
36980         * tests/test-safe-alloc.c: Likewise.
36981         * tests/test-sameacls.c: Likewise.
36982         * tests/test-set-mode-acl.c: Likewise.
36983         * tests/test-setenv.c: Likewise.
36984         * tests/test-sigaction.c: Likewise.
36985         * tests/test-signbit.c: Likewise.
36986         * tests/test-sleep.c: Likewise.
36987         * tests/test-snprintf-posix.c: Likewise.
36988         * tests/test-snprintf.c: Likewise.
36989         * tests/test-sprintf-posix.c: Likewise.
36990         * tests/test-stat-time.c: Likewise.
36991         * tests/test-stat.c: Likewise.
36992         * tests/test-strcasestr.c: Likewise.
36993         * tests/test-strchrnul.c: Likewise.
36994         * tests/test-strerror.c: Likewise.
36995         * tests/test-striconv.c: Likewise.
36996         * tests/test-striconveh.c: Likewise.
36997         * tests/test-striconveha.c: Likewise.
36998         * tests/test-strsignal.c: Likewise.
36999         * tests/test-strstr.c: Likewise.
37000         * tests/test-strtod.c: Likewise.
37001         * tests/test-strverscmp.c: Likewise.
37002         * tests/test-symlink.c: Likewise.
37003         * tests/test-symlinkat.c: Likewise.
37004         * tests/test-trunc1.c: Likewise.
37005         * tests/test-trunc2.c: Likewise.
37006         * tests/test-truncf1.c: Likewise.
37007         * tests/test-truncf2.c: Likewise.
37008         * tests/test-truncl.c: Likewise.
37009         * tests/test-uname.c: Likewise.
37010         * tests/test-unlink.c: Likewise.
37011         * tests/test-unlinkat.c: Likewise.
37012         * tests/test-unsetenv.c: Likewise.
37013         * tests/test-usleep.c: Likewise.
37014         * tests/test-utimens.c: Likewise.
37015         * tests/test-utimensat.c: Likewise.
37016         * tests/test-vasnprintf-posix.c: Likewise.
37017         * tests/test-vasnprintf-posix2.c: Likewise.
37018         * tests/test-vasnprintf.c: Likewise.
37019         * tests/test-vasprintf-posix.c: Likewise.
37020         * tests/test-vasprintf.c: Likewise.
37021         * tests/test-vdprintf-posix.c: Likewise.
37022         * tests/test-vfprintf-posix.c: Likewise.
37023         * tests/test-vprintf-posix.c: Likewise.
37024         * tests/test-vsnprintf-posix.c: Likewise.
37025         * tests/test-vsnprintf.c: Likewise.
37026         * tests/test-vsprintf-posix.c: Likewise.
37027         * tests/test-wcrtomb.c: Likewise.
37028         * tests/test-wcsnrtombs.c: Likewise.
37029         * tests/test-wcsrtombs.c: Likewise.
37030         * tests/test-wctype.c: Likewise.
37031         * tests/test-wcwidth.c: Likewise.
37032         * tests/test-xfprintf-posix.c: Likewise.
37033         * tests/test-xmemdup0.c: Likewise.
37034         * tests/test-xprintf-posix.c: Likewise.
37035         * tests/test-xvasprintf.c: Likewise.
37036         * tests/unicase/test-locale-language.c: Likewise.
37037         * tests/unicase/test-mapping-part1.h: Likewise.
37038         * tests/unicase/test-predicate-part1.h: Likewise.
37039         * tests/unicase/test-u8-casecmp.c: Likewise.
37040         * tests/unicase/test-u8-casecoll.c: Likewise.
37041         * tests/unicase/test-u8-casefold.c: Likewise.
37042         * tests/unicase/test-u8-is-cased.c: Likewise.
37043         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37044         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37045         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37046         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37047         * tests/unicase/test-u8-tolower.c: Likewise.
37048         * tests/unicase/test-u8-totitle.c: Likewise.
37049         * tests/unicase/test-u8-toupper.c: Likewise.
37050         * tests/unicase/test-u16-casecmp.c: Likewise.
37051         * tests/unicase/test-u16-casecoll.c: Likewise.
37052         * tests/unicase/test-u16-casefold.c: Likewise.
37053         * tests/unicase/test-u16-is-cased.c: Likewise.
37054         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37055         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37056         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37057         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37058         * tests/unicase/test-u16-tolower.c: Likewise.
37059         * tests/unicase/test-u16-totitle.c: Likewise.
37060         * tests/unicase/test-u16-toupper.c: Likewise.
37061         * tests/unicase/test-u32-casecmp.c: Likewise.
37062         * tests/unicase/test-u32-casecoll.c: Likewise.
37063         * tests/unicase/test-u32-casefold.c: Likewise.
37064         * tests/unicase/test-u32-is-cased.c: Likewise.
37065         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37066         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37067         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37068         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37069         * tests/unicase/test-u32-tolower.c: Likewise.
37070         * tests/unicase/test-u32-totitle.c: Likewise.
37071         * tests/unicase/test-u32-toupper.c: Likewise.
37072         * tests/unicase/test-ulc-casecmp.c: Likewise.
37073         * tests/unicase/test-ulc-casecoll.c: Likewise.
37074         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37075         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37076         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37077         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37078         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37079         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37080         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37081         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37082         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37083         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37084         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37085         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37086         * tests/unictype/test-bidi_byname.c: Likewise.
37087         * tests/unictype/test-bidi_name.c: Likewise.
37088         * tests/unictype/test-bidi_of.c: Likewise.
37089         * tests/unictype/test-bidi_test.c: Likewise.
37090         * tests/unictype/test-block_list.c: Likewise.
37091         * tests/unictype/test-block_of.c: Likewise.
37092         * tests/unictype/test-block_test.c: Likewise.
37093         * tests/unictype/test-categ_and.c: Likewise.
37094         * tests/unictype/test-categ_and_not.c: Likewise.
37095         * tests/unictype/test-categ_byname.c: Likewise.
37096         * tests/unictype/test-categ_name.c: Likewise.
37097         * tests/unictype/test-categ_none.c: Likewise.
37098         * tests/unictype/test-categ_of.c: Likewise.
37099         * tests/unictype/test-categ_or.c: Likewise.
37100         * tests/unictype/test-categ_test_withtable.c: Likewise.
37101         * tests/unictype/test-combining.c: Likewise.
37102         * tests/unictype/test-decdigit.c: Likewise.
37103         * tests/unictype/test-digit.c: Likewise.
37104         * tests/unictype/test-mirror.c: Likewise.
37105         * tests/unictype/test-numeric.c: Likewise.
37106         * tests/unictype/test-pr_byname.c: Likewise.
37107         * tests/unictype/test-pr_test.c: Likewise.
37108         * tests/unictype/test-predicate-part1.h: Likewise.
37109         * tests/unictype/test-scripts.c: Likewise.
37110         * tests/unictype/test-sy_c_ident.c: Likewise.
37111         * tests/unictype/test-sy_java_ident.c: Likewise.
37112         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37113         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37114         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37115         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37116         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37117         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37118         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37119         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37120         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37121         * tests/uninorm/test-compat-decomposition.c: Likewise.
37122         * tests/uninorm/test-composition.c: Likewise.
37123         * tests/uninorm/test-decomposing-form.c: Likewise.
37124         * tests/uninorm/test-decomposition.c: Likewise.
37125         * tests/uninorm/test-u8-nfc.c: Likewise.
37126         * tests/uninorm/test-u8-nfd.c: Likewise.
37127         * tests/uninorm/test-u8-nfkc.c: Likewise.
37128         * tests/uninorm/test-u8-nfkd.c: Likewise.
37129         * tests/uninorm/test-u8-normcmp.c: Likewise.
37130         * tests/uninorm/test-u8-normcoll.c: Likewise.
37131         * tests/uninorm/test-u16-nfc.c: Likewise.
37132         * tests/uninorm/test-u16-nfd.c: Likewise.
37133         * tests/uninorm/test-u16-nfkc.c: Likewise.
37134         * tests/uninorm/test-u16-nfkd.c: Likewise.
37135         * tests/uninorm/test-u16-normcmp.c: Likewise.
37136         * tests/uninorm/test-u16-normcoll.c: Likewise.
37137         * tests/uninorm/test-u32-nfc.c: Likewise.
37138         * tests/uninorm/test-u32-nfd.c: Likewise.
37139         * tests/uninorm/test-u32-nfkc.c: Likewise.
37140         * tests/uninorm/test-u32-nfkd.c: Likewise.
37141         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37142         * tests/uninorm/test-u32-normcmp.c: Likewise.
37143         * tests/uninorm/test-u32-normcoll.c: Likewise.
37144         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37145         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37146         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37147         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37148         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37149         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37150         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37151         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37152         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37153         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37154         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37155         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37156         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37157         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37158         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37159         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37160         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37161         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37162         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37163         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37164         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37165         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37166         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37167         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37168         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37169         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37170         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37171         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37172         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37173         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37174         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37175         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37176         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37177         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37178         * tests/uniwidth/test-u8-width.c: Likewise.
37179         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37180         * tests/uniwidth/test-u16-width.c: Likewise.
37181         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37182         * tests/uniwidth/test-u32-width.c: Likewise.
37183         * tests/uniwidth/test-uc_width.c: Likewise.
37184         * tests/uniwidth/test-uc_width2.c: Likewise.
37185         * modules/acl-tests (Files): Add tests/macros.h.
37186         * modules/areadlink-tests (Files): Likewise.
37187         * modules/areadlink-with-size-tests (Files): Likewise.
37188         * modules/areadlinkat-tests (Files): Likewise.
37189         * modules/areadlinkat-with-size-tests (Files): Likewise.
37190         * modules/argmatch-tests (Files): Likewise.
37191         * modules/argv-iter-tests (Files): Likewise.
37192         * modules/array-list-tests (Files): Likewise.
37193         * modules/array-mergesort-tests (Files): Likewise.
37194         * modules/array-oset-tests (Files): Likewise.
37195         * modules/avltree-list-tests (Files): Likewise.
37196         * modules/avltree-oset-tests (Files): Likewise.
37197         * modules/avltreehash-list-tests (Files): Likewise.
37198         * modules/base64-tests (Files): Likewise.
37199         * modules/binary-io-tests (Files): Likewise.
37200         * modules/bitrotate-tests (Files): Likewise.
37201         * modules/btowc-tests (Files): Likewise.
37202         * modules/byteswap-tests (Files): Likewise.
37203         * modules/c-ctype-tests (Files): Likewise.
37204         * modules/c-stack-tests (Files): Likewise.
37205         * modules/c-strcase-tests (Files): Likewise.
37206         * modules/c-strcasestr-tests (Files): Likewise.
37207         * modules/c-strstr-tests (Files): Likewise.
37208         * modules/canonicalize-lgpl-tests (Files): Likewise.
37209         * modules/canonicalize-tests (Files): Likewise.
37210         * modules/carray-list-tests (Files): Likewise.
37211         * modules/ceilf-tests (Files): Likewise.
37212         * modules/ceill-tests (Files): Likewise.
37213         * modules/chown-tests (Files): Likewise.
37214         * modules/cloexec-tests (Files): Likewise.
37215         * modules/copy-file-tests (Files): Likewise.
37216         * modules/count-one-bits-tests (Files): Likewise.
37217         * modules/dprintf-posix-tests (Files): Likewise.
37218         * modules/dup2-tests (Files): Likewise.
37219         * modules/dup3-tests (Files): Likewise.
37220         * modules/duplocale-tests (Files): Likewise.
37221         * modules/fbufmode-tests (Files): Likewise.
37222         * modules/fchdir-tests (Files): Likewise.
37223         * modules/fcntl-safer-tests (Files): Likewise.
37224         * modules/fcntl-tests (Files): Likewise.
37225         * modules/fdopendir-tests (Files): Likewise.
37226         * modules/fdutimensat-tests (Files): Likewise.
37227         * modules/fflush-tests (Files): Likewise.
37228         * modules/filevercmp-tests (Files): Likewise.
37229         * modules/flock-tests (Files): Likewise.
37230         * modules/floorf-tests (Files): Likewise.
37231         * modules/floorl-tests (Files): Likewise.
37232         * modules/fnmatch-tests (Files): Likewise.
37233         * modules/fopen-safer-tests (Files): Likewise.
37234         * modules/fopen-tests (Files): Likewise.
37235         * modules/fpending-tests (Files): Likewise.
37236         * modules/fprintf-posix-tests (Files): Likewise.
37237         * modules/fpurge-tests (Files): Likewise.
37238         * modules/freadable-tests (Files): Likewise.
37239         * modules/freadahead-tests (Files): Likewise.
37240         * modules/freading-tests (Files): Likewise.
37241         * modules/freadptr-tests (Files): Likewise.
37242         * modules/freadseek-tests (Files): Likewise.
37243         * modules/freopen-tests (Files): Likewise.
37244         * modules/frexp-nolibm-tests (Files): Likewise.
37245         * modules/frexp-tests (Files): Likewise.
37246         * modules/frexpl-nolibm-tests (Files): Likewise.
37247         * modules/frexpl-tests (Files): Likewise.
37248         * modules/fseek-tests (Files): Likewise.
37249         * modules/fseeko-tests (Files): Likewise.
37250         * modules/fstrcmp-tests (Files): Likewise.
37251         * modules/fsync-tests (Files): Likewise.
37252         * modules/ftell-tests (Files): Likewise.
37253         * modules/ftello-tests (Files): Likewise.
37254         * modules/func-tests (Files): Likewise.
37255         * modules/futimens-tests (Files): Likewise.
37256         * modules/fwritable-tests (Files): Likewise.
37257         * modules/fwriting-tests (Files): Likewise.
37258         * modules/getcwd-tests (Files): Likewise.
37259         * modules/getdate-tests (Files): Likewise.
37260         * modules/getdelim-tests (Files): Likewise.
37261         * modules/getdtablesize-tests (Files): Likewise.
37262         * modules/getgroups-tests (Files): Likewise.
37263         * modules/getline-tests (Files): Likewise.
37264         * modules/getndelim2-tests (Files): Likewise.
37265         * modules/glob-tests (Files): Likewise.
37266         * modules/hash-tests (Files): Likewise.
37267         * modules/i-ring-tests (Files): Likewise.
37268         * modules/iconv-tests (Files): Likewise.
37269         * modules/iconv_open-utf-tests (Files): Likewise.
37270         * modules/idpriv-drop-tests (Files): Likewise.
37271         * modules/idpriv-droptemp-tests (Files): Likewise.
37272         * modules/inet_ntop-tests (Files): Likewise.
37273         * modules/inet_pton-tests (Files): Likewise.
37274         * modules/isblank-tests (Files): Likewise.
37275         * modules/isfinite-tests (Files): Likewise.
37276         * modules/isinf-tests (Files): Likewise.
37277         * modules/isnan-tests (Files): Likewise.
37278         * modules/isnand-nolibm-tests (Files): Likewise.
37279         * modules/isnand-tests (Files): Likewise.
37280         * modules/isnanf-nolibm-tests (Files): Likewise.
37281         * modules/isnanf-tests (Files): Likewise.
37282         * modules/isnanl-nolibm-tests (Files): Likewise.
37283         * modules/isnanl-tests (Files): Likewise.
37284         * modules/lchown-tests (Files): Likewise.
37285         * modules/ldexpl-tests (Files): Likewise.
37286         * modules/link-tests (Files): Likewise.
37287         * modules/linkat-tests (Files): Likewise.
37288         * modules/linked-list-tests (Files): Likewise.
37289         * modules/linkedhash-list-tests (Files): Likewise.
37290         * modules/localename-tests (Files): Likewise.
37291         * modules/lseek-tests (Files): Likewise.
37292         * modules/lstat-tests (Files): Likewise.
37293         * modules/mbmemcasecmp-tests (Files): Likewise.
37294         * modules/mbmemcasecoll-tests (Files): Likewise.
37295         * modules/mbrtowc-tests (Files): Likewise.
37296         * modules/mbscasecmp-tests (Files): Likewise.
37297         * modules/mbscasestr-tests (Files): Likewise.
37298         * modules/mbschr-tests (Files): Likewise.
37299         * modules/mbscspn-tests (Files): Likewise.
37300         * modules/mbsinit-tests (Files): Likewise.
37301         * modules/mbsncasecmp-tests (Files): Likewise.
37302         * modules/mbsnrtowcs-tests (Files): Likewise.
37303         * modules/mbspbrk-tests (Files): Likewise.
37304         * modules/mbspcasecmp-tests (Files): Likewise.
37305         * modules/mbsrchr-tests (Files): Likewise.
37306         * modules/mbsrtowcs-tests (Files): Likewise.
37307         * modules/mbsspn-tests (Files): Likewise.
37308         * modules/mbsstr-tests (Files): Likewise.
37309         * modules/memchr-tests (Files): Likewise.
37310         * modules/memchr2-tests (Files): Likewise.
37311         * modules/memcmp-tests (Files): Likewise.
37312         * modules/memmem-tests (Files): Likewise.
37313         * modules/memrchr-tests (Files): Likewise.
37314         * modules/mkdir-tests (Files): Likewise.
37315         * modules/mkfifo-tests (Files): Likewise.
37316         * modules/mkfifoat-tests (Files): Likewise.
37317         * modules/mknod-tests (Files): Likewise.
37318         * modules/nanosleep-tests (Files): Likewise.
37319         * modules/nl_langinfo-tests (Files): Likewise.
37320         * modules/obstack-printf-tests (Files): Likewise.
37321         * modules/open-tests (Files): Likewise.
37322         * modules/openat-tests (Files): Likewise.
37323         * modules/pipe-filter-gi-tests (Files): Likewise.
37324         * modules/pipe-filter-ii-tests (Files): Likewise.
37325         * modules/pipe2-tests (Files): Likewise.
37326         * modules/popen-safer-tests (Files): Likewise.
37327         * modules/popen-tests (Files): Likewise.
37328         * modules/posixtm-tests (Files): Likewise.
37329         * modules/pread-tests (Files): Likewise.
37330         * modules/printf-frexp-tests (Files): Likewise.
37331         * modules/printf-frexpl-tests (Files): Likewise.
37332         * modules/printf-posix-tests (Files): Likewise.
37333         * modules/priv-set-tests (Files): Likewise.
37334         * modules/quotearg-tests (Files): Likewise.
37335         * modules/random_r-tests (Files): Likewise.
37336         * modules/rawmemchr-tests (Files): Likewise.
37337         * modules/rbtree-list-tests (Files): Likewise.
37338         * modules/rbtree-oset-tests (Files): Likewise.
37339         * modules/rbtreehash-list-tests (Files): Likewise.
37340         * modules/readlink-tests (Files): Likewise.
37341         * modules/remove-tests (Files): Likewise.
37342         * modules/rename-tests (Files): Likewise.
37343         * modules/renameat-tests (Files): Likewise.
37344         * modules/rmdir-tests (Files): Likewise.
37345         * modules/round-tests (Files): Likewise.
37346         * modules/roundf-tests (Files): Likewise.
37347         * modules/roundl-tests (Files): Likewise.
37348         * modules/safe-alloc-tests (Files): Likewise.
37349         * modules/setenv-tests (Files): Likewise.
37350         * modules/sigaction-tests (Files): Likewise.
37351         * modules/signbit-tests (Files): Likewise.
37352         * modules/sleep-tests (Files): Likewise.
37353         * modules/snprintf-posix-tests (Files): Likewise.
37354         * modules/snprintf-tests (Files): Likewise.
37355         * modules/sprintf-posix-tests (Files): Likewise.
37356         * modules/stat-tests (Files): Likewise.
37357         * modules/stat-time-tests (Files): Likewise.
37358         * modules/strcasestr-tests (Files): Likewise.
37359         * modules/strchrnul-tests (Files): Likewise.
37360         * modules/strerror-tests (Files): Likewise.
37361         * modules/striconv-tests (Files): Likewise.
37362         * modules/striconveh-tests (Files): Likewise.
37363         * modules/striconveha-tests (Files): Likewise.
37364         * modules/strsignal-tests (Files): Likewise.
37365         * modules/strstr-tests (Files): Likewise.
37366         * modules/strtod-tests (Files): Likewise.
37367         * modules/strverscmp-tests (Files): Likewise.
37368         * modules/symlink-tests (Files): Likewise.
37369         * modules/symlinkat-tests (Files): Likewise.
37370         * modules/trunc-tests (Files): Likewise.
37371         * modules/truncf-tests (Files): Likewise.
37372         * modules/truncl-tests (Files): Likewise.
37373         * modules/uname-tests (Files): Likewise.
37374         * modules/unicase/cased-tests (Files): Likewise.
37375         * modules/unicase/ignorable-tests (Files): Likewise.
37376         * modules/unicase/locale-language-tests (Files): Likewise.
37377         * modules/unicase/tolower-tests (Files): Likewise.
37378         * modules/unicase/totitle-tests (Files): Likewise.
37379         * modules/unicase/toupper-tests (Files): Likewise.
37380         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37381         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37382         * modules/unicase/u8-casefold-tests (Files): Likewise.
37383         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37384         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37385         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37386         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37387         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37388         * modules/unicase/u8-tolower-tests (Files): Likewise.
37389         * modules/unicase/u8-totitle-tests (Files): Likewise.
37390         * modules/unicase/u8-toupper-tests (Files): Likewise.
37391         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37392         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37393         * modules/unicase/u16-casefold-tests (Files): Likewise.
37394         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37395         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37396         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37397         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37398         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37399         * modules/unicase/u16-tolower-tests (Files): Likewise.
37400         * modules/unicase/u16-totitle-tests (Files): Likewise.
37401         * modules/unicase/u16-toupper-tests (Files): Likewise.
37402         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37403         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37404         * modules/unicase/u32-casefold-tests (Files): Likewise.
37405         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37406         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37407         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37408         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37409         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37410         * modules/unicase/u32-tolower-tests (Files): Likewise.
37411         * modules/unicase/u32-totitle-tests (Files): Likewise.
37412         * modules/unicase/u32-toupper-tests (Files): Likewise.
37413         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37414         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37415         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37416         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37417         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37418         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37419         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37420         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37421         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37422         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37423         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37424         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37425         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37426         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37427         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37428         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37429         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37430         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37431         * modules/unictype/block-list-tests (Files): Likewise.
37432         * modules/unictype/block-of-tests (Files): Likewise.
37433         * modules/unictype/block-test-tests (Files): Likewise.
37434         * modules/unictype/category-C-tests (Files): Likewise.
37435         * modules/unictype/category-Cc-tests (Files): Likewise.
37436         * modules/unictype/category-Cf-tests (Files): Likewise.
37437         * modules/unictype/category-Cn-tests (Files): Likewise.
37438         * modules/unictype/category-Co-tests (Files): Likewise.
37439         * modules/unictype/category-Cs-tests (Files): Likewise.
37440         * modules/unictype/category-L-tests (Files): Likewise.
37441         * modules/unictype/category-Ll-tests (Files): Likewise.
37442         * modules/unictype/category-Lm-tests (Files): Likewise.
37443         * modules/unictype/category-Lo-tests (Files): Likewise.
37444         * modules/unictype/category-Lt-tests (Files): Likewise.
37445         * modules/unictype/category-Lu-tests (Files): Likewise.
37446         * modules/unictype/category-M-tests (Files): Likewise.
37447         * modules/unictype/category-Mc-tests (Files): Likewise.
37448         * modules/unictype/category-Me-tests (Files): Likewise.
37449         * modules/unictype/category-Mn-tests (Files): Likewise.
37450         * modules/unictype/category-N-tests (Files): Likewise.
37451         * modules/unictype/category-Nd-tests (Files): Likewise.
37452         * modules/unictype/category-Nl-tests (Files): Likewise.
37453         * modules/unictype/category-No-tests (Files): Likewise.
37454         * modules/unictype/category-P-tests (Files): Likewise.
37455         * modules/unictype/category-Pc-tests (Files): Likewise.
37456         * modules/unictype/category-Pd-tests (Files): Likewise.
37457         * modules/unictype/category-Pe-tests (Files): Likewise.
37458         * modules/unictype/category-Pf-tests (Files): Likewise.
37459         * modules/unictype/category-Pi-tests (Files): Likewise.
37460         * modules/unictype/category-Po-tests (Files): Likewise.
37461         * modules/unictype/category-Ps-tests (Files): Likewise.
37462         * modules/unictype/category-S-tests (Files): Likewise.
37463         * modules/unictype/category-Sc-tests (Files): Likewise.
37464         * modules/unictype/category-Sk-tests (Files): Likewise.
37465         * modules/unictype/category-Sm-tests (Files): Likewise.
37466         * modules/unictype/category-So-tests (Files): Likewise.
37467         * modules/unictype/category-Z-tests (Files): Likewise.
37468         * modules/unictype/category-Zl-tests (Files): Likewise.
37469         * modules/unictype/category-Zp-tests (Files): Likewise.
37470         * modules/unictype/category-Zs-tests (Files): Likewise.
37471         * modules/unictype/category-and-not-tests (Files): Likewise.
37472         * modules/unictype/category-and-tests (Files): Likewise.
37473         * modules/unictype/category-byname-tests (Files): Likewise.
37474         * modules/unictype/category-name-tests (Files): Likewise.
37475         * modules/unictype/category-none-tests (Files): Likewise.
37476         * modules/unictype/category-of-tests (Files): Likewise.
37477         * modules/unictype/category-or-tests (Files): Likewise.
37478         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37479         * modules/unictype/combining-class-tests (Files): Likewise.
37480         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37481         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37482         * modules/unictype/ctype-blank-tests (Files): Likewise.
37483         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37484         * modules/unictype/ctype-digit-tests (Files): Likewise.
37485         * modules/unictype/ctype-graph-tests (Files): Likewise.
37486         * modules/unictype/ctype-lower-tests (Files): Likewise.
37487         * modules/unictype/ctype-print-tests (Files): Likewise.
37488         * modules/unictype/ctype-punct-tests (Files): Likewise.
37489         * modules/unictype/ctype-space-tests (Files): Likewise.
37490         * modules/unictype/ctype-upper-tests (Files): Likewise.
37491         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37492         * modules/unictype/decimal-digit-tests (Files): Likewise.
37493         * modules/unictype/digit-tests (Files): Likewise.
37494         * modules/unictype/mirror-tests (Files): Likewise.
37495         * modules/unictype/numeric-tests (Files): Likewise.
37496         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37497         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37498         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37499         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37500         Likewise.
37501         * modules/unictype/property-bidi-block-separator-tests (Files):
37502         Likewise.
37503         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37504         Likewise.
37505         * modules/unictype/property-bidi-common-separator-tests (Files):
37506         Likewise.
37507         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37508         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37509         Likewise.
37510         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37511         Likewise.
37512         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37513         Likewise.
37514         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37515         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37516         Likewise.
37517         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37518         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37519         Likewise.
37520         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37521         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37522         * modules/unictype/property-bidi-segment-separator-tests (Files):
37523         Likewise.
37524         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37525         * modules/unictype/property-byname-tests (Files): Likewise.
37526         * modules/unictype/property-combining-tests (Files): Likewise.
37527         * modules/unictype/property-composite-tests (Files): Likewise.
37528         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37529         * modules/unictype/property-dash-tests (Files): Likewise.
37530         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37531         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37532         Likewise.
37533         * modules/unictype/property-deprecated-tests (Files): Likewise.
37534         * modules/unictype/property-diacritic-tests (Files): Likewise.
37535         * modules/unictype/property-extender-tests (Files): Likewise.
37536         * modules/unictype/property-format-control-tests (Files): Likewise.
37537         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37538         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37539         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37540         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37541         * modules/unictype/property-hyphen-tests (Files): Likewise.
37542         * modules/unictype/property-id-continue-tests (Files): Likewise.
37543         * modules/unictype/property-id-start-tests (Files): Likewise.
37544         * modules/unictype/property-ideographic-tests (Files): Likewise.
37545         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37546         * modules/unictype/property-ids-trinary-operator-tests (Files):
37547         Likewise.
37548         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37549         * modules/unictype/property-iso-control-tests (Files): Likewise.
37550         * modules/unictype/property-join-control-tests (Files): Likewise.
37551         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37552         * modules/unictype/property-line-separator-tests (Files): Likewise.
37553         * modules/unictype/property-logical-order-exception-tests (Files):
37554         Likewise.
37555         * modules/unictype/property-lowercase-tests (Files): Likewise.
37556         * modules/unictype/property-math-tests (Files): Likewise.
37557         * modules/unictype/property-non-break-tests (Files): Likewise.
37558         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37559         * modules/unictype/property-numeric-tests (Files): Likewise.
37560         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37561         * modules/unictype/property-other-default-ignorable-code-point-tests
37562         (Files): Likewise.
37563         * modules/unictype/property-other-grapheme-extend-tests (Files):
37564         Likewise.
37565         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37566         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37567         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37568         * modules/unictype/property-other-math-tests (Files): Likewise.
37569         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37570         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37571         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37572         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37573         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37574         * modules/unictype/property-private-use-tests (Files): Likewise.
37575         * modules/unictype/property-punctuation-tests (Files): Likewise.
37576         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37577         * modules/unictype/property-radical-tests (Files): Likewise.
37578         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37579         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37580         * modules/unictype/property-space-tests (Files): Likewise.
37581         * modules/unictype/property-terminal-punctuation-tests (Files):
37582         Likewise.
37583         * modules/unictype/property-test-tests (Files): Likewise.
37584         * modules/unictype/property-titlecase-tests (Files): Likewise.
37585         * modules/unictype/property-unassigned-code-value-tests (Files):
37586         Likewise.
37587         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37588         * modules/unictype/property-uppercase-tests (Files): Likewise.
37589         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37590         * modules/unictype/property-white-space-tests (Files): Likewise.
37591         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37592         * modules/unictype/property-xid-start-tests (Files): Likewise.
37593         * modules/unictype/property-zero-width-tests (Files): Likewise.
37594         * modules/unictype/scripts-tests (Files): Likewise.
37595         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37596         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37597         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37598         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37599         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37600         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37601         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37602         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37603         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37604         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37605         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37606         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37607         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37608         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37609         * modules/uninorm/composition-tests (Files): Likewise.
37610         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37611         * modules/uninorm/decomposition-tests (Files): Likewise.
37612         * modules/uninorm/filter-tests (Files): Likewise.
37613         * modules/uninorm/nfc-tests (Files): Likewise.
37614         * modules/uninorm/nfd-tests (Files): Likewise.
37615         * modules/uninorm/nfkc-tests (Files): Likewise.
37616         * modules/uninorm/nfkd-tests (Files): Likewise.
37617         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37618         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37619         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37620         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37621         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37622         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37623         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37624         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37625         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37626         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37627         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37628         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37629         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37630         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37631         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37632         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37633         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37634         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37635         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37636         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37637         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37638         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37639         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37640         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37641         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37642         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37643         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37644         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37645         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37646         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37647         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37648         * modules/uniwidth/u8-width-tests (Files): Likewise.
37649         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37650         * modules/uniwidth/u16-width-tests (Files): Likewise.
37651         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37652         * modules/uniwidth/u32-width-tests (Files): Likewise.
37653         * modules/uniwidth/width-tests (Files): Likewise.
37654         * modules/unlink-tests (Files): Likewise.
37655         * modules/unsetenv-tests (Files): Likewise.
37656         * modules/usleep-tests (Files): Likewise.
37657         * modules/utimens-tests (Files): Likewise.
37658         * modules/utimensat-tests (Files): Likewise.
37659         * modules/vasnprintf-posix-tests (Files): Likewise.
37660         * modules/vasnprintf-tests (Files): Likewise.
37661         * modules/vasprintf-posix-tests (Files): Likewise.
37662         * modules/vasprintf-tests (Files): Likewise.
37663         * modules/vdprintf-posix-tests (Files): Likewise.
37664         * modules/vfprintf-posix-tests (Files): Likewise.
37665         * modules/vprintf-posix-tests (Files): Likewise.
37666         * modules/vsnprintf-posix-tests (Files): Likewise.
37667         * modules/vsnprintf-tests (Files): Likewise.
37668         * modules/vsprintf-posix-tests (Files): Likewise.
37669         * modules/wcrtomb-tests (Files): Likewise.
37670         * modules/wcsnrtombs-tests (Files): Likewise.
37671         * modules/wcsrtombs-tests (Files): Likewise.
37672         * modules/wctype-tests (Files): Likewise.
37673         * modules/wcwidth-tests (Files): Likewise.
37674         * modules/xmemdup0-tests (Files): Likewise.
37675         * modules/xprintf-posix-tests (Files): Likewise.
37676         * modules/xvasprintf-tests (Files): Likewise.
37677
37678 2009-12-24  Eric Blake  <ebb9@byu.net>
37679
37680         test-nanosleep: fix typo
37681         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37682         patch.
37683         Reported by Bruno Haible.
37684
37685 2009-12-24  Bruno Haible  <bruno@clisp.org>
37686
37687         Reduce namespace pollution on glibc systems.
37688         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37689         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37690         systems.
37691         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37692         <getopt.h> on glibc systems.
37693         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37694         systems.
37695         * lib/fcntl.c: Include <unistd.h> here instead.
37696
37697 2009-12-24  Bruno Haible  <bruno@clisp.org>
37698
37699         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37700
37701 2009-12-24  Eric Blake  <ebb9@byu.net>
37702
37703         tests: add signature checks
37704         * tests/signature.h (SIGNATURE_CHECK): New file.
37705         * modules/atexit-tests (Files): Use it.
37706         * modules/btowc-tests (Files): Likewise.
37707         * modules/canonicalize-lgpl-tests (Files): Likewise.
37708         * modules/ceilf-tests (Files): Likewise.
37709         * modules/ceill-tests (Files): Likewise.
37710         * modules/chown-tests (Files): Likewise.
37711         * modules/dprintf-posix-tests (Files): Likewise.
37712         * modules/dup2-tests (Files): Likewise.
37713         * modules/dup3-tests (Files): Likewise.
37714         * modules/duplocale-tests (Files): Likewise.
37715         * modules/fchdir-tests (Files): Likewise.
37716         * modules/fcntl-tests (Files): Likewise.
37717         * modules/fdopendir-tests (Files): Likewise.
37718         * modules/fflush-tests (Files): Likewise.
37719         * modules/flock-tests (Files): Likewise.
37720         * modules/floorf-tests (Files): Likewise.
37721         * modules/floorl-tests (Files): Likewise.
37722         * modules/fnmatch-tests (Files): Likewise.
37723         * modules/fopen-tests (Files): Likewise.
37724         * modules/fprintf-posix-tests (Files): Likewise.
37725         * modules/freopen-tests (Files): Likewise.
37726         * modules/frexp-nolibm-tests (Files): Likewise.
37727         * modules/frexp-tests (Files): Likewise.
37728         * modules/frexpl-nolibm-tests (Files): Likewise.
37729         * modules/frexpl-tests (Files): Likewise.
37730         * modules/fseek-tests (Files): Likewise.
37731         * modules/fseeko-tests (Files): Likewise.
37732         * modules/fsync-tests (Files): Likewise.
37733         * modules/ftell-tests (Files): Likewise.
37734         * modules/ftello-tests (Files): Likewise.
37735         * modules/futimens-tests (Files): Likewise.
37736         * modules/getaddrinfo-tests (Files): Likewise.
37737         * modules/getcwd-tests (Files): Likewise.
37738         * modules/getdelim-tests (Files): Likewise.
37739         * modules/getdtablesize-tests (Files): Likewise.
37740         * modules/getgroups-tests (Files): Likewise.
37741         * modules/gethostname-tests (Files): Likewise.
37742         * modules/getline-tests (Files): Likewise.
37743         * modules/getopt-posix-tests (Files): Likewise.
37744         * modules/gettimeofday-tests (Files): Likewise.
37745         * modules/glob-tests (Files): Likewise.
37746         * modules/iconv-tests (Files): Likewise.
37747         * modules/inet_ntop-tests (Files): Likewise.
37748         * modules/inet_pton-tests (Files): Likewise.
37749         * modules/isblank-tests (Files): Likewise.
37750         * modules/lchown-tests (Files): Likewise.
37751         * modules/ldexpl-tests (Files): Likewise.
37752         * modules/link-tests (Files): Likewise.
37753         * modules/linkat-tests (Files): Likewise.
37754         * modules/lseek-tests (Files): Likewise.
37755         * modules/lstat-tests (Files): Likewise.
37756         * modules/mbrtowc-tests (Files): Likewise.
37757         * modules/mbsinit-tests (Files): Likewise.
37758         * modules/mbsnrtowcs-tests (Files): Likewise.
37759         * modules/mbsrtowcs-tests (Files): Likewise.
37760         * modules/memchr-tests (Files): Likewise.
37761         * modules/memcmp-tests (Files): Likewise.
37762         * modules/memmem-tests (Files): Likewise.
37763         * modules/memrchr-tests (Files): Likewise.
37764         * modules/mkdir-tests (Files): Likewise.
37765         * modules/mkfifo-tests (Files): Likewise.
37766         * modules/mkfifoat-tests (Files): Likewise.
37767         * modules/mknod-tests (Files): Likewise.
37768         * modules/nanosleep-tests (Files): Likewise.
37769         * modules/nl_langinfo-tests (Files): Likewise.
37770         * modules/obstack-printf-tests (Files): Likewise.
37771         * modules/open-tests (Files): Likewise.
37772         * modules/openat-tests (Files): Likewise.
37773         * modules/perror-tests (Files): Likewise.
37774         * modules/pipe2-tests (Files): Likewise.
37775         * modules/poll-tests (Files): Likewise.
37776         * modules/popen-tests (Files): Likewise.
37777         * modules/posix_spawn-tests (Files): Likewise.
37778         * modules/posix_spawnp-tests (Files): Likewise.
37779         * modules/pread-tests (Files): Likewise.
37780         * modules/printf-posix-tests (Files): Likewise.
37781         * modules/pty-tests (Files): Likewise.
37782         * modules/random_r-tests (Files): Likewise.
37783         * modules/rawmemchr-tests (Files): Likewise.
37784         * modules/readlink-tests (Files): Likewise.
37785         * modules/remove-tests (Files): Likewise.
37786         * modules/rename-tests (Files): Likewise.
37787         * modules/renameat-tests (Files): Likewise.
37788         * modules/rmdir-tests (Files): Likewise.
37789         * modules/round-tests (Files): Likewise.
37790         * modules/roundf-tests (Files): Likewise.
37791         * modules/roundl-tests (Files): Likewise.
37792         * modules/select-tests (Files): Likewise.
37793         * modules/setenv-tests (Files): Likewise.
37794         * modules/sigaction-tests (Files): Likewise.
37795         * modules/sleep-tests (Files): Likewise.
37796         * modules/snprintf-posix-tests (Files): Likewise.
37797         * modules/snprintf-tests (Files): Likewise.
37798         * modules/sprintf-posix-tests (Files): Likewise.
37799         * modules/stat-tests (Files): Likewise.
37800         * modules/strcasestr-tests (Files): Likewise.
37801         * modules/strchrnul-tests (Files): Likewise.
37802         * modules/strerror-tests (Files): Likewise.
37803         * modules/strsignal-tests (Files): Likewise.
37804         * modules/strstr-tests (Files): Likewise.
37805         * modules/strtod-tests (Files): Likewise.
37806         * modules/strverscmp-tests (Files): Likewise.
37807         * modules/symlink-tests (Files): Likewise.
37808         * modules/symlinkat-tests (Files): Likewise.
37809         * modules/times-tests (Files): Likewise.
37810         * modules/trunc-tests (Files): Likewise.
37811         * modules/truncf-tests (Files): Likewise.
37812         * modules/truncl-tests (Files): Likewise.
37813         * modules/tsearch-tests (Files): Likewise.
37814         * modules/uname-tests (Files): Likewise.
37815         * modules/unlink-tests (Files): Likewise.
37816         * modules/unsetenv-tests (Files): Likewise.
37817         * modules/usleep-tests (Files): Likewise.
37818         * modules/utimensat-tests (Files): Likewise.
37819         * modules/vasprintf-tests (Files): Likewise.
37820         * modules/vdprintf-posix-tests (Files): Likewise.
37821         * modules/vfprintf-posix-tests (Files): Likewise.
37822         * modules/vprintf-posix-tests (Files): Likewise.
37823         * modules/vsnprintf-posix-tests (Files): Likewise.
37824         * modules/vsnprintf-tests (Files): Likewise.
37825         * modules/vsprintf-posix-tests (Files): Likewise.
37826         * modules/wcrtomb-tests (Files): Likewise.
37827         * modules/wcsnrtombs-tests (Files): Likewise.
37828         * modules/wcsrtombs-tests (Files): Likewise.
37829         * modules/wcwidth-tests (Files): Likewise.
37830         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37831         * tests/test-isinf.c (isinf): Likewise.
37832         * tests/test-isnan.c (isnan): Likewise.
37833         * tests/test-signbit.c (signbit): Likewise.
37834         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37835         declaration, either as macro or with correct signature.
37836         (select): Ensure function under test is declared with correct
37837         signature in correct header.
37838         * tests/test-atexit.c (atexit): Likewise.
37839         * tests/test-btowc.c (btowc): Likewise.
37840         * tests/test-canonicalize-lgpl.c (realpath)
37841         (canonicalize_file_name): Likewise.
37842         * tests/test-ceilf1.c (ceilf): Likewise.
37843         * tests/test-ceill.c (ceill): Likewise.
37844         * tests/test-chown.c (chown): Likewise.
37845         * tests/test-dprintf-posix.c (dprintf): Likewise.
37846         * tests/test-dup2.c (dup2): Likewise.
37847         * tests/test-dup3.c (dup3): Likewise.
37848         * tests/test-duplocale.c (duplocale): Likewise.
37849         * tests/test-fchdir.c (fchdir): Likewise.
37850         * tests/test-fchownat.c (fchownat): Likewise.
37851         * tests/test-fcntl.c (fcntl): Likewise.
37852         * tests/test-fdopendir.c (fdopendir): Likewise.
37853         * tests/test-fflush.c (fflush): Likewise.
37854         * tests/test-flock.c (flock): Likewise.
37855         * tests/test-floorf1.c (floorf): Likewise.
37856         * tests/test-floorl.c (floorl): Likewise.
37857         * tests/test-fnmatch.c (fnmatch): Likewise.
37858         * tests/test-fopen.c (fopen): Likewise.
37859         * tests/test-fprintf-posix.c (fprintf): Likewise.
37860         * tests/test-freopen.c (freopen): Likewise.
37861         * tests/test-frexp.c (frexp): Likewise.
37862         * tests/test-frexpl.c (frexpl): Likewise.
37863         * tests/test-fseek.c (fseek): Likewise.
37864         * tests/test-fseeko.c (fseeko): Likewise.
37865         * tests/test-fstatat.c (fstatat): Likewise.
37866         * tests/test-fsync.c (fsync): Likewise.
37867         * tests/test-ftell.c (ftell): Likewise.
37868         * tests/test-ftello.c (ftello): Likewise.
37869         * tests/test-futimens.c (futimens): Likewise.
37870         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37871         (gai_strerror): Likewise.
37872         * tests/test-getcwd.c (getcwd): Likewise.
37873         * tests/test-getdelim.c (getdelim): Likewise.
37874         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37875         * tests/test-getgroups.c (getgroups): Likewise.
37876         * tests/test-gethostname.c (gethostname): Likewise.
37877         * tests/test-getline.c (getline): Likewise.
37878         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37879         Likewise.
37880         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37881         * tests/test-glob.c (glob, globfree): Likewise.
37882         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37883         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37884         * tests/test-inet_pton.c (inet_pton): Likewise.
37885         * tests/test-isblank.c (isblank): Likewise.
37886         * tests/test-lchown.c (lchown): Likewise.
37887         * tests/test-ldexpl.c (ldexpl): Likewise.
37888         * tests/test-link.c (link): Likewise.
37889         * tests/test-linkat.c (linkat): Likewise.
37890         * tests/test-lseek.c (lseek): Likewise.
37891         * tests/test-lstat.c (lstat): Likewise.
37892         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37893         * tests/test-mbsinit.c (mbsinit): Likewise.
37894         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37895         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37896         * tests/test-memchr.c (memchr): Likewise.
37897         * tests/test-memcmp.c (memcmp): Likewise.
37898         * tests/test-memmem.c (memmem): Likewise.
37899         * tests/test-memrchr.c (memrchr): Likewise.
37900         * tests/test-mkdir.c (mkdir): Likewise.
37901         * tests/test-mkdirat.c (mkdirat): Likewise.
37902         * tests/test-mkfifo.c (mkfifo): Likewise.
37903         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37904         * tests/test-mknod.c (mknod): Likewise.
37905         * tests/test-nanosleep.c (nanosleep): Likewise.
37906         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37907         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37908         Likewise.
37909         * tests/test-open.c (open): Likewise.
37910         * tests/test-openat.c (openat): Likewise.
37911         * tests/test-perror.c (perror): Likewise.
37912         * tests/test-pipe2.c (pipe2): Likewise.
37913         * tests/test-poll.c (poll): Likewise.
37914         * tests/test-popen.c (popen, pclose): Likewise.
37915         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37916         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37917         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37918         (posix_spawn_file_actions_destroy)
37919         (posix_spawn_file_actions_addclose)
37920         (posix_spawn_file_actions_addopen)
37921         (posix_spawn_file_actions_adddup2): Likewise.
37922         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37923         * tests/test-pread.c (pread): Likewise.
37924         * tests/test-printf-posix.c (printf): Likewise.
37925         * tests/test-pty.c (openpty, forkpty): Likewise.
37926         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37927         (random_r): Likewise.
37928         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37929         * tests/test-readlink.c (readlink): Likewise.
37930         * tests/test-remove.c (remove): Likewise.
37931         * tests/test-rename.c (rename): Likewise.
37932         * tests/test-renameat.c (renameat): Likewise.
37933         * tests/test-rmdir.c (rmdir): Likewise.
37934         * tests/test-round1.c (round): Likewise.
37935         * tests/test-roundf1.c (roundf): Likewise.
37936         * tests/test-roundl.c (roundl): Likewise.
37937         * tests/test-setenv.c (setenv): Likewise.
37938         * tests/test-sigaction.c (sigaction): Likewise.
37939         * tests/test-sleep.c (sleep): Likewise.
37940         * tests/test-snprintf.c (snprintf): Likewise.
37941         * tests/test-sprintf-posix.c (sprintf): Likewise.
37942         * tests/test-stat.c (stat): Likewise.
37943         * tests/test-stpncpy.c (stpncpy): Likewise.
37944         * tests/test-strcasestr.c (strcasestr): Likewise.
37945         * tests/test-strchrnul.c (strchrnul): Likewise.
37946         * tests/test-strerror.c (strerror): Likewise.
37947         * tests/test-strsignal.c (strsignal): Likewise.
37948         * tests/test-strstr.c (strstr): Likewise.
37949         * tests/test-strtod.c (strtod): Likewise.
37950         * tests/test-strverscmp.c (strverscmp): Likewise.
37951         * tests/test-symlink.c (symlink): Likewise.
37952         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37953         * tests/test-times.c (times): Likewise.
37954         * tests/test-trunc1.c (trunc): Likewise.
37955         * tests/test-truncf1.c (truncf): Likewise.
37956         * tests/test-truncl.c (truncl): Likewise.
37957         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37958         Likewise.
37959         * tests/test-uname.c (uname): Likewise.
37960         * tests/test-unlink.c (unlink): Likewise.
37961         * tests/test-unlinkat.c (unlinkat): Likewise.
37962         * tests/test-unsetenv.c (unsetenv): Likewise.
37963         * tests/test-usleep.c (usleep): Likewise.
37964         * tests/test-utimensat.c (utimensat): Likewise.
37965         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37966         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37967         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37968         * tests/test-vprintf-posix.c (vprintf): Likewise.
37969         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37970         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37971         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37972         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37973         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37974         * tests/test-wcwidth.c (wcwidth): Likewise.
37975
37976         build: pull in conditional headers during GNULIB_POSIXCHECK
37977         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37978         definitions from any conditionally-included headers.
37979         * lib/stdlib.in.h (includes): Likewise.
37980         * lib/unistd.in.h (includes): Likewise.
37981
37982 2009-12-24  Bruno Haible  <bruno@clisp.org>
37983
37984         * tests/test-argv-iter.c: Include header file being tested immediately
37985         after config.h.
37986         * tests/test-base64.c: Likewise.
37987         * tests/test-flock.c: Likewise.
37988         * tests/test-fsync.c: Likewise.
37989         * tests/test-getdate.c: Likewise.
37990         * tests/test-getndelim2.c: Likewise.
37991         * tests/test-isfinite.c: Likewise.
37992         * tests/test-isinf.c: Likewise.
37993         * tests/test-strerror.c: Likewise.
37994         * tests/test-strsignal.c: Likewise.
37995
37996 2009-12-23  Eric Blake  <ebb9@byu.net>
37997
37998         unistd: work around cygwin bug
37999         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38000         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38001         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38002
38003 2009-12-23  Bruno Haible  <bruno@clisp.org>
38004
38005         localename: More tests.
38006         * tests/test-localename.c (SIZEOF): New macro.
38007         (categories): New variable.
38008         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38009         test_locale_name_default): Add test w.r.t. thread locale.
38010         (test_locale_name_thread): New function.
38011         (main): Invoke it.
38012
38013         localename: Make aware of thread locale.
38014         * lib/localename.h (gl_locale_name_thread): New declaration.
38015         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38016         behaviour with respect to thread locale.
38017         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38018         <langinfo.h>, glthread/lock.h.
38019         (SIZE_BITS): New macro.
38020         (string_hash): New function.
38021         (struct hash_node): New type.
38022         (HASH_TABLE_SIZE): New macro.
38023         (struniq_hash_table, struniq_lock): New variables.
38024         (struniq): New function.
38025         (gl_locale_name_thread): New function.
38026         (gl_locale_name): Invoke it.
38027         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38028         * modules/localename (Depends-on): Add lock.
38029         Reported by Mike Gran <spk121@yahoo.com>.
38030
38031 2009-12-23  Eric Blake  <ebb9@byu.net>
38032
38033         va-args: new module
38034         * modules/va-args: New file.
38035         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38036         * MODULES.html.sh (Core language properties): Mention it.
38037
38038         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38039         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38040         named alias for __attribute__((__unused__)).
38041         * lib/chown.c: Update client.
38042         * lib/fchmodat.c: Likewise.
38043         * lib/fts.c: Likewise.
38044         * lib/getdate.y: Likewise.
38045         * lib/getgroups.c: Likewise.
38046         * lib/getopt.c: Likewise.
38047         * lib/getugroups.c: Likewise.
38048         * lib/mkdir.c: Likewise.
38049         * lib/mkfifo.c: Likewise.
38050         * lib/mkfifoat.c: Likewise.
38051         * lib/mknod.c: Likewise.
38052         * lib/mknodat.c: Likewise.
38053         * lib/readlink.c: Likewise.
38054         * lib/se-context.in.h: Likewise.
38055         * lib/se-selinux.in.h: Likewise.
38056         * lib/sockets.c: Likewise.
38057         * lib/symlink.c: Likewise.
38058         * lib/symlinkat.c: Likewise.
38059         * lib/unicodeio.c: Likewise.
38060         * lib/unistr.h: Likewise.
38061         * tests/test-areadlink.c: Likewise.
38062         * tests/test-areadlinkat.c: Likewise.
38063         * tests/test-filenamecat.c: Likewise.
38064         * tests/test-fseeko.c: Likewise.
38065         * tests/test-ftello.c: Likewise.
38066         * tests/test-getdate.c: Likewise.
38067         * tests/test-getgroups.c: Likewise.
38068         * tests/test-gethostname.c: Likewise.
38069         * tests/test-quotearg.c: Likewise.
38070         * tests/test-version-etc.c: Likewise.
38071         * tests/test-xalloc-die.c: Likewise.
38072         * tests/test-xfprintf-posix.c: Likewise.
38073         * tests/test-xprintf-posix.c: Likewise.
38074         * tests/test-xvasprintf.c: Likewise.
38075
38076         tests: avoid compiler warnings
38077         * tests/test-fcntl.c (main): Delete unused parameters.
38078         * tests/test-freopen-safer.c (main): Likewise.
38079         * tests/test-xalloc-die.c (main): Mark unused parameters.
38080         * tests/test-fseeko.c (main): Likewise.
38081         * tests/test-ftello.c (main): Likewise.
38082         * tests/test-nanosleep.c (main): Avoid declaration warning.
38083         * tests/test-sleep.c (main): Likewise.
38084         * tests/test-unsetenv.c (main): Silence warning about string
38085         literal.
38086         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38087
38088 2009-12-23  Bruno Haible  <bruno@clisp.org>
38089
38090         * tests/test-localename.c (test_locale_name): New function, extracted
38091         from main. Also test mixed situations.
38092         (test_locale_name_posix, test_locale_name_environ,
38093         test_locale_name_default): New functions.
38094         (main): Invoke them all.
38095         * modules/localename-tests (configure.ac): Test for newlocale.
38096
38097 2009-12-23  Bruno Haible  <bruno@clisp.org>
38098
38099         unistd: Ensure getcwd gets declared before being overridden.
38100         * lib/unistd.in.h: Conditionally include <io.h>.
38101
38102 2009-12-22  Bruno Haible  <bruno@clisp.org>
38103
38104         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38105         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38106         (gl_WCHAR_H): Invoke it.
38107         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38108         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38109         Reported by Karl Berry <karl@freefriends.org>.
38110
38111 2009-12-22  Eric Blake  <ebb9@byu.net>
38112
38113         math, unistd: avoid redundant includes
38114         * lib/math.in.h (isnan): No need to re-include <math.h>.
38115         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38116
38117         getsubopt: work around cygwin bug
38118         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38119         avoid conflicting with system getsubopt.
38120         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38121         bug.
38122
38123         getopt: synchronize from glibc
38124         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38125         parameter order.  Adjust all callers.
38126         (_getopt_internal_r, main): Adjust quoting in error messages.
38127         Drop considerations for outdated POSIX 1003.2 error message.
38128         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38129         callers.
38130         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38131
38132         test-getopt: test stderr behavior
38133         * modules/getopt-posix-tests (Depends-on): Add dup2.
38134         * tests/test-getopt.c (ASSERT): Avoid stderr.
38135         (main): Move stderr to a temporary file.
38136         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38137         Instead, add parameter to inform caller if output occurred.
38138         (test_getopt): Adjust all existing tests to expect silence, and
38139         add new tests of leading ":".
38140         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38141         glibc shortcomings with leading "-:" or "+:" in optstring.
38142         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38143         Likewise.
38144         * doc/posix-functions/getopt.texi (getopt): Likewise.
38145
38146         test-getopt: enhance test
38147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38148         supports optind=0.
38149         * tests/test-getopt.c (OPTIND_MIN): Move...
38150         * tests/test-getopt.h (OPTIND_MIN): ...here.
38151         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38152         Require that optind=0 works, since modern BSD supports it in
38153         addition to optreset, and since coreutils expects it.
38154         (test_getopt_long_only): New test.
38155         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38156         glibc shortcomings with 'W;', and enforcement of optind=0.
38157         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38158         Likewise.
38159
38160 2009-12-21  Bruno Haible  <bruno@clisp.org>
38161
38162         localename: Improvements for MacOS X and Cygwin.
38163         * lib/localename.h (gl_locale_name_environ): New declaration.
38164         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38165         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38166         (gl_locale_name_posix): Invoke it.
38167         (gl_locale_name_default): Add comments. Use Windows native API also on
38168         Cygwin.
38169
38170 2009-12-21  Bruno Haible  <bruno@clisp.org>
38171
38172         Update list of Win32 locale ids.
38173         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38174         (LANG_SAMI): Renamed from LANG_SAAMI.
38175         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38176         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38177         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38178         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38179         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38180         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38181         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38182         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38183         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38184         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38185         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38186         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38187         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38188         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38189         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38190         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38191         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38192         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38193         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38194         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38195         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38196         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38197         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38198         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38199         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38200         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38201         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38202         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38203         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38204         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38205         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38206         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38207         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38208         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38209         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38210         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38211         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38212         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38213         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38214         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38215         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38216         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38217         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38218         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38219         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38220         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38221         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38222         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38223         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38224         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38225         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38226         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38227         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38228         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38229         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38230         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38231         Add more languages and countries for Sami, Sorbian. Add more countries
38232         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38233         for Pashto. Change country for Syriac, Tswana.
38234
38235 2009-12-21  Eric Blake  <ebb9@byu.net>
38236
38237         test-utimens: avoid spurious failure
38238         * tests/test-chown.h (nap): Factor...
38239         * tests/nap.h: ...into new file.
38240         * tests/test-lchown.h (nap): Avoid duplication.
38241         * tests/test-utimens-common.h (nap): Use shared implementation,
38242         necessary on file systems with 1-second resolution.
38243         * modules/chown-tests (Files): Include new file.
38244         * modules/fdutimensat-tests (Files): Likewise.
38245         * modules/futimens-tests (Files): Likewise.
38246         * modules/lchown-tests (Files): Likewise.
38247         * modules/openat-tests (Files): Likewise.
38248         * modules/utimens-tests (Files): Likewise.
38249         * modules/utimensat-tests (Files): Likewise.
38250
38251 2009-12-19  Eric Blake  <ebb9@byu.net>
38252
38253         futimens, utimensat: work around Linux bug
38254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38255         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38256         * lib/utimensat.c (rpl_utimensat): Work around it.
38257         * lib/futimens.c (rpl_futimens): Adjust comment.
38258
38259         utimens: work around Linux ctime bug
38260         * lib/utimens.c (detect_ctime_bug): New helper function.
38261         (update_timespec): Differentiate between workaround needed for
38262         this bug vs. what is needed for systems that lack utimensat.
38263         (fdutimens, lutimens): Work around bug.
38264
38265         utimens: check for ctime update
38266         * tests/test-utimens-common.h (check_ctime): Define.
38267         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38268         * tests/test-futimens.h (test_futimens): Likewise.
38269         * tests/test-lutimens.h (test_lutimens): Likewise.
38270         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38271         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38272
38273 2009-12-19  Bruno Haible  <bruno@clisp.org>
38274
38275         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38276         * tests/test-dprintf-posix2.sh: New file.
38277         * tests/test-dprintf-posix2.c: New file.
38278         * modules/dprintf-posix-tests (Files): Add them.
38279         (configure.ac): Check for getrlimit and setrlimit.
38280         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38281
38282 2009-12-19  Bruno Haible  <bruno@clisp.org>
38283
38284         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38285         * tests/test-fprintf-posix3.sh: New file.
38286         * tests/test-fprintf-posix3.c: New file.
38287         * modules/fprintf-posix-tests (Files): Add them.
38288         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38289
38290 2009-12-19  Eric Blake  <ebb9@byu.net>
38291
38292         dirfd: fix prototype
38293         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38294         * lib/dirfd.c (dirfd): Likewise.
38295
38296         canonicalize: reduce memory usage
38297         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38298         allocation to size.
38299         Reported by Solar Designer <solar@openwall.com>.
38300
38301 2009-12-19  Bruno Haible  <bruno@clisp.org>
38302
38303         New module attribute 'Applicability'.
38304         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38305         * gnulib-tool: New option --extract-applicability.
38306         (func_usage): Document it.
38307         (sed_extract_prog): Recognize it.
38308         (func_get_applicability): New function.
38309         (func_import): Generalize handling of 'link-warning' module.
38310         * modules/link-warning (Applicability): New section.
38311         * modules/arg-nonnull (Applicability): New section.
38312         Repoted by Simon Josefsson <simon@josefsson.org>.
38313
38314 2009-12-19  Bruno Haible  <bruno@clisp.org>
38315
38316         fflush: tweak
38317         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38318         * lib/fseeko.c (rpl_fseeko): Likewise.
38319
38320 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38321
38322         * lib/gl_list.h: Fix typo in comment.
38323
38324 2009-12-16  Eric Blake  <ebb9@byu.net>
38325
38326         fcntl: use to simplify other modules
38327         * modules/cloexec (Depends-on): Add fcntl.
38328         * modules/fchdir (Depends-on): Likewise.
38329         * modules/fd-safer-flag (Depends-on): Likewise.
38330         * modules/unistd-safer (Depends-on): Likewise.
38331         * modules/dup3 (configure.ac): Set module indicator.
38332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38333         missing.
38334         * lib/fchdir.c (_gl_register_dup): Fix comment.
38335         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38336         * lib/dup-safer.c (dup_safer): Likewise.
38337         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38338         * lib/dup3.c (dup3): Likewise.
38339         * tests/test-fchdir.c (main): Enhance test.
38340         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38341
38342         fcntl: port portions of fcntl to mingw
38343         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38344         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38345         replacement for mingw.
38346         * modules/fcntl (Description): Update.
38347         (Depends-on): Add dup2.
38348         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38349         * modules/fcntl-h (Makefile.am): Substitute it.
38350         * lib/fcntl.in.h (fcntl): Update declaration.
38351         (F_DUPFD, F_GETFD): New macros, when needed.
38352         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38353         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38354         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38355         we now guarantee.
38356
38357         fcntl: work around cygwin bug in F_DUPFD
38358         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38359         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38360         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38361         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38362         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38363
38364         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38365         * modules/fcntl (Files): List new files.
38366         (configure.ac): Run a test.
38367         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38368         * lib/fcntl.c (rpl_fcntl): Likewise.
38369         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38370         (gl_FCNTL_H): Always replace fcntl.h.
38371         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38372         * lib/fcntl.in.h (fcntl): Declare replacement.
38373         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38374         needed, plus a witness.
38375         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38376         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38377         * tests/test-fcntl.c: New file.
38378         * modules/fcntl-tests: Likewise.
38379
38380         binary-io: avoid potential compilation warning
38381         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38382         directives.
38383
38384         fflush: avoid compilation error on NetBSD
38385         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38386         between off_t and fpos_t, since the latter is sometimes a struct.
38387         * lib/fseeko.c (rpl_fseeko): Likewise.
38388         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38389
38390 2009-12-15  Eric Blake  <ebb9@byu.net>
38391
38392         fcntl-h, stdio, sys_ioctl: fix declarations
38393         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38394         function must not take arguments.
38395         * lib/sys_ioctl.in.h (ioctl): Likewise.
38396         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38397         (open): Add a link warning.
38398
38399 2009-12-15  Jim Meyering  <meyering@redhat.com>
38400
38401         areadlink, areadlink-with-size: relax license to LGPLv2+
38402         * modules/areadlink (License): Relax to LGPLv2+.
38403         * modules/areadlink-with-size (License): Likewise.
38404
38405 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38406             Bruno Haible  <bruno@clisp.org>
38407
38408         *printf: Fix memory leak.
38409         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38410         * lib/vfprintf.c (vfprintf): Likewise.
38411         * lib/dprintf.c (dprintf): Likewise.
38412         * lib/vdprintf.c (vdprintf): Likewise.
38413
38414 2009-12-14  Eric Blake  <ebb9@byu.net>
38415
38416         accept4: adjust module dependencies
38417         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38418
38419         utimens: one more try at avoiding compiler warning
38420         * lib/utimens.c (lutimens): Lower scope of result.
38421
38422 2009-12-13  Bruno Haible  <bruno@clisp.org>
38423
38424         Move the malloc checking from module 'list' to new module 'xlist'.
38425         * modules/xlist: New file.
38426         * lib/gl_xlist.h: New file.
38427         * lib/gl_xlist.c: New file.
38428         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38429         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38430         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38431         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38432         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38433         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38434         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38435         gl_sortedlist_nx_add): New declarations.
38436         (struct gl_list_implementation): Rename and change methods accordingly.
38437         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38438         (gl_list_nx_create): Renamed from gl_list_create.
38439         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38440         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38441         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38442         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38443         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38444         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38445         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38446         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38447         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38448         gl_list_create_empty.
38449         (gl_list_nx_create): Renamed from gl_list_create.
38450         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38451         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38452         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38453         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38454         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38455         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38456         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38457         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38458         * lib/gl_array_list.c: Don't include xalloc.h.
38459         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38460         NULL upon out-of-memory.
38461         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38462         out-of-memory.
38463         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38464         Change return type to 'int'.
38465         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38466         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38467         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38468         upon out-of-memory.
38469         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38470         upon out-of-memory.
38471         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38472         upon out-of-memory.
38473         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38474         upon out-of-memory.
38475         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38476         out-of-memory.
38477         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38478         Update.
38479         (gl_array_list_implementation): Update.
38480         * lib/gl_carray_list.c: Don't include xalloc.h.
38481         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38482         Return NULL upon out-of-memory.
38483         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38484         out-of-memory.
38485         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38486         Change return type to 'int'.
38487         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38488         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38489         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38490         upon out-of-memory.
38491         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38492         upon out-of-memory.
38493         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38494         out-of-memory.
38495         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38496         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38497         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38498         Update.
38499         (gl_carray_list_implementation): Update.
38500         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38501         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38502         gl_linked_create_empty. Return NULL upon out-of-memory.
38503         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38504         out-of-memory.
38505         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38506         Change return type to 'int'. Return -1 upon out-of-memory.
38507         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38508         out-of-memory.
38509         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38510         upon out-of-memory.
38511         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38512         upon out-of-memory.
38513         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38514         NULL upon out-of-memory.
38515         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38516         upon out-of-memory.
38517         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38518         out-of-memory.
38519         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38520         Update.
38521         * lib/gl_linked_list.c: Don't include xalloc.h.
38522         (gl_linked_list_implementation): Update.
38523         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38524         (add_to_bucket): Change return type to 'int'.
38525         (gl_linkedhash_list_implementation): Update.
38526         * lib/gl_anytree_list1.h (free_subtree): New function.
38527         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38528         gl_tree_create_empty. Return NULL upon out-of-memory.
38529         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38530         Change return type to 'int'. Return -1 upon out-of-memory.
38531         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38532         out-of-memory.
38533         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38534         (gl_tree_remove_node): New function, moved here from
38535         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38536         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38537         Update.
38538         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38539         malloc, not xmalloc. Return NULL upon out-of-memory.
38540         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38541         out-of-memory.
38542         (gl_tree_remove_node_from_tree): New function, extracted from
38543         gl_tree_remove_node.
38544         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38545         upon out-of-memory.
38546         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38547         out-of-memory.
38548         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38549         upon out-of-memory.
38550         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38551         upon out-of-memory.
38552         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38553         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38554         not xmalloc. Return NULL upon out-of-memory.
38555         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38556         out-of-memory.
38557         (gl_tree_remove_node_from_tree): New function, extracted from
38558         gl_tree_remove_node.
38559         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38560         upon out-of-memory.
38561         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38562         out-of-memory.
38563         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38564         upon out-of-memory.
38565         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38566         upon out-of-memory.
38567         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38568         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38569         gl_anytree_list1.h before gl_anyavltree_list2.h.
38570         (gl_avltree_list_implementation): Update.
38571         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38572         gl_anytree_list1.h before gl_anyavltree_list2.h.
38573         (gl_rbtree_list_implementation): Update.
38574         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38575         Change return type to 'int'. Return -1 upon out-of-memory. Use
38576         __builtin_expect.
38577         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38578         (gl_avltreehash_list_implementation): Update.
38579         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38580         (gl_rbtreehash_list_implementation): Update.
38581         * modules/array-list (Depends-on): Remove xalloc.
38582         * modules/carray-list (Depends-on): Likewise.
38583         * modules/linked-list (Depends-on): Likewise.
38584         * modules/linkedhash-list (Depends-on): Likewise.
38585         * modules/avltree-list (Depends-on): Likewise.
38586         * modules/rbtree-list (Depends-on): Likewise.
38587         * modules/avltreehash-list (Depends-on): Likewise.
38588         * modules/rbtreehash-list (Depends-on): Likewise.
38589
38590         * modules/xsublist: New file.
38591         * lib/gl_xsublist.h: New file.
38592         * lib/gl_xsublist.c: New file.
38593         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38594         (gl_sublist_nx_create): New declaration.
38595         * lib/gl_sublist.c: Don't include xalloc.h.
38596         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38597         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38598         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38599         Change return type to 'int'. Return -1 upon out-of-memory.
38600         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38601         upon out-of-memory.
38602         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38603         NULL upon out-of-memory.
38604         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38605         upon out-of-memory.
38606         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38607         NULL upon out-of-memory.
38608         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38609         NULL upon out-of-memory.
38610         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38611         upon out-of-memory.
38612         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38613         (gl_sublist_list_implementation): Update.
38614         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38615         upon out-of-memory.
38616         * modules/sublist (Depends-on): Remove xalloc.
38617
38618         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38619         * tests/test-carray_list.c: Likewise.
38620         * tests/test-linked_list.c: Likewise.
38621         * tests/test-linkedhash_list.c: Likewise.
38622         * tests/test-avltree_list.c: Likewise.
38623         * tests/test-rbtree_list.c: Likewise.
38624         * tests/test-avltreehash_list.c: Likewise.
38625         * tests/test-rbtreehash_list.c: Likewise.
38626         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38627         * modules/carray-list-tests (Makefile.am): Likewise.
38628         * modules/linked-list-tests (Makefile.am): Likewise.
38629         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38630         * modules/avltree-list-tests (Makefile.am): Likewise.
38631         * modules/rbtree-list-tests (Makefile.am): Likewise.
38632         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38633         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38634
38635         * NEWS: Mention the changes.
38636
38637         * lib/clean-temp.c: Include gl_xlist.h.
38638         * modules/clean-temp (Depends-on): Add xlist.
38639
38640         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38641         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38642
38643         * tests/test-array_oset.c: Include gl_xlist.h.
38644         * modules/array-oset-tests (Depends-on): Add xlist.
38645
38646         Reported by José E. Marchesi <jemarch@gnu.org>.
38647
38648 2009-12-13  Bruno Haible  <bruno@clisp.org>
38649
38650         Move the malloc checking from module 'oset' to new module 'xoset'.
38651         * modules/xoset: New file.
38652         * lib/gl_xoset.h: New file.
38653         * lib/gl_xoset.c: New file.
38654         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38655         declarations.
38656         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38657         (struct gl_oset_implementation): Rename and change methods accordingly.
38658         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38659         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38660         'int'. Mark as __warn_unused_result__.
38661         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38662         gl_oset_create_empty.
38663         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38664         'int'.
38665         * lib/gl_array_oset.c: Don't include xalloc.h.
38666         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38667         malloc, not xmalloc.
38668         (grow): Change return type to 'int'. Don't call xalloc_die.
38669         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38670         to 'int'.
38671         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38672         'int'.
38673         (gl_array_oset_implementation): Update.
38674         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38675         gl_tree_create_empty.
38676         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38677         'int'.
38678         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38679         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38680         xmalloc.
38681         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38682         not xmalloc.
38683         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38684         xmalloc.
38685         (gl_avltree_oset_implementation): Update.
38686         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38687         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38688         xmalloc.
38689         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38690         not xmalloc.
38691         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38692         xmalloc.
38693         (gl_rbtree_oset_implementation): Update.
38694         * modules/array-oset (Depends-on): Remove xalloc.
38695         * modules/avltree-oset (Depends-on): Likewise.
38696         * modules/rbtree-oset (Depends-on): Likewise.
38697         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38698         * tests/test-avltree_oset.c: Likewise.
38699         * tests/test-rbtree_oset.c: Likewise.
38700         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38701         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38702         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38703         * NEWS: Mention the change.
38704
38705 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38706
38707         maint.mk: allow a project to override release-prep commands
38708         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38709         commands into a new rule.
38710         (release-prep): New rule.
38711         (release-prep-hook): New overridable variable.
38712
38713 2009-12-13  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38716
38717 2009-12-13  Jim Meyering  <meyering@redhat.com>
38718
38719         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38720         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38721
38722 2009-12-12  Bruno Haible  <bruno@clisp.org>
38723
38724         duplocale: Tweak.
38725         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38726
38727 2009-12-12  Karl Berry  <karl@gnu.org>
38728
38729         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38730
38731 2009-12-12  Bruno Haible  <bruno@clisp.org>
38732
38733         * m4/po.m4: Undo incorrect untabification.
38734
38735 2009-12-12  Bruno Haible  <bruno@clisp.org>
38736
38737         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38738         * modules/c-strtod (Depends-on): Add locale.
38739         * modules/c-strtold (Depends-on): Likewise.
38740
38741 2009-12-12  Bruno Haible  <bruno@clisp.org>
38742
38743         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38744
38745 2009-12-11  Eric Blake  <ebb9@byu.net>
38746
38747         setenv: relax requirement in light of POSIX ruling
38748         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38749         not NULL.
38750         * tests/test-setenv.c (main): Relax test.
38751         * tests/test-unsetenv.c (main): Likewise.
38752         * doc/posix-functions/setenv.texi (setenv): Document this.
38753         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38754
38755 2009-12-11  Bruno Haible  <bruno@clisp.org>
38756
38757         New module 'fd-safer-flag'.
38758         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38759         * lib/dup-safer.c (dup_safer_flag): Remove function.
38760         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38761         * lib/fd-safer.c (fd_safer_flag): Remove function.
38762         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38763         * modules/cloexec (configure.ac): Drop indicator macro.
38764         * modules/fd-safer-flag: New file.
38765         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38766         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38767         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38768
38769 2009-12-11  Bruno Haible  <bruno@clisp.org>
38770
38771         Tests for module 'nl_langinfo'.
38772         * modules/nl_langinfo-tests: New file.
38773         * tests/test-nl_langinfo.sh: New file.
38774         * tests/test-nl_langinfo.c: New file.
38775
38776         New module 'nl_langinfo'.
38777         * lib/nl_langinfo.c: New file.
38778         * m4/nl_langinfo.m4: New file.
38779         * modules/nl_langinfo: New file.
38780         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38781
38782 2009-12-11  Bruno Haible  <bruno@clisp.org>
38783
38784         Tests for module 'langinfo'.
38785         * modules/langinfo-tests: New file.
38786         * tests/test-langinfo.c: New file.
38787
38788         New module 'langinfo'.
38789         * lib/langinfo.in.h: New file.
38790         * m4/langinfo_h.m4: New file.
38791         * modules/langinfo: New file.
38792         * doc/posix-headers/langinfo.texi: Mention the new module.
38793
38794 2009-12-11  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/config.charset: Untabify.
38797
38798 2009-12-11  Bruno Haible  <bruno@clisp.org>
38799
38800         * modules/unistd-safer (configure.ac): Drop indicator macro.
38801
38802 2009-12-11  Bruno Haible  <bruno@clisp.org>
38803
38804         Move pipe2-safer code to its own file.
38805         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38806         * lib/pipe-safer.c (pipe2_safer): Remove function.
38807         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38808         (Makefile.am): Add it to lib_SOURCES.
38809
38810 2009-12-10  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38813
38814 2009-12-10  Bruno Haible  <bruno@clisp.org>
38815
38816         Declare which arguments expect non-NULL values, for GCC and clang.
38817         * build-aux/arg-nonnull.h: New file.
38818         * modules/arg-nonnull: New file.
38819         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38820         (inet_ntop, inet_pton): Use it.
38821         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38822         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38823         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38824         (open, openat): Use it.
38825         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38826         (fnmatch): Use it.
38827         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38828         (getopt, getopt_long, getopt_long_only): Use it.
38829         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38830         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38831         Use it.
38832         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38833         (iconv_open): Use it.
38834         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38835         (strtoimax, strtoumax): Use it.
38836         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38837         (duplocale): Use it.
38838         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38839         (frexp, frexpl): Use it.
38840         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38841         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38842         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38843         (tsearch, tfind, tdelete, twalk): Use it.
38844         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38845         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38846         sigpending): Use it.
38847         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38848         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38849         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38850         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38851         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38852         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38853         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38854         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38855         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38856         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38857         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38858         Use it.
38859         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38860         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38861         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38862         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38863         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38864         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38865         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38866         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38867         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38868         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38869         strtoull, unsetenv): Use it.
38870         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38871         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38872         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38873         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38874         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38875         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38876         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38877         (strcasecmp, strncasecmp): Use it.
38878         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38879         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38880         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38881         rpl_setsockopt): Use it.
38882         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38883         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38884         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38885         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38886         (gettimeofday): Use it.
38887         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38888         (times): Use it.
38889         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38890         (uname): Use it.
38891         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38892         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38893         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38894         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38895         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38896         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38897         unlinkat, write): Use it.
38898         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38899         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38900         * lib/argv-iter.h: Include arg-nonnull.h.
38901         (_ATTRIBUTE_NONNULL_): Remove macro.
38902         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38903         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38904         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38905         optimization.
38906         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38907         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38908         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38909         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38910         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38911         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38912         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38913         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38914         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38915         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38916         * modules/dirent (Depends-on): Add arg-nonnull.
38917         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38918         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38919         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38920         * modules/fnmatch (Depends-on): Add arg-nonnull.
38921         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38922         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38923         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38924         * modules/glob (Depends-on): Add arg-nonnull.
38925         (Makefile.am): Insert arg-nonnull.h into glob.h.
38926         * modules/iconv_open (Depends-on): Add arg-nonnull.
38927         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38928         * modules/inttypes (Depends-on): Add arg-nonnull.
38929         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38930         * modules/locale (Depends-on): Add arg-nonnull.
38931         (Makefile.am): Insert arg-nonnull.h into locale.h.
38932         * modules/math (Depends-on): Add arg-nonnull.
38933         (Makefile.am): Insert arg-nonnull.h into math.h.
38934         * modules/netdb (Depends-on): Add arg-nonnull.
38935         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38936         * modules/search (Depends-on): Add arg-nonnull.
38937         (Makefile.am): Insert arg-nonnull.h into search.h.
38938         * modules/signal (Depends-on): Add arg-nonnull.
38939         (Makefile.am): Insert arg-nonnull.h into signal.h.
38940         * modules/spawn (Depends-on): Add arg-nonnull.
38941         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38942         * modules/stdio (Depends-on): Add arg-nonnull.
38943         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38944         * modules/stdlib (Depends-on): Add arg-nonnull.
38945         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38946         * modules/string (Depends-on): Add arg-nonnull.
38947         (Makefile.am): Insert arg-nonnull.h into string.h.
38948         * modules/strings (Depends-on): Add arg-nonnull.
38949         (Makefile.am): Insert arg-nonnull.h into strings.h.
38950         * modules/sys_socket (Depends-on): Add arg-nonnull.
38951         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38952         * modules/sys_stat (Depends-on): Add arg-nonnull.
38953         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38954         * modules/sys_time (Depends-on): Add arg-nonnull.
38955         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38956         * modules/sys_times (Depends-on): Add arg-nonnull.
38957         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38958         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38959         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38960         * modules/time (Depends-on): Add arg-nonnull.
38961         (Makefile.am): Insert arg-nonnull.h into time.h.
38962         * modules/unistd (Depends-on): Add arg-nonnull.
38963         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38964         * modules/wchar (Depends-on): Add arg-nonnull.
38965         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38966         * modules/argv-iter (Depends-on): Add arg-nonnull.
38967         * tests/test-canonicalize.c (null_ptr): New function.
38968         (main): Use it.
38969         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38970         (main): Use it.
38971         * tests/test-memmem.c (null_ptr): New function.
38972         (main): Use it.
38973         Reported by Jim Meyering.
38974
38975 2009-12-10  Bruno Haible  <bruno@clisp.org>
38976
38977         Use spaces for indentation, not tabs.
38978         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38979         * m4/*.m4: Untabify.
38980         * build-aux/*.h: Untabify.
38981         * tests/**/*.[hc]: Untabify.
38982         * README: New section "Indent with spaces, not TABs", based on
38983         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38984         * NEWS: Mention the change.
38985
38986 2009-12-10  Bruno Haible  <bruno@clisp.org>
38987
38988         pty test: Fix link error.
38989         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38990         test_pty_LDADD.
38991
38992 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38993
38994         * modules/pty: New file.
38995         * modules/pty-tests: New file.
38996         * m4/pty.m4: New file.
38997         * tests/test-pty.c: New file.
38998         * doc/glibc-headers/pty.texi: Modified.
38999         * doc/glibc-functions/forkpty.texi: Modified.
39000         * doc/glibc-functions/openpty.texi: Modified.
39001
39002 2009-12-10  Bruno Haible  <bruno@clisp.org>
39003
39004         Avoid syntax error in C++ mode.
39005         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39006
39007 2009-12-10  Bruno Haible  <bruno@clisp.org>
39008
39009         Use sed with option -e.
39010         * gnulib-tool (func_version, func_emit_copyright_notice,
39011         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39012         option -e to sed.
39013         * modules/link-warning (Makefile.am): Likewise.
39014
39015 2009-12-10  Jim Meyering  <meyering@redhat.com>
39016
39017         mgetgroups: do not write bytes beyond end of malloc'd buffer
39018         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39019         username, we call getgroups with a one-element-shorter buffer,
39020         but still told it the length was original, max_n_groups.
39021
39022 2009-12-09  Eric Blake  <ebb9@byu.net>
39023
39024         cloexec: relax license
39025         * modules/cloexec (Maintainer): Add myself.
39026         (License): Use LGPL, not GPL.
39027
39028         link-warning: optimize generation
39029         * modules/link-warning (Makefile.am): Reduce process usage.
39030
39031 2009-12-09  Bruno Haible  <bruno@clisp.org>
39032
39033         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39034         workaround was added on 2009-11-17.
39035
39036 2009-12-09  Jim Meyering  <meyering@redhat.com>
39037             Bruno Haible  <bruno@clisp.org>
39038
39039         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39040         * modules/link-warning (Makefile.am): Make the comment-removing sed
39041         command more robust in the face of bootstrap-prepended comment lines.
39042
39043 2009-12-09  Bruno Haible  <bruno@clisp.org>
39044
39045         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39046         most one group.
39047
39048 2009-12-09  Simon Josefsson <simon@josefsson.org>
39049             Bruno Haible  <bruno@clisp.org>
39050
39051         * build-aux/link-warning.h: Add copyright notice.
39052         * modules/link-warning (Makefile.am): Generate link-warning.h from
39053         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39054         * NEWS: Mention change in link-warning module.
39055         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39056         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39057         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39058         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39059         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39060         * modules/math (Makefile.am): Add dependency to math.h.
39061         * modules/search (Makefile.am): Add dependency to search.h.
39062         * modules/signal (Makefile.am): Add dependency to signal.h.
39063         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39064         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39065         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39066         * modules/string (Makefile.am): Add dependency to string.h.
39067         * modules/strings (Makefile.am): Add dependency to strings.h.
39068         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39069         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39070         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39071         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39072         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39073         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39074         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39075         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39076         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39077
39078 2009-12-09  Bruno Haible  <bruno@clisp.org>
39079
39080         fchdir: Optimize away rpl_fstat when possible.
39081         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39082         REPLACE_OPEN_DIRECTORY.
39083         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39084
39085 2009-12-09  Bruno Haible  <bruno@clisp.org>
39086
39087         * lib/fchdir.c: Update comment.
39088
39089 2009-12-09  Bruno Haible  <bruno@clisp.org>
39090
39091         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39092
39093 2009-12-08  Eric Blake  <ebb9@byu.net>
39094
39095         fchdir: avoid memory leak on re-registration.
39096         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39097
39098 2009-12-08  Jim Meyering  <meyering@redhat.com>
39099
39100         init.sh: avoid Solaris 10 /bin/sh portability problem
39101         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39102         sourced script:
39103           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39104           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39105           bar
39106         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39107         and two tests used that idiom.
39108         * tests/init.sh: Update suggested usage comments.
39109         (path_prepend_): New function, to be used in place
39110         of the --src-path=DIR option.
39111         (setup_): Move PATH-prepending code into path_prepend_.
39112         * tests/test-pread.sh: Adapt to new usage.
39113         * tests/test-xalloc-die.sh: Likewise.
39114
39115 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39116
39117         * doc/gnulib.texi (Glibc pty.h): Add.
39118         * doc/glibc-functions/forkpty.texi: Add.
39119         * doc/glibc-functions/openpty.texi: Add.
39120         Suggested by Bruno Haible.
39121
39122 2009-12-08  Eric Blake  <ebb9@byu.net>
39123
39124         fchdir: fix logic bugs
39125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39126         * tests/test-fchdir.c (main): Enhance test.
39127         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39128         is in use.
39129
39130         dup2: fix logic bugs
39131         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39132         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39133         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39134         exists.
39135         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39136
39137 2009-12-07  Eric Blake  <ebb9@byu.net>
39138
39139         unlink: fix m4 detection
39140         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39141
39142         unistd-safer: add unit test
39143         * modules/unistd-safer-tests: New file.
39144         * tests/test-dup-safer.c: Likewise.
39145         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39146         * tests/test-dup2.c (setmode): Likewise.
39147         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39148
39149         cloexec: preserve text vs. binary across dup_cloexec
39150         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39151         mode.
39152         * modules/dup2-tests (Depends-on): Add binary-io.
39153         * modules/cloexec-tests (Depends-on): Likewise.
39154         * tests/test-dup2.c (setmode, is_mode): New helpers.
39155         (main): Add tests that translation mode is preserved.
39156         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39157         Reported by Bruno Haible.
39158
39159         mgetgroups: reduce duplicate listings
39160         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39161         resulting array.
39162         * tests/test-chown.h (test_chown): Simplify client.
39163         * tests/test-lchown.h (test_lchown): Likewise.
39164
39165 2009-12-06  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39168         value.
39169
39170 2009-12-06  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/progname.c: Include stdio.h, stdlib.h.
39173         (set_program_name): Reject a NULL argument.
39174
39175 2009-12-05  Eric Blake  <ebb9@byu.net>
39176
39177         pipe2-safer: new module
39178         * modules/pipe2-safer: New file.
39179         * lib/unistd-safer.h (pipe2_safer): New prototype.
39180         * lib/unistd--.h (pipe2): New wrapper.
39181         * lib/pipe-safer.c (pipe2_safer): New function.
39182         * modules/pipe (Depends-on): Add pipe2-safer.
39183         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39184
39185         stdlib-safer: preserve cloexec flag for mkostemp[s]
39186         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39187         fd_safer_flag.
39188
39189         unistd-safer: allow preservation of cloexec status via flag
39190         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39191         prototypes.
39192         * lib/dup-safer.c (dup_safer_flag): New function.
39193         * lib/fd-safer.c (fd_safer_flag): Likewise.
39194         * modules/cloexec (configure.ac): Set witness.
39195
39196         test-dup2: enhance test
39197         * modules/dup2-tests (Depends-on): Add cloexec.
39198         * tests/test-dup2.c (main): Enhance test.
39199
39200         cloexec: add dup_cloexec
39201         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39202         header and comments.
39203         * lib/cloexec.c (set_cloexec_flag): Add comments.
39204         (dup_cloexec): New function, with mingw implementation borrowed
39205         from...
39206         * lib/w32spawn.h (dup_noinherit): ...here.
39207         * modules/execute (Depends-on): Add cloexec.
39208         * modules/pipe (Depends-on): Likewise.
39209         * modules/cloexec (Depends-on): Add dup2.
39210         * modules/cloexec-tests (Files): New file.
39211         * tests/test-cloexec.c: Likewise.
39212
39213         test-xalloc-die: fix test for mingw
39214         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39215         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39216         directory and .exe suffix off argv[0] output.
39217
39218         test-fseeko: fix test for mingw
39219         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39220         than undefining fseek, so test will pass on mingw.
39221
39222 2009-12-05  Bruno Haible  <bruno@clisp.org>
39223
39224         * lib/progname.h (set_program_name): Clarify specification.
39225         * lib/progname.c (set_program_name): Likewise.
39226         Reported by Jim Meyering.
39227
39228 2009-12-05  Jim Meyering  <meyering@redhat.com>
39229
39230         maint.mk: backslash-escape parens in default regexp
39231         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39232         backslash-escape the literal parentheses.
39233
39234         maint.mk: news-date-check: use grep -E
39235         * top/maint.mk (today): Define a Make variable, not a...
39236         (news-date-check): ...shell variable.
39237         (news-date-regexp): Use the Make variable.
39238         Use grep's -E option.  Change the failing diagnostic to mention
39239         the variable, $(news-date-regexp).
39240
39241 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39242
39243         maintainer-makefile: allow customization of NEWS entry format
39244         * top/maint.mk (news-date-regexp): New overridable variable.
39245         (news-date-check): Use it.
39246
39247 2009-12-04  Eric Blake  <ebb9@byu.net>
39248
39249         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39250         * lib/mgetgroups.h (xgetgroups): New prototype.
39251         * lib/mgetgroups.c (xgetgroups): New wrapper.
39252         (mgetgroups): Handle ENOSYS.
39253         * modules/mgetgroups (Depends-on): Add realloc.
39254         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39255
39256         mgetgroups: avoid argument promotion issues with -1
39257         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39258         for invalid gid_t.
39259         * tests/test-chown.h (getegid, test_chown): Likewise.
39260         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39261
39262 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39263
39264         exclude: Fix header file problems.
39265         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39266
39267 2009-12-01  Jim Meyering  <meyering@redhat.com>
39268
39269         fts: fts_open: do not let an empty string cause immediate failure
39270         This is required in support of GNU rm, for which the command
39271         "rm A '' B" must process and remove both A and B, in spite of
39272         the empty string argument.
39273         * lib/fts.c (fts_open): Do not let the presence of an empty string
39274         cause fts_open to fail immediately.  Most fts-using tools must be
39275         able to process all arguments, in order, and can be expected to
39276         diagnose such arguments themselves.
39277
39278 2009-11-30  Eric Blake  <ebb9@byu.net>
39279
39280         utimens: fix compilation error
39281         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39282         Declare variable at right scope.
39283
39284 2009-11-29  Jim Meyering  <meyering@redhat.com>
39285
39286         bootstrap: handle perl-5.11's changed --version output
39287         * build-aux/bootstrap (get_version): Handle perl separately,
39288         since perl-5.11's --version output is different.
39289
39290 2009-11-28  Jim Meyering  <meyering@redhat.com>
39291
39292         userspec: depend on the inttostr module, too
39293         * modules/userspec (Depends-on): Add inttostr.
39294
39295         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39296         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39297         number of MAXUID when it evaluates to (uid_t) -1.
39298         Likewise for group ID.  Reported by Matt McCutchen in
39299         <http://savannah.gnu.org/bugs/?28113>
39300
39301         userspec: reformat to use spaces, not TABs
39302         * lib/userspec.c: Expand TABs to spaces.
39303         Add Emacs' "indent-tabs-mode: nil" hint.
39304
39305 2009-11-27  Eric Blake  <ebb9@byu.net>
39306
39307         getopt-gnu: flush out another BSD bug
39308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39309         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39310         flush out BSD bug.
39311         * tests/test-getopt.h (test_getopt): End lists with NULL.
39312         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39313         (test_getopt_long_posix): Enhance test.
39314         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39315         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39316         getopt-gnu.
39317         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39318         Likewise.
39319
39320 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39321
39322         * modules/idpriv-droptemp-tests (Notice): Fix text.
39323
39324 2009-11-27  Jim Meyering  <meyering@redhat.com>
39325
39326         test-xalloc-die: avoid spurious failure due to libtool argv difference
39327         In a libtool-enabled project, this test would fail due to a difference
39328         in the emitted program name, e.g.,
39329         -test-xalloc-die: memory exhausted
39330         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39331         Use program to avoid that.
39332         * modules/xalloc-die-tests (Depends-on): Add progname.
39333         * tests/test-xalloc-die.c: Include progname.h".
39334         (program_name): Remove decl.
39335         (main): Call set_program_name.
39336         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39337
39338 2009-11-26  Richard Jones  <rjones@redhat.com>
39339
39340         w32sock: leave win32 error in place.
39341         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39342
39343 2009-11-26  Eric Blake  <ebb9@byu.net>
39344
39345         init.sh: suggest to use skip_ and fail_ functions in comments
39346         * tests/init.sh: Add a sentence.
39347
39348 2009-11-25  Bruno Haible  <bruno@clisp.org>
39349
39350         init.sh: add documentation in comments
39351         * tests/init.sh: Add some developer and user documentation.
39352
39353 2009-11-26  Jim Meyering  <meyering@redhat.com>
39354
39355         init.sh: accommodate even those who specify bogus srcdir manually
39356         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39357         configure-time tests to be sanitized, so that there is no need to
39358         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39359         (with no double quotes) suffices.  However, since tests may be
39360         invoked manually, and since you may explicitly set srcdir to the
39361         name of a directory containing spaces, do quote its uses here.
39362         * tests/test-pread.sh: Likewise.
39363         Suggested by Bruno Haible.
39364
39365         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39366         * tests/test-pread.sh: Write no data into the pipe, because
39367         test-pread actually reads none.  This avoids a diagnostic,
39368         "bash: echo: write error: Broken pipe", that arises in the unusual
39369         event something is ignoring SIGPIPE, and might be interpreted
39370         as some sort of failure.  Reported by Bruno Haible.
39371
39372 2009-11-25  Jim Meyering  <meyering@redhat.com>
39373
39374         test-pread: cover failure with ESPIPE and EINVAL
39375         * tests/test-pread.c (main): Test for failure, too.
39376         * tests/test-pread.sh: Invoke with stdin on a pipe.
39377         Suggested by Eric Blake.
39378
39379         pread: improvement and fix
39380         * modules/pread (Depends-on): Depend on lseek, for portability to
39381         e.g., mingw.  Suggested by Eric Blake.
39382         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39383
39384         unistd.in.h: correct declaration of pread
39385         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39386         Reported by Richard W.M. Jones.
39387
39388         test-pread.sh: distribute the test script
39389         * modules/pread-tests (Files): Include test-pread.sh.
39390
39391         test-pread.sh: clean up
39392         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39393         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39394         That is unnecessary, since it's always ".".
39395         Suggestion from Eric Blake.
39396
39397         test-pread.sh: make executable
39398         * tests/test-pread.sh: Set executable bit.
39399         Reported by Eric Blake.
39400
39401         correct typo in test-pread.sh
39402         * tests/test-pread.sh: Add #! line.
39403
39404         test pread
39405         * tests/test-pread.c: New file.
39406         * tests/test-pread.sh: Likewise.
39407         * modules/pread-tests: Likewise.
39408
39409         pread: new module
39410         * modules/pread: New file.
39411         * lib/unistd.in.h (pread): Define/declare.
39412         * lib/pread.c (pread): New file.
39413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39414         * modules/unistd (Makefile.am): Substitute witnesses.
39415         * doc/posix-functions/pread.texi (pread): Update.
39416         * MODULES.html.sh: Add pread.
39417
39418 2009-11-25  Jim Meyering  <meyering@redhat.com>
39419
39420         tests/init.sh: new file to be used via most *.sh tests
39421         * tests/init.sh: New file.
39422
39423 2009-11-25  Eric Blake  <ebb9@byu.net>
39424
39425         utimens: work around older Linux failure with symlinks
39426         * lib/utimens.c (lutimensat_works_really): New variable.
39427         (fdutimens, lutimens): Use it to manage kernels that support
39428         nanosecond times on files, but not on symlinks.
39429         Reported by Ondřej Vašík.
39430
39431         utimes: fix configure grammar
39432         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39433
39434 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39435
39436         regex: Fix fastmap for multibyte character ranges.
39437         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39438         characters when a multibyte character range is included.
39439
39440 2009-11-22  Andy Wingo  <wingo@pobox.com>
39441
39442         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39443         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39444
39445 2009-11-24  Bruno Haible  <bruno@clisp.org>
39446
39447         doc: Most *_l functions exist in MacOS X 10.5.
39448         * doc/posix-functions/duplocale.texi: Update platforms list.
39449         * doc/posix-functions/freelocale.texi: Likewise.
39450         * doc/posix-functions/newlocale.texi: Likewise.
39451         * doc/posix-functions/uselocale.texi: Likewise.
39452         * doc/posix-functions/isalnum_l.texi: Likewise.
39453         * doc/posix-functions/isalpha_l.texi: Likewise.
39454         * doc/posix-functions/isblank_l.texi: Likewise.
39455         * doc/posix-functions/iscntrl_l.texi: Likewise.
39456         * doc/posix-functions/isdigit_l.texi: Likewise.
39457         * doc/posix-functions/isgraph_l.texi: Likewise.
39458         * doc/posix-functions/islower_l.texi: Likewise.
39459         * doc/posix-functions/isprint_l.texi: Likewise.
39460         * doc/posix-functions/ispunct_l.texi: Likewise.
39461         * doc/posix-functions/isspace_l.texi: Likewise.
39462         * doc/posix-functions/isupper_l.texi: Likewise.
39463         * doc/posix-functions/iswalnum_l.texi: Likewise.
39464         * doc/posix-functions/iswalpha_l.texi: Likewise.
39465         * doc/posix-functions/iswblank_l.texi: Likewise.
39466         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39467         * doc/posix-functions/iswctype_l.texi: Likewise.
39468         * doc/posix-functions/iswdigit_l.texi: Likewise.
39469         * doc/posix-functions/iswgraph_l.texi: Likewise.
39470         * doc/posix-functions/iswlower_l.texi: Likewise.
39471         * doc/posix-functions/iswprint_l.texi: Likewise.
39472         * doc/posix-functions/iswpunct_l.texi: Likewise.
39473         * doc/posix-functions/iswspace_l.texi: Likewise.
39474         * doc/posix-functions/iswupper_l.texi: Likewise.
39475         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39476         * doc/posix-functions/isxdigit_l.texi: Likewise.
39477         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39478         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39479         * doc/posix-functions/strcoll_l.texi: Likewise.
39480         * doc/posix-functions/strfmon_l.texi: Likewise.
39481         * doc/posix-functions/strftime_l.texi: Likewise.
39482         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39483         * doc/posix-functions/strxfrm_l.texi: Likewise.
39484         * doc/posix-functions/tolower_l.texi: Likewise.
39485         * doc/posix-functions/toupper_l.texi: Likewise.
39486         * doc/posix-functions/towctrans_l.texi: Likewise.
39487         * doc/posix-functions/towlower_l.texi: Likewise.
39488         * doc/posix-functions/towupper_l.texi: Likewise.
39489         * doc/posix-functions/wcscoll_l.texi: Likewise.
39490         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39491         * doc/posix-functions/wctrans_l.texi: Likewise.
39492         * doc/posix-functions/wctype_l.texi: Likewise.
39493         * doc/glibc-functions/strptime_l.texi: Likewise.
39494         * doc/glibc-functions/strtod_l.texi: Likewise.
39495         * doc/glibc-functions/strtof_l.texi: Likewise.
39496         * doc/glibc-functions/strtol_l.texi: Likewise.
39497         * doc/glibc-functions/strtold_l.texi: Likewise.
39498         * doc/glibc-functions/strtoll_l.texi: Likewise.
39499         * doc/glibc-functions/strtoul_l.texi: Likewise.
39500         * doc/glibc-functions/strtoull_l.texi: Likewise.
39501         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39502         * doc/glibc-functions/wcstod_l.texi: Likewise.
39503         * doc/glibc-functions/wcstof_l.texi: Likewise.
39504         * doc/glibc-functions/wcstol_l.texi: Likewise.
39505         * doc/glibc-functions/wcstold_l.texi: Likewise.
39506         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39507         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39508         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39509
39510 2009-11-24  Bruno Haible  <bruno@clisp.org>
39511
39512         duplocale: Fix logic bug.
39513         * lib/duplocale.c: Don't include <langinfo.h>.
39514         (_NL_LOCALE_NAME): Remove macro.
39515         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39516         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39517
39518 2009-11-23  Jim Meyering  <meyering@redhat.com>
39519
39520         test-update-copyright: don't hard-code /usr/bin/perl
39521         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39522         perl to print the current year.  Gilles Espinasse reported that
39523         the replaced use of perl was hard-coded as /usr/bin/perl.
39524
39525 2009-11-23  Bruno Haible  <bruno@clisp.org>
39526
39527         duplocale: Add support for glibc 2.3.x.
39528         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39529
39530 2009-11-22  Bruno Haible  <bruno@clisp.org>
39531
39532         vasnprintf: Tiny optimization.
39533         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39534         MacOS X.
39535
39536 2009-11-22  Bruno Haible  <bruno@clisp.org>
39537
39538         Tests for module 'duplocale'.
39539         * modules/duplocale-tests: New file.
39540         * tests/test-duplocale.c: New file.
39541
39542         New module 'duplocale'.
39543         * m4/duplocale.m4: New file.
39544         * lib/locale.in.h (duplocale): New declaration.
39545         * lib/duplocale.c: New file.
39546         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39547         gl_LOCALE_H_DEFAULTS): New macros.
39548         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39549         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39550         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39551         REPLACE_DUPLOCALE.
39552         * modules/duplocale: New file.
39553         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39554
39555 2009-11-22  Bruno Haible  <bruno@clisp.org>
39556
39557         * modules/locale-tests (configure.ac): Test for newlocale function.
39558         * tests/test-locale.c: When the system has extended locale functions,
39559         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39560
39561         locale: Make locale_t available when possible.
39562         * lib/locale.in.h: Include <xlocale.h> when it exists.
39563         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39564         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39565         * modules/locale (Depends-on): Add extensions.
39566         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39567         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39568
39569 2009-11-22  Bruno Haible  <bruno@clisp.org>
39570
39571         Add comments.
39572         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39573         invocation.
39574         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39575         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39576         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39577
39578 2009-11-22  Bruno Haible  <bruno@clisp.org>
39579
39580         error: account for the possibility of freopen (stdout).
39581         * lib/error.c: Include <unistd.h>.
39582         (flush_stdout): New function, extracted from error and error_at_line.
39583         Determine stdout's fd dynamically.
39584         (error, error_at_line): Invoke flush_stdout.
39585         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39586         * modules/error (Depends-on): Add unistd.
39587
39588 2009-11-22  Bruno Haible  <bruno@clisp.org>
39589
39590         diffseq: Add comment.
39591         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39592
39593 2009-11-22  Jim Meyering  <meyering@redhat.com>
39594
39595         c-stack: avoid defining an unused static function
39596         * lib/c-stack.c (find_stack_direction): Do not define this function
39597         when it will not be used.
39598
39599         diffseq: avoid spurious gcc warnings
39600         * lib/diffseq.h (IF_LINT2): Define.
39601         (compareseq): Use it to initialize two members of "part".
39602         This avoids two used-uninitialized warnings.
39603
39604 2009-11-21  Jim Meyering  <meyering@redhat.com>
39605
39606         c-stack: avoid "ignoring return value of `write'" warning
39607         * lib/c-stack.c: Include "ignore-value.h".
39608         (die): Explicitly ignore each write return value.
39609         * modules/c-stack (Depends-on): Add ignore-value.
39610
39611 2009-11-21  Bruno Haible  <bruno@clisp.org>
39612
39613         diffseq: reduce scope of variable 'best'.
39614         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39615         variable, earlier used for two different purposes.
39616
39617 2009-11-21  Jim Meyering  <meyering@redhat.com>
39618
39619         diffseq: remove useless assignment to "best"
39620         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39621         assignment.  At that point "best" is already guaranteed to be zero.
39622
39623 2009-11-20  Eric Blake  <ebb9@byu.net>
39624
39625         build: mention ftp redirector in release announcements
39626         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39627         values that used to come from cfg.mk; mention FTP redirect URL.
39628         * build-aux/announce-gen: Mention the mirror list.
39629         Suggested by Karl Berry.
39630
39631         nanosleep: improve port to mingw
39632         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39634         LIB_NANOSLEEP, but only when needed.
39635         * modules/select (Link): Document LIBSOCKET.
39636         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39637         enough.
39638
39639         nanosleep: work around cygwin bug
39640         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39641         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39642         bug.
39643         (getnow): Delete, not needed.
39644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39645         LIB_CLOCK_GETTIME.
39646         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39647         clock-time, gettime.
39648         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39649         bug.
39650         * modules/nanosleep-tests: New test.
39651         * tests/test-nanosleep.c: New file.
39652
39653         sleep: work around cygwin bug
39654         * lib/sleep.c (rpl_sleep): Work around the bug.
39655         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39656         (gl_PREREQ_SLEEP): Delete unused macro.
39657         * modules/sleep (Depends-on): Add verify.
39658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39659         * modules/unistd (Makefile.am): Substitute witness.
39660         * lib/unistd.in.h (sleep): Update prototype.
39661         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39662         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39663         * modules/sleep-tests (Depends-on): Check for alarm.
39664
39665 2009-11-20  Jim Meyering  <meyering@redhat.com>
39666
39667         maint.mk: improve sc_prohibit_magic_number_exit
39668         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39669         so it does not match uses like System.exit(1).
39670         Add comments showing how to correct all offenders.
39671
39672 2009-11-19  Eric Blake  <ebb9@byu.net>
39673
39674         xalloc-die-tests: add missing library
39675         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39676
39677         test-xvasprintf: silence compiler warnings
39678         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39679         empty string from gcc.
39680
39681 2009-11-19  Jim Meyering  <meyering@redhat.com>
39682
39683         xfreopen: new module, from coreutils
39684         * modules/xfreopen: New module.
39685         * lib/xfreopen.c: New file.
39686         * lib/xfreopen.h: New file.
39687         * MODULES.html.sh (File stream based Input/Output"): Add it.
39688
39689 2009-11-19  Eric Blake  <ebb9@byu.net>
39690
39691         manywarnings: depend on warnings
39692         * modules/manywarnings (Depends-on): Add warnings.
39693
39694         build: avoid compiler warnings
39695         * lib/select.c (rpl_select): Delete unused variable.
39696         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39697
39698 2009-11-18  Eric Blake  <ebb9@byu.net>
39699
39700         tests: avoid false negative with --with-packager
39701         * tests/test-version-etc.sh: Discard packager information.
39702         * tests/test-argp-version-etc-1.sh: Likewise.
39703         Reported by Mike Frysinger.
39704
39705         utimens: fix regression on Solaris
39706         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39707         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39708         can only change fd timestamps via futimesat.  Instead, use an
39709         additional witness macro to avoid BSD bug.
39710         Reported by Jim Meyering.
39711
39712 2009-11-17  Eric Blake  <ebb9@byu.net>
39713
39714         usleep: use it to simplify tests
39715         * modules/stat-time-tests (Depends-on): Add usleep.
39716         (configure.ac): Drop usleep check.
39717         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39718         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39719         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39720         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39721         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39722         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39723         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39724         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39725         Likewise.
39726         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39727         * tests/test-lchown.h (nap): Likewise.
39728         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39729         * tests/test-stat-time.c (nap): Likewise.
39730         * tests/test-utimens-common.h (nap): Update comments.
39731
39732         usleep: new module
39733         * modules/usleep: New file.
39734         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39735         * lib/usleep.c (usleep): Likewise.
39736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39737         * modules/unistd (Makefile.am): Substitute witnesses.
39738         * lib/unistd.in.h (usleep): Add declaration.
39739         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39740         * MODULES.html.sh (Date and time): Likewise.
39741         * modules/usleep-tests (Depends-on): New test.
39742         * tests/test-usleep.c: New file.
39743
39744         chown: work around OpenBSD bug
39745         * lib/chown.c (rpl_chown): Work around the bug.
39746         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39747         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39748         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39749         * modules/chown (Depends-on): Add stdbool.
39750         * modules/lchown (Depends-on): Likewise.
39751         * doc/posix-functions/chown.texi (chown): Document the bug.
39752         * doc/posix-functions/lchown.texi (lchown): Likewise.
39753         * tests/test-lchown.h (test_chown): Relax test.
39754
39755         mkstemp: avoid conflict with C++ keyword template
39756         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39757         * lib/mkostemp.c (mkostemp): Likewise.
39758         * lib/mkostemps.c (mkostemps): Likewise.
39759         * lib/mkstemp.c (mkstemp): Likewise.
39760         * lib/mkstemps.c (mkstemps): Likewise.
39761
39762         xalloc-die-tests: optimize
39763         * tests/test-xalloc-die.sh: Reduce number of processes.
39764
39765 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39766
39767         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39768         patch from ludo@gnu.org (Ludovic Courtès).
39769
39770 2009-11-17  Jim Meyering  <meyering@redhat.com>
39771
39772         version-etc: use proper license string
39773         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39774         * modules/version-etc-fsf: Likewise.
39775
39776 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39777
39778         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39779         printed to stdout.  Deal with EOL differences.
39780
39781 2009-11-17  Eric Blake  <ebb9@byu.net>
39782
39783         unsetenv: work around Solaris bug
39784         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39785         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39786         Reported by Jim Meyering.
39787
39788         vasnprintf: avoid compiler warnings
39789         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39790         variables.
39791         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39792
39793 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39794
39795         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39796         settings since xalloc-die is no longer the self test,
39797         xalloc-die.sh is.
39798
39799 2009-11-17  Jim Meyering  <meyering@redhat.com>
39800
39801         test-xalloc-die.sh: make the code agree with the commit log
39802         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39803         at the end, just in case you happen to have a test-xalloc-die
39804         program in some other PATH directory.
39805
39806         test-xalloc-die.sh: fix a portability bug
39807         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39808         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39809         Otherwise, argv[0] (as often seen in diagnostics) would be too
39810         system-dependent, sometimes with, and sometimes without the leading "./".
39811
39812         version-etc-fsf: relax license to LGPLv3+
39813         * modules/version-etc-fsf (License): Relax license.
39814
39815 2009-11-16  Eric Blake  <ebb9@byu.net>
39816
39817         xalloc-die-tests: avoid printing null pointer
39818         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39819         shell script.
39820         * tests/test-xalloc-die.c (program_name): Declare.
39821         * tests/test-xalloc-die.sh (tmpfiles): New file.
39822
39823         setenv, unsetenv: work around various bugs
39824         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39825         (setenv) [HAVE_SETENV]: Work around bugs.
39826         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39827         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39828         for bugs.
39829         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39830         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39832         * modules/stdlib (Makefile.am): Update substitutions.
39833         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39834         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39835         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39836         * modules/setenv-tests: New test.
39837         * modules/unsetenv-tests: Likewise.
39838         * tests/test-setenv.c: New file.
39839         * tests/test-unsetenv.c: Likewise.
39840
39841 2009-11-16  Jim Meyering  <meyering@redhat.com>
39842
39843         version-etc: relax license to LGPLv3+
39844         * modules/version-etc (License): Relax license.
39845
39846         better AC_REQUIRE expanded-before-required-warning avoidance
39847         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39848         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39849         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39850         which is no longer needed.
39851
39852 2009-11-16  Eric Blake  <ebb9@byu.net>
39853
39854         test-freading: clean up temporary file
39855         * tests/test-freading.c (main): Remove file on success, and use
39856         ASSERT more liberally.
39857         Reported by Jim Meyering.
39858
39859 2009-11-16  Jim Meyering  <meyering@redhat.com>
39860
39861         avoid new AC_REQUIRE expanded-before-required warnings
39862         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39863         merely using it.
39864         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39865         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39866
39867 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39868
39869         * tests/test-xalloc-die.c: New file.
39870         * modules/xalloc-die-tests: New file.
39871         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39872         XFAIL_TESTS so it can be appended by modules.
39873
39874 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39875
39876         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39877         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39878
39879 2009-11-14  Eric Blake  <ebb9@byu.net>
39880
39881         fnmatch: avoid compiler warning
39882         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39883         to silence compiler warning about mismatch signedness in ?:.
39884         Reported by Robert Millan.
39885
39886         intprops: add double-inclusion guard
39887         * lib/intprops.h: Allow idempotent includes.
39888         Suggested by Bruce Korb.
39889
39890         openat: detect Solaris fchownat bug
39891         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39892         penalizing glibc chownat when only lchownat is broken.
39893         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39894         trailing slash bugs.
39895         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39896         * modules/openat-tests (Files): Include more files.
39897         (Depends-on): Add mgetgroups, sleep, stat-time.
39898         (configure.ac): Add additional checks.
39899         (Makefile.am): Build new test.
39900         * tests/test-fchownat.c: New file.
39901
39902         lchown: detect Solaris and FreeBSD bug
39903         * lib/lchown.c (rpl_lchown): Work around bug.
39904         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39906         * modules/unistd (Makefile.am): Populate it.
39907         * lib/unistd.in.h (lchown): Update declaration.
39908         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39909         * modules/lchown-tests: New file.
39910         * tests/test-lchown.h (test_lchown): Likewise.
39911         * tests/test-lchown.c (main): Likewise.
39912
39913         chown: detect Solaris and FreeBSD bug
39914         * lib/chown.c (rpl_chown): Work around bug.
39915         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39916         (gl_PREREQ_CHOWN): Delete.
39917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39918         * modules/unistd (Makefile.am): Populate it.
39919         * lib/unistd.in.h (chown): Update declaration.
39920         * lib/lchown.c (chown): Update client.
39921         * modules/lchown (Depends-on): Add lstat.
39922         * doc/posix-functions/chown.texi (chown): Document the bug.
39923         * doc/posix-functions/getgroups.texi (getgroups): Document
39924         getgroups pitfall.
39925         * modules/chown-tests: New file.
39926         * tests/test-chown.h (test_chown): Likewise.
39927         * tests/test-chown.c (main): Likewise.
39928
39929 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39930
39931         gnulib-tool: correctly detect absence of m4 directories
39932         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39933
39934 2009-11-14  Jim Meyering  <meyering@redhat.com>
39935
39936         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39937         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39938
39939 2009-11-14  John W. Eaton  <jwe@gnu.org>
39940
39941         strftime.h: wrap function declaration in extern "C" block
39942         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39943
39944 2009-11-13  Eric Blake  <ebb9@byu.net>
39945
39946         getgroups: avoid compiler warning
39947         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39948
39949         getgroups: work around FreeBSD bug
39950         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39951         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39952         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39953         * tests/test-getgroups.c (main): Fix buffer overrun.
39954
39955         getgroups: avoid compilation failure
39956         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39957         * modules/getgroups (Depends-on): Add stdint.
39958
39959 2009-11-13  Jim Meyering  <meyering@redhat.com>
39960
39961         test-getgroups: avoid compilation failure
39962         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39963
39964 2009-11-13  Eric Blake  <ebb9@byu.net>
39965
39966         mgetgroups: new module, taken from coreutils
39967         * modules/mgetgroups: New file.
39968         * lib/mgetgroups.h: Likewise.
39969         * lib/mgetgroups.c (mgetgroups): Likewise.
39970         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39971         * MODULES.html.sh (Users and groups): Mention it.
39972
39973         getgroups: don't expose GETGROUPS_T to user
39974         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39975         an element at a time if GETGROUPS_T is wrong size.
39976         * lib/getugroups.h (getugroups): Change signature.
39977         * lib/unistd.in.h (getgroups): Likewise.
39978         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39979         signature needs fixing.
39980         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39981         AC_TYPE_GETGROUPS.
39982         * modules/group-member (Depends-on): Add getgroups.
39983         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39984         (group_member): Rely on getgroups replacement.
39985         * lib/getugroups.c (getugroups): Use gid_t.
39986         * tests/test-getgroups.c (main): Likewise.
39987         * NEWS: Mention the signature change.
39988         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39989         problem with signature.
39990         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39991         GETGROUPS_T is still useful for setgroups.
39992
39993         getgroups, getugroups: provide stubs for mingw
39994         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39995         * lib/getugroups.c (getugroups): Likewise.
39996         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39997         function.  Modernize replacement scheme.
39998         (gl_PREREQ_GETGROUPS): Delete.
39999         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40000         * modules/getgroups (configure.ac): Declare witness.
40001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40002         * modules/unistd (Depends-on): Substitute witness.
40003         * lib/unistd.in.h (getgroups): Declare replacement.
40004
40005         getgroups: avoid calling exit
40006         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40007         drop xalloc.
40008         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40009         dependencies.
40010         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40011         exiting, in the rare case of malloc failure.
40012
40013         getgroups: fix logic error
40014         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40015         has more than 20 groups.
40016         * modules/getgroups-tests: New test.
40017         * tests/test-getgroups.c: New file.
40018
40019 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40020
40021         * tests/test-base64.c: Improve.
40022
40023 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40024
40025         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40026         Blake <ebb9@byu.net>.
40027
40028 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40029
40030         * tests/test-xvasprintf.c: Add %s%s related checks.
40031
40032 2009-11-12  Eric Blake  <ebb9@byu.net>
40033
40034         version-etc: match standards.texi style
40035         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40036         and use <> only for URLs.
40037
40038 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40039
40040         fts: do not fail on a submount during traversal
40041         * lib/fts.c (fts_build): Read the stat info again after opening
40042         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40043         Original report at http://bugzilla.redhat.com/501848.
40044
40045 2009-11-12  Jim Meyering  <meyering@redhat.com>
40046
40047         bootstrap: sync from coreutils
40048         * build-aux/bootstrap (bootstrap_epilogue): New function.
40049         Use git_modules_config in one more place.  This make bootstrap's
40050         --gnulib-srcdir option more useful for testing.
40051
40052         bootstrap: generalize autoheader check
40053         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40054         AC_CONFIG_HEADERS.
40055
40056 2009-11-11  Eric Blake  <ebb9@byu.net>
40057
40058         mkfifoat: use new modules for Solaris and BSD bugs
40059         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40060         * lib/mkfifoat.c (mknodat): Split...
40061         * lib/mknodat.c (mknodat): ...into new file.
40062         * modules/mkfifoat (Files): Ship new file.
40063         (Depends-on): Add mkfifo, mknod.
40064         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40065         (Depends-on): Add symlink.
40066         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40067         redundant with test_mkfifo.h.
40068         (do_mkfifoat, do_mknodat): New helpers.
40069
40070         mknod: new module
40071         * modules/mknod: New file.
40072         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40073         * lib/mknod.c (mknod): Likewise.
40074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40075         defaults.
40076         * modules/sys_stat (Makefile.am): Substitute them.
40077         * lib/sys_stat.in.h (mknod): Declare replacement.
40078         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40079         Document it.
40080         * doc/posix-functions/mknod.texi (mknod): Likewise.
40081         * modules/mknod-tests: New test.
40082         * tests/test-mknod.c: Likewise.
40083
40084         mkfifo: new module
40085         * modules/mkfifo: New file.
40086         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40087         * lib/mkfifo.c (mkfifo): Likewise.
40088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40089         defaults.
40090         * modules/sys_stat (Makefile.am): Substitute them.
40091         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40092         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40093         Document it.
40094         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40095         * modules/mkfifo-tests: New test.
40096         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40097         from test-mkfifoat.c.
40098         * tests/test-mkfifo.c: New file.
40099
40100         readlink: detect FreeBSD bug
40101         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40102         slash on symlink.
40103         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40104         * tests/test-readlink.h (test_readlink): Enhance test.
40105
40106         symlink: detect FreeBSD bug
40107         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40108         slash on symlink.
40109         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40110         * tests/test-symlink.h (test_symlink): Enhance test.
40111
40112 2009-11-10  Eric Blake  <ebb9@byu.net>
40113
40114         link: detect FreeBSD bug
40115         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40116         symlink.
40117         * doc/posix-functions/link.texi (link): Document the bug.
40118         * tests/test-link.h (test_link): Enhance test.
40119         * tests/test-linkat.c (main): Update caller.
40120
40121         unlink, remove: detect FreeBSD bug
40122         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40123         slash on symlink.
40124         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40125         * doc/posix-functions/remove.texi (remove): Likewise.
40126         * tests/test-unlink.h (test_unlink): Enhance test.
40127         * tests/test-remove.c (main): Likewise.
40128
40129 2009-11-09  Eric Blake  <ebb9@byu.net>
40130
40131         rename: detect FreeBSD bug
40132         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40133         slash on symlink.
40134         * modules/renameat-tests (Depends-on): Add filenamecat.
40135         * tests/test-rename.h (test_rename): Allow one more errno.
40136         * tests/test-renameat.c (main): Likewise.
40137         * doc/posix-functions/rename.texi (rename): Document the bug.
40138
40139         open: detect FreeBSD bug
40140         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40141         symlink.
40142         * doc/posix-functions/open.texi (open): Document the bug.
40143         * doc/posix-functions/utimes.texi (utimes): Likewise.
40144         * tests/test-open.h (test_open): Add parameters, and test symlink
40145         handling.
40146         * tests/test-open.c (main): Adjust caller.
40147         * tests/test-fcntl-safer.c (main): Likewise.
40148         * modules/open-tests (Depends-on): Add stdbool, symlink.
40149         * modules/fcntl-safer-tests (Depends-on): Likewise.
40150         * tests/test-openat.c (main): Add test-open tests.
40151
40152         stat: detect FreeBSD bug
40153         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40154         symlink.
40155         * doc/posix-functions/stat.texi (stat): Document the bug.
40156         * tests/test-stat.h (test_stat_func): Add argument.
40157         * tests/test-stat.c (main): Adjust caller.
40158         * tests/test-fstatat.c (main): Likewise.
40159         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40160         Reported by Jim Meyering.
40161
40162 2009-11-09  James Youngman  <jay@gnu.org>
40163
40164         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40165         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40166
40167 2009-11-08  Jim Meyering  <meyering@redhat.com>
40168
40169         utimens: remove invalid futimesat call
40170         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40171         It used the file descriptor of the target file as the DIR_FD
40172         parameter and NULL as the file name.  That caused failure with
40173         errno == EFAULT on FreeBSD-8.0-rc2
40174
40175 2009-11-07  Eric Blake  <ebb9@byu.net>
40176
40177         fflush, freadseek: use fseeko, not fseek
40178         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40179         (clear_ungetc_buffer): Avoid potential problems on large files.
40180         * lib/freadseek.c (freadseek): Likewise.
40181         * modules/freadseek (Depends-on): Add fseeko.
40182         * modules/fseek (configure.ac): Set a witness.
40183         * tests/test-fflush.c (main): Use fseeko.
40184         * tests/test-fpurge.c (fseek): Disable link warning.
40185         * tests/test-freadable.c (fseek): Likewise.
40186         * tests/test-freading.c (fseek): Likewise.
40187         * tests/test-fseeko.c (fseek): Likewise.
40188         * tests/test-ftell.c (fseek): Likewise.
40189         * tests/test-ftello.c (fseek): Likewise.
40190         * tests/test-fwritable.c (fseek): Likewise.
40191         * tests/test-fwriting.c (fseek): Likewise.
40192
40193 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40194
40195         * modules/memchr (Depends-on): Drop getpagesize dependency.
40196
40197 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40198
40199         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40200         Reported by Ludovic Courtès.
40201         * build-aux/pmccabe2html: Improve example usage.
40202         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40203
40204 2009-11-06  Jim Meyering  <meyering@redhat.com>
40205
40206         do-release-commit-and-tag: New module.
40207         Automate the release-commit and tag process.
40208         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40209         * modules/do-release-commit-and-tag: New file.
40210         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40211
40212 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40213
40214         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40215         because test-select.c uses inet_pton.
40216
40217 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40218
40219         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40220         GETADDRINFO_LIB.  Bump serial number.
40221         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40222         Suggested by Eric Blake <ebb9@byu.net>.
40223
40224 2009-11-05  Eric Blake  <ebb9@byu.net>
40225
40226         strtod: detect darwin bug
40227         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40228         Reported by Leo Davis.
40229
40230         freopen-safer: new module
40231         * modules/freopen-safer: New module.
40232         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40233         * lib/freopen-safer.c (freopen_safer): New file.
40234         * lib/stdio-safer.h (freopen_safer): New declaration.
40235         * lib/stdio--.h (freopen): New override.
40236         * MODULES.html.sh (File stream based Input/Output): Mention it.
40237         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40238         freopen-safer module.
40239         * doc/posix-functions/stderr.texi (stderr): Likewise.
40240         * doc/posix-functions/stdin.texi (stdin): Likewise.
40241         * doc/posix-functions/stdout.texi (stdout): Likewise.
40242         * modules/freopen-safer-tests: New test.
40243         * tests/test-reopen-safer.c: New file.
40244
40245 2009-11-05  Jim Meyering  <meyering@redhat.com>
40246
40247         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40248         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40249
40250 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40251
40252         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40253
40254 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40255
40256         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40257
40258 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40259
40260         Fix link error.
40261         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40262         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40263
40264 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40265
40266         * tests/test-func.c: Also test value of __func__.
40267
40268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40269
40270         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40271         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40272
40273 2009-11-05  Bruno Haible  <bruno@clisp.org>
40274
40275         Fix link error.
40276         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40277         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40278         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40279
40280 2009-11-05  Bruno Haible  <bruno@clisp.org>
40281
40282         Tests for module 'inet_pton'.
40283         * modules/inet_pton-tests: New file.
40284         * tests/test-inet_pton.c: New file.
40285
40286 2009-11-05  Bruno Haible  <bruno@clisp.org>
40287
40288         Tests for module 'inet_ntop'.
40289         * modules/inet_ntop-tests: New file.
40290         * tests/test-inet_ntop.c: New file.
40291
40292 2009-11-04  Eric Blake  <ebb9@byu.net>
40293
40294         stdlib-safer: wrap all mkstemp variants
40295         * modules/mkostemp (configure.ac): Set witness.
40296         * modules/mkostemps (configure.ac): Likewise.
40297         * modules/mkstemps (configure.ac): Likewise.
40298         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40299         (mkstemps_safer): Wrap more functions.
40300         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40301         wrapping.
40302         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40303         (mkstemps_safer): Implement the wrappers.
40304
40305         mkstemps, mkostemps: new modules
40306         * modules/mkostemps: New module.
40307         * modules/mkstemps: Likewise.
40308         * lib/mkostemps.c (mkostemps): New file.
40309         * lib/mkstemps.c (mkstemps): Likewise.
40310         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40311         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40313         * modules/stdlib (Makefile.am): Substitute them.
40314         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40315         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40316         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40317         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40318         * MODULES.html.sh (File system functions): Mention them.
40319
40320         tempname: resync from glibc
40321         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40322         same values for __GT_FILE as glibc.  Abort even when assertions
40323         are disabled.
40324         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40325         match its value otherwise.  Allow idempotent inclusion.
40326         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40327         * lib/mkostemp.c (mkostemp): Likewise.
40328         * lib/mkstemp.c (mkstemp): Likewise.
40329         * lib/tmpfile.c (tmpfile): Likewise.
40330         * NEWS: Document this.
40331
40332         utimens: fix use of futimens on older Linux
40333         * lib/utimens.c (fdutimens): Use updated, rather than original,
40334         timespec to avoid bug in older Linux kernel.
40335         Reported by Simon Josefsson.
40336
40337 2009-11-04  Bruno Haible  <bruno@clisp.org>
40338
40339         Make num_processors more flexible and consistent.
40340         * lib/nproc.h (enum nproc_query): New type.
40341         (num_processors): Add a 'query' argument.
40342         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40343         (num_processors): Add a 'query' argument. Test the value of the
40344         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40345         mingw, count the number of CPUs available for the current process.
40346         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40347         Check for sched_getaffinity and sched_getaffinity_np.
40348         * modules/nproc (Depends-on): Add c-ctype, extensions.
40349         * NEWS: Mention the change.
40350
40351 2009-11-03  Bruno Haible  <bruno@clisp.org>
40352
40353         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40354
40355 2009-11-03  Jim Meyering  <meyering@redhat.com>
40356
40357         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40358         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40359         if it is defined.
40360
40361 2009-11-02  Eric Blake  <ebb9@byu.net>
40362
40363         mktime, timegm: share common declaration
40364         * lib/mktime-internal.h: New file.
40365         * lib/mktime.c: Use it rather than open-coding a declaration.
40366         * lib/timegm.c: Likewise.
40367         * modules/mktime (Files): Ship it.
40368         * modules/timegm (Files): Likewise.
40369         Suggested by Bruno Haible.
40370
40371         test-update-copyright: update test to match script changes
40372         * tests/test-update-copyright.sh: Avoid hard-coding perl
40373         location.  Don't update *.bak created by earlier runs.
40374
40375 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40376             Simon Josefsson  <simon@josefsson.org>
40377             Bruno Haible  <bruno@clisp.org>
40378
40379         Fix link error on Solaris 8.
40380         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40381         also in libnsl. Define also INET_PTON_LIB.
40382         * modules/inet_pton (Link): New section.
40383
40384 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40385             Bruno Haible  <bruno@clisp.org>
40386
40387         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40388         * modules/inet_ntop (Link): New section.
40389         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40390
40391 2009-11-02  Eric Blake  <ebb9@byu.net>
40392
40393         maint: avoid compiler warnings in m4 macros
40394         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40395         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40396
40397 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40398
40399         * m4/pmccabe2html.m4: Remove file.
40400         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40401         function.  Change maintainer.
40402         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40403         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40404         Courtès).
40405
40406 2009-10-31  Eric Blake  <ebb9@byu.net>
40407
40408         fseeko: fix m4 regression
40409         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40410         regression from 2009-10-27.
40411         Reported by Ralf Wildenhues.
40412
40413 2009-10-31  Jim Meyering  <meyering@redhat.com>
40414
40415         inttostr: aesthetics and improved (compile-time) safety
40416         Define inttype_is_signed rather than inttype_is_unsigned,
40417         since the sole use is via "#if inttype_is_signed".
40418         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40419         inttype_is_unsigned.
40420         * lib/offtostr.c (inttype_is_signed): Likewise.
40421         * lib/uinttostr.c (inttype_is_signed): Likewise.
40422         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40423         * lib/inttostr.c (inttostr): Use verify to cross-check the
40424         inttype_is_signed value and the signedness of the actual type.
40425         * modules/inttostr (Depends-on): Add verify.
40426
40427 2009-10-30  Eric Blake  <ebb9@byu.net>
40428
40429         build: avoid compiler warnings
40430         * lib/fchmodat.c (lchmod): Mark unused variables.
40431         * lib/getopt.c (_getopt_initialize): Likewise.
40432         * lib/mktime.c (__mktime_internal): Provide prototype.
40433         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40434         older gcc that do not understand #pragma GCC diagnostic.
40435         * lib/uinttostr.c (inttype_is_unsigned): Define.
40436         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40437
40438 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40439
40440         stat: fix compilation on AIX
40441         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40442         only see struct stat64.
40443
40444 2009-10-30  Eric Blake  <ebb9@byu.net>
40445
40446         exclude: make more robust
40447         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40448         rather than masking a coding bug.
40449         Suggested by Bruno Haible.
40450
40451 2009-10-30  Jim Meyering  <meyering@redhat.com>
40452
40453         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40454         Rather than putting #!/usr/bin/perl on the first line,
40455         start with a variant of what's recommended by "man perlrun" that
40456         invokes the first "perl" program from your shell's search path.
40457         * build-aux/gitlog-to-changelog: Replace #!... as above.
40458         Add a "Local Variables" perl mode setting.
40459         Prompted by a patch from Ludovic Courtès.
40460         Improved by Eric Blake.
40461         * build-aux/useless-if-before-free: Likewise.
40462         * build-aux/announce-gen: Likewise.
40463         * build-aux/update-copyright: Likewise.
40464
40465 2009-10-29  Eric Blake  <ebb9@byu.net>
40466
40467         filenamecat-lgpl: adjust clients
40468         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40469         filenamecat.
40470         * modules/renameat (Depends-on): Likewise.
40471
40472         filenamecat: split into filenamecat-lgpl
40473         * modules/filenamecat-lgpl: New module.
40474         * modules/filenamecat (Files): Move library-safe files into
40475         filenamecat-lgpl.
40476         (Depends-on): Add filenamecat-lgpl.
40477         (configure.ac): Declare witness.
40478         * lib/filenamecat.h (file_name_concat): Only declare when using
40479         GPL module.
40480         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40481         Move...
40482         * lib/filenamecat-lgpl.c: ...into new file.
40483         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40484         (gl_FILE_NAME_CONCAT): Use it.
40485         * MODULES.html.sh (File system functions): Mention new module.
40486
40487         argp: avoid memory leak
40488         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40489         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40490         base_name, since the latter malloc()s and can call exit().
40491         Leak introduced 2006-07-03.
40492
40493         dirname-lgpl: adjust clients that don't need full dirname
40494         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40495         * modules/filenamecat (Depends-on): Likewise.
40496         * modules/linkat (Depends-on): Likewise.
40497         * modules/mkancesdirs (Depends-on): Likewise.
40498         * modules/mkdir (Depends-on): Likewise.
40499         * modules/openat (Depends-on): Likewise.
40500         * modules/savewd (Depends-on): Likewise.
40501         * modules/rename (Depends-on): Likewise.
40502         (License): Relax license.
40503         * modules/mkdir-tests (Depends-on): Drop progname.
40504         (Makefile.am): Delete unneeded LDADD.
40505         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40506
40507         dirname: split into dirname-lgpl
40508         * modules/dirname-lgpl: New module.
40509         * modules/dirname (Files): Move library-safe files into
40510         dirname-lgpl.
40511         (Depends-on): Add dirname-lgpl.
40512         (configure.ac): Declare witness.
40513         * modules/double-slash-root (License): Relax license.
40514         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40515         module.
40516         * lib/dirname.c (dir_len, mdir_name): Move...
40517         * lib/dirname-lgpl.c: ...into new file.
40518         * lib/basename.c (last_component, base_len): Move...
40519         * lib/basename-lgpl.c: ...into new file.
40520         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40521         (gl_DIRNAME): Use it.
40522         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40523         Mention new module.
40524         * modules/dirname-tests (Depends-on): Add progname.
40525         * tests/test-dirname.c (program_name): Delete.
40526
40527         mkdir: make safe for libraries
40528         * modules/mkdir (Depends-on): Drop xalloc.
40529         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40530         exit.
40531
40532         tests: avoid some compiler warnings
40533         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40534         literals.
40535         * tests/test-memchr.c (main): Avoid type mismatch.
40536         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40537         * tests/test-base64.c (main): Likewise.
40538         * tests/test-getdelim.c (main): Likewise.
40539         * tests/test-gethostname.c (main): Likewise.
40540         * tests/test-getline.c (main): Likewise.
40541         * tests/test-netinet_in.c (main): Likewise.
40542         * tests/test-select.c (open_server_socket, main): Likewise.
40543         * tests/test-select-stdin.c (main): Likewise.
40544         * tests/test-sockets.c (main): Likewise.
40545         * tests/test-strsignal.c (main): Likewise.
40546         * tests/test-sys_select.c (main): Likewise.
40547         * tests/test-sys_socket.c (main): Likewise.
40548         * tests/test-u64.c (main): Likewise.
40549         * tests/test-xfprintf-posix.c (main): Likewise.
40550         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40551
40552         sockets: avoid compiler warning
40553         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40554
40555         maint: detect usage(1) and other suspicious exits
40556         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40557
40558 2009-10-29  Jim Meyering  <meyering@redhat.com>
40559
40560         timespec: long-to-int truncation could make timespec_cmp malfunction
40561         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40562         a multiple of 2^32 nanoseconds as no difference.
40563
40564 2009-10-28  Jim Meyering  <meyering@redhat.com>
40565
40566         fprintftime: wrap macro code argument in "do {...} while(0)"
40567         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40568         cpy macro must be a statement that can be followed by a semicolon.
40569         Now that the else clause contains a comment and is hence longer
40570         than one line, I require curly braces.  That in turn requires
40571         that we wrap this code block in the standard do...while(0).
40572
40573         fprintftime: remove stray semicolon from previous change
40574         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40575
40576         fprintftime: avoid a warning about ignored fwrite return value
40577         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40578         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40579         that is unsafe.
40580         * modules/fprintftime (Depends-on): Add ignore-value.
40581
40582         exclude: avoid an unwarranted warning
40583         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40584
40585 2009-10-27  Eric Blake  <ebb9@byu.net>
40586
40587         fseek: avoid compilation failure when fflush is replaced
40588         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40589         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40590         module is in use.
40591         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40592         module is not in use; since REPLACE_FSEEK worked otherwise.
40593         (GNULIB_FTELLO): Likewise for ftell.
40594         Reported by Ian Beckwith and others.
40595
40596 2009-10-27  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40599         Reported by Jim Meyering.
40600
40601 2009-10-27  Jim Meyering  <jim@meyering.net>
40602             Bruno Haible  <bruno@clisp.org>
40603
40604         Avoid warning despite dropping the return value of fwrite.
40605         * lib/unicodeio.c: Include ignore-value.h.
40606         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40607         * modules/unicodeio (Depends-on): Add ignore-value.
40608
40609 2009-10-26  Eric Blake  <ebb9@byu.net>
40610
40611         areadlinkat: fix fallback path
40612         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40613         pointer and zero.
40614
40615 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40616
40617         Use a better IO block size for modern systems
40618         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40619         * lib/md2.c: Likewise.
40620         * lib/md4.c: Likewise.
40621         * lib/md5.c: Likewise.
40622         * lib/sha1.c: Likewise.
40623         * lib/sha256.c: Likewise.
40624         * lib/sha512.c: Likewise.
40625
40626 2009-10-22  Eric Blake  <ebb9@byu.net>
40627
40628         tests: avoid several compiler warnings
40629         * tests/test-getcwd.c (main): Avoid buffer underflow.
40630         * tests/test-getdate.c (main): String literals are not safe with
40631         putenv, so use setenv.  Declare unused argument.
40632         * modules/getdate-tests (Depends-on): Add setenv.
40633         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40634         problems with string literals in char *.
40635         * tests/test-hash.c (main): Avoid shadowing declaration.
40636         (insert_new): Treat string literals as char const *.
40637         * tests/test-getopt.h (test_getopt): Likewise.
40638         (getopt_loop): Alter types to minimize casting elsewhere.
40639         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40640         (test_getopt_long_posix): Likewise.
40641         (do_getopt_long): Add wrapper to minimize casting.
40642         * tests/test-atexit.c (clear_temp_file): Use void.
40643         * tests/test-areadlink-with-size.c (main): Declare unused
40644         arguments.
40645         * tests/test-areadlink.c (main): Likewise.
40646         * tests/test-areadlinkat-with-size.c (main): Likewise.
40647         * tests/test-areadlinkat.c (main): Likewise.
40648         * tests/test-canonicalize-lgpl.c (main): Likewise.
40649         * tests/test-canonicalize.c (main): Likewise.
40650         * tests/test-dirent-safer.c (main): Likewise.
40651         * tests/test-dirname.c (main): Likewise.
40652         * tests/test-dup2.c (main): Likewise.
40653         * tests/test-fchdir.c (main): Likewise.
40654         * tests/test-fcntl-h.c (main): Likewise.
40655         * tests/test-fcntl-safer.c (main): Likewise.
40656         * tests/test-fdopendir.c (main): Likewise.
40657         * tests/test-fdutimensat.c (main): Likewise.
40658         * tests/test-fflush.c (main): Likewise.
40659         * tests/test-filenamecat.c (main): Likewise.
40660         * tests/test-filevercmp.c (main): Likewise.
40661         * tests/test-fopen-safer.c (main): Likewise.
40662         * tests/test-fopen.c (main): Likewise.
40663         * tests/test-fpending.c (main): Likewise.
40664         * tests/test-fpurge.c (main): Likewise.
40665         * tests/test-freading.c (main): Likewise.
40666         * tests/test-fstatat.c (main): Likewise.
40667         * tests/test-fsync.c (main): Likewise.
40668         * tests/test-futimens.c (main): Likewise.
40669         * tests/test-getndelim2.c (main): Likewise.
40670         * tests/test-gettimeofday.c (main): Likewise.
40671         * tests/test-getopt.c (main): Likewise.
40672         * tests/test-i-ring.c (main): Likewise.
40673         * tests/test-inttypes.c (main): Likewise.
40674         * tests/test-link.c (main): Likewise.
40675         * tests/test-lstat.c (main): Likewise.
40676         * tests/test-math.c (main): Likewise.
40677         * tests/test-md5.c (main): Likewise.
40678         * tests/test-memchr2.c (main): Likewise.
40679         * tests/test-memrchr.c (main): Likewise.
40680         * tests/test-mkdir.c (main): Likewise.
40681         * tests/test-mkdirat.c (main): Likewise.
40682         * tests/test-mkfifoat.c (main): Likewise.
40683         * tests/test-open.c (main): Likewise.
40684         * tests/test-openat-safer.c (main): Likewise.
40685         * tests/test-openat.c (main): Likewise.
40686         * tests/test-quotearg.c (main): Likewise.
40687         * tests/test-rawmemchr.c (main): Likewise.
40688         * tests/test-readlink.c (main): Likewise.
40689         * tests/test-remove.c (main): Likewise.
40690         * tests/test-rename.c (main): Likewise.
40691         * tests/test-renameat.c (main): Likewise.
40692         * tests/test-rmdir.c (main): Likewise.
40693         * tests/test-sha1.c (main): Likewise.
40694         * tests/test-signal.c (main): Likewise.
40695         * tests/test-sigaction.c (main): Likewise.
40696         * tests/test-stat.c (main): Likewise.
40697         * tests/test-stat-time.c (main): Likewise.
40698         * tests/test-stddef.c (main): Likewise.
40699         * tests/test-stdint.c (main): Likewise.
40700         * tests/test-stdio.c (main): Likewise.
40701         * tests/test-stdlib.c (main): Likewise.
40702         * tests/test-strchrnul.c (main): Likewise.
40703         * tests/test-strerror.c (main): Likewise.
40704         * tests/test-string.c (main): Likewise.
40705         * tests/test-strtod.c (main): Likewise.
40706         * tests/test-strverscmp.c (main): Likewise.
40707         * tests/test-symlink.c (main): Likewise.
40708         * tests/test-symlinkat.c (main): Likewise.
40709         * tests/test-sys_stat.c (main): Likewise.
40710         * tests/test-sys_time.c (main): Likewise.
40711         * tests/test-time.c (main): Likewise.
40712         * tests/test-unistd.c (main): Likewise.
40713         * tests/test-unlink.c (main): Likewise.
40714         * tests/test-unlinkat.c (main): Likewise.
40715         * tests/test-utimens.c (main): Likewise.
40716         * tests/test-utimensat.c (main): Likewise.
40717         * tests/test-version-etc.c (main): Likewise.
40718         * tests/test-wchar.c (main): Likewise.
40719         * tests/test-wctype.c (main): Likewise.
40720         * tests/test-xprintf-posix.c (main): Likewise.
40721         * tests/test-posixtm.c (main): Likewise.
40722         (STREQ): Delete unused macro.
40723         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40724         shadowed variables.
40725         * tests/test-memchr.c (main): Likewise.
40726
40727 2009-10-21  Eric Blake  <ebb9@byu.net>
40728
40729         areadlinkat: avoid failure on older glibc
40730         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40731         rather than mis-comparing 0 against FUNC_RESULT of char*.
40732
40733 2009-10-21  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/stpncpy (License): Relicense under LGPLv2+.
40736         Reported by David Lutterkort <lutter@redhat.com>.
40737
40738 2009-10-20  Eric Blake  <ebb9@byu.net>
40739
40740         utimensat: work around Solaris 9 bug
40741         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40742         has trailing slash bugs.
40743         * tests/test-lutimens.h (test_lutimens): Enhance test.
40744         * tests/test-utimens.h (test_utimens): Likewise.
40745         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40746         * doc/posix-functions/utimes.texi (utimes): Likewise.
40747         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40748         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40749         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40750         * doc/posix-functions/futimens.texi (futimens): Likewise.
40751
40752         fdutimensat: new module
40753         * modules/fdutimensat: New file.
40754         * lib/fdutimensat.c (fdutimensat): Likewise.
40755         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40756         * MODULES.html.sh (File system functions): Mention module.
40757         * modules/fdutimensat-tests: New test.
40758         * tests/test-fdutimensat.c: Likewise.
40759
40760         doc: regenerate INSTALL
40761         * doc/INSTALL: Reflect recent autoconf update.
40762         * doc/INSTALL.ISO: Likewise.
40763         * doc/INSTALL.UTF-8: Likewise.
40764
40765 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40766
40767         acl: warn if ACL support is not detected
40768         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40769
40770 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40771
40772         * lib/nproc.h: Add extern "C" block for C++.
40773
40774 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40775             Bruno Haible  <bruno@clisp.org>
40776
40777         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40778         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40779         * doc/posix-functions/isalpha.texi: Likewise.
40780         * doc/posix-functions/isblank.texi: Likewise.
40781         * doc/posix-functions/iscntrl.texi: Likewise.
40782         * doc/posix-functions/isdigit.texi: Likewise.
40783         * doc/posix-functions/isgraph.texi: Likewise.
40784         * doc/posix-functions/islower.texi: Likewise.
40785         * doc/posix-functions/isprint.texi: Likewise.
40786         * doc/posix-functions/ispunct.texi: Likewise.
40787         * doc/posix-functions/isspace.texi: Likewise.
40788         * doc/posix-functions/isupper.texi: Likewise.
40789         * doc/posix-functions/isxdigit.texi: Likewise.
40790
40791 2009-10-18  Bruno Haible  <bruno@clisp.org>
40792
40793         Tests for module 'isblank'.
40794         * modules/isblank-tests: New file.
40795         * tests/test-isblank.c: New file.
40796
40797         New module 'isblank'.
40798         * lib/isblank.c: New file.
40799         * m4/isblank.m4: New file.
40800         * modules/isblank: New file.
40801         * doc/posix-functions/isblank.texi: Mention the new module.
40802
40803 2009-10-18  Bruno Haible  <bruno@clisp.org>
40804
40805         New module 'ctype'.
40806         * lib/ctype.in.h: New file.
40807         * m4/ctype.m4: New file.
40808         * modules/ctype: New file.
40809         * doc/posix-headers/ctype.texi: Mention the new module.
40810
40811 2009-10-18  Jim Meyering  <meyering@redhat.com>
40812
40813         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40814         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40815         right after its initialization, rather than farther down.
40816         Keeping these in close proximity makes it easier to ensure
40817         that each such variable is initialized.  E.g.,
40818
40819             LIB_CLOCK_GETTIME=
40820             AC_SUBST([LIB_CLOCK_GETTIME])
40821
40822         This change also increments these serial numbers.
40823         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40824         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40826
40827 2009-10-18  Bruno Haible  <bruno@clisp.org>
40828
40829         Don't let environment variables perturb build.
40830         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40831         (gl_PREREQ_GETHRXTIME): ... not here.
40832
40833 2009-10-18  Bruno Haible  <bruno@clisp.org>
40834
40835         Avoid symlink attack in localcharset module.
40836         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40837         (O_NOFOLLOW): Define fallback.
40838         (get_charset_aliases): Don't open the file if it is a symbolic link.
40839         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40840         gl_FCNTL_H.
40841         (gl_FCNTL_H): Require it.
40842         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40843         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40844         Reported by Fergal Glynn <fglynn@veracode.com>.
40845
40846 2009-10-18  Bruno Haible  <bruno@clisp.org>
40847
40848         Implement nproc for mingw.
40849         * lib/nproc.c: Include <windows.h>
40850         (num_processors): On native Windows platforms, try GetSystemInfo.
40851
40852 2009-10-18  Bruno Haible  <bruno@clisp.org>
40853
40854         Implement nproc for IRIX.
40855         * lib/nproc.c: Include <sys/sysmp.h>.
40856         (num_processors): On IRIX systems, try sysmp.
40857         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40858
40859 2009-10-18  Bruno Haible  <bruno@clisp.org>
40860
40861         Implement nproc for HP-UX.
40862         * lib/nproc.c: Include <sys/pstat.h>
40863         (num_processors): On HP-UX systems, try pstat_getdynamic.
40864         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40865         pstat_getdynamic.
40866
40867 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40868             Bruno Haible  <bruno@clisp.org>
40869
40870         Implement nproc for NetBSD, OpenBSD.
40871         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40872         (ARRAY_SIZE): New macro.
40873         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40874         * m4/nproc.m4: New file.
40875         * modules/nproc (Files): Add m4/nproc.m4.
40876         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40877         (Makefile.am): Instead, augment lib_SOURCES.
40878
40879 2009-10-18  Bruno Haible  <bruno@clisp.org>
40880
40881         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40882         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40883         sys/param.h.
40884
40885 2009-10-16  Eric Blake  <ebb9@byu.net>
40886
40887         utimensat: new module
40888         * modules/utimensat: New file.
40889         * lib/utimensat.c (utimensat): Likewise.
40890         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40891         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40892         so we can work around Linux bugs.
40893         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40894         * modules/sys_stat (Makefile.am): Substitute them.
40895         * lib/sys_stat.in.h (utimensat): Declare it.
40896         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40897         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40898         * modules/utimensat-tests: New test.
40899         * tests/test-utimensat.c: Likewise.
40900
40901         utimens: let lutimens work on non-symlinks
40902         * lib/utimens.c (lutimens): Fall back to utimens rather than
40903         failing with ENOSYS, when file is not a symlink.
40904         (utimens): Reduce redirection.
40905         * tests/test-lutimens.h (test_lutimens): Update test to cover
40906         non-symlinks.
40907         * tests/test-utimens.h (test_utimens): Update test to cover
40908         symlinks.
40909         * tests/test-utimens.c (main): Update caller.
40910
40911         utimens: cache whether utimensat syscall works
40912         * lib/utimens.c (utimensat_works_really): New cache variable.
40913         (fdutimens, lutimens): Use it to avoid failing syscall.
40914
40915         test-stat-time, test-utimens: improve portability
40916         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40917         ext4 on alpha, and for cygwin.
40918         * tests/test-utimens-common.h: New file.
40919         (nap): Factor delays into single function.
40920         * tests/test-lutimens.h (test_lutimens): Use new header.
40921         * tests/test-futimens.h (test_futimens): Likewise.
40922         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40923         timestamps to occur from same machine, as was done previously for
40924         test_utimens.
40925         * modules/utimens-tests (Files): Ship new file.
40926         * modules/futimens-tests (Files): Likewise.
40927         Reported in part by Jim Meyering.
40928
40929         sys_stat: sort replacement declarations
40930         * lib/sys_stat.in.h: Sort declarations.
40931         * lib/futimens.c (futimens): Fix typo.
40932
40933 2009-10-15  Jim Meyering  <meyering@redhat.com>
40934
40935         don't let environment settings perturb build
40936         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40937         could cause a configure-time and/or build-time malfunction.
40938         Typically, a configure-time function-in-library test is performed
40939         via code like this:
40940
40941           LIB_VAR=
40942           AC_SUBST([LIB_VAR])
40943           prefix_saved_LIBS=$LIBS
40944             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40945                        [test "$ac_cv_search_FUNC" = "none required" ||
40946                         LIB_VAR=$ac_cv_search_FUNC])
40947           LIBS=$prefix_saved_LIBS
40948
40949         However, in each of the files affected by this change, the LIB_VAR=
40950         initialization was omitted.  Thus, when set in the environment, its
40951         value would propagate into generated Makefiles when FUNC is not found
40952         in LIB_NAME.
40953         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40954         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40956
40957 2009-10-14  Eric Blake  <ebb9@byu.net>
40958
40959         fchdir: avoid infinite recursion in mingw
40960         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40961         recursing.
40962
40963         test-stat-time: port to mingw
40964         * tests/test-stat-time.c (force_unlink): Return a value.
40965         (test_ctime) [W32]: Fix compilation error.
40966         (nap): Don't call usleep with too large an argument.  Use
40967         force_unlink.
40968         * doc/pastposix-functions/usleep.texi (usleep): Document the
40969         portability issue.
40970
40971 2009-10-13  Jim Meyering  <meyering@redhat.com>
40972
40973         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40974         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40975         * modules/pipe-filter-ii: Likewise.
40976         * modules/sys_socket-tests: Likewise.
40977         * modules/tsearch-tests: Likewise.
40978         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40979         (check): Depend on it.
40980
40981 2009-10-12  Eric Blake  <ebb9@byu.net>
40982
40983         utimens-tests: port to NFS file systems
40984         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40985         comparisons to avoid spurious failures from timestamp drift
40986         between NFS machines.
40987
40988 2009-10-12  Eric Blake  <ebb9@byu.net>
40989
40990         stat-time-tests: minor cleanups
40991         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40992         * tests/test-stat-time.c (nap): Separate assignment from call.
40993         Suggested by Paolo Bonzini and Bruno Haible.
40994
40995         sys_stat: guarantee struct timespec
40996         * lib/sys_stat.in.h (includes): Always include <time.h>
40997         * modules/sys_stat (Depends-on): Add time.
40998         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40999         mode_t permission values.
41000         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41001         get at subsecond timestamps.
41002
41003 2009-10-10  Eric Blake  <ebb9@byu.net>
41004
41005         futimens: new module
41006         * modules/futimens: New file.
41007         * lib/futimens.c (futimens): Likewise.
41008         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41009         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41010         we can work around Linux bugs.
41011         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41012         * modules/sys_stat (Makefile.am): Substitute them.
41013         * lib/sys_stat.in.h (futimens): Declare it.
41014         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41015         * doc/posix-functions/futimens.texi (futimens): Likewise.
41016         * modules/futimens-tests: New test.
41017         * tests/test-futimens.c: Likewise.
41018
41019         utimens: introduce fdutimens
41020         * lib/utimens.h (fdutimens): New prototype.
41021         * lib/utimens.c (gl_futimens): Move guts...
41022         (fdutimens): ...to new interface.
41023         * tests/test-utimens.c (do_fdutimens): Use it.
41024
41025         utimens: add UTIME_NOW and UTIME_OMIT support
41026         * lib/utimens.c (validate_timespec, update_timespec): New helper
41027         functions.
41028         (gl_futimens, lutimens): Use them.
41029         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41030         stdbool, sys_stat.
41031         (Link): Mention resulting library dependency.
41032         * modules/utimecmp (Link): Likewise.
41033         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41034         (Makefile.am): Pick up library dependency.
41035         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41036         definition.
41037         * tests/test-sys_stat.c: Test the definitions.
41038         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41039         * NEWS: Document library dependency.
41040
41041         utimecmp: support symlink timestamps
41042         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41043         hashing when possible.  Use pathconf when available.
41044         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41045         * modules/utimecmp (Depends-on): Add lstat.
41046
41047         utimens: add lutimens interface
41048         * lib/utimens.c (lutimens): New function.
41049         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41050         * lib/utimens.h (lutimens): Declare new interface.
41051         * tests/test-utimens.c (main): Enhance test.
41052         * tests/test-lutimens.h (test_lutimens): New file.
41053         * modules/utimens-tests (Files): Distribute it.
41054         (Depends-on): Add symlink.
41055         (configure.ac): Check for usleep.
41056
41057         utimens: validate futimens usage
41058         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41059         fewer syscalls on failure later on.  Avoid compiler warning on
41060         mingw.
41061         * modules/utimens (Depends-on): Add dup2.
41062
41063         utimens: add test
41064         * modules/utimens-tests: New test.
41065         * tests/test-utimens.h: New file.
41066         * tests/test-futimens.h: Likewise.
41067         * tests/test-utimens.c: Likewise.
41068
41069         doc: mention timestamp portability issues
41070         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41071         instead.
41072         * doc/posix-functions/utime.texi (utime): Likewise.
41073         * doc/posix-functions/utimes.texi (utimes): Likewise.
41074         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41075         instead.
41076         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41077         module.
41078         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41079         Mention weakness with symlink timestamps.
41080         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41081         to utimensat/futimens instead.
41082         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41083
41084         test-dup2: enhance test
41085         * tests/test-dup2.c (main): Also check AT_FDCWD.
41086
41087         test-stat-time: avoid more spurious failures
41088         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41089         xfs; and avoid race if the two timestamps cross quantization edge.
41090
41091         relocatable: prefer 'file system' over 'filesystem'
41092         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41093         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41094         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41095         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41096         * lib/relocatable.c (compute_curr_prefix): Likewise.
41097
41098 2009-10-10  Jim Meyering  <meyering@redhat.com>
41099
41100         stat-time-tests: check for the usleep function
41101         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41102
41103 2009-10-10  Bruno Haible  <bruno@clisp.org>
41104
41105         * modules/xnanosleep: Put the Link section after the Include section.
41106
41107 2009-10-09  Eric Blake  <ebb9@byu.net>
41108
41109         dup2: work around FreeBSD 6.1 bug
41110         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41111         * doc/posix-functions/dup2.texi (dup2): Document it.
41112         Reported by Nelson H. F. Beebe and Jim Meyering.
41113
41114         test-stat-time: port to buggy NFS clients
41115         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41116         (test_ctime): Also skip test if mtime and ctime are skewed.
41117
41118         maint: prefer 'file system' over 'filesystem'
41119         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41120         * doc/posix-functions/lstat.texi (lstat): Likewise.
41121         * lib/file-has-acl.c (file_has_acl): Likewise.
41122         * lib/fwriteerror.c [TEST]: Likewise.
41123         * tests/test-areadlink.h (test_areadlink): Likewise.
41124         * tests/test-areadlinkat-with-size.c (main): Likewise.
41125         * tests/test-areadlinkat.c (main): Likewise.
41126         * tests/test-canonicalize-lgpl.c (main): Likewise.
41127         * tests/test-canonicalize.c (main): Likewise.
41128         * tests/test-fstatat.c (main): Likewise.
41129         * tests/test-linkat.c (main): Likewise.
41130         * tests/test-lstat.h (test_lstat_func): Likewise.
41131         * tests/test-mkdir.h (test_mkdir): Likewise.
41132         * tests/test-readlink.h (test_readlink): Likewise.
41133         * tests/test-remove.c (main): Likewise.
41134         * tests/test-rename.h (test_rename): Likewise.
41135         * tests/test-renameat.c (main): Likewise.
41136         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41137         * tests/test-symlink.h (test_symlink): Likewise.
41138         * tests/test-symlinkat.c (main): Likewise.
41139         * tests/test-unlink.h (test_unlink_func): Likewise.
41140         * tests/test-unlinkat.c (main): Likewise.
41141
41142         maint: make realtime library usage explicit
41143         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41144         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41145         * modules/settime (Link): Likewise.
41146         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41147
41148         test-stat-time: speed up execution
41149         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41150         warning on mingw.
41151         (nap): New helper function.
41152         (prepare_test): Use it to reduce sleep time.
41153         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41154         execution.
41155         * modules/stat-time-tests (configure.ac): Check for usleep.
41156
41157 2009-10-09  Jim Meyering  <meyering@redhat.com>
41158
41159         selinux-h: always use getfilecon wrappers
41160         * lib/getfilecon.c: New file.
41161         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41162         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41163         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41164         (fgetfilecon): Provide a stub.
41165         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41166         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41167         file unconditionally.
41168         When <selinux/selinux.h> is found, arrange to use wrappers.
41169         * modules/selinux-h (Files): Add getfilecon.c.
41170         (Makefile.am): Substitute include-next-related bits
41171         into the now-always-generated selinux/selinux.h file.
41172         * doc/glibc-functions/lgetfilecon.texi: New file.
41173         * doc/glibc-functions/fgetfilecon.texi: New file.
41174         * doc/glibc-functions/getfilecon.texi: New file.
41175         * doc/glibc-functions/getfilecon-desc.texi: New file.
41176         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41177         which to pull in the new files.
41178         * MODULES.html.sh (Misc): Add selinux-h.
41179
41180 2009-10-08  Jim Meyering  <meyering@redhat.com>
41181
41182         unistd: fix comment typo
41183         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41184
41185 2009-10-08  Eric Blake  <ebb9@byu.net>
41186
41187         areadlink: use SIZE_MAX consistently
41188         * modules/areadlink (Depends-on): Add stdint.
41189         * modules/areadlink-with-size (Depends-on): Likewise.
41190         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41191         gives NULL; drop sys/types, since unistd gives size_t; and add
41192         stdint for SIZE_MAX.
41193         (SIZE_MAX): Rely on headers.
41194         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41195         and add stdint.
41196         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41197         (SIZE_MAX): Likewise.
41198         (INITIAL_BUF_SIZE): Turn into enum.
41199         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41200
41201 2009-10-08  Jim Meyering  <meyering@redhat.com>
41202
41203         areadlinkat: avoid compilation failure
41204         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41205         Fix typo in comment.
41206
41207 2009-10-07  Eric Blake  <ebb9@byu.net>
41208
41209         areadlinkat-with-size: new module
41210         * modules/areadlinkat-with-size: New module.
41211         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41212         * lib/areadlink.h (areadlinkat): Declare it.
41213         * MODULES.html.sh (File system functions): Mention it.
41214         * modules/areadlinkat-with-size-tests: New test.
41215         * tests/test-areadlinkat-with-size.c: New file.
41216
41217         xreadlinkat: new module
41218         * modules/xreadlinkat: New module.
41219         * lib/xreadlinkat.c (xreadlinkat): New file.
41220         * lib/xreadlink.h (xreadlinkat): Declare it.
41221         * MODULES.html.sh (File system functions): Mention it.
41222
41223         areadlinkat: new module
41224         * lib/at-func.c (FUNC_FAIL): New define.
41225         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41226         * modules/areadlinkat: New module.
41227         * lib/linkat.c (areadlinkat): Move...
41228         * lib/areadlinkat.c (areadlinkat): ...to new file.
41229         * lib/areadlink.h (areadlinkat): Declare it.
41230         * modules/linkat (Depends-on): Add areadlinkat.
41231         * MODULES.html.sh (File system functions): Mention it.
41232         * modules/areadlinkat-tests: New test.
41233         * tests/test-areadlinkat.c: New file.
41234
41235         areadlink, areadlink-with-size: add tests
41236         * modules/areadlink-tests: New test.
41237         * modules/areadlink-with-size-tests: Likewise.
41238         * tests/test-areadlink.h: New file.
41239         * tests/test-areadlink.c: Likewise.
41240         * tests/test-areadlink-with-size.c: Likewise.
41241
41242         maint: minor cleanups
41243         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41244         _UNUSED_PARAMETER_ instead.
41245         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41246         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41247         * modules/linkat-tests (Files): Distribute test-link.h.
41248
41249         openat, utimens: whitespace cleanup
41250         * lib/openat.c: Prefer space throughout, rather than mix of 8
41251         spaces vs. tabs.
41252         * lib/at-func.c: Likewise.
41253         * lib/utimens.c: Likewise.
41254
41255         openat: avoid using wrong fd
41256         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41257         working directory chooses same fd.
41258         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41259
41260         mkdir, mkdirat: fix cygwin 1.5.x bug
41261         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41262         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41263         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41264         bug.
41265         (gl_PREREQ_MKDIR): Delete unused macro.
41266         * modules/mkdir (Files): Track file rename.
41267         (configure.ac): Update macro name.
41268         * modules/openat (Depends-on): Add mkdir.
41269         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41270
41271         mkdir, mkdirat: add tests
41272         * modules/mkdir-tests: New test.
41273         * tests/test-mkdir.h: New file.
41274         * tests/test-mkdir.c: Likewise.
41275         * tests/test-mkdirat.c: Likewise.
41276         * modules/openat-tests (Files): Add new files.
41277         (Makefile.am): Run new test.
41278
41279 2009-10-06  Eric Blake  <ebb9@byu.net>
41280
41281         doc: tweak *at function documentation
41282         * doc/posix-functions/faccessat.texi (faccessat): Mention
41283         known issue with replacement.
41284         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41285         * doc/posix-functions/linkat.texi (linkat): Likewise.
41286         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41287         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41289         * doc/posix-functions/renameat.texi (renameat): Likewise.
41290         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41291
41292         openat: fix GNU/Hurd bug in unlinkat
41293         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41294         broken.
41295         * doc/posix-functions/unlink.texi (unlink): Document this.
41296         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41297
41298         fdopendir: fix GNU/Hurd bug
41299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41300         allowing non-directory fds.
41301         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41303         * modules/dirent (Makefile.am): Substitute it.
41304         * lib/dirent.in.h (fdopendir): Declare replacement.
41305         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41306         * tests/test-fdopendir.c (main): Test something other than
41307         /dev/null, since on Hurd that behaves like a directory.
41308
41309         test-symlink: port to GNU/Hurd
41310         * tests/test-symlink.h (test_symlink): Relax expected errno.
41311
41312         doc: tweak more cygwin information
41313         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41314         now compatible with glibc.
41315         * doc/posix-functions/getopt.texi (getopt): Likewise.
41316
41317         getopt-gnu: add another test
41318         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41319         guarantee behavior relied on by m4.
41320         * tests/test-getopt.c (main): Use it.
41321         * modules/getopt-posix-tests (Depends-on): Add setenv.
41322         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41323
41324         getopt: fix compilation on darwin
41325         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41326         include.
41327         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41328         Reported by Ludovic Courtès.
41329
41330 2009-10-06  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/size_max (Description): Discourage its use.
41333         Reported by Simon Josefsson.
41334
41335 2009-10-06  Jim Meyering  <meyering@redhat.com>
41336
41337         linkat: avoid compilation failure
41338         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41339
41340 2009-10-05  Eric Blake  <ebb9@byu.net>
41341
41342         linkat: support Linux 2.6.17
41343         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41344         linkat on Linux, but allow cache variable override.
41345         * lib/linkat.c (rpl_linkat): Define override.
41346         * modules/linkat (Depends-on): Add symlinkat.
41347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41348         * modules/unistd (Makefile.am): Substitute it.
41349         * lib/unistd.in.h (linkat): Declare replacement.
41350         Reported by Pádraig Brady.
41351
41352         quotearg: port test to systems with C.UTF-8 locale
41353         * tests/test-quotearg.c (struct result_strings): Add another
41354         member, differentiating between C.ASCII and C.UTF-8 handling.
41355         (compare_strings): Add parameter.
41356         (main): Adjust all callers.
41357
41358         getopt: avoid clash with FreeBSD _getopt_internal
41359         * lib/getopt.in.h (_getopt_internal): Override the name.
41360         * lib/getopt_int.h (includes): Pick up any overrides.
41361         Reported by Reuben Thomas.
41362
41363         hash: allow C89 compilation
41364         * lib/hash.c (check_tuning): Move declaration before statement.
41365         Reported by Reuben Thomas.
41366
41367 2009-10-05  Karl Berry  <karl@gnu.org>
41368
41369         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41370
41371 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41372             Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/uname.c (uname): Use a table-driven algorithm to compute
41375         Windows NT versions.
41376
41377 2009-10-04  Bruno Haible  <bruno@clisp.org>
41378
41379         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41380         program_invocation_short_name.
41381         * modules/progname (configure.ac): Test for presence of
41382         program_invocation_short_name.
41383         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41384
41385 2009-10-04  Bruno Haible  <bruno@clisp.org>
41386
41387         * lib/progname.c (set_program_name): Fix comment.
41388         Reported by Jim Meyering.
41389
41390 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41391             Bruno Haible  <bruno@clisp.org>
41392
41393         * lib/uname.c: Include <string.h>.
41394         (uname): Do only one call to GetVersionEx in the common case.
41395
41396 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41397             Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41400         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41401         (uname): Add support for Windows CE and various non-x86 CPU types.
41402
41403 2009-10-03  Bruno Haible  <bruno@clisp.org>
41404
41405         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41406         invocation to tests/configure.ac.
41407         Reported by Ian Beckwith <ianb@erislabs.net>.
41408
41409 2009-10-02  Eric Blake  <ebb9@byu.net>
41410
41411         fchdir: avoid compiler warning
41412         * lib/fchdir.c (canonicalize_file_name)
41413         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41414
41415         test-open: support mingw errno values
41416         * tests/test-open.h (test_open): Relax test.
41417         * tests/test-fopen.h (test_fopen): Likewise.
41418         * tests/test-openat-safer.c (main): Likewise.
41419
41420         open: fix opening directory on mingw
41421         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41422
41423         test-open: on GNU/Hurd, /dev/null is a directory
41424         * tests/test-fopen.h (main): Rename...
41425         (test_fopen): ...to this.  Use a guaranteed non-directory when
41426         confirming open behavior on trailing slash.
41427         * tests/test-openat-safer.c (main): Likewise.
41428         * tests/test-open.h (main): Likewise....
41429         (test_open): ...to this.
41430         * tests/test-fopen.c (main): Adjust caller.
41431         * tests/test-fopen-safer.c (main): Likewise.
41432         * tests/test-open.c (main): Likewise.
41433         * tests/test-fcntl-safer.c (main): Likewise.
41434         Reported by Samuel Thibault.
41435
41436         rename, fchdir: don't ignore chdir failure
41437         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41438         * lib/rename.c (rpl_rename) [W32]: Likewise.
41439         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41440         an empty destination directory if source cannot be renamed,
41441         although there is still possibility for failure.
41442         * doc/posix-functions/rename.texi (rename): Document the race.
41443         Reported by Jim Meyering.
41444
41445         maint: cleanup whitespace in recent commits
41446         * lib/rename.c (rpl_rename): Remove tabs.
41447         * tests/test-link.h (test_link): Likewise.
41448         * lib/fchdir.c (get_name): Likewise.
41449         Reported by Jim Meyering.
41450
41451 2009-10-02  Ben Pfaff  <blp@gnu.org>
41452
41453         relocatable-prog-wrapper: Add missing dependency on
41454         double-slash-root.
41455         * modules/relocatable-prog-wrapper: Add dependency.
41456         Reported by Ian Beckwith <ianb@erislabs.net>.
41457
41458 2009-10-02  Eric Blake  <ebb9@byu.net>
41459
41460         renameat: fix Solaris bugs
41461         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41462         needed fixing.
41463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41464         * modules/stdio (Makefile.am): Substitute it.
41465         * lib/stdio.in.h (renameat): Declare replacement.
41466         * lib/renameat.c (rpl_renameat): Implement fix.
41467
41468         renameat: new module
41469         * modules/renameat: New file.
41470         * lib/renameat.c (renameat): Likewise.
41471         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41473         * modules/stdio (Makefile.am): Substitute them.
41474         * lib/stdio.in.h (renameat): Declare it.
41475         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41476         * doc/posix-functions/renameat.texi (renameat): Likewise.
41477         * modules/renameat-tests: New test.
41478         * tests/test-renameat.c: Likewise.
41479
41480         rename: fix mingw bugs
41481         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41482         directory overwrite bugs.
41483
41484         rename: fix another cygwin 1.5 bug
41485         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41486         checks.
41487         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41488         unnecessary cygwin workarounds.  Also work around bug with moving
41489         full directory onto an empty one.
41490         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41491
41492         rename-dest-slash: merge into rename module
41493         * modules/rename-dest-slash (Status): Mark obsolete.
41494         (Depends-on): Add rename.
41495         (Files): Let rename do it all.
41496         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41497         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41498         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41499         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41500         * lib/rename.c (rpl_rename): Update comments.
41501
41502         rename: fix cygwin 1.5.x bugs
41503         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41504         * lib/rename.c (rpl_rename): Work around them.
41505         * modules/rename (Depends-on): Add same-inode.
41506
41507         rename: fix Solaris 10 bug
41508         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41509         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41510         was the only bug.
41511
41512         rename: fix Solaris 9 bug
41513         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41514         on non-directory.  Avoid calling exit.
41515         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41516         strdup.
41517         * modules/rename-tests (Depends-on): Drop lstat.
41518         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41519         (gl_PREREQ_RENAME): Delete unused macro.
41520
41521         rename-dest-slash: fix NetBSD bug
41522         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41523         links.
41524         * modules/rename-dest-slash (Depends-on): Add same-inode.
41525
41526         rename-tests: new test, exposes several platform bugs
41527         * modules/rename-tests: New file.
41528         * tests/test-rename.h: Likewise.
41529         * tests/test-rename.c: Likewise.
41530         * doc/posix-functions/rename.texi (rename): Improve documentation,
41531         including bugs that will eventually be fixed in gnulib.
41532
41533 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41534
41535         * lib/uname.c: Include <stdlib.h>
41536         (uname): Assume version info is available.
41537
41538 2009-10-02  Jim Meyering  <meyering@redhat.com>
41539
41540         gnu-web-doc-update: correct --help output
41541         * build-aux/gnu-web-doc-update: Make --help output relevant.
41542
41543         gnu-web-doc-update: add standard options
41544         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41545
41546         gnu-web-doc-update: New module.
41547         Use this script to automatically update the on-line web documentation
41548         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41549         * modules/gnu-web-doc-update: New file, from coreutils.
41550         * build-aux/gnu-web-doc-update: New script.
41551
41552 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41553
41554         link: LoadLibrary is not needed.
41555         * lib/link.c: Use GetModuleHandle.
41556
41557 2009-10-01  Eric Blake  <ebb9@byu.net>
41558
41559         getopt: bump serial number
41560         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41561         change.
41562
41563         tests: tighten link, rmdir, and remove tests
41564         * tests/test-link.h (includes): No need to use <config.h> here.
41565         Clean up if directory hard link was created, otherwise test for
41566         trailing '.'.
41567         * tests/test-linkat.c (main): Simplify.
41568         * tests/test-remove.c (main): Enhance test for trailing '.'.
41569         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41570
41571 2009-10-01  Jim Meyering  <meyering@redhat.com>
41572
41573         maint.mk: requiring "make major" was annoying, for a "minor" release.
41574         What is intended is "stable", to contrast with alpha and beta,
41575         so require "make stable", not "make major".
41576         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41577         (get_tool_versions): Likewise.
41578         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41579
41580 2009-09-30  Ben Pfaff  <blp@gnu.org>
41581
41582         Fix broken build of replacement for Windows tmpfile().
41583         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41584         flags argument added along with the 'mkostemp' module.
41585
41586 2009-09-28  Bruno Haible  <bruno@clisp.org>
41587
41588         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41589         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41590         to 'remove_elt'.
41591         (gl_list_remove): Update.
41592         * lib/gl_list.c (gl_list_remove): Update.
41593         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41594         to 'remove_elt'.
41595         (gl_oset_remove): Update.
41596         * lib/gl_list.c (gl_oset_remove): Update.
41597         Reported by Eric Blake.
41598
41599 2009-09-28  Eric Blake  <ebb9@byu.net>
41600
41601         doc: mention yet more cygwin 1.7 status
41602         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41603         cygwin.
41604         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41605         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41606
41607         argp: fix test failure
41608         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41609         that are not upper-case.  Pass correct range to tolower.
41610
41611 2009-09-27  Jim Meyering  <meyering@redhat.com>
41612
41613         test-yesno: work around sparc-dash here-document infelicity
41614         Without this change, the literal \177 byte in a here document
41615         would make dash 0.5.5.1-3 access uninitialized memory.
41616         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41617         Instead, use a marker, "@", and filter through tr to create the desired
41618         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41619
41620 2009-09-27  Bruno Haible  <bruno@clisp.org>
41621
41622         Disable untested support for new flavours of ACLs on AIX.
41623         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41624         progress.
41625         * lib/set-mode-acl.c (qset_acl): Likewise.
41626
41627 2008-12-07  Bruno Haible  <bruno@clisp.org>
41628
41629         Add support for new flavours of ACLs on AIX. (Untested.)
41630         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41631         (file_has_acl): Add support for newer AIX.
41632         * lib/set-mode-acl.c (qset_acl): Likewise.
41633         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41634         Rainer Tammer <tammer@tammer.net>.
41635
41636 2009-09-26  Eric Blake  <ebb9@byu.net>
41637
41638         argp: fix compilation of getopt
41639         * lib/getopt.in.h (includes): Use different guard than glibc.
41640         Reported by Sergey Poznyakoff.
41641
41642         doc: mention more cygwin 1.7 status
41643         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41644         bug.
41645         * doc/posix-functions/execl.texi (execl): Likewise.
41646         * doc/posix-functions/execle.texi (execle): Likewise.
41647         * doc/posix-functions/execlp.texi (execlp): Likewise.
41648         * doc/posix-functions/execv.texi (execv): Likewise.
41649         * doc/posix-functions/execve.texi (execve): Likewise.
41650         * doc/posix-functions/execvp.texi (execvp): Likewise.
41651         * doc/glibc-functions/canonicalize_file_name.texi
41652         (canonicalize_file_name): Cygwin 1.7 now provides this.
41653         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41654         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41655         on AT_SYMLINK_NOFOLLOW.
41656
41657 2009-09-24  Eric Blake  <ebb9@byu.net>
41658
41659         test-linkat: make test more robust
41660         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41661
41662         getopt: fix inclusion guards for cygwin
41663         * modules/getopt-posix (Depends-on): Add include-next.
41664         (Makefile.am): Substitute more items in replacement header.
41665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41666         <getopt.h>.
41667         * lib/getopt.in.h (includes): Use split inclusion guard, and
41668         prefer <getopt.h> over include <unistd.h> when one is present.
41669         (option): Also override name of 'struct option'.
41670
41671         same-inode: revert prior change; it is not yet ready
41672         * NEWS: Undo mention of this change.
41673         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41674         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41675         * lib/cycle-check.c (cycle_check): Likewise.
41676         * lib/same.c (same_name): Likewise.
41677         * lib/at-func2.c (at_func2): Likewise.
41678
41679 2009-09-23  Eric Blake  <ebb9@byu.net>
41680
41681         linkat: new module
41682         * modules/linkat: New file.
41683         * lib/at-func2.c (at_func2): Likewise.
41684         * lib/linkat.c (linkat): Likewise.
41685         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41686         * lib/openat-priv.h (at_func2): Add declaration.
41687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41688         * modules/unistd (Makefile.am): Substitute them.
41689         * lib/unistd.in.h (linkat): Declare it.
41690         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41691         * doc/posix-functions/linkat.texi (linkat): Likewise.
41692         * doc/posix-functions/link.texi (link): Tweak wording.
41693         * tests/test-link.c (main): Move guts...
41694         * tests/test-link.h (test_link): ...into new file.
41695         * modules/linkat-tests: New test.
41696         * tests/test-linkat.c: Likewise.
41697         * modules/link-tests (Files): Ship new file.
41698         (Depends-on): Add stdbool.
41699
41700         dirname: add library-safe mdir_name
41701         * lib/dirname.h (mdir_name): New prototype.
41702         * lib/dirname.c (dir_name): Move guts...
41703         (mdir_name): ...to new function that avoids xalloc_die.
41704
41705         fchdir: another mingw fix
41706         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41707         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41708         on mingw (where it has not yet been ported), and make it optional
41709         elsewhere.
41710         (_gl_register_fd): Use it.
41711
41712         same-inode: make SAME_INODE tri-state, to port to mingw
41713         * NEWS: Mention this change.
41714         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41715         st_ino always being 0.
41716         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41717         * lib/cycle-check.c (cycle_check): Likewise.
41718         * lib/same.c (same_name): Likewise.
41719
41720         lstat: avoid mingw compilation error
41721         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41722         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41723         lstat ourselves.
41724         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41725         was adequate.
41726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41727         the checks for lstat.
41728         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41729
41730         link: fix test failure on Solaris 9
41731         * lib/link.c (rpl_link): Don't assume link will catch bogus
41732         trailing slash on source.
41733
41734         test-symlinkat: enhance test
41735         * tests/test-readlink.c (main): Move guts...
41736         * tests/test-readlink.h (test_readlink): ...into new file.
41737         * tests/test-symlink.c (main): Move guts...
41738         * tests/test-symlink.h (test_symlink): ...into new file.
41739         * tests/test-symlinkat.c (main): Use new files for further
41740         coverage.
41741         (do_symlink, do_readlink): New helper functions.
41742         * modules/symlink-tests (Files): Ship new file.
41743         (Depends-on): Add stdbool.
41744         * modules/readlink-tests (Files): Ship new file.
41745         (Depends-on): Add stdbool.
41746         * modules/symlinkat-tests (Files): Use new files.
41747
41748 2009-09-23  Eric Blake  <ebb9@byu.net>
41749
41750         readlink: document portability issue with symlink length
41751         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41752         systems have bogus st_size on symlinks, and mention the
41753         areadlink-with-size module.
41754         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41755         * doc/posix-functions/readlink.texi (readlink): Mention the
41756         areadlink module, and ERANGE failure.
41757         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41758         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41759
41760         readlink: fix Solaris 9 bug with trailing slash
41761         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41762         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41763         * doc/posix-functions/readlink.texi (readlink): Document this.
41764         * modules/readlink-tests: New test.
41765         * tests/test-readlink.c: Likewise.
41766
41767         readlink: fix cygwin 1.5.x bug with return type
41768         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41769         * lib/unistd.in.h (readlink): Use ssize_t.
41770         * lib/readlink.c (readlink): Likewise.
41771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41772         * modules/unistd (Makefile.am): Substitute it.
41773         * lib/unistd.in.h (readlink): Declare replacement.
41774         * doc/posix-functions/readlink.texi (readlink): Document this.
41775
41776         symlink: use throughout gnulib
41777         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41778         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41779         symlink is not used.
41780         * modules/symlinkat (Depends-on): Add symlink.
41781         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41782         * modules/canonicalize-tests (Depends-on): Likewise.
41783         * modules/lstat-tests (Depends-on): Likewise.
41784         * modules/openat-tests (Depends-on): Likewise.
41785         * modules/remove-tests (Depends-on): Likewise.
41786         * modules/rmdir-tests (Depends-on): Likewise.
41787         * modules/unlink-tests (Depends-on): Likewise.
41788         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41789         * tests/test-canonicalize.c (symlink): Likewise.
41790         * tests/test-fstatat.c (symlink): Likewise.
41791         * tests/test-lstat.c (symlink): Likewise.
41792         * tests/test-remove.c (symlink): Likewise.
41793         * tests/test-rmdir.c (symlink): Likewise.
41794         * tests/test-unlink.c (symlink): Likewise.
41795         * tests/test-unlinkat.c (symlink): Likewise.
41796
41797         symlink: new module, for Solaris 9 bug
41798         * modules/symlink: New file.
41799         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41800         * lib/symlink.c: Likewise.
41801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41802         * modules/unistd (Makefile.am): Substitute them.
41803         * lib/unistd.in.h (symlink): Declare replacement.
41804         * MODULES.html.sh (File system functions): Mention it.
41805         * doc/posix-functions/symlink.texi (symlink): Likewise.
41806         * modules/symlink-tests: New test.
41807         * tests/test-symlink.c: Likewise.
41808
41809 2009-09-23  Bruno Haible  <bruno@clisp.org>
41810
41811         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41812         when needed.
41813         Test case: gnulib-tool --import --with-tests atexit inttypes.
41814         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41815
41816 2009-09-23  Bruno Haible  <bruno@clisp.org>
41817
41818         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41819         subcommand, not in a subshell.
41820
41821 2009-09-22  Eric Blake  <ebb9@byu.net>
41822
41823         unistd: sort replacement declarations
41824         * lib/unistd.in.h: Sort declarations.
41825
41826         open, openat: minor optimization
41827         * lib/open.c (open): If open succeeded, len is non-zero.
41828         * lib/openat.c (rpl_openat): Likewise.
41829
41830         link-follow: ensure correct result
41831         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41832         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41833         distinguish between possible failures.
41834
41835 2009-09-21  Eric Blake  <ebb9@byu.net>
41836
41837         fts: avoid compiler warning
41838         * lib/fts.c (dirent_inode_sort_may_be_useful)
41839         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41840
41841 2009-09-19  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/progreloc.c (canonicalize_file_name): New declaration.
41844
41845 2009-09-19  Eric Blake  <ebb9@byu.net>
41846
41847         link: fix quoting
41848         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41849
41850         openat: fix openat bugs on Solaris 9
41851         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41852         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41853         * modules/openat (Depends-on): Add open.
41854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41855         * modules/fcntl-h (Makefile.am): Substitute it.
41856         * lib/fcntl.in.h (openat): Declare replacement.
41857         * doc/posix-functions/openat.texi (openat): Document this.
41858
41859         openat: move fstatat and unlinkat into correct files
41860         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41861         compiled.
41862         * lib/openat.c (fstatat, unlinkat): Move...
41863         * lib/fstatat.c (fstatat): ...into correct files.
41864         * lib/unlinkat.c (unlinkat): Likewise.
41865
41866         openat: fix unlinkat bugs on Solaris 9
41867         * lib/unlinkat.c (unlinkat): New file.
41868         * modules/openat (Depends-on): Add unlink.
41869         (Files): Distribute it.
41870         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41871         trailing slash behavior is broken.
41872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41873         * modules/unistd (Makefile.am): Substitute it.
41874         * lib/unistd.in.h (unlinkat): Declare replacement.
41875         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41876
41877         openat: fix fstatat bugs on Solaris 9
41878         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41879         stat.
41880         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41881
41882         test-unlinkat: enhance test, to expose Solaris 9 bug
41883         * tests/test-unlink.c (main): Factor guts...
41884         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41885         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41886         * tests/test-rmdir.c (main): Adjust caller.
41887         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41888         (unlinker): New helper function.
41889         (rmdirat): Enhance check.
41890         * modules/rmdir-tests (Depends-on): Add stdbool.
41891         * modules/unlink-tests (Depends-on): Likewise.
41892         (Files): Add test-unlink.h.
41893         * modules/openat-tests (Files): Likewise.
41894         (Depends-on): Add unlinkdir.
41895
41896         test-fstatat: new test, to expose Solaris 9 bugs
41897         * tests/test-stat.c (main): Factor guts...
41898         * tests/test-stat.h (test_stat_func): ...into new file.
41899         * tests/test-lstat.c (main): Factor guts...
41900         * tests/test-lstat.h (test_lstat_func): ...into new file.
41901         * tests/test-fstatat.c: New file.
41902         * modules/stat-tests (Files): Add test-stat.h.
41903         * modules/lstat-tests (Files): Add test-lstat.h.
41904         (Depends-on): Add stdbool.
41905         * modules/openat-tests (Depends-on): Add pathmax.
41906         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41907         (Makefile.am): Run new test.
41908
41909         remove: new module, for mingw and Solaris 9 bugs
41910         * modules/remove: New file.
41911         * lib/remove.c: Likewise.
41912         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41914         * modules/stdio (Makefile.am): Use them.
41915         * lib/stdio.in.h (remove): Declare replacement.
41916         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41917         * doc/posix-functions/remove.texi (remove): Likewise.
41918         * modules/remove-tests: New test.
41919         * tests/test-remove.c: Likewise.
41920
41921         unlink: new module, for Solaris 9 bug
41922         * modules/unlink: New file.
41923         * lib/unlink.c: Likewise.
41924         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41926         * modules/unistd (Makefile.am): Use them.
41927         * lib/unistd.in.h (stat): Declare replacement.
41928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41929         * doc/posix-functions/unlink.texi (unlink): Likewise.
41930         * modules/unlink-tests: New test.
41931         * tests/test-unlink.c: Likewise.
41932
41933         lstat: fix Solaris 9 bug
41934         * lib/lstat.c (lstat): Also check for trailing slash on
41935         non-symlink, non-directories.  Use stat module to simplify logic.
41936         * doc/posix-functions/lstat.texi (lstat): Document it.
41937         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41938         (configure.ac): Check for symlink.
41939         * tests/test-lstat.c (main): Add more tests.
41940
41941         stat: add as dependency to other modules
41942         * modules/chown (Depends-on): Add stat.
41943         * modules/euidaccess (Depends-on): Likewise.
41944         * modules/fchdir (Depends-on): Likewise.
41945         * modules/isdir (Depends-on): Likewise.
41946         * modules/link (Depends-on): Likewise.
41947         * modules/lstat (Depends-on): Likewise.
41948         * modules/mkdir-p (Depends-on): Likewise.
41949         * modules/modechange (Depends-on): Likewise.
41950         * modules/open (Depends-on): Likewise.
41951         * modules/readlink (Depends-on): Likewise.
41952         * modules/same (Depends-on): Likewise.
41953
41954         stat: fix Solaris 9 bug
41955         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41956         slash.
41957         * lib/stat.c (rpl_stat): Work around it.
41958         * doc/posix-functions/stat.texi (stat): Update documentation.
41959
41960         stat: new module, for mingw bug
41961         * modules/stat: New file.
41962         * lib/stat.c: Likewise.
41963         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41965         * modules/sys_stat (Makefile.am): Use them.
41966         * lib/sys_stat.in.h (stat): Declare replacement.
41967         * lib/openat.c (fstatat): Deal with lstat and stat being function
41968         macros.
41969         * modules/openat (Depends-on): Add inline.
41970         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41971         * doc/posix-functions/stat.texi (stat): Likewise.
41972         * modules/stat-tests: New test.
41973         * tests/test-stat.c: Likewise.
41974
41975 2009-09-19  Jim Meyering  <meyering@redhat.com>
41976
41977         syntax-check: detect unnecessary inclusion of canonicalize.h
41978         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41979
41980 2009-09-19  Eric Blake  <ebb9@byu.net>
41981
41982         canonicalize-lgpl: adjust clients to use correct header
41983         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41984         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41985         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41986         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41987         * lib/progreloc.c (includes): Likewise.
41988
41989 2009-09-19  Jim Meyering  <meyering@redhat.com>
41990
41991         test-posixtm.c: correct a comment
41992         * tests/test-posixtm.c: Correct first-line comment.
41993         Spotted by Eric Blake.
41994
41995 2009-09-16  Jim Meyering  <meyering@redhat.com>
41996
41997         posixtm-tests: make T const-correct; add a test case
41998         * tests/test-posixtm.c (T): Declare const.
41999         Add a test for -(2^31+1).
42000         Remove useless can-succeed-only-in-2002 test.
42001
42002         posixtm-tests: adjust the sole failing test
42003         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42004         expected output matches what mktime now produces.  Cross-checked via
42005         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42006
42007         posixtm: move #ifdef'd tests into a new module
42008         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42009         * tests/test-posixtm.c: ... this new file.
42010         * modules/posixtm-tests: New module.
42011
42012 2009-09-19  Eric Blake  <ebb9@byu.net>
42013
42014         openat: simplify use of at-func.c
42015         * lib/at-func.c (includes): Include prerequisites here, to
42016         simplify requirements on client files.
42017         * lib/openat-priv.h: Add double-inclusion guard.
42018         * lib/faccessat.c (includes): Simplify.
42019         * lib/fchmodat.c (includes): Likewise.
42020         * lib/fchownat.c (includes): Likewise.
42021         * lib/mkdirat.c (includes): Likewise.
42022         * lib/mkfifoat.c (includes): Likewise.
42023         * lib/symlinkat.c (includes): Likewise.
42024
42025         openat: allow return of fd 0
42026         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42027         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42028         unistd-safer.
42029         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42030         <fcntl.h>; this module does not leak fds.
42031         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42032         must be allowed to return 0, leaving openat_safer to add the
42033         safety.
42034         (openat_permissive): Avoid writing to just-opened fd 2 if
42035         restoring the current directory fails.
42036         * lib/openat-die.c (openat_restore_fail): Add comment.
42037         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42038         (save_cwd): Guarantee safe fd, but without use of open_safer.
42039         * tests/test-openat.c: New test.
42040         * modules/openat-tests (Files, Makefile.am): Distribute and build
42041         new file.
42042
42043         relocatable-prog-wrapper: fix build
42044         * modules/relocatable-prog-wrapper (Files): Update name of
42045         canonicalize m4 file, broken on 2009-09-17.
42046         Reported by emad hajjar <aleppos@hotmail.com>.
42047
42048 2009-09-19  Bruno Haible  <bruno@clisp.org>
42049
42050         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42051         * lib/safe-alloc.c: Likewise.
42052         Reported by Ian Beckwith <ianb@erislabs.net>.
42053
42054 2009-09-18  Bruno Haible  <bruno@clisp.org>
42055
42056         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42057         Reported by <erobles@sensacd.com.mx>.
42058
42059 2009-09-17  Eric Blake  <ebb9@byu.net>
42060
42061         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42062         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42063         slashes when checking if last component is missing.
42064         * tests/test-canonicalize.c (main): Test this.
42065
42066         canonicalize, canonicalize-lgpl: honor // if distinct from /
42067         * modules/canonicalize (Files): Add double-slash-root.m4.
42068         * modules/canonicalize-lgpl (Files): Likewise.
42069         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42070         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42071         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42072         fallback definition.
42073         (canonicalize_filename_mode): Use it to protect //.
42074         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42075         (__realpath): Likewise.
42076         * tests/test-canonicalize.c (main): Test this.
42077         * tests/test-canonicalize-lgpl.c (main): Likewise.
42078         * modules/canonicalize-tests (Depends-on): Add same-inode.
42079         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42080
42081         canonicalize-lgpl: fix glibc bug with trailing slash
42082         * m4/canonicalize-lgpl.m4: Move contents...
42083         * m4/canonicalize.m4: ...here.
42084         (gl_CANONICALIZE_LGPL): Factor realpath check...
42085         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42086         glibc 2.3.5 bug, fixed 2005-04-27.
42087         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42088         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42089         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42090         * modules/canonicalize-lgpl (Files): Manage file rename.
42091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42092         * modules/stdlib (Makefile.am): Substitute witness.
42093         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42094         is needed.
42095         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42096         replacement is required.
42097         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42098         * doc/glibc-functions/canonicalize_file_name.texi
42099         (canonicalize_file_name): Document this.
42100         * doc/posix-functions/realpath.texi (realpath): Likewise.
42101
42102         canonicalize-lgpl: reject non-directory with trailing slash
42103         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42104         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42105         catches failures in glibc 2.3.5.
42106         * tests/test-canonicalize.c (main): Likewise.
42107
42108         canonicalize-lgpl: use native realpath if it works
42109         * lib/canonicalize-lgpl.c (realpath): Guard with
42110         FUNC_REALPATH_WORKS.
42111         * lib/stdlib.in.h (realpath): Make declaration optional based on
42112         HAVE_REALPATH.
42113         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42114         native realpath works.
42115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42116         * modules/stdlib (Makefile.am): Substitute witness.
42117
42118         canonicalize, canonicalize-lgpl: use <stdlib.h>
42119         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42120         (Include): Mention <stdlib.h>.
42121         (configure.ac): Mention functions we provide.
42122         * modules/canonicalize (configure.ac): Likewise.
42123         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42124         realpath if canonicalize_file_name is missing.
42125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42126         * modules/stdlib (Makefile.am): Substitute witnesses.
42127         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42128         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42129         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42130         * NEWS: Document this.
42131         * doc/glibc-functions/canonicalize_file_name.texi
42132         (canonicalize_file_name): Likewise.
42133         * doc/posix-functions/realpath.texi (realpath): Likewise.
42134         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42135
42136         test-canonicalize: consolidate into single C program
42137         * tests/test-canonicalize.sh: Delete; move setup into...
42138         * tests/test-canonicalize.c (main): ...the program, making it
42139         easier to run in debugger.  Add some tests.
42140         * modules/canonicalize-tests (Files): Remove unused file.
42141         (Depends-on): Add progname.
42142         (configure.ac, Makefile.am): Simplify.
42143
42144         test-canonicalize-lgpl: consolidate into single C program
42145         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42146         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42147         easier to run in debugger.  Add some tests.
42148         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42149         (configure.ac, Makefile.am): Simplify.
42150
42151         canonicalize: avoid resolvepath
42152         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42153         unnecessary checks.
42154         * lib/canonicalize.c (includes): Simplify.
42155         (canonicalize_file_name): Drop resolvepath implementation.
42156         * modules/canonicalize (Depends-on): Drop filenamecat.
42157
42158         canonicalize: don't lose errno
42159         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42160         over calls to free.
42161
42162         canonicalize: simplify errno handling
42163         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42164         assignment.
42165
42166         canonicalize, canonicalize-lgpl: update module dependencies
42167         * modules/canonicalize (Depends-on): Add extensions, lstat,
42168         pathmax, stdlib.
42169         (Files): Drop pathmax.h.
42170         (configure.ac): Adjust macro name.
42171         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42172         lstat, stdlib, sys_stat.
42173         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42174         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42175         extensions.
42176         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42177         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42178         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42179         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42180         declaration, if available.
42181         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42182         we can rely on the readlink module.
42183         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42184         (includes): Use <unistd.h> unconditionally.
42185
42186 2009-09-17  Eric Blake  <ebb9@byu.net>
42187
42188         maint: make Include sections of modules consistent
42189         * modules/alloca: Use only header name; no need to list #include.
42190         * modules/alloca-opt: Likewise.
42191         * modules/arpa_inet: Likewise.
42192         * modules/canon-host: Likewise.
42193         * modules/configmake: Likewise.
42194         * modules/dirent: Likewise.
42195         * modules/eealloc: Likewise.
42196         * modules/environ: Likewise.
42197         * modules/fchdir: Likewise.
42198         * modules/fcntl: Likewise.
42199         * modules/fcntl-h: Likewise.
42200         * modules/gethrxtime: Likewise.
42201         * modules/gettime: Likewise.
42202         * modules/ignore-value: Likewise.
42203         * modules/inet_ntop: Likewise.
42204         * modules/inet_pton: Likewise.
42205         * modules/inttypes: Likewise.
42206         * modules/isnand-nolibm: Likewise.
42207         * modules/isnanf-nolibm: Likewise.
42208         * modules/mbchar: Likewise.
42209         * modules/mbfile: Likewise.
42210         * modules/mbiter: Likewise.
42211         * modules/mbuiter: Likewise.
42212         * modules/netdb: Likewise.
42213         * modules/netinet_in: Likewise.
42214         * modules/nproc: Likewise.
42215         * modules/pagealign_alloc: Likewise.
42216         * modules/poll: Likewise.
42217         * modules/printf-frexp: Likewise.
42218         * modules/pthread: Likewise.
42219         * modules/putenv: Likewise.
42220         * modules/random_r: Likewise.
42221         * modules/relocatable-prog: Likewise.
42222         * modules/search: Likewise.
42223         * modules/select: Likewise.
42224         * modules/selinux-h: Likewise.
42225         * modules/settime: Likewise.
42226         * modules/signal: Likewise.
42227         * modules/size_max: Likewise.
42228         * modules/socklen: Likewise.
42229         * modules/ssize_t: Likewise.
42230         * modules/stdarg: Likewise.
42231         * modules/stdbool: Likewise.
42232         * modules/stddef: Likewise.
42233         * modules/stdint: Likewise.
42234         * modules/stdio: Likewise.
42235         * modules/stdlib: Likewise.
42236         * modules/string: Likewise.
42237         * modules/strings: Likewise.
42238         * modules/sys_file: Likewise.
42239         * modules/sys_ioctl: Likewise.
42240         * modules/sys_select: Likewise.
42241         * modules/sys_socket: Likewise.
42242         * modules/sys_stat: Likewise.
42243         * modules/sys_time: Likewise.
42244         * modules/sys_times: Likewise.
42245         * modules/sys_utsname: Likewise.
42246         * modules/sys_wait: Likewise.
42247         * modules/sysexits: Likewise.
42248         * modules/time: Likewise.
42249         * modules/times: Likewise.
42250         * modules/tmpfile: Likewise.
42251         * modules/trim: Likewise.
42252         * modules/unistd: Likewise.
42253         * modules/wchar: Likewise.
42254         * modules/wctype: Likewise.
42255
42256 2009-09-17  Bruno Haible  <bruno@clisp.org>
42257
42258         Make getdate.y compile on QNX and NetBSD 5 / i386.
42259         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42260         TIME_T_FITS_IN_LONG_INT.
42261         * lib/getdate.y (long_time_t): New type.
42262         (relative_time): Change type of 'seconds' field to long_time_t.
42263         (get_date): Update types of local variables. Check against overflow
42264         during conversion from long_time_t to time_t.
42265         Reported by Matt Kraai <kraai@ftbfs.org>
42266         and Hasso Tepper <hasso@netbsd.org>.
42267
42268 2009-09-17  Bruno Haible  <bruno@clisp.org>
42269
42270         * modules/COPYING: Update copyright years.
42271         * modules/README: Likeiwse.
42272         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42273         Reported by Ian Beckwith <ianb@erislabs.net>.
42274
42275 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42276
42277         * users.txt: Update references for gnuit package.
42278
42279 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42280
42281         * m4/getdelim.m4: Fix typo in copyright line.
42282
42283 2009-09-17  Bruno Haible  <bruno@clisp.org>
42284
42285         * lib/atoll.c: Use the standard header with GPL copyright.
42286         * lib/argz.in.h: Likewise.
42287         * lib/glob.c: Likewise.
42288         * lib/glob-libc.h: Likewise.
42289         * lib/random_r.c: Likewise.
42290         * lib/siglist.h: Likewise.
42291         * lib/strsignal.c: Likewise.
42292         Reported by Ian Beckwith <ianb@erislabs.net>.
42293
42294 2009-09-17  Eric Blake  <ebb9@byu.net>
42295
42296         rmdir: ensure correct dependency order
42297         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42298
42299 2009-09-17  Bruno Haible  <bruno@clisp.org>
42300
42301         Disable assertion that fails on NetBSD 5 / i386.
42302         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42303         Reported by Sam Steingold <sds@gnu.org>
42304         and Hasso Tepper <hasso@netbsd.org>.
42305
42306 2009-09-16  Eric Blake  <ebb9@byu.net>
42307
42308         unlinkdir: port to mingw
42309         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42310         on which no one can unlink a directory.
42311
42312         stdlib: sort witness names
42313         * modules/stdlib (Makefile.am): Sort replacements.
42314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42315         * lib/stdlib.in.h: Likewise.
42316
42317         parse-duration-tests: avoid link failure
42318         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42319         LIBINTL.
42320         Reported by Tom G. Christensen.
42321
42322         openat-tests: ensure unlinkat behaves like rmdir
42323         * tests/test-rmdir.c (main): Factor guts...
42324         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42325         * modules/rmdir-tests (Files): Ship new file.
42326         * modules/openat-tests: New test.
42327         * tests/test-unlinkat.c: Likewise.
42328
42329         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42330         * modules/rmdir-errno (Status, Notice): Now obsolete.
42331
42332         rmdir: work around cygwin 1.5.x and mingw bugs
42333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42334         * lib/rmdir.c (rmdir): Work around it.
42335         * modules/rmdir (Status, Notice): No longer obsolete.
42336         (Files): Add dos.m4.
42337         (Depends-on): Add unistd.
42338         (configure.ac): Set witnesses.
42339         (License): Relax to LGPLv2+.
42340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42341         * modules/unistd (Makefile.am): Substitute witnesses.
42342         * lib/unistd.in.h (rmdir): Declare replacement.
42343         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42344         * modules/rmdir-tests: New tests.
42345         * tests/test-rmdir.c: Likewise.
42346
42347 2009-09-15  Eric Blake  <ebb9@byu.net>
42348
42349         fchdir: improve use of replacement functions
42350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42353         REPLACE_CLOSEDIR.
42354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42355         * modules/sys_stat (Makefile.am): Substitute correct witness.
42356         * modules/dirent (Makefile.am): Likewise.
42357         * modules/unistd (Makefile.am): Likewise.
42358         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42359         * lib/unistd.in.h (dup): Likewise.
42360         * lib/sys_stat.in.h (fstat): Likewise.
42361
42362         maint: ignore gnulib-tool temp files
42363         * .gitignore: Ignore files created during gnulib-tool --test.
42364
42365 2009-09-13  Jim Meyering  <meyering@redhat.com>
42366
42367         posixtm: don't reject a time that specify "60" as the number of seconds
42368         * lib/posixtm.c (posixtime): The code to reject invalid dates
42369         would also reject a time specified with the .60 suffix.
42370         But POSIX allows that, in order to accommodate leap seconds.
42371         So don't reject it.
42372         (main): Adjust tests accordingly.
42373         * modules/posixtm (Depends-on): Add stpcpy.
42374
42375 2009-09-11  Jim Meyering  <meyering@redhat.com>
42376
42377         announce-gen: include [$release_type] in emitted Subject:
42378         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42379         e.g., [stable] in the emitted Subject: line.
42380
42381 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42382
42383         Remove obsolete macros from several modules.
42384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42385         obsolete Autoconf macros with their modern counterparts.
42386         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42387         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42389         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42390         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42393         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42394         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42395         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42396         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42397         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42398         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42399         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42400         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42401         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42402         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42403         * m4/time_r.m4 (gl_TIME_R): Likewise.
42404         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42405         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42406         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42407
42408         Fix copyright header in build-aux scripts.
42409         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42410         recommendation.
42411         * build-aux/ncftpput-ftp: Likewise.
42412         * build-aux/update-copyright: Likewise.
42413
42414 2009-09-09  Eric Blake  <ebb9@byu.net>
42415
42416         test-link: allow Linux choice of errno
42417         * tests/test-link.c (main): Relax test for alternate error.
42418
42419         strndup: fix improper m4 caching
42420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42421         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42422         (gl_PREREQ_STRNDUP): Delete.
42423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42424         * modules/string (Makefile.am): Substitute it.
42425         * lib/string.in.h (strndup): Modernize prototype.
42426
42427         getcwd: port to mingw
42428         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42429         different from the POSIX assumptions made throughout the getcwd
42430         module; fortunately, the mingw getcwd does not need replacement.
42431         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42432         * modules/getcwd-tests: New test.
42433         * tests/test-getcwd.c: Likewise.
42434
42435         link: fix platform bugs
42436         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42437         * lib/link.c (link): Work around them.  Fix related mingw bug.
42438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42439         * modules/unistd (Makefile.am): Substitute it.
42440         * lib/unistd.in.h (link): Declare replacement.
42441         * doc/posix-functions/link.texi (link): Document this.
42442         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42443
42444         test-link: consolidate into single C program, test more cases
42445         * tests/test-link.sh: Delete.
42446         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42447         at least Cygwin and Solaris.
42448         * modules/link-tests (Files): Remove unused file.
42449         (Depends-on): Add errno, sys_stat.
42450         (Makefile.am): Simplify.
42451
42452 2009-09-08  Bruno Haible  <bruno@clisp.org>
42453
42454         Work around towlower, towupper bug on mingw.
42455         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42456         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42457         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42458         * doc/posix-functions/towupper.texi: Likewise.
42459         Reported by Eric Blake.
42460
42461 2009-09-08  Jim Meyering  <meyering@redhat.com>
42462
42463         build: don't try to run autoheader if we don't use it
42464         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42465         is not used in configure.ac.
42466
42467 2009-09-08  Eric Blake  <ebb9@byu.net>
42468
42469         euidaccess: fix compilation error
42470         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42471
42472         rawmemchr: relax license
42473         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42474         okay.
42475         Reported by Jim Meyering.
42476
42477         mkfifoat: new module
42478         * modules/mkfifoat: New file.
42479         * lib/mkfifoat.c: Likewise.
42480         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42482         * modules/sys_stat (Makefile.am): Use them.
42483         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42484         * MODULES.html.sh (File system functions): Mention module.
42485         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42486         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42487         * modules/mkfifoat-tests: New test.
42488         * tests/test-mkfifoat.c: Likewise.
42489
42490         strchrnul: relax license
42491         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42492         okay.
42493         Reported by Jim Meyering.
42494
42495 2009-09-08  Eric Blake  <ebb9@byu.net>
42496
42497         fstatat: fix compilation on Solaris
42498         * lib/fstatat.c (includes): Add fcntl.h.
42499         Reported by Pádraig Brady.
42500
42501 2009-09-07  Eric Blake  <ebb9@byu.net>
42502
42503         rename: modernize replacement
42504         * modules/rename (Depends-on): Add stdio.
42505         (configure.ac): Declare witness.
42506         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42507         stdio take care of replacement.
42508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42509         * modules/stdio (Makefile.am): Substitute them.
42510         * lib/stdio.in.h (rename): Declare replacement.
42511         * lib/rename.c (includes): Allow cross-compilation to non-windows
42512         machines.
42513         * doc/posix-functions/rename.texi (rename): Improve
42514         documentation.
42515
42516         stdio: sort witness names
42517         * modules/stdio (Makefile.am): Sort replacements.
42518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42519         * lib/stdio.in.h: Likewise.
42520
42521         getcwd: minor cleanups
42522         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42523         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42524
42525         openat: provide more convenience names
42526         * modules/faccessat (configure.ac): Add C witness.
42527         * lib/unistd.in.h (readlinkat): Fix typo.
42528         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42529         convenience wrappers.
42530         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42531         wrappers in syntax checks.
42532
42533 2009-09-06  Eric Blake  <ebb9@byu.net>
42534
42535         doc: fix comments in recent patches
42536         * lib/faccessat.c: Mention correct function.
42537         * lib/fchmodat.c: Likewise.
42538         * lib/fchownat.c: Likewise.
42539         * lib/symlinkat.c: Likewise.
42540         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42541         constants.
42542
42543         faccessat, symlinkat: continue cleanup of previous patch
42544         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42545         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42546         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42548         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42549         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42550         set.
42551
42552 2009-09-06  Bruno Haible  <bruno@clisp.org>
42553
42554         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42555         (fstatat): Declare if GNULIB_FSTATAT is set.
42556         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42557         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42558         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42559         * modules/fcntl-h (Files): Remove m4/openat.m4.
42560         * modules/sys_stat (Files): Remove m4/openat.m4.
42561         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42562         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42563         * modules/unistd (Files): Remove m4/openat.m4.
42564         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42565         GNULIB_OPENAT.
42566         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42567         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42569         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42570         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42571         gl_OPENAT_DEFAULTS.
42572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42573         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42574         Don't require gl_OPENAT_DEFAULTS.
42575         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42576         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42577         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42578         (gl_OPENAT_DEFAULTS): Remove macro.
42579
42580 2009-09-06  Bruno Haible  <bruno@clisp.org>
42581
42582         * modules/openat (configure.ac): Remove unneeded witness.
42583
42584 2009-09-06  Bruno Haible  <bruno@clisp.org>
42585
42586         Set errno to ENOSYS when a function is entirely unsupported.
42587         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42588         EOPNOTSUPP.
42589         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42590         * modules/chown (Depends-on): Remove errno.
42591
42592 2009-09-06  Bruno Haible  <bruno@clisp.org>
42593
42594         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42595
42596 2009-09-06  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42599
42600 2009-09-06  Ben Pfaff  <blp@gnu.org>
42601             Bruno Haible  <bruno@clisp.org>
42602
42603         Work around a glibc bug in strtok_r.
42604         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42605         Undefine if UNDEFINE_STRTOK_R is set.
42606         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42608         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42610         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42611         UNDEFINE_STRTOK_R.
42612         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42613
42614 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42615
42616         exclude: minor fix
42617         * lib/exclude.c: Include wctype.h
42618
42619 2009-09-06  Akim Demaille  <demaille@gostai.com>
42620
42621         bootstrap: improve error message
42622         * build-aux/bootstrap (find_tool): Upon failure, report the list
42623         of candidates.
42624         Honor the initial value of the envvar.
42625
42626 2009-09-05  Eric Blake  <ebb9@byu.net>
42627
42628         symlinkat: new module
42629         * modules/symlinkat: New file.
42630         * lib/symlinkat.c: Likewise.
42631         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42633         * modules/unistd (Makefile.am): Use them.
42634         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42635         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42636         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42637         * MODULES.html.sh (File system functions): Mention module.
42638         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42639         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42640         * modules/symlinkat-tests: New test.
42641         * tests/test-symlinkat.c: Likewise.
42642
42643         test-openat-safer: add more checks
42644         * tests/test-openat-safer.c (main): Check more code paths.
42645
42646 2009-09-05  Jim Meyering  <meyering@redhat.com>
42647
42648         syntax-check: detect unnecessary inclusion of openat.h
42649         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42650
42651 2009-09-05  Bruno Haible  <bruno@clisp.org>
42652
42653         Support towlower, towupper.
42654         * doc/posix-functions/towlower.texi: Mention module wctype.
42655         * doc/posix-functions/towupper.texi: Likewise.
42656         * lib/wctype.in.h (towlower, towupper): New functions.
42657         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42658         (ASSERT): New macro.
42659         (e): New variable.
42660         (main): Test also towlower, towupper. Test WEOF argument.
42661         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42662
42663 2009-09-05  Bruno Haible  <bruno@clisp.org>
42664
42665         Fix conversion behaviour when the input is invalid.
42666         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42667         mark occurring in first pass of indirect conversion.
42668         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42669         input.
42670         Found by clang's static analyzer.
42671
42672 2009-09-05  Bruno Haible  <bruno@clisp.org>
42673
42674         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42675         where direct conversion is possible.
42676
42677 2009-09-04  Eric Blake  <ebb9@byu.net>
42678
42679         openat: fail with ENOENT on empty name
42680         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42681         buffer.
42682
42683         link-follow: fix logic bug in prior patch
42684         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42685         reversed sense of yes and no in prior patch.  Avoid confusing
42686         compilation failure with desired semantics.
42687
42688         link-follow: accommodate mingw and cross-compilation
42689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42690         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42691         cross-compilation results to -1, to make linkat easier to
42692         implement when cross-compiling.  Trivially support mingw.
42693         * modules/link-follow (configure.ac): Call new name.
42694         * NEWS: Mention this.
42695
42696 2009-09-03  Eric Blake  <ebb9@byu.net>
42697
42698         faccessat: compile replacement
42699         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42700         needed.
42701
42702         fts: fix compilation error
42703         * lib/fts.c (includes): Re-add "openat.h", for
42704         openat_needs_fchdir.
42705
42706         faccessat: new module
42707         * modules/faccessat: New file.
42708         * lib/faccessat.c: Likewise.
42709         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42711         * modules/unistd (Makefile.am): Use it.
42712         * lib/unistd.in.h (faccessat): Declare it.
42713         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42714         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42715         * MODULES.html.sh (File system functions): Mention it.
42716         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42717         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42718
42719         euidaccess: prefer POSIX over non-standard implementation
42720         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42721         * lib/euidaccess.c (euidaccess): Use it if available.
42722
42723         openat: make template easier to use
42724         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42725         AT_FUNC_F2 to be undefined.
42726         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42727         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42728         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42729         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42730         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42731         Likewise.
42732         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42733         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42734         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42735         Likewise.
42736
42737         openat: declare in POSIX headers
42738         * NEWS: Mention this.
42739         * modules/openat (configure.ac): Declare witnesses.
42740         (Depends-on): Add fcntl-h, sys_stat, unistd.
42741         (Include): Mention correct headers.
42742         * modules/fcntl-h (Depends-on): Add link-warning.
42743         (Files): Add openat.m4.
42744         (Makefile.am): Substitute witnesses.
42745         * modules/sys_stat (Files, Makefile.am): Likewise.
42746         * modules/unistd (Files, Makefile.am): Likewise.
42747         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42748         (gl_OPENAT_DEFAULTS): New macro.
42749         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42752         (SYS_STAT_H): Remove unused variable.
42753         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42754         * lib/fcntl--.h (includes): Remove unneeded header.
42755         * lib/openat-safer.c (includes): Likewise.
42756         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42757         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42758         appropriate headers.
42759         (__OPENAT_PREFIX): Delete.
42760         * lib/fcntl.in.h (openat): Provide declaration.
42761         (AT_FDCWD): Fix Solaris bug.
42762         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42763         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42764         * lib/fchmodat.c (includes):  Adjust to find declaration.
42765         * lib/fchownat.c (includes): Likewise.
42766         * lib/mkdirat.c (includes): Likewise.
42767         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42768         still visible.
42769
42770 2009-09-02  Eric Blake  <ebb9@byu.net>
42771
42772         errno: use consistently
42773         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42774         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42775         * lib/canonicalize.c (ELOOP): Likewise.
42776         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42777         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42778         * lib/lchown.c (EOPNOTSUPP): Likewise.
42779         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42780         * lib/savewd.c (ESTALE): Likewise.
42781         * lib/settime.c (ENOSYS): Likewise.
42782         * lib/utimens.c (ENOSYS): Likewise.
42783         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42784         * lib/chdir-safer.c (ELOOP): Likewise.
42785         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42786         * modules/c-stack (Depends-on): Add errno.
42787         * modules/canonicalize (Depends-on): Likewise.
42788         * modules/chdir-safer (Depends-on): Likewise.
42789         * modules/fdopendir (Depends-on): Likewise.
42790         * modules/inet_ntop (Depends-on): Likewise.
42791         * modules/inet_pton (Depends-on): Likewise.
42792         * modules/lchown (Depends-on): Likewise.
42793         * modules/openat (Depends-on): Likewise.
42794         * modules/savewd (Depends-on): Likewise.
42795         * modules/settime (Depends-on): Likewise.
42796         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42797
42798         fts: avoid leaking fds
42799         * modules/fts (Depends-on): Add cloexec.
42800         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42801         flag.
42802
42803         fts: make directory fds more robust
42804         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42805         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42806
42807         backupfile, chdir-long, fts, savedir: make safer
42808         * lib/backupfile.c (includes): Use "dirent--.h", since
42809         numbered_backup can write to stderr during readdir.
42810         * lib/savedir.c (includes): Likewise.
42811         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42812         emulation can write to stderr on failure.
42813         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42814         * lib/getcwd.c: Document why opendir_safer is unused.
42815         * lib/glob.c: Likewise.
42816         * lib/scandir.c: Likewise.
42817         * lib/openat-proc.c: Likewise, for open_safer.
42818         * modules/backupfile (Depends-on): Add dirent-safer.
42819         * modules/savedir (Depends-on): Likewise.
42820         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42821         * modules/chdir-long (Depends-on): Add openat-safer.
42822
42823         openat-safer: new module
42824         * modules/openat-safer: New file.
42825         * lib/openat-safer.c: Likewise.
42826         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42827         * lib/fcntl-safer.h (openat_safer): Declare.
42828         * lib/fcntl--.h (openat): Override.
42829         * MODULES.html.sh (File descriptor based I/O): Mention it.
42830         * lib/openat.h: Add double-inclusion guards.
42831         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42832         "fcntl--.h", so we can implement openat.
42833         * modules/openat-safer-tests: New test.
42834         * tests/test-openat-safer.c: New file.
42835
42836         dirent-safer: new module
42837         * modules/dirent-safer: New file.
42838         * lib/dirent--.h: Likewise.
42839         * lib/dirent-safer.h: Likewise.
42840         * lib/opendir-safer.c: Likewise.
42841         * m4/dirent-safer.m4: Likewise.
42842         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42843         * modules/dirent-safer-tests: New test.
42844         * tests/test-dirent-safer.c: New file.
42845         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42846
42847         fdopendir: optimize on mingw
42848         * lib/unistd.in.h (_gl_directory_name): New prototype.
42849         * lib/fchdir.c (_gl_directory_name): Implement it.
42850         (fchdir): Use it to simplify implementation.
42851         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42852         fchdir, when available, to avoid calling [f]chdir().
42853
42854         fdopendir: split into its own module
42855         * lib/openat.c (fdopendir): Move...
42856         * lib/fdopendir.c: ...into new file.
42857         * modules/fdopendir: New module.
42858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42859         * modules/openat (Depends-on): Add fdopendir.
42860         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42861         fdopendir here.
42862         * modules/savedir (Depends-on): Only need fdopendir, not full
42863         openat.
42864         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42865         * lib/openat.h (fdopendir): Drop prototype.
42866         * lib/dirent.in.h (fdopendir): Provide prototype.
42867         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42868         * modules/dirent (Makefile.am): Substitute them.
42869         * MODULES.html.sh (File system functions): Mention it.
42870         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42871         * modules/fdopendir-tests: New file.
42872         * tests/test-fdopendir.c: Likewise.
42873
42874         fchdir: use more consistent macro convention
42875         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42876         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42877         REPLACE_FCHDIR, rather than relying on config.h macros.
42878         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42879         inside a single make-time REPLACE_FCHDIR block, rather than using
42880         the config.h FCHDIR_REPLACEMENT.
42881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42882         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42883         Manage fstat replacement.
42884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42885         REPLACE_FCHDIR.
42886         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42887         (Makefile.am): Substitute REPLACE_FCHDIR.
42888         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42889         FCHDIR_REPLACEMENT.
42890         * lib/dup-safer.c (dup_safer): Likewise.
42891         * lib/dup2.c (rpl_dup2): Likewise.
42892         * lib/dup3.c (rpl_dup3): Likewise.
42893         * lib/open.c (rpl_open): Likewise.
42894
42895         fchdir: simplify error handling, and support dup3
42896         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42897         stdbool, malloc-posix, realloc-posix.
42898         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42899         (ensure_dirs_slot): Return false on allocation failure.
42900         (rpl_dup2): Delete.
42901         (_gl_register_dup): New function.
42902         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42903         (_gl_register_fd): Close fd on allocation failure.
42904         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42905         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42906         prototype.
42907         (rpl_dup2_fchdir): Delete prototype.
42908         * lib/open.c (open): Update caller.
42909         * lib/dup2.c (dup2): Track fchdir metadata.
42910         * lib/dup3.c (dup3): Likewise.
42911         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42913
42914 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42915
42916         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42917         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42918         don't pass arguments to AC_OUTPUT.
42919
42920 2009-09-02  Bruno Haible  <bruno@clisp.org>
42921
42922         * modules/mkdtemp (License): Relicense under LGPLv2+.
42923         Reported by Paolo Bonzini.
42924
42925 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42926
42927         Replace uses of obsolete autoconf macros in Jim's modules.
42928         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42929         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42930         can evoke a warning from autoconf when run with -Wobsolete
42931         enabled.  They were declared obsolete for good reasons (see
42932         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42933         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42934         should not continue using the deprecated macros.
42935         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42936         obsolete Autoconf macros with modern counterparts.
42937         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42938         * m4/dos.m4 (gl_AC_DOS): Likewise.
42939         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42941         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42942         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42943         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42945         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42946         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42947         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42948         Likewise.
42949         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42950         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42951         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42952         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42953         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42954         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42955
42956 2009-09-01  Eric Blake  <ebb9@byu.net>
42957
42958         fchdir: fix off-by-one bug in previous patch
42959         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42960         (_gl_unregister_fd): Delete useless if.
42961
42962 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42963
42964         maint.mk: sort the list of syntax-check rules
42965         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42966         easier to get a sense of progress when the rules are run sequentially
42967         and take a long time.
42968
42969 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42970
42971         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42972         * modules/netinet_in: Likewise.
42973         * modules/sys_file: Likewise.
42974         * modules/sys_ioctl: Likewise.
42975         * modules/sys_select: Likewise.
42976         * modules/sys_socket: Likewise.
42977         * modules/sys_stat: Likewise.
42978         * modules/sys_time: Likewise.
42979         * modules/sys_times: Likewise.
42980         * modules/sys_utsname: Likewise.
42981         * modules/sys_wait: Likewise.
42982
42983 2009-09-01  Jim Meyering  <meyering@redhat.com>
42984
42985         fts: help ensure that return values are not ignored
42986         * lib/fts_.h (__GNUC_PREREQ): Define.
42987         (__attribute_warn_unused_result__): Define.
42988         (fts_children, fts_close, fts_open, fts_read): Declare with
42989         __attribute_warn_unused_result__.
42990
42991         fts: fts_close now fails also when closing a dir file descriptor fails
42992         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42993         and propagate to caller, along with errno.
42994
42995         announce-gen: correct formatting in --help output
42996         * build-aux/announce-gen (usage): Move the one-line description in
42997         --help output "up", to where it belongs, just after Usage:.
42998
42999 2009-08-31  Eric Blake  <ebb9@byu.net>
43000
43001         fchdir: port to mingw
43002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43003         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43004         opened, then use a substitute.
43005         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43006         replacement.
43007         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43008         (_gl_register_fd): No need to check stat if open already filters
43009         all directories.
43010         (fchdir): Fix error condition to match POSIX.
43011         * modules/fchdir (Depends-on): Add sys_stat.
43012         * doc/posix-functions/open.texi (open): Document the limitation.
43013         * modules/fchdir-tests: New file.
43014         * tests/test-fchdir.c: Likewise.
43015
43016         canonicalize: allow cross-testing from cygwin to mingw
43017         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43018         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43019         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43020         Likewise.
43021         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43022         target does not support symlinks.
43023         * tests/test-canonicalize-lgpl.sh: Likewise.
43024
43025         chown: avoid compilation warning on mingw
43026         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43027         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43028         mingw.
43029         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43030         * modules/chown (Depends-on): Add errno.
43031
43032 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43033
43034         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43035         command.
43036
43037 2009-08-31  Jim Meyering  <meyering@redhat.com>
43038
43039         canonicalize: remove useless initialization
43040         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43041         initialization of local, "end".
43042
43043 2009-08-30  Bruno Haible  <bruno@clisp.org>
43044
43045         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43046         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43047         ENOSYS.
43048
43049 2009-08-30  Bruno Haible  <bruno@clisp.org>
43050
43051         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43052         /usr/xpg4/bin/tr when it exists.
43053         * tests/test-pipe-filter-gi1.sh: Likewise.
43054
43055 2009-08-30  Bruno Haible  <bruno@clisp.org>
43056
43057         Work around deficient /usr/bin/id program on Solaris.
43058         * tests/test-file-has-acl.sh (ID): New variable.
43059         * tests/test-set-mode-acl.sh (ID): Likewise.
43060         * tests/test-copy-acl.sh (ID): Likewise.
43061         * tests/test-copy-file.sh (ID): Likewise.
43062
43063 2009-08-30  Bruno Haible  <bruno@clisp.org>
43064
43065         New module 'xstriconveh'.
43066         * lib/xstriconveh.h: New file.
43067         * lib/xstriconveh.c: New file.
43068         * modules/xstriconveh: New file.
43069
43070 2009-08-30  Bruno Haible  <bruno@clisp.org>
43071
43072         Make it easier to use mem_cd_iconveh.
43073         * lib/striconveh.h (iconveh_t): New type.
43074         (iconveh_open, iconveh_close): New declarations.
43075         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43076         with a single 'const iconveh_t *' argument.
43077         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43078         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43079         with a single 'const iconveh_t *' argument.
43080         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43081         * tests/test-striconveh.c (main): Update.
43082         * NEWS: Mention the change.
43083
43084 2009-08-30  Bruno Haible  <bruno@clisp.org>
43085
43086         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43087         problem.
43088
43089 2009-08-30  Bruno Haible  <bruno@clisp.org>
43090
43091         Work around iconv_open problem on Solaris.
43092         * lib/iconv_open-solaris.gperf: New file.
43093         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43094         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43095         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43096         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43097         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43098         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43099
43100 2009-08-29  Jim Meyering  <meyering@redhat.com>
43101
43102         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43103         * top/maint.mk (cvs-check): Remove target; it was just an alias
43104         to the better-named vc-diff-check.
43105         (maintainer-distcheck): Remove rule.  It was used only from
43106         the (alpha/beta/major) target, and all of its commands but one
43107         were coreutils-specific.
43108         (vc-dist): Remove rule.
43109         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43110         Run vc-diff-check, not vc-dist.
43111         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43112
43113 2009-08-27  Bruno Haible  <bruno@clisp.org>
43114
43115         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43116         of 0.
43117
43118 2009-08-27  Bruno Haible  <bruno@clisp.org>
43119
43120         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43121         compilers.
43122         * doc/func.texi: Document the SunPRO C bug.
43123
43124 2009-08-27  Bruno Haible  <bruno@clisp.org>
43125
43126         Fix link error on Solaris.
43127         * tests/test-parse-duration.c (xstrdup): Remove function.
43128
43129 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43130
43131         ignore-value: handle pointer types, too
43132         * lib/ignore-value.h (__attribute__): Remove definition.
43133         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43134         of a more concise and more-often effective "(void) i" statement.
43135         (ignore_ptr): New function to suppress warnings from functions that
43136         return pointers, and to make it explicit that one function doesn't
43137         handle all cases.
43138
43139 2009-08-25  Bruno Haible  <bruno@clisp.org>
43140
43141         dup2: work around a Linux bug.
43142         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43143         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43144         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43145         Reported by Simon Josefsson.
43146
43147 2009-08-25  Jim Meyering  <meyering@redhat.com>
43148
43149         libguestfs uses gnulib
43150         * users.txt: Add libguestfs.
43151
43152 2009-08-24  Eric Blake  <ebb9@byu.net>
43153
43154         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43155         * lib/pipe2.c (includes): Add binary-io.h.
43156         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43157
43158 2009-08-24  Bruno Haible  <bruno@clisp.org>
43159
43160         Tolerate declared but missing accept4 syscall.
43161         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43162         available.
43163         * lib/sys_socket.in.h (accept4): If the function is already present,
43164         override it.
43165         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43166         * modules/accept4 (Makefile.am): Compile accept4.c always.
43167         Reported by Paolo Bonzini and Eric Blake.
43168
43169 2009-08-23  Bruno Haible  <bruno@clisp.org>
43170
43171         New module 'accept4'.
43172         * lib/sys_socket.in.h (accept4): New declaration.
43173         * lib/accept4.c: New file.
43174         * m4/accept4.m4: New file.
43175         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43176         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43177         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43178         HAVE_ACCEPT4.
43179         * modules/accept4: New file.
43180         * doc/glibc-functions/accept4.texi: Mention the new module.
43181
43182 2009-08-24  Jim Meyering  <meyering@redhat.com>
43183
43184         progname: also set global program_invocation_name, when possible
43185         Before this change, a libtool-enabled program that calls glibc's
43186         error function would report the program name as
43187         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43188         * modules/progname (configure.ac): Check for a declaration of
43189         program_invocation_name.
43190         * lib/progname.c:  Include <errno.h>.
43191         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43192         Set program_invocation_name.
43193
43194 2009-08-23  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/dup3.c: Include <string.h>.
43197
43198 2009-08-23  Bruno Haible  <bruno@clisp.org>
43199
43200         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43201         * lib/pipe2.c (pipe2): Likewise.
43202         Suggested by Eric Blake.
43203
43204 2009-08-23  Bruno Haible  <bruno@clisp.org>
43205
43206         Tolerate declared but missing dup3 syscall.
43207         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43208         * lib/unistd.in.h (dup3): If the function is already present,
43209         override it.
43210         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43211         * modules/dup3 (Makefile.am): Compile dup3.c always.
43212         Reported by Paolo Bonzini.
43213
43214 2009-08-23  Bruno Haible  <bruno@clisp.org>
43215
43216         Tolerate declared but missing pipe2 syscall.
43217         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43218         available.
43219         * lib/unistd.in.h (pipe2): If the function is already present,
43220         override it.
43221         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43222         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43223         Reported by Paolo Bonzini.
43224
43225 2009-08-23  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/pipe2.c (pipe2): Move #ifs inside function.
43228
43229 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43230
43231         quotearg: document limitations of quote_these_too
43232         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43233         those limitations are created.
43234         * lib/quotearg.h (set_char_quoting): Document that digits and
43235         letters that are special after backslash are not permitted.
43236         (quotearg_char): Cross-reference set_char_quoting documentation.
43237
43238 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43239
43240         quotearg: implement custom_quoting_style
43241         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43242         right_quote fields.
43243         (set_custom_quoting): New public function.
43244         (quotearg_buffer_restyled): Add left_quote and right_quote
43245         arguments, handle them very much like locale quoting, and update
43246         all uses.
43247         (quotearg_n_custom): New public function.
43248         (quotearg_n_custom_mem): New public function.
43249         (quotearg_custom): New public function.
43250         (quotearg_custom_mem): New public function.
43251         * lib/quotearg.h: Prototype and document new public functions.
43252         (enum quoting_style): For escape_quoting_style and
43253         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43254         ignored even though they're otherwise like c_quoting_style.
43255         Add custom_quoting_style member and document with comparison to
43256         clocale_quoting_style.
43257         * tests/test-quotearg.c (custom_quotes): New array.
43258         (custom_results): New array.
43259         (main): Extend to test custom quoting.
43260
43261 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43262
43263         quotearg: fix right quote escaping when it's in quote_these_too
43264         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43265         quote, be sure to prepend only one backslash.
43266         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43267         (main): Test it.
43268
43269 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43270
43271         quotearg-tests: test escaping of embedded locale quotes
43272         * tests/test-quotearg.c (struct result_strings): Add member for
43273         new input.
43274         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43275         (inputs): Add new input.
43276         (results_g): Add expected results.
43277         (flag_results): Likewise.
43278         (locale_results): Likewise.
43279         (compare_strings): Check those.
43280
43281 2009-08-23  Bruno Haible  <bruno@clisp.org>
43282
43283         Tests for module 'dup3'.
43284         * modules/dup3-tests: New file.
43285         * tests/test-dup3.c: New file.
43286
43287         New module 'dup3'.
43288         * lib/unistd.in.h (dup3): New declaration.
43289         * lib/dup3.c: New file.
43290         * m4/dup3.m4: New file.
43291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43292         HAVE_DUP3.
43293         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43294         * modules/dup3: New file.
43295         * doc/glibc-functions/dup3.texi: Mention the new module.
43296
43297 2009-08-23  Bruno Haible  <bruno@clisp.org>
43298
43299         Tweak the dup2 test.
43300         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43301         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43302         the test file is still empty. Fix argument order of lseek.
43303
43304 2009-08-23  Bruno Haible  <bruno@clisp.org>
43305
43306         Avoid test link errors when the modules getopt-gnu, gettext are used.
43307         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43309
43310 2009-08-23  Bruno Haible  <bruno@clisp.org>
43311
43312         Fix getdtablesize() on mingw.
43313         * lib/getdtablesize.c (getdtablesize): Implement differently.
43314         * lib/unistd.in.h (getdtablesize): Improve comment.
43315
43316 2009-08-23  Bruno Haible  <bruno@clisp.org>
43317
43318         New module 'mkostemp'.
43319         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43320         * lib/stdlib.in.h (mksotemp): New declaration.
43321         * lib/mkostemp.c: New file, from glibc with modifications.
43322         * lib/tempname.h (GT_FILE): Remove outdated comment.
43323         (gen_tempname): Add flags argument.
43324         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43325         (__GT_FILE): Map to 1.
43326         (small_open, large_open): Remove macros.
43327         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43328         * lib/mkstemp.c (mkstemp): Update.
43329         * lib/mkdtemp.c (mkdtemp): Likewise.
43330         * m4/mkostemp.m4: New file.
43331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43332         HAVE_MKOSTEMP.
43333         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43334         HAVE_MKOSTEMP.
43335         * modules/mkostemp: New file, based on modules/mkstemp.
43336         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43337         * NEWS: Mention the change.
43338
43339 2009-08-23  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43342         Reported by Eric Blake.
43343
43344 2009-08-23  Bruno Haible  <bruno@clisp.org>
43345
43346         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43347         Reported by Eric Blake.
43348
43349 2009-08-23  Bruno Haible  <bruno@clisp.org>
43350
43351         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43352         * modules/pipe2 (Depends-on): Likewise.
43353
43354 2009-08-23  Eric Blake  <ebb9@byu.net>
43355
43356         fcntl-h: add O_TTY_INIT support
43357         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43358         * tests/test-fcntl-h.c (o): Test it.
43359         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43360
43361         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43362         * modules/fcntl: Move <fcntl.h> header replacement...
43363         * modules/fcntl-h: ...to new name, so as not to collide with
43364         like-named function.
43365         * tests/test-fcntl.c: Rename...
43366         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43367         * modules/fcntl-tests: Rename...
43368         * modules/fcntl-h-tests: ...to this.  Update test file name.
43369         * modules/chdir-long (Depends-on): Update clients.
43370         * modules/chdir-safer (Depends-on): Likewise.
43371         * modules/fcntl-safer (Depends-on): Likewise.
43372         * modules/fts (Depends-on): Likewise.
43373         * modules/mkancesdirs (Depends-on): Likewise.
43374         * modules/mkdir-p (Depends-on): Likewise.
43375         * modules/open (Depends-on): Likewise.
43376         * modules/savewd (Depends-on): Likewise.
43377         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43378         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43379
43380 2009-08-22  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/binary-io (License): Relicense under LGPL.
43383         * modules/pipe2 (License): Likewise.
43384
43385 2009-08-22  Bruno Haible  <bruno@clisp.org>
43386
43387         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43388         return value.
43389         * lib/pipe-filter-gi.c (filter_init): Likewise.
43390         Reported by Eric Blake.
43391
43392 2009-08-22  Bruno Haible  <bruno@clisp.org>
43393
43394         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43395         * modules/pipe (Depends-on): Add pipe2.
43396
43397 2009-08-22  Bruno Haible  <bruno@clisp.org>
43398
43399         Tests for module 'pipe2'.
43400         * modules/pipe2-tests: New file.
43401         * tests/test-pipe2.c: New file.
43402
43403         New module 'pipe2'.
43404         * lib/unistd.in.h (pipe2): New declaration.
43405         * lib/pipe2.c: New file.
43406         * m4/pipe2.m4: New file.
43407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43408         HAVE_PIPE2.
43409         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43410         * modules/pipe2: New file.
43411         * doc/glibc-functions/pipe2.texi: Mention the new module.
43412
43413 2009-08-22  Bruno Haible  <bruno@clisp.org>
43414
43415         Reference some new glibc functions.
43416         * doc/glibc-functions/accept4.texi: New file.
43417         * doc/glibc-functions/dup3.texi: New file.
43418         * doc/glibc-functions/mkostemp.texi: New file.
43419         * doc/glibc-functions/pipe2.texi: New file.
43420         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43421         (Glibc sys/socket.h): Refer to accept4.
43422         (Glibc unistd.h): Refer to dup3, pipe2.
43423         Reported by Eric Blake.
43424
43425 2009-08-22  Jim Meyering  <meyering@redhat.com>
43426             Bruno Haible  <bruno@clisp.org>
43427
43428         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43429         This makes it so packages using automake-1.11's silent-rules option
43430         can print e.g., a single "GEN    configmake.h" line, rather than
43431         the 30+ statements that perform the job.  If you want to see the
43432         actual commands, you can still run "make V=1".
43433         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43434         so that make output is abbreviated when those variables are defined
43435         appropriately.
43436         * modules/argz: Likewise.
43437         * modules/arpa_inet: Likewise.
43438         * modules/byteswap: Likewise.
43439         * modules/configmake: Likewise.
43440         * modules/dirent: Likewise.
43441         * modules/errno: Likewise.
43442         * modules/fcntl: Likewise.
43443         * modules/float: Likewise.
43444         * modules/fnmatch: Likewise.
43445         * modules/getopt-posix: Likewise.
43446         * modules/glob: Likewise.
43447         * modules/iconv_open: Likewise.
43448         * modules/inttypes: Likewise.
43449         * modules/localcharset: Likewise.
43450         * modules/locale: Likewise.
43451         * modules/math: Likewise.
43452         * modules/netdb: Likewise.
43453         * modules/netinet_in: Likewise.
43454         * modules/poll: Likewise.
43455         * modules/posix_spawnp-tests: Likewise.
43456         * modules/sched: Likewise.
43457         * modules/search: Likewise.
43458         * modules/selinux-h: Likewise.
43459         * modules/signal: Likewise.
43460         * modules/spawn: Likewise.
43461         * modules/stdarg: Likewise.
43462         * modules/stdbool: Likewise.
43463         * modules/stddef: Likewise.
43464         * modules/stdint: Likewise.
43465         * modules/stdio: Likewise.
43466         * modules/stdlib: Likewise.
43467         * modules/string: Likewise.
43468         * modules/strings: Likewise.
43469         * modules/sys_file: Likewise.
43470         * modules/sys_ioctl: Likewise.
43471         * modules/sys_select: Likewise.
43472         * modules/sys_socket: Likewise.
43473         * modules/sys_stat: Likewise.
43474         * modules/sys_time: Likewise.
43475         * modules/sys_times: Likewise.
43476         * modules/sys_utsname: Likewise.
43477         * modules/sys_wait: Likewise.
43478         * modules/sysexits: Likewise.
43479         * modules/time: Likewise.
43480         * modules/unistd: Likewise.
43481         * modules/wchar: Likewise.
43482         * modules/wctype: Likewise.
43483
43484 2009-08-22  Jim Meyering  <meyering@redhat.com>
43485
43486         announce-gen: detect write failure
43487         * build-aux/announce-gen: Add Coda at end.
43488         Remove equivalent-but-more-verbose block at top.
43489
43490 2009-08-19  Akim Demaille  <demaille@gostai.com>
43491
43492         bootstrap: --help to stdout.
43493         * bootstrap (usage): Don't send --help to stderr.
43494         Use a here doc instead of a long string.
43495
43496 2009-08-21  Eric Blake  <ebb9@byu.net>
43497
43498         test-popen-safer: split from test-popen
43499         * tests/test-popen.c (main): Move...
43500         * tests/test-popen.h: ...into new file.
43501         * tests/test-popen-safer2.c: New file.
43502         * modules/popen-tests (Files): Add test-popen.h.
43503         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43504         Suggested by Bruno Haible.
43505
43506         test-fcntl-safer: split from test-open
43507         * tests/test-open.c (main): Move...
43508         * tests/test-open.h: ...into new file.
43509         * tests/test-fcntl-safer.c: New file.
43510         * modules/open-tests (Files): Add test-open.h.
43511         * modules/fcntl-safer-tests: New file.
43512         Suggested by Bruno Haible.
43513
43514         test-fopen-safer: split from test-fopen
43515         * tests/test-fopen.c (main): Move...
43516         * tests/test-fopen.h: ...into new file.
43517         * tests/test-fopen-safer.c: New file.
43518         * modules/fopen-tests (Files): Add test-fopen.h.
43519         * modules/fopen-safer-tests: New file.
43520         Suggested by Bruno Haible.
43521
43522 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43523
43524         popen-safer: test O_CLOEXEC at run-time.
43525         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43526
43527 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43528
43529         fcntl: move more flags to the header
43530         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43531         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43532         * lib/fcntl.in.h: Do both things here.
43533
43534 2009-08-21  Jim Meyering  <meyering@redhat.com>
43535
43536         consistently remove $@-t before redirecting to it
43537         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43538         * modules/alloca-opt: Likewise.
43539         * modules/byteswap: Likewise.
43540         * modules/fnmatch: Likewise.
43541         * modules/getopt-posix: Likewise.
43542         * modules/glob: Likewise.
43543         * modules/poll: Likewise.
43544         * modules/posix_spawnp-tests: Likewise.
43545         * modules/sys_socket: Likewise.
43546         * modules/sysexits: Likewise.
43547
43548 2009-08-21  Eric Blake  <ebb9@byu.net>
43549
43550         popen: simplify access to original popen
43551         * lib/popen.c (rpl_popen): No need to worry about popen being a
43552         macro.
43553         Reported by Bruno Haible.
43554
43555 2009-08-20  Eric Blake  <ebb9@byu.net>
43556
43557         build: avoid some compiler warnings
43558         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43559         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43560         type.
43561         (new_exclude_segment, excluded_file_pattern_p)
43562         (excluded_file_name_p): Reduce scope.
43563         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43564         old-style declaration.
43565
43566 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43567
43568         * tests/test-exclude1.sh: Handle Windows EOL.
43569         * tests/test-exclude2.sh: Likewise.
43570         * tests/test-exclude3.sh: Likewise.
43571         * tests/test-exclude4.sh: Likewise.
43572         * tests/test-exclude5.sh: Likewise.
43573         * tests/test-exclude6.sh: Likewise.
43574         * tests/test-exclude7.sh: Likewise.
43575
43576 2009-08-19  Akim Demaille  <demaille@gostai.com>
43577
43578         bootstrap: find sha1sum when named gsha1sum.
43579         * bootstrap (find_tool): New.
43580         ($SHA1SUM): New.
43581         Use it.
43582
43583 2009-08-20  Jim Meyering  <meyering@redhat.com>
43584
43585         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43586         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43587         expression that converts "." in a file name to "\." in the resulting
43588         regexp.  Start with a dummy statement, so that prior shell variable
43589         definitions are expanded portably.  Reported by Simon Josefsson.
43590
43591 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43592
43593         Fix polling for writeability of a screen buffer.
43594         * lib/poll.c: Distinguish input and screen buffers for the
43595         Win32 implementation.
43596         * lib/select.c: Likewise.
43597
43598 2009-08-19  Eric Blake  <ebb9@byu.net>
43599
43600         popen-safer: prevent popen from clobbering std descriptors
43601         * modules/popen-safer: New file.
43602         * lib/popen-safer.c: Likewise.
43603         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43604         * lib/stdio--.h (popen): Provide override.
43605         * lib/stdio-safer.h (popen_safer): Provide declaration.
43606         * tests/test-popen.c (includes): Partially test this.
43607         * modules/popen-safer-tests: New file, for more tests.
43608         * tests/test-popen-safer.c: Likewise.
43609         * MODULES.html.sh (file stream based Input/Output): Mention it.
43610
43611         tests: test some of the *-safer modules
43612         * modules/fopen-safer (Depends-on): Add fopen.
43613         * modules/fcntl-safer (Depends-on): Add fcntl.
43614         * modules/stdlib-safer (Depends-on): Add stdlib.
43615         (configure.ac): Set indicator.
43616         * modules/unistd-safer (configure.ac): Likewise.
43617         * modules/tmpfile-safer (configure.ac): Likewise.
43618         (Depends-on): Add tmpfile.
43619         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43620         active.
43621         * tests/test-fopen.c (includes): Test safer versions when they are
43622         in use.
43623         * tests/test-open.c (includes): Likewise.
43624
43625         popen: fix cygwin 1.5 bug when stdin closed
43626         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43627         * modules/popen: New file.
43628         * modules/popen-tests: Likewise.
43629         * tests/test-popen.c: Likewise.
43630         * m4/popen.m4: Likewise.
43631         * lib/popen.c: Likewise.
43632         * lib/stdio.in.h (popen): New declaration.
43633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43634         * modules/stdio (Makefile.am): Likewise.
43635         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43636
43637 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43638
43639         maint.mk: give full control over update-copyright exclusions
43640         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43641         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43642         (update-copyright): Don't force inclusion of top-level
43643         ChangeLog.  Don't force exclusion of all COPYING files, but make
43644         them the default exclusion instead.
43645
43646 2009-08-16  Bruno Haible  <bruno@clisp.org>
43647
43648         Fix test failures on Solaris 10.
43649         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43650         tests when Solaris iconv() is used.
43651         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43652         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43653         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43654         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43655         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43656
43657 2009-08-16  Bruno Haible  <bruno@clisp.org>
43658
43659         Fix test failures on Solaris 10.
43660         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43661         'tr' program and pass it as first argument.
43662         * tests/test-pipe-filter-gi1.sh: Likewise.
43663         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43664         program as first argument.
43665         * tests/test-pipe-filter-gi1.c (main): Likewise.
43666
43667 2009-08-16  Eric Blake  <ebb9@byu.net>
43668
43669         fpurge: fix previous commits
43670         * modules/fpurge (Makefile.am): Make replacement conditional,
43671         partially reverting 2007-04-29 change; missed in previous
43672         attempt.
43673         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43674         is missing.
43675
43676 2009-08-16  Bruno Haible  <bruno@clisp.org>
43677
43678         Clarify fpurge's effect on the file position.
43679         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43680         * tests/test-fpurge.c (main): Make a second pass for checking the file
43681         position.
43682
43683 2009-08-16  Bruno Haible  <bruno@clisp.org>
43684
43685         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43686         declaration of fpurge is missing.
43687         * tests/test-fpurge.c (main): Check that the file has not more contents
43688         than expected. Close the file before removing it.
43689
43690 2009-08-15  Eric Blake  <ebb9@byu.net>
43691
43692         fpurge: don't wrap working cygwin implementation
43693         * lib/fpurge.c (fpurge): Fix comment typo.
43694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43695         1.7 to avoid replacement.
43696         * tests/test-fpurge.c (main): Enhance test.
43697
43698 2009-08-15  Eric Blake  <ebb9@byu.net>
43699         and Jim Meyering  <meyering@redhat.com>
43700
43701         test-update-copyright: skip if perl is insufficient
43702         * tests/test-update-copyright.sh: Failure to run maintainer tool
43703         should not cause testsuite failure on cygwin 1.5.
43704
43705 2009-08-14  Eric Blake  <ebb9@byu.net>
43706
43707         doc: mention more functions added in cygwin 1.7.0
43708         * doc/posix-headers/limits.texi (limits.h): Update for recent
43709         cygwin additions.
43710         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43711         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43712         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43713         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43714         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43715
43716 2009-08-14  Eric Blake  <ebb9@byu.net>
43717
43718         maint.mk: simplify update-copyright rule
43719         * top/maint.mk (update-copyright-local): Delete, and document how
43720         to do it in cfg.mk instead.
43721         (update-copyright-exclude-regexp): Delete, and document how to do
43722         it in .x-update-copyright instead.
43723         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43724         exclude ChangeLog.
43725
43726 2009-08-14  Bruno Haible  <bruno@clisp.org>
43727
43728         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43729
43730 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43731
43732         maint.mk: support update-copyright-env
43733         * top/maint.mk (update-copyright-env): Define place-holder.
43734         (update-copyright): Expand $(update-copyright-env) before
43735         invoking update-copyright.
43736
43737 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43738
43739         update-copyright: implement forced reformatting
43740         * build-aux/update-copyright: Implement and document
43741         UPDATE_COPYRIGHT_FORCE.
43742         * tests/test-update-copyright.sh: Test it.
43743
43744 2009-08-14  Eric Blake  <ebb9@byu.net>
43745         and Bruno Haible  <bruno@clisp.org>
43746
43747         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43748         * tests/test-locale.c: Revert previous patch related to NULL.
43749         * tests/test-stdio.c: Likewise.
43750         * tests/test-stdlib.c: Likewise.
43751         * tests/test-string.c: Likewise.
43752         * tests/test-unistd.c: Likewise.
43753         * modules/time-tests (Depends-on): Add verify.
43754         * modules/wchar-tests (Depends-on): Likewise.
43755         * tests/test-time.c: Test for NULL compliance.
43756         * tests/test-wchar.c: Likewise.
43757         * modules/locale (Depends-on): Add stddef.
43758         * modules/stdio (Depends-on): Likewise.
43759         * modules/stdlib (Depends-on): Likewise.
43760         * modules/string (Depends-on): Likewise.
43761         * modules/time (Depends-on): Likewise.
43762         * modules/unistd (Depends-on): Likewise.
43763         * modules/wchar (Depends-on): Likewise.
43764         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43765         * lib/stdlib.in.h (includes): Likewise.
43766         * lib/string.in.h (includes): Likewise.
43767         * lib/time.in.h (includes): Likewise.
43768         * lib/unistd.in.h (includes): Likewise.
43769         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43770         replaced.
43771         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43772         * m4/stddef_h.m4: New file.
43773         * modules/stddef: Likewise.
43774         * lib/stddef.in.h: Likewise.
43775         * modules/stddef-tests: Likewise.
43776         * tests/test-stddef.c: Likewise.
43777         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43778         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43779         * doc/posix-headers/locale.texi (locale.h): Likewise.
43780         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43781         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43782         * doc/posix-headers/string.texi (string.h): Likewise.
43783         * doc/posix-headers/time.texi (time.h): Likewise.
43784         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43785         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43786
43787 2009-08-14  Eric Blake  <ebb9@byu.net>
43788
43789         doc: improve git diff of texinfo files
43790         * .gitattributes: Add rule for *.texi files, with hint on how to
43791         use it.
43792         Copied from m4, and based on a report by Bruno Haible.
43793
43794 2009-08-14  Bruno Haible  <bruno@clisp.org>
43795
43796         Disable multithread support by default on Cygwin 1.5.x for real.
43797         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43798
43799 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43800
43801         update-copyright: much ado about intervals
43802         * build-aux/update-copyright: Implement and document
43803         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43804         of copyright year intervals.
43805         Also, document UPDATE_COPYRIGHT_YEAR.
43806         * tests/test-update-copyright.sh: Test it.
43807
43808         update-copyright: convert 2-digit to 4-digit years
43809         * build-aux/update-copyright: Implement and document.
43810         * tests/test-update-copyright.sh: Update.
43811
43812 2009-08-14  Jim Meyering  <meyering@redhat.com>
43813
43814         test-exclude: avoid coreutils "make check" failure
43815         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43816         just as in test-argmatch.c.
43817
43818 2009-08-13  Eric Blake  <ebb9@byu.net>
43819
43820         test-dup2: fix bad assumption
43821         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43822         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43823
43824         test-version-etc: fix CRLF portability issue
43825         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43826         recognize \r.
43827         * tests/test-argp-version-etc-1.sh: Likewise.
43828
43829         getopt: update client modules
43830         * modules/argp (Depends-on): Use getopt-gnu.
43831         * modules/git-merge-changelog (Depends-on): Likewise.
43832         * modules/long-options (Depends-on): Likewise.
43833         * modules/xstrtol (Depends-on): Likewise.
43834
43835 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43836
43837         * tests/test-version-etc.sh: Don't fail on different
43838         project/version.  Don't fail on CRLF differences.  Rewrite to use
43839         multiple -e instead of multiple sed forks, suggested by Eric Blake
43840         <ebb9@byu.net>.
43841         * tests/test-argp-version-etc-1.sh: Likewise.
43842
43843 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43844
43845         * tests/test-version-etc.sh: Don't fail on different
43846         project/version.
43847
43848 2009-08-12  Bruno Haible  <bruno@clisp.org>
43849
43850         Tests for modules 'getopt-posix', 'getopt-gnu'.
43851         * modules/getopt-posix-tests: New file.
43852         * tests/test-getopt.c: New file.
43853         * tests/test-getopt.h: New file.
43854         * tests/test-getopt_long.h: New file.
43855
43856         New modules 'getopt-posix', 'getopt-gnu'.
43857         * modules/getopt-gnu: New file, renamed from modules/getopt.
43858         * modules/getopt-posix: New file.
43859         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43860         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43861         (gl_GETOPT): Remove macro.
43862         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43863         Disable the test against BSD systems that declare optreset. Test
43864         against mingw bug. Test against lack of support of optional arguments
43865         on many platforms.
43866         * doc/glibc-headers/getopt.texi: Update module name and list of
43867         relevant platforms.
43868         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43869         'getopt-gnu' and more portability problems.
43870         * NEWS: Mention the changes.
43871
43872 2009-08-12  Bruno Haible  <bruno@clisp.org>
43873
43874         Ensure that optarg etc. get declared by <unistd.h>.
43875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43876         AC_USE_SYSTEM_EXTENSIONS.
43877         * modules/getopt (Depends-on): Add 'extensions'.
43878
43879 2009-08-12  Bruno Haible  <bruno@clisp.org>
43880
43881         Avoid test link errors.
43882         * modules/pipe-filter-ii-tests (Makefile.am): Define
43883         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43884         * modules/pipe-filter-gi-tests (Makefile.am): Define
43885         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43887
43888 2009-08-12  Bruno Haible  <bruno@clisp.org>
43889
43890         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43891         gl_GETOPT_SUBSTITUTE before.
43892         (gl_GETOPT): Use it.
43893         * m4/argp.m4 (gl_ARGP): Update.
43894         Reported by Sergey Poznyakoff.
43895
43896         * m4/getopt.m4: Reorder macros.
43897         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43898         (gl_GETOPT_SUBSTITUTE): Remove macro.
43899
43900 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43901
43902         Minor improvement in gitlog-to-changelog
43903
43904         * build-aux/gitlog-to-changelog: New option `--format' makes
43905         output format string configurable.
43906
43907 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43908
43909         Optimize exclude: use hash tables for non-wildcard patterns.
43910
43911         * lib/exclude.c: Include hash.h and mbuiter.h
43912         (struct exclude_pattern, exclude_segment): New data types.
43913         (struct exclude): Rewrite.
43914         (fnmatch_pattern_has_wildcards): New function.
43915         (new_exclude_segment, free_exclude_segment): New functions.
43916         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43917         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43918         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43919         * modules/exclude: Depend on hash and mbuiter.
43920
43921         * modules/exclude-tests: New file.
43922         * tests/test-exclude.c: New file.
43923         * tests/test-exclude1.sh: New file.
43924         * tests/test-exclude2.sh: New file.
43925         * tests/test-exclude3.sh: New file.
43926         * tests/test-exclude4.sh: New file.
43927         * tests/test-exclude5.sh: New file.
43928         * tests/test-exclude6.sh: New file.
43929         * tests/test-exclude7.sh: New file.
43930
43931 2009-08-12  Bruno Haible  <bruno@clisp.org>
43932
43933         Ensure that getopt() gets declared by <unistd.h>.
43934         * lib/unistd.in.h: Conditionally include getopt.h.
43935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43936         Set GNULIB_UNISTD_H_GETOPT.
43937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43938         GNULIB_UNISTD_H_GETOPT.
43939         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43940
43941 2009-08-12  Bruno Haible  <bruno@clisp.org>
43942
43943         Clarify logic.
43944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43945         gl_replace_getopt instead of GETOPT_H.
43946
43947 2009-08-12  Bruno Haible  <bruno@clisp.org>
43948
43949         * m4/getopt.m4: Add comments.
43950
43951 2009-08-12  Bruno Haible  <bruno@clisp.org>
43952
43953         Disable multithread support by default on Cygwin 1.5.x.
43954         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43955         set gl_use_threads=no if not specified otherwise.
43956
43957 2009-08-11  Bruno Haible  <bruno@clisp.org>
43958
43959         Avoid compilation error on NetBSD 5.0.
43960         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43961         * tests/test-stdio.c: Likewise.
43962         * tests/test-stdlib.c: Likewise.
43963         * tests/test-string.c: Likewise.
43964         * tests/test-unistd.c: Likewise.
43965         Reported by Greg Troxel <gdt@ir.bbn.com>
43966         at <https://savannah.gnu.org/support/?106973>.
43967
43968 2009-08-11  Bruno Haible  <bruno@clisp.org>
43969
43970         * modules/dup2-tests (Depends-on): Remove close.
43971
43972         Undo 2009-07-19 commit.
43973         * modules/acl-tests (Depends-on): Remove close.
43974         * modules/binary-io-tests (Depends-on): Likewise.
43975         * modules/closein-tests (Depends-on): Likewise.
43976         * modules/flock-tests (Depends-on): Likewise.
43977         * modules/fsync-tests (Depends-on): Likewise.
43978         * modules/lseek-tests (Depends-on): Likewise.
43979         * modules/pipe-tests (Depends-on): Likewise.
43980         * modules/posix_spawn-tests (Depends-on): Likewise.
43981         * modules/posix_spawnp-tests (Depends-on): Likewise.
43982         * modules/stat-time-tests (Depends-on): Likewise.
43983         * modules/yesno-tests (Depends-on): Likewise.
43984
43985 2009-08-10  Bruno Haible  <bruno@clisp.org>
43986
43987         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43988
43989 2009-08-10  Bruno Haible  <bruno@clisp.org>
43990
43991         Fix a gcc warning.
43992         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43993
43994 2009-08-10  Bruno Haible  <bruno@clisp.org>
43995
43996         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43997         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43998         not only the first time.
43999         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44000         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44001         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44002         is 1, not only the the first time.
44003
44004 2009-08-10  Bruno Haible  <bruno@clisp.org>
44005
44006         Make it possible to use module 'gethostname' without module 'close'.
44007         * lib/unistd.in.h (close): Evoke a link error only if
44008         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44010         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44011         * modules/unistd (Makefile.am): Substitute
44012         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44013         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44014         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44015         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44016         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44017         * modules/sys_ioctl (Makefile.am): Substitute
44018         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44019         * modules/socket (configure.ac): On native Windows, set
44020         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44021         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44022         Reported by Sam Steingold <sds@gnu.org>.
44023
44024 2009-08-10  Bruno Haible  <bruno@clisp.org>
44025
44026         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44027         * modules/ioctl (configure.ac): Likewise.
44028
44029 2009-08-10  Bruno Haible  <bruno@clisp.org>
44030
44031         Avoid collision between gnulib wrapper and libintl wrapper.
44032         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44033         already defined in intl/printf.c.
44034         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44035         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44036
44037 2009-08-09  Bruno Haible  <bruno@clisp.org>
44038
44039         Make <sys/select.h> really self-contained, also on Solaris 10.
44040         * lib/sys_select.in.h: Include <string.h>.
44041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44042         Solaris 10 problem.
44043         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44044         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44045         Reported by Jim Meyering.
44046
44047 2009-08-09  Bruno Haible  <bruno@clisp.org>
44048
44049         Avoid warnings from 'aclocal' that are due to a use of macro name
44050         AM_XGETTEXT_OPTION that is not defined in automake.
44051         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44052         automake.
44053         * modules/error (configure.ac): Likewise.
44054         * modules/propername (configure.ac): Likewise.
44055         * modules/vasprintf (configure.ac): Likewise.
44056         * modules/verror (configure.ac): Likewise.
44057         * modules/xprintf (configure.ac): Likewise.
44058         * modules/xvasprintf (configure.ac): Likewise.
44059
44060 2009-08-08  Bruno Haible  <bruno@clisp.org>
44061
44062         Avoid compilation error in C++ mode.
44063         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44064         Reported by Sam Steingold <sds@gnu.org>.
44065
44066 2009-08-08  Bruno Haible  <bruno@clisp.org>
44067
44068         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44069         for the various Unix platforms.
44070         * doc/posix-headers/limits.texi: Update platforms list regarding
44071         HOST_NAME_MAX.
44072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44073
44074 2009-08-07  Jim Meyering  <meyering@redhat.com>
44075
44076         selinux-at: fix typo in a comment
44077         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44078         Spotted by Paolo Bonzini.
44079
44080         selinux-at: remove redundant m4 code, add documentation
44081         * modules/selinux-at (configure.ac): Remove redundant code.
44082         LIB_SELINUX is already set via the dependent module, selinux-h.
44083         (Include): Add quotes around selinux-at.h.
44084         * lib/selinux-at.h: Add documentation.
44085         Reported by Bruno Haible in
44086         http://marc.info/?l=gnulib-bug&m=124958988300749
44087
44088 2009-08-07  Bruno Haible  <bruno@clisp.org>
44089
44090         Avoid link error on MacOS X 10.3 and 10.4.
44091         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44092         on non-ELF systems.
44093         * lib/argp-pv.c (argp_program_version): Likewise.
44094         Reported by Simon Josefsson.
44095
44096 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44097
44098         * tests/test-version-etc.sh: Use $EXEEXT.
44099
44100 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44101
44102         update-copyright: update documentation to point to maint.mk
44103         * build-aux/update-copyright: Here.
44104
44105 2009-08-06  Jim Meyering  <meyering@redhat.com>
44106
44107         maint.mk: support update-copyright-local
44108         * top/maint.mk (update-copyright-local): Define place-holder.
44109         (update-copyright): Depend on $(update-copyright-local).
44110
44111 2009-08-06  Jim Meyering  <meyering@redhat.com>
44112
44113         selinux-at: new module
44114         Initially written for coreutils, this module will soon be
44115         used by findutils, too.
44116         * MODULES.html.sh [Misc]: Add selinux-at.
44117         * lib/selinux-at.h: New file, from coreutils.
44118         * lib/selinux-at.c: Likewise.
44119         * modules/selinux-at: Likewise.
44120         (License): Change from LGPL to GPL, since it depends
44121         on the GPL'd openat module.
44122
44123         doc: update README
44124         * README: Remove references to cogito.
44125         Remove cvs-repo-updating instructions from 2007.
44126         Don't imply that CVS is better if you have limited disk space.
44127
44128 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44129
44130         update-copyright: support C-style comments
44131         * build-aux/update-copyright: Implement and document.
44132         * tests/test-update-copyright.sh: Test.
44133
44134 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44135
44136         update-copyright: support omitted "(C)"
44137         * build-aux/update-copyright: Implement and document.  Also,
44138         allow variable whitespace before "(C)".
44139         * tests/test-update-copyright.sh: Test.
44140
44141 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44142
44143         update-copyright: don't trip on non-FSF copyright statements
44144         * build-aux/update-copyright: Fix so that the first correctly
44145         formatted FSF copyright statement is recognized no matter what
44146         appears before it.  Update documentation.
44147         * tests/test-update-copyright.sh: Test that.
44148
44149 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44150
44151         update-copyright: clean up code a little
44152         * build-aux/update-copyright: Append "_re" to the name of any
44153         variable holding a regular expression.
44154         Replace "old" and "new" with "stmt" in variable names.
44155         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44156         handled correctly.
44157         Format code more consistently.
44158
44159 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44160
44161         update-copyright-tests: improve portability
44162         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44163         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44164
44165 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44166
44167         update-copyright: support @copyright{} and &copy;
44168         * build-aux/update-copyright: Implement and document.
44169         * tests/test-update-copyright.sh: Test.
44170
44171 2009-08-04  Jim Meyering  <meyering@redhat.com>
44172
44173         update-copyright-tests: correctly test EOL=\r\n handling
44174         * tests/test-update-copyright.sh: Put \r at the end of some lines
44175         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44176
44177         maint.mk: make update-copyright exclusion list more configurable
44178         * top/maint.mk (update-copyright): Default to excluding COPYING,
44179         but allow an override, in case someone does want to update that file.
44180
44181         maint.mk: don't update copyright date in COPYING
44182         * top/maint.mk (update-copyright): Exclude COPYING.
44183
44184         maint.mk: add a copyright-updating rule
44185         * top/maint.mk (update-copyright): New rule.
44186         Derived from coreutils/Makefile.am.
44187
44188         update-copyright: rename some variables
44189         * build-aux/update-copyright: Rename a few variables for clarity.
44190         Tweak syntax.  List Joel E. Denny as coauthor.
44191
44192 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44193
44194         update-copyright: fix bug for 2-digit last year and add tests
44195         * build-aux/update-copyright: Fix bug.
44196         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44197         specified.
44198         * modules/update-copyright-tests: New
44199         * tests/test-update-copyright.sh: New.
44200
44201 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44202
44203         update-copyright: handle leading tabs in line prefix
44204         * build-aux/update-copyright: Count leading tabs as 8 spaces
44205         when computing margin.  This helps with the formatting of
44206         ChangeLogs, for example.
44207         Fix documentation a little.
44208
44209 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44210
44211         update-copyright: support EOL=\r\n
44212         * build-aux/update-copyright: Implement that.
44213
44214 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44215
44216         update-copyright: automatically format copyright statements
44217         * build-aux/update-copyright: Implement that.
44218         Also, be a little more predictable and safer by always failing
44219         when the full copyright format is not perfectly recognized as an
44220         unbroken whole.  Discussed at
44221         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44222         Rewrite documentation.
44223
44224 2009-08-03  Bruno Haible  <bruno@clisp.org>
44225
44226         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44227
44228 2009-08-02  Bruno Haible  <bruno@clisp.org>
44229
44230         Tests for module 'uname'.
44231         * modules/uname-tests: New file.
44232         * tests/test-uname.c: New file.
44233
44234         New module 'uname'.
44235         * lib/uname.c: New file.
44236         * m4/uname.m4: New file.
44237         * modules/uname: New file.
44238         * doc/posix-functions/uname.texi: Mention the new module.
44239
44240 2009-08-02  Bruno Haible  <bruno@clisp.org>
44241
44242         Tests for module 'sys_utsname'.
44243         * modules/sys_utsname-tests: New file.
44244         * tests/test-sys_utsname.c: New file.
44245
44246         New module 'sys_utsname'.
44247         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44248         * m4/sys_utsname_h.m4: New file.
44249         * modules/sys_utsname: New file.
44250         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44251
44252 2009-08-02  Bruno Haible  <bruno@clisp.org>
44253
44254         Implicitly initialize the sockets library.
44255         * lib/gethostname.c: Include sockets.h.
44256         (rpl_gethostname): Invoke gl_sockets_startup.
44257         * lib/socket.c: Include sockets.h.
44258         (rpl_socket): Invoke gl_sockets_startup.
44259         * modules/gethostname (Depends-on): Add sockets.
44260         * modules/socket (Depends-on): Likewise.
44261         * tests/test-poll.c: Don't include sockets.h.
44262         (main): Don't invoke gl_sockets_startup.
44263         * tests/test-select.c: Don't include sockets.h.
44264         (main): Don't invoke gl_sockets_startup.
44265
44266 2009-08-02  Bruno Haible  <bruno@clisp.org>
44267
44268         Allow multiple calls to gl_sockets_startup.
44269         * lib/sockets.c (initialized_sockets_version): New variable.
44270         (gl_sockets_startup): Do nothing if already called for this or a higher
44271         version.
44272         (gl_sockets_cleanup): Reset initialized_sockets_version.
44273
44274 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44275
44276         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44277         different project/version.
44278
44279 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44280             Bruno Haible  <bruno@clisp.org>
44281
44282         Tests for module 'pipe-filter-gi'.
44283         * modules/pipe-filter-gi-tests: New file.
44284         * tests/test-pipe-filter-gi1.sh: New file.
44285         * tests/test-pipe-filter-gi1.c: New file.
44286         * tests/test-pipe-filter-gi2.sh: New file.
44287         * tests/test-pipe-filter-gi2-main.c: New file.
44288         * tests/test-pipe-filter-gi2-child.c: New file.
44289
44290         New module 'pipe-filter-gi'.
44291         * lib/pipe-filter-gi.c: New file.
44292         * modules/pipe-filter-gi: New file.
44293
44294 2009-08-02  Bruno Haible  <bruno@clisp.org>
44295             Paolo Bonzini  <bonzini@gnu.org>
44296
44297         Tests for module 'pipe-filter-ii'.
44298         * modules/pipe-filter-ii-tests: New file.
44299         * tests/test-pipe-filter-ii1.sh: New file.
44300         * tests/test-pipe-filter-ii1.c: New file.
44301         * tests/test-pipe-filter-ii2.sh: New file.
44302         * tests/test-pipe-filter-ii2-main.c: New file.
44303         * tests/test-pipe-filter-ii2-child.c: New file.
44304
44305         New module 'pipe-filter-ii'.
44306         * lib/pipe-filter.h: New file.
44307         * lib/pipe-filter-ii.c: New file.
44308         * lib/pipe-filter-aux.h: New file.
44309         * modules/pipe-filter-ii: New file.
44310
44311 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44312
44313         * lib/gc-libgcrypt.c: Change copyright to FSF.
44314         * lib/gc-gnulib.c: Likewise.
44315
44316 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44317
44318         * lib/gethostname.c: Include limits.h.
44319
44320 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44321             Bruno Haible  <bruno@clisp.org>
44322
44323         Ensure HOST_NAME_MAX as part of the gethostname module.
44324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44325         define also HOST_NAME_MAX.
44326         * tests/test-gethostname.c: Include <limits.h>.
44327         (main): Check also HOST_NAME_MAX.
44328         * doc/posix-headers/limits.texi: Document the mingw problem.
44329
44330 2009-08-02  Bruno Haible  <bruno@clisp.org>
44331
44332         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44333         Add comments.
44334
44335 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44336
44337         * lib/gethostname.c: Add Windows wrapper.
44338         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44339         * modules/gethostname: Depend on sys_socket & errno, for also
44340         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44341         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44342
44343 2009-07-31  Jim Meyering  <meyering@redhat.com>
44344
44345         getloadavg: fix symbol name in comment
44346         * lib/getloadavg.c: Correct a typo I introduced when adding
44347         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44348         Matt Kraai spotted the problem.
44349
44350 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44351
44352         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44353         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44354         code also if ! defined N_NAME_POINTER.
44355         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44356         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44357         but the n_name member is a 12-byte array.
44358
44359 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44360
44361         update-copyright: generalize comment handling
44362         * build-aux/update-copyright: Handle copyright statements
44363         within more comment styles.
44364         Document usage.
44365         Report any file with an external copyright holder or parse failure.
44366
44367 2009-07-29  Jim Meyering  <meyering@redhat.com>
44368
44369         mktime: correct setting of REPLACE_MKTIME
44370         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44371
44372         update-copyright: new module
44373         * modules/update-copyright: New file.
44374         * build-aux/update-copyright: New file.
44375         * MODULES.html.sh (maint+release support): Add update-copyright.
44376
44377 2009-07-27  Bruno Haible  <bruno@clisp.org>
44378
44379         Fix compilation error when <ctime> is used and mktime is replaced.
44380         * lib/time.in.h (mktime): New declaration.
44381         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44382         REPLACE_MKTIME instead of defining mktime in config.h.
44383         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44384         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44385         Reported by Ross McFarland <rwmcfa1@neces.com>.
44386
44387 2009-07-27  Bruno Haible  <bruno@clisp.org>
44388
44389         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44390         Reported by Matt Kraai <mkraai@beckman.com>.
44391
44392 2009-07-25  Jim Meyering  <meyering@redhat.com>
44393
44394         maint.mk: avoid warnings about missing files
44395         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44396         diagnostic when .prev-version does not exist.
44397         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44398         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44399         nonexistent cfg.mk.
44400         Suggestions from Simon Josefsson.
44401
44402 2009-07-25  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44405         defined as macros. Needed on QNX 6.4.1.
44406         Reported by Matt Kraai <mkraai@beckman.com>.
44407
44408 2009-07-23  Jim Meyering  <meyering@redhat.com>
44409
44410         maint.mk: invoke "make dist" with a working value of XZ_OPT
44411         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44412
44413 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44414
44415         Make fseeko.c compile on QNX.
44416         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44417
44418 2009-07-22  Peter Simons  <simons@cryp.to>
44419
44420         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44421         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44422         * lib/md4.h: Likewise.
44423         * lib/md5.h: Likewise.
44424         * lib/sha1.h: Likewise.
44425         * lib/sha256.h: Likewise.
44426         * lib/sha512.h: Likewise.
44427
44428         tests-sha1: don't assign literal string to 'char *' variable
44429         * tests/test-sha1.c (main): Declare locals with "const" to match
44430         attributes of the right hand side.
44431
44432 2009-07-21  Eric Blake  <ebb9@byu.net>
44433
44434         dup2: fix more mingw problems
44435         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44436         fd to itself.
44437         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44438         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44439         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44440         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44441         care of mingw bugs.
44442
44443 2009-07-21  Jim Meyering  <meyering@redhat.com>
44444
44445         vc-list-files: avoid failure when /bin/sh is dash
44446         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44447         On some Debian based systems, /bin/sh is a symlink to dash, and running
44448         this command would omit the "/" following each 'tests' prefix:
44449           dash -x build-aux/vc-list-files -C . tests
44450         That is because bash and dash work differently:
44451           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44452           bash ok
44453           dash odd
44454
44455 2009-07-21  Eric Blake  <ebb9@byu.net>
44456
44457         dup2-tests: test previous patch
44458         * modules/dup2-tests: New file.
44459         * tests/test-dup2.c: Likewise.
44460         * tests/test-open.c (main): Avoid unspecified behavior.
44461         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44462         test.
44463
44464         dup2: work around mingw and cygwin 1.5 bug
44465         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44467         * modules/unistd (Makefile.am): Substitute it.
44468         * lib/unistd.in.h (dup2): Declare the replacement.
44469         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44470         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44471         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44472         * modules/execute (Depends-on): Add dup2.
44473         * modules/fseterr (Depends-on): Likewise.
44474         * modules/pipe (Depends-on): Likewise.
44475         * modules/posix_spawn-internal (Depends-on): Likewise.
44476
44477 2009-07-21  Bruno Haible  <bruno@clisp.org>
44478
44479         * modules/.gitattributes: New file.
44480
44481 2009-07-20  Bruno Haible  <bruno@clisp.org>
44482
44483         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44484         (main): Use it.
44485
44486 2009-07-20  Eric Blake  <ebb9@byu.net>
44487
44488         test-pipe: make a bit more robust.
44489         * tests/test-pipe.c (myerr): Allow error messages regardless of
44490         what we do to stderr.
44491         (test_pipe): Rearrange to avoid deadlock.
44492         (child_main): Try a larger read, to ensure we avoided deadlock.
44493         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44494         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44495         if misused.
44496
44497 2009-07-19  Jim Meyering  <meyering@redhat.com>
44498
44499         fts: avoid false-positive cycle-detection
44500         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44501         for each new command line argument.
44502
44503 2009-07-19  Bruno Haible  <bruno@clisp.org>
44504
44505         Fix build error on mingw with the modules sys_select and unistd.
44506         * modules/acl-tests (Depends-on): Add close.
44507         * modules/binary-io-tests (Depends-on): Likewise.
44508         * modules/closein-tests (Depends-on): Likewise.
44509         * modules/flock-tests (Depends-on): Likewise.
44510         * modules/fsync-tests (Depends-on): Likewise.
44511         * modules/lseek-tests (Depends-on): Likewise.
44512         * modules/pipe-tests (Depends-on): Likewise.
44513         * modules/posix_spawn-tests (Depends-on): Likewise.
44514         * modules/posix_spawnp-tests (Depends-on): Likewise.
44515         * modules/stat-time-tests (Depends-on): Likewise.
44516         * modules/yesno-tests (Depends-on): Likewise.
44517
44518 2009-07-19  Bruno Haible  <bruno@clisp.org>
44519
44520         Unify conditionals.
44521         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44522         macros, not at the compiler macros.
44523         * lib/pipe.c: Likewise.
44524         * lib/execute.c: Likewise.
44525         * lib/spawni.c: Likewise.
44526
44527 2009-07-19  Bruno Haible  <bruno@clisp.org>
44528
44529         Fix handling of closed stdin/stdout/stderr on mingw.
44530         * lib/w32spawn.h: Include unistd.h.
44531         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44532         file descriptor with O_NOINHERIT flag.
44533         (fd_safer_noinherit): New function, based on fd-safer.c.
44534         (dup_safer_noinherit): New function, based on dup-safer.c.
44535         (undup_safer_noinherit): New function.
44536         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44537         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44538         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44539         instead of fd_safer.
44540         * tests/test-pipe.c: Include <windows.h>.
44541         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44542         result.
44543
44544         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44545         from main.
44546         (test_pipe): Pass an extra argument for disambiguation.
44547         (main): Invoke parent_main or child_main.
44548
44549         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44550         consistently.
44551
44552 2009-07-18  Eric Blake  <ebb9@byu.net>
44553
44554         test-pipe: fix mingw build
44555         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44556
44557 2009-07-18  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/pipe-tests (Makefile.am): Fix typo.
44560
44561 2009-07-18  Eric Blake  <ebb9@byu.net>
44562
44563         error: fix mingw build
44564         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44565         Reported by Bruno Haible.
44566
44567         error: avoid undefined use of stdout
44568         * lib/error.c (error, error_at_line): Check that fd 1 is open
44569         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44570         is handling faults and the close_stdout module wants to report the
44571         detection of closed stdout as an error.
44572
44573 2009-07-17  Eric Blake  <ebb9@byu.net>
44574
44575         pipe: be robust in face of closed fds
44576         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44577         should cause child to misbehave.
44578         * modules/pipe-tests: New module.
44579         * tests/test-pipe.c: New file.
44580         * tests/test-pipe.sh: New file.
44581         Reported by Akim Demaille.
44582
44583 2009-07-14  Bruno Haible  <bruno@clisp.org>
44584
44585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44586         Reported by anonymous kc.
44587
44588 2009-07-07  Jim Meyering  <meyering@redhat.com>
44589
44590         maint.mk: don't look for translatable strings in *.m4 or *.mk
44591         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44592         when searching for translatable strings.
44593
44594 2009-07-05  Jim Meyering  <meyering@redhat.com>
44595
44596         remove superfluous parentheses in STREQ definition
44597         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44598         * lib/getugroups.c (STREQ): Likewise.
44599         * lib/fnmatch.c (STREQ): Likewise.
44600         Spotted by Bruno Haible.
44601
44602 2009-07-04  Jim Meyering  <meyering@redhat.com>
44603
44604         argv-iter: new module
44605         * MODULES.html.sh: Add argv-iter.
44606         * lib/argv-iter.c, lib/argv-iter.h: New files.
44607         * modules/argv-iter: New file.
44608         * modules/argv-iter-tests: New file.
44609         * tests/test-argv-iter.c: Test it.
44610
44611 2009-07-04  Bruno Haible  <bruno@clisp.org>
44612
44613         Fix assertion.
44614         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44615         contains more exact copies of a given entry than file2, leave the extra
44616         copies unpaired rather than aborting.
44617         Reported by Eric Blake.
44618
44619 2009-07-02  Bruno Haible  <bruno@clisp.org>
44620
44621         Speedup git-merge-changelog for git cherry-pick.
44622         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44623         (entries_mapping_get): New function, extracted from compute_mapping.
44624         (entries_mapping_reverse_get): New function.
44625         (compute_mapping): Add a 'full' argument. Return the result in a
44626         'struct entries_mapping'.
44627         (main): Update. Access the mappings through entries_mapping_get.
44628         Reported by Eric Blake.
44629
44630 2009-07-02  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44633         best_i.
44634
44635 2009-07-02  Bruno Haible  <bruno@clisp.org>
44636
44637         Speed up approximate search for matching ChangeLog entries.
44638         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44639         argument. Call fstrcmp_bounded instead of fstrcmp.
44640         (compute_mapping, try_split_merged_entry, main): Update callers.
44641
44642 2009-07-02  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44645
44646 2009-06-30  Bruno Haible  <bruno@clisp.org>
44647
44648         Reduce the number of uc_is_cased calls.
44649         * lib/unicase.h (casing_suffix_context_t): Add
44650         'first_char_except_ignorable' field.
44651         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44652         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44653         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44654         Update initializer.
44655         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44656         case-ignorable characters.
44657         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44658         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44659         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44660         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44661         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44662
44663 2009-06-30  Bruno Haible  <bruno@clisp.org>
44664
44665         Tests for module 'unicase/ignorable'.
44666         * modules/unicase/ignorable-tests: New file.
44667         * tests/unicase/test-ignorable.c: New file, generated by
44668         gen-uni-tables.
44669
44670         Tests for module 'unicase/cased'.
44671         * modules/unicase/cased-tests: New file.
44672         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44673         * tests/unicase/test-predicate-part1.h: New file, derived from
44674         tests/unictype/test-predicate-part1.h.
44675         * tests/unicase/test-predicate-part2.h: New file, same as
44676         tests/unictype/test-predicate-part2.h.
44677
44678         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44679         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44680         (output_casing_properties): New function.
44681         (main): Call it.
44682         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44683         * lib/unicase/cased.c: Include unictype/bitmap.h.
44684         (uc_is_cased): Define through a bitmap lookup.
44685         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44686         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44687         (uc_is_case_ignorable): Define through a bitmap lookup.
44688         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44689         lib/unictype/bitmap.h.
44690         (Depends-on): Add inline. Clean up.
44691         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44692         lib/unictype/bitmap.h.
44693         (Depends-on): Add inline. Clean up.
44694         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44695         recognition.
44696         * tests/unicase/test-u16-tolower.c (main): Likewise.
44697         * tests/unicase/test-u32-tolower.c (main): Likewise.
44698
44699 2009-06-30  Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44702         * lib/unicase/u16-casemap.c: Likewise.
44703         * lib/unicase/u32-casemap.c: Likewise.
44704
44705 2009-06-29  Bruno Haible  <bruno@clisp.org>
44706
44707         Define u32_casefold as a wrapper around u32_ct_casefold.
44708         * lib/unicase/u32-casefold.c: Update.
44709         * modules/unicase/u32-casefold (Depends-on): Add
44710         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44711         unicase/empty-suffix-context. Clean up.
44712
44713         Define u16_casefold as a wrapper around u16_ct_casefold.
44714         * lib/unicase/u16-casefold.c: Update.
44715         * modules/unicase/u16-casefold (Depends-on): Add
44716         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44717         unicase/empty-suffix-context. Clean up.
44718
44719         Define u8_casefold as a wrapper around u8_ct_casefold.
44720         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44721         * lib/unicase/u8-casefold.c: Update.
44722         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44723         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44724
44725         Define u32_totitle as a wrapper around u32_ct_totitle.
44726         * lib/unicase/u32-totitle.c: Update.
44727         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44728         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44729
44730         Define u16_totitle as a wrapper around u16_ct_totitle.
44731         * lib/unicase/u16-totitle.c: Update.
44732         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44733         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44734
44735         Define u8_totitle as a wrapper around u8_ct_totitle.
44736         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44737         functions.
44738         (FUNC): Delegate to U_CT_TOTITLE.
44739         * lib/unicase/u8-totitle.c: Update.
44740         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44741         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44742
44743         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44744         invocation.
44745         * modules/unicase/u32-tolower (Depends-on): Add
44746         unicase/empty-prefix-context, unicase/empty-suffix-context.
44747
44748         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44749         invocation.
44750         * modules/unicase/u16-tolower (Depends-on): Add
44751         unicase/empty-prefix-context, unicase/empty-suffix-context.
44752
44753         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44754         * modules/unicase/u8-tolower (Depends-on): Add
44755         unicase/empty-prefix-context, unicase/empty-suffix-context.
44756
44757         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44758         invocation.
44759         * modules/unicase/u32-toupper (Depends-on): Add
44760         unicase/empty-prefix-context, unicase/empty-suffix-context.
44761
44762         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44763         invocation.
44764         * modules/unicase/u16-toupper (Depends-on): Add
44765         unicase/empty-prefix-context, unicase/empty-suffix-context.
44766
44767         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44768         * modules/unicase/u8-toupper (Depends-on): Add
44769         unicase/empty-prefix-context, unicase/empty-suffix-context.
44770
44771         New module 'unicase/u32-ct-casefold'.
44772         * lib/unicase/u32-ct-casefold.c: New file.
44773         * modules/unicase/u32-ct-casefold: New file.
44774
44775         New module 'unicase/u16-ct-casefold'.
44776         * lib/unicase/u16-ct-casefold.c: New file.
44777         * modules/unicase/u16-ct-casefold: New file.
44778
44779         New module 'unicase/u8-ct-casefold'.
44780         * lib/unicase/u8-ct-casefold.c: New file.
44781         * lib/unicase/u-ct-casefold.h: New file, derived from
44782         lib/unicase/u-casefold.h.
44783         * modules/unicase/u8-ct-casefold: New file.
44784
44785         New module 'unicase/u32-ct-totitle'.
44786         * lib/unicase/u32-ct-totitle.c: New file.
44787         * modules/unicase/u32-ct-totitle: New file.
44788
44789         New module 'unicase/u16-ct-totitle'.
44790         * lib/unicase/u16-ct-totitle.c: New file.
44791         * modules/unicase/u16-ct-totitle: New file.
44792
44793         New module 'unicase/u8-ct-totitle'.
44794         * lib/unicase/u8-ct-totitle.c: New file.
44795         * lib/unicase/u-ct-totitle.h: New file, derived from
44796         lib/unicase/u-totitle.h.
44797         * modules/unicase/u8-ct-totitle: New file.
44798
44799         New module 'unicase/u32-ct-tolower'.
44800         * lib/unicase/u32-ct-tolower.c: New file.
44801         * modules/unicase/u32-ct-tolower: New file.
44802
44803         New module 'unicase/u16-ct-tolower'.
44804         * lib/unicase/u16-ct-tolower.c: New file.
44805         * modules/unicase/u16-ct-tolower: New file.
44806
44807         New module 'unicase/u8-ct-tolower'.
44808         * lib/unicase/u8-ct-tolower.c: New file.
44809         * modules/unicase/u8-ct-tolower: New file.
44810
44811         New module 'unicase/u32-ct-toupper'.
44812         * lib/unicase/u32-ct-toupper.c: New file.
44813         * modules/unicase/u32-ct-toupper: New file.
44814
44815         New module 'unicase/u16-ct-toupper'.
44816         * lib/unicase/u16-ct-toupper.c: New file.
44817         * modules/unicase/u16-ct-toupper: New file.
44818
44819         New module 'unicase/u8-ct-toupper'.
44820         * lib/unicase/u8-ct-toupper.c: New file.
44821         * modules/unicase/u8-ct-toupper: New file.
44822
44823         Add context arguments to u*_casemap functions.
44824         * lib/unicase/unicasemap.h: Include unicase.h.
44825         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44826         suffix_context arguments.
44827         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44828         functions.
44829         (FUNC): Add prefix_context and suffix_context arguments. Use
44830         uc_is_cased and uc_is_case_ignorable.
44831         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44832         * lib/unicase/u16-casemap.c: Likewise.
44833         * lib/unicase/u32-casemap.c: Likewise.
44834         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44835         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44836         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44837         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44838         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44839         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44840
44841         New module 'unicase/u32-suffix-context'.
44842         * lib/unicase/u32-suffix-context.c: New file.
44843         * modules/unicase/u32-suffix-context: New file.
44844
44845         New module 'unicase/u16-suffix-context'.
44846         * lib/unicase/u16-suffix-context.c: New file.
44847         * modules/unicase/u16-suffix-context: New file.
44848
44849         New module 'unicase/u8-suffix-context'.
44850         * lib/unicase/u8-suffix-context.c: New file.
44851         * lib/unicase/u-suffix-context.h: New file.
44852         * modules/unicase/u8-suffix-context: New file.
44853
44854         New module 'unicase/empty-suffix-context'.
44855         * lib/unicase/empty-suffix-context.c: New file.
44856         * modules/unicase/empty-suffix-context: New file.
44857
44858         New module 'unicase/u32-prefix-context'.
44859         * lib/unicase/u32-prefix-context.c: New file.
44860         * modules/unicase/u32-prefix-context: New file.
44861
44862         New module 'unicase/u16-prefix-context'.
44863         * lib/unicase/u16-prefix-context.c: New file.
44864         * modules/unicase/u16-prefix-context: New file.
44865
44866         New module 'unicase/u8-prefix-context'.
44867         * lib/unicase/u8-prefix-context.c: New file.
44868         * lib/unicase/u-prefix-context.h: New file.
44869         * lib/unicase/context.h: New file.
44870         * modules/unicase/u8-prefix-context: New file.
44871
44872         New module 'unicase/empty-prefix-context'.
44873         * lib/unicase/empty-prefix-context.c: New file.
44874         * modules/unicase/empty-prefix-context: New file.
44875
44876         New module 'unicase/ignorable'.
44877         * lib/unicase/ignorable.c: New file.
44878         * modules/unicase/ignorable: New file.
44879
44880         New module 'unicase/cased'.
44881         * lib/unicase/caseprop.h: New file.
44882         * lib/unicase/cased.c: New file.
44883         * modules/unicase/cased: New file.
44884
44885         New functions for case mapping of substrings.
44886         * lib/unicase.h (casing_prefix_context_t): New type.
44887         (unicase_empty_prefix_context): New variable.
44888         (u8_casing_prefix_context, u16_casing_prefix_context,
44889         u32_casing_prefix_context, u8_casing_prefixes_context,
44890         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44891         declarations.
44892         (casing_suffix_context_t): New type.
44893         (unicase_empty_suffix_context): New variable.
44894         (u8_casing_suffix_context, u16_casing_suffix_context,
44895         u32_casing_suffix_context, u8_casing_suffixes_context,
44896         u16_casing_suffixes_context, u32_casing_suffixes_context,
44897         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44898         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44899         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44900         declarations.
44901
44902 2009-06-28  Jim Meyering  <meyering@redhat.com>
44903
44904         boostrap: indent only with spaces
44905         * build-aux/bootstrap: Indent only with spaces, never TABs.
44906
44907         bootstrap: split long lines
44908         * build-aux/bootstrap: Keep line length < 80.
44909
44910         bootstrap: sync from coreutils
44911         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44912         just as autoreconf does.  Verify a list of prerequisite
44913         package-name,version-number pairs if defined in bootstrap.conf.
44914         Refer to README-prereq, if prerequisites are not satisfied.
44915
44916 2009-06-27  Eric Blake  <ebb9@byu.net>
44917
44918         tests: add test for bogus NULL definition
44919         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44920         * tests/test-stdlib.c: Likewise.
44921         * tests/test-string.c: Likewise.
44922         * tests/test-locale.c: Likewise.
44923         * tests/test-unistd.c: Likewise.
44924         * modules/stdio-tests (Depends-on): Add verify.
44925         * modules/stdlib-tests (Depends-on): Likewise.
44926         * modules/string-tests (Depends-on): Likewise.
44927         * modules/locale-tests (Depends-on): Likewise.
44928         * modules/unistd-tests (Depends-on): Likewise.
44929
44930 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44931
44932         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44933         self-explaining comment.
44934         * m4/selinux-selinux-h: Update serial.
44935         (gl_LIBSELINUX): New macro, adding a warning for missing development
44936         packages to code extracted from...
44937         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44938         Add warning for missing development packages here, too.
44939
44940 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44941
44942         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44943
44944 2009-06-25  Eric Blake  <ebb9@byu.net>
44945
44946         version-etc: fix regression
44947         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44948         gcc.
44949         (version_etc): Use it, to catch bugs with trailing NULL.
44950         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44951         (version_etc_va): Fix logic bug.
44952         * modules/version-etc-tests: Add test.
44953         * tests/test-version-etc.c: New file.
44954         * tests/test-version-etc.sh: Likewise.
44955
44956 2009-06-25  Sam Steingold  <sds@gnu.org>
44957
44958         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44959         mbtowc declaration.
44960
44961 2009-06-25  Eric Blake  <ebb9@byu.net>
44962
44963         fpurge: migrate into <stdio.h>
44964         * lib/fpurge.h: Delete...
44965         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44966         * lib/fpurge.c (fpurge): Change declaring header.
44967         * modules/fpurge (Files): Drop deleted file.
44968         (Depends-on): Add stdio.
44969         (configure.ac): Set witness.
44970         * modules/stdio (Makefile.am): Support fpurge macros.
44971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44972         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44973         * lib/fflush.c: Update client.
44974         * tests/test-fpurge.c: Likewise.
44975         * NEWS: Mention the change.
44976
44977 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44978
44979         * lib/argp-version-etc.c (program_authors): Add const
44980         qualifier.
44981         * lib/version-etc.c: Fix typos in the comments.
44982         * modules/argp-version-etc: Depends on version-etc.
44983
44984 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44985
44986         argp-version-etc: new module.
44987
44988         * lib/argp-version-etc.c: New file.
44989         * lib/argp-version-etc.h: New file.
44990         * modules/argp-version-etc: New file.
44991         * modules/argp-version-etc-tests: New file.
44992         * tests/test-argp-version-etc.c: New test.
44993         * tests/test-argp-version-etc-1.sh: New test.
44994
44995 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44996
44997         Provide additional interfaces and documentation for version-etc
44998         module.
44999
45000         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45001         interfaces.
45002         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45003         prototypes.
45004
45005 2009-06-24  Bruno Haible  <bruno@clisp.org>
45006
45007         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45008         HAVE_LIB${NAME} macro.
45009         Reported by Sam Steingold <sds@gnu.org>.
45010
45011 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45012
45013         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45014         needed.
45015
45016 2009-06-21  Bruno Haible  <bruno@clisp.org>
45017
45018         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45019         work.
45020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45021         together with LIB${NAME}, LTLIB${NAME}.
45022         Reported by Sam Steingold <sds@gnu.org>.
45023
45024 2009-06-20  Jim Meyering  <meyering@redhat.com>
45025
45026         tests: make sc_require_test_exit_idiom more generic
45027         * top/maint.mk (Exit_witness_file): New overridable variable.
45028         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45029         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45030
45031 2009-06-19  Jim Meyering  <meyering@redhat.com>
45032
45033         hash: reverse order of src/dst parameters in an internal interface
45034         * lib/hash.c (transfer_entries): Reverse order of parameters to
45035         put DST before SRC.  Adjust callers.
45036
45037         tests: test-hash: avoid wholesale duplication
45038         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45039         Instead, use a loop and add a single conditional.
45040
45041         tests: test-hash: allow seed selection via a command line argument
45042         * tests/test-hash.c (get_seed): New function.
45043         (main): Use it.
45044
45045 2009-06-19  Eric Blake  <ebb9@byu.net>
45046
45047         hash: avoid memory leak on allocation failure
45048         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45049         failure.  Factor repeated algorithm...
45050         (transfer_entries): ...into new helper routine.
45051         (hash_delete): React to hash_rehash return value.
45052
45053         hash: reduce memory pressure in hash_rehash no-op case
45054         * lib/hash.c (next_prime): Avoid overflow.
45055         (hash_initialize): Factor bucket size computation...
45056         (compute_bucket_size): ...into new helper function.
45057         (hash_rehash): Use new function and open coding to reduce memory
45058         pressure, and avoid a memory leak in USE_OBSTACK code.
45059         Reported by Jim Meyering.
45060
45061 2009-06-18  Eric Blake  <ebb9@byu.net>
45062
45063         hash: make rotation more obvious
45064         * modules/hash (Depends-on): Add bitrotate and stdint.
45065         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45066         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45067         (SIZE_MAX): Rely on headers for definition.
45068         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45069         (raw_hasher): Use rotr_sz.
45070         Suggested by Jim Meyering.
45071
45072         hash: fix memory leak in last patch
45073         * lib/hash.c (hash_rehash): Avoid memory leak.
45074
45075         hash: avoid no-op rehashing
45076         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45077
45078         hash: provide default callback functions
45079         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45080         (hash_initialize): Use them as defaults.
45081         * tests/test-hash.c (main): Test this.
45082
45083         hash: minor optimization
45084         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45085         when possible.
45086         (hash_initialize): Document this promise.
45087         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45088         * tests/test-hash.c (hash_compare_strings): Test this.
45089
45090 2009-06-18  Bruno Haible  <bruno@clisp.org>
45091
45092         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45093         going to be replaced anyway.
45094
45095 2009-06-18  Bruno Haible  <bruno@clisp.org>
45096
45097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45098         in one place.
45099         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45100         be replaced anyway.
45101
45102 2009-06-18  Eric Blake  <ebb9@byu.net>
45103
45104         hash: check for resize before insertion
45105         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45106         threshold before insertion, so that a pathological hash_rehash
45107         that fills every bucket can still trigger another rehash.
45108
45109 2009-06-18  Jim Meyering  <meyering@redhat.com>
45110
45111         hash-tests: add a loop around the small tests
45112         * tests/test-hash.c (main): Repeat small tests with selected
45113         small initial table sizes.
45114
45115 2009-06-17  Eric Blake  <ebb9@byu.net>
45116
45117         hash: minor cleanups
45118         * lib/hash.h (hash_entry): Make opaque, by moving...
45119         * lib/hash.c (hash_entry): ...here.
45120         (hash_insert): Clarify restrictions on what can be inserted.
45121         (hash_get_next): Clarify when it is safe to remove an element
45122         during traversal.
45123         (check_tuning): Skip verification when tuning is known safe.
45124         (hash_initialize): Clarify restrictions on tuning.
45125
45126 2009-06-17  Jim Meyering  <jim@meyering.net>
45127         and Eric Blake  <ebb9@byu.net>
45128
45129         hash-tests: new module
45130         * modules/hash-tests: New file.
45131         * tests/test-hash.c: New file.
45132
45133 2009-06-17  Eric Blake  <ebb9@byu.net>
45134
45135         strstr-simple: document new module
45136         * MODULES.html.sh: Document new module.
45137
45138         strstr, strcasestr: replace on platforms with broken memchr
45139         * modules/strstr: Split into...
45140         * modules/strstr-simple: ...new module that does not care about
45141         performance, but does care about glibc bug.
45142         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45143         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45144         if platform memchr is broken, per Debian bug 521737.
45145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45146         memchr.
45147         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45148         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45149         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45150         * modules/mountlist (Depends-on): Add strstr-simple.
45151         * modules/gen-uni-tables (Depends-on): Likewise.
45152         * modules/argz (Depends-on): Add strstr.
45153
45154 2009-06-17  Bruno Haible  <bruno@clisp.org>
45155
45156         * modules/posix_spawn-internal (Depends-on): Add errno.
45157
45158 2009-06-17  Bruno Haible  <bruno@clisp.org>
45159
45160         Define missing ESTALE on Interix 3.5.
45161         * lib/errno.in.h (ESTALE): Assign a value if missing.
45162         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45163         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45164         missing.
45165         * doc/posix-headers/errno.texi: Mention the Interix bug.
45166         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45167
45168 2009-06-15  Eric Blake  <ebb9@byu.net>
45169
45170         memchr, memchr2: add valgrind exception
45171         * lib/memchr.valgrind: New file.
45172         * lib/memchr2.valgrind: New file.
45173         * modules/memchr (Files): Distribute valgrind file.
45174         * modules/memchr2 (Files): Likewise.
45175
45176         docs: memchr is no longer obsolete
45177         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45178         * lib/string.in.h (memchr): Simplify logic.
45179
45180 2009-06-14  Jim Meyering  <meyering@redhat.com>
45181
45182         link-follow: fix the "checking..." message to not mention trailing slash
45183         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45184         never considered trailing slashes.
45185
45186 2009-06-14  Bruno Haible  <bruno@clisp.org>
45187
45188         * m4/memchr.m4: Mention also the bug on IA-64.
45189         * doc/posix-functions/memchr.texi: Likewise.
45190
45191 2009-06-12  Eric Blake  <ebb9@byu.net>
45192
45193         memchr: detect broken x86_64 and alpha implementations
45194         * modules/memchr-tests (Depends-on): Move mmap detection...
45195         * modules/memchr (Depends-on): ...here.
45196         (configure.ac): Set indicator.
45197         * lib/string.in.h (memchr): Declare replacement.
45198         * modules/string (Makefile.am): Trigger replacement.
45199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45200         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45201         bugs.
45202         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45203         * modules/getpagesize (License): Relax license.
45204
45205 2009-06-11  Bruno Haible  <bruno@clisp.org>
45206
45207         * lib/idpriv.h: Add more references.
45208
45209 2009-06-08  Bruno Haible  <bruno@clisp.org>
45210
45211         Tests for module 'idpriv-droptemp'.
45212         * modules/idpriv-droptemp-tests: New file.
45213         * tests/test-idpriv-droptemp.sh: New file.
45214         * tests/test-idpriv-droptemp.su.sh: New file.
45215         * tests/test-idpriv-droptemp.c: New file.
45216
45217         New module 'idpriv-droptemp'.
45218         * lib/idpriv-droptemp.c: New file.
45219         * modules/idpriv-droptemp: New file.
45220
45221 2009-06-08  Bruno Haible  <bruno@clisp.org>
45222
45223         Tests for module 'idpriv-drop'.
45224         * modules/idpriv-drop-tests: New file.
45225         * tests/test-idpriv-drop.sh: New file.
45226         * tests/test-idpriv-drop.su.sh: New file.
45227         * tests/test-idpriv-drop.c: New file.
45228
45229         New module 'idpriv-drop'.
45230         * lib/idpriv.h: New file.
45231         * lib-idpriv-drop.c: New file.
45232         * m4/idpriv.m4: New file.
45233         * modules/idpriv-drop: New file.
45234
45235 2009-06-08  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45238         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45239         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45240         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45241         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45242         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45243         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45244
45245 2009-06-08  Eric Blake  <ebb9@byu.net>
45246
45247         test-strstr: use memory fence, when possible
45248         * tests/test-strstr.c (main): Use memory fence, in order to be
45249         more likely to trigger Debian bug 521737.
45250         * modules/strstr-tests (Files): Pull in additional files.
45251
45252         memchr: no longer obsolete, for wider field testing
45253         * modules/memchr (Status, Notice): Delete, this module is no
45254         longer obsolete.
45255         * modules/vasnprintf (Depends-on): Add memchr.
45256
45257 2009-06-07  Jim Meyering  <meyering@redhat.com>
45258
45259         hash: declare some functions with the warn_unused_result attribute
45260         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45261
45262 2009-06-07  Bruno Haible  <bruno@clisp.org>
45263
45264         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45265         Reported by Eric Blake.
45266
45267 2009-06-06  Eric Blake  <ebb9@byu.net>
45268
45269         test-alignof: fix typo with long double
45270         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45271         compiler error.
45272
45273 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45274
45275         Escape non-texinfo { and }s.
45276         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45277         markup error.
45278
45279 2009-06-04  Jim Meyering  <meyering@redhat.com>
45280
45281         gitlog-to-changelog: don't infloop on an empty commit log
45282         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45283         Reported by Boris Petersen <transacid@centerim.org>.
45284
45285 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45286
45287         version-etc: extend for packagers
45288         Add three new configure options, intended for packagers:
45289           --with-packager="packager name"
45290           --with-packager-version="packager-specific version"
45291           --with-packager-bug-reports="packager bug reporting"
45292         An example with coreutils:
45293           $ ./configure \
45294             --with-packager=Gentoo \
45295             --with-packager-bug-report=http://bugs.gentoo.org/ \
45296             --with-packager-version="patchset 1.6"
45297           $ ./src/ls --version | head -n2
45298           ls (GNU coreutils) 7.1-dirty
45299           Packaged by Gentoo (patchset 1.6)
45300         Note that the bug reporting info via --help doesn't show up because
45301         coreutils uses its own custom emit_bug_reporting_address() implementation
45302         in src/system.h.  If it didn't, it'd look like:
45303           $ ./src/ls --help | tail -n4
45304           Report bugs to <bug-coreutils@gnu.org>.
45305           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45306           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45307           General help using GNU software: <http://www.gnu.org/gethelp/>.
45308         * lib/version-etc.c: Print new information, if provided.
45309         * m4/version-etc.m4: New file.
45310         * modules/version-etc (Files): Add m4/version-etc.m4.
45311         (configure.ac): Add gl_VERSION_ETC.
45312
45313 2009-05-31  Bruno Haible  <bruno@clisp.org>
45314
45315         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45316         and 'int64_t'.
45317         * modules/alignof-tests (Dependencies): Add stdint.
45318         Reported by Eric Blake.
45319
45320 2009-05-31  Bruno Haible  <bruno@clisp.org>
45321
45322         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45323         restriction due to compiler bugs.
45324         Reported by Eric Blake.
45325
45326 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45327             Bruno Haible  <bruno@clisp.org>
45328
45329         Fix test-alignof failure.
45330         * lib/alignof.h (alignof_slot): New macro.
45331         (alignof_type): New macro, with the same semantics as the previous
45332         'alignof'.
45333         (alignof): Alias to alignof_slot.
45334         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45335         check that the results are usable as constant expressions.
45336
45337 2009-05-31  Bruno Haible  <bruno@clisp.org>
45338
45339         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45340         * tests/test-memchr.c (main): Check that memchr does not read past the
45341         first occurrence of the byte.
45342         * tests/test-strstr.c (main): Update comment.
45343         Suggested by Eric Blake.
45344
45345 2009-05-30  Bruno Haible  <bruno@clisp.org>
45346
45347         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45348         detail how to use dumpbin.
45349         Reported by David Byron <dbyron@dbyron.com>.
45350
45351 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45352
45353         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45354
45355 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45356
45357         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45358
45359 2009-05-28  Bruno Haible  <bruno@clisp.org>
45360
45361         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45362         build-aux/ files.
45363
45364 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45365
45366         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45367
45368 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45369
45370         * gnulib-tool (sed_transform_main_lib_file)
45371         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45372         regexps.
45373
45374 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45375
45376         * tests/test-strstr.c: Add another self-test.
45377         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45378         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45379
45380 2009-05-23  Bruno Haible  <bruno@clisp.org>
45381
45382         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45383         change.
45384
45385 2009-05-21  Bruno Haible  <bruno@clisp.org>
45386
45387         Simplify use of mode_t varargs.
45388         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45389         uses 'mode_t' or 'int'.
45390         * lib/openat.c (openat): Likewise.
45391         * lib/open-safer.c (open_safer): Likewise.
45392         * m4/mode_t.m4: New file.
45393         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45394         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45395         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45396         * modules/open (Files): Add m4/mode_t.m4.
45397         * modules/openat (Files): Likewise.
45398         * modules/fcntl-safer (Files): Likewise.
45399         Suggested by Eric Blake.
45400
45401 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45402
45403         * doc/glibc-functions/fallocate.texi: New file.
45404         * doc/gnulib.texi: Include it.
45405
45406 2009-05-21  Eric Blake  <ebb9@byu.net>
45407             Bruno Haible  <bruno@clisp.org>
45408
45409         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45410         invocations.
45411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45412
45413 2009-05-21  Eric Blake  <ebb9@byu.net>
45414             Bruno Haible  <bruno@clisp.org>
45415
45416         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45417         include_next. Fix of 2008-11-20 commit.
45418         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45419         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45420         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45421         NEXT_MATH_H.
45422         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45423         instead of NEXT_MATH_H.
45424
45425 2009-05-21  Bruno Haible  <bruno@clisp.org>
45426
45427         Avoid redefinition warnings for SIZE_MAX.
45428         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45429         Reported by Simon Josefsson.
45430
45431 2009-05-21  Bruno Haible  <bruno@clisp.org>
45432
45433         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45434         AC_CACHE_VAL.
45435
45436 2009-05-20  Bruno Haible  <bruno@clisp.org>
45437
45438         Make zeroptr.h work on mingw.
45439         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45440         mprotect.
45441         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45442         * modules/memchr2-tests (configure.ac): Likewise.
45443         * modules/memcmp-tests (configure.ac): Likewise.
45444         * modules/memmem-tests (configure.ac): Likewise.
45445         * modules/memrchr-tests (configure.ac): Likewise.
45446         Reported by Simon Josefsson.
45447
45448 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45449
45450         * tests/test-glob.c: Include string.h for strcmp prototype.
45451
45452 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45453
45454         * modules/getdelim (Depends-on): Add explicit stdint, although it
45455         was implicitly already pulled in via realloc-posix.
45456         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45457
45458 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45459
45460         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45461         G. Christensen" <tgc@jupiterrise.com>.
45462         * m4/sys_socket_h.m4: Check for sa_family_t.
45463         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45464         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45465         * tests/test-sys_socket.c: Check that sa_family_t works.
45466
45467 2009-05-18  Eric Blake  <ebb9@byu.net>
45468
45469         maint.mk: allow gnulib_dir in VPATH build
45470         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45471
45472 2009-05-15  Jim Meyering  <meyering@redhat.com>
45473
45474         maint.mk: Give gnulib_dir a default definition.
45475         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45476         Thus, most packages no longer need to specify this variable in cfg.mk
45477
45478 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45479
45480         rename.m4: fix typos that would make non-mingw cross-configure fail
45481         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45482
45483 2009-05-13  Eric Blake  <ebb9@byu.net>
45484
45485         mmap-anon: avoid out-of-order autoconf expansion
45486         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45487         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45488         * modules/memchr-tests (Depends-on): Add extensions.
45489         * modules/memchr2-tests (Depends-on): Add extensions.
45490         * modules/memcmp-tests (Depends-on): Add extensions.
45491         * modules/memmem-tests (Depends-on): Add extensions.
45492         * modules/memrchr-tests (Depends-on): Add extensions.
45493
45494 2009-05-13  Bruno Haible  <bruno@clisp.org>
45495
45496         Make some tests ISO C 99 compliant.
45497         * tests/zerosize-ptr.h: New file.
45498         * tests/test-memchr.c: Include zerosize-ptr.h.
45499         (main): Use a zero-size object pointer instead of NULL.
45500         * tests/test-memchr2.c: Include zerosize-ptr.h.
45501         (main): Use a zero-size object pointer instead of NULL.
45502         * tests/test-memcmp.c: Include zerosize-ptr.h.
45503         (main): Use a zero-size object pointer instead of NULL.
45504         * tests/test-memmem.c: Include zerosize-ptr.h.
45505         (main): Use a zero-size object pointer instead of NULL.
45506         * tests/test-memrchr.c: Include zerosize-ptr.h.
45507         (main): Use a zero-size object pointer instead of NULL.
45508         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45509         m4/mmap-anon.m4.
45510         (Depends-on): Add getpagesize.
45511         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45512         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45513         m4/mmap-anon.m4.
45514         (Depends-on): Add getpagesize.
45515         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45516         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45517         m4/mmap-anon.m4.
45518         (Depends-on): Add getpagesize.
45519         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45520         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45521         m4/mmap-anon.m4.
45522         (Depends-on): Add getpagesize.
45523         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45524         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45525         m4/mmap-anon.m4.
45526         (Depends-on): Add getpagesize.
45527         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45528
45529 2009-05-12  Bruno Haible  <bruno@clisp.org>
45530
45531         Tests for module 'alignof'.
45532         * modules/alignof-tests: New file.
45533         * tests/test-alignof.c: New file.
45534
45535 2009-05-12  Bruno Haible  <bruno@clisp.org>
45536
45537         Fix alignof macro.
45538         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45539         vendor compilers that are always correct.
45540
45541 2009-05-12  Bruno Haible  <bruno@clisp.org>
45542
45543         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45544         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45545         not whether its fully works.
45546
45547 2009-05-12  Bruno Haible  <bruno@clisp.org>
45548
45549         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45550
45551 2009-05-12  Jim Meyering  <meyering@redhat.com>
45552
45553         * top/maint.mk: Adjust backslash alignment.
45554
45555 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45556
45557         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45558
45559 2009-05-11  Eric Blake  <ebb9@byu.net>
45560
45561         argp: avoid undefined behavior
45562         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45563         macros.
45564
45565 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45566
45567         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45568         user.name to prevent git commit from complaining.
45569
45570 2009-05-10  Bruno Haible  <bruno@clisp.org>
45571
45572         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45573         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45574         it rewrites every file name only once.
45575         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45576
45577 2009-05-08  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45580         instead of 'max'.
45581
45582 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45583
45584         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45585         sockaddr_storage test.
45586
45587 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45588
45589         * modules/sys_socket (Makefile.am): Substitute
45590         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45591         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45592         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45593         * tests/test-sys_socket.c: Check sockaddr_storage.
45594
45595 2009-05-08  Bruno Haible  <bruno@clisp.org>
45596
45597         New module 'alignof'.
45598         * lib/alignof.h: New file.
45599         * modules/alignof: New file.
45600
45601 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45602             Bruno Haible  <bruno@clisp.org>
45603
45604         Fix test-file-has-acl on FreeBSD.
45605         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45606         mask is implicitly added.
45607         * tests/test-file-has-acl.c: Include <signal.h>.
45608         (main): Terminate the test after 5 seconds.
45609         * modules/acl-tests (configure.ac): Check for alarm function.
45610
45611 2009-05-04  Bruno Haible  <bruno@clisp.org>
45612
45613         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45614         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45615         * modules/errno (configure.ac): Drop AC_REQUIRE.
45616         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45617         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45618
45619 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45620
45621         * modules/glob-tests: New module.
45622         * tests/test-glob.c: Add.
45623
45624 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45625
45626         * modules/fnmatch-tests: New module.
45627         * tests/test-fnmatch.c: Add.
45628
45629 2009-05-04  Eric Blake  <ebb9@byu.net>
45630
45631         maint: make the new no-submodule-changes rule VPATH-safe
45632         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45633
45634 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45635             Bruno Haible  <bruno@clisp.org>
45636
45637         acl: Fix infinite loop on FreeBSD.
45638         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45639         of return value from acl_get_entry.
45640         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45641         Likewise.
45642
45643 2009-05-03  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/acl-internal.h (acl_entries): Clarify return value.
45646         * lib/acl_entries.c (acl_entries): Likewise.
45647
45648 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45649
45650         Bug fix in acl module.
45651         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45652
45653 2009-05-03  Bruno Haible  <bruno@clisp.org>
45654
45655         Create gperf-generated file in the source dir, not in the build dir.
45656         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45657         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45658         * modules/unicase/locale-language (unicase/locale-languages.h):
45659         Likewise.
45660         * modules/unicase/special-casing (unicase/special-casing-table.h):
45661         Likewise.
45662         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45663         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45664         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45665         Reported by Ralf Wildenhues.
45666
45667 2009-05-03  Bruno Haible  <bruno@clisp.org>
45668
45669         * modules/fnmatch (Description, configure.ac): Taken from
45670         fnmatch-posix.
45671         * modules/fnmatch-posix: Turn into a symbolic reference to the
45672         'fnmatch' module, and deprecate.
45673         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45674
45675 2009-05-03  Bruno Haible  <bruno@clisp.org>
45676
45677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45678         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45679         Reported by Ralf Wildenhues.
45680
45681 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45682
45683         * m4/fnmatch.m4: Fix fnmatch re-define.
45684
45685 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45686
45687         priv-set: new module and tests; adapt write-any-file
45688         * lib/priv-set.c: New file.
45689         * lib/priv-set.h: New file.
45690         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45691         * lib/write-any-file.c: Simplify by using priv-set module.
45692         * m4/priv-set.m4: New file.
45693         * modules/priv-set: New file.
45694         * modules/unlinkdir: Add dependency on priv-set module.
45695         * modules/write-any-file: Likewise.
45696
45697         Tests for module 'priv-set'.
45698         * modules/priv-set-tests: New file.
45699         * tests/test-priv-set.c: New file.
45700
45701 2009-05-03  Jim Meyering  <meyering@redhat.com>
45702             Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45705         use the converted UTF-8 variant of the name instead.
45706
45707 2009-05-03  Jim Meyering  <meyering@redhat.com>
45708
45709         tests: tighten some getdate tests
45710         * tests/test-getdate.c (main): Tighten tests: require equality,
45711         not just greater than.  Set TZ envvar to UTC0.
45712
45713 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45714
45715         getdate: correctly interpret "next monday" when run on a Monday
45716         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45717         that e.g., "next tues" (when run on a tuesday) results in a date
45718         that is one week in the future, and not today's date.
45719         I.e., add a week when the wday is the same as the current one.
45720         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45721         and earlier by Martin Bernreuther and Jan Minář.
45722         * tests/test-getdate.c (main): Check that "next DAY" is always in
45723         the future and that "last DAY" is always in the past.
45724
45725 2009-05-02  Jim Meyering  <meyering@redhat.com>
45726
45727         build: ensure that a release build fails when a submodule is unclean
45728         * top/maint.mk (no-submodule-changes): New rule.
45729         (alpha beta major): Depend on it.
45730
45731 2009-05-02  Bruno Haible  <bruno@clisp.org>
45732
45733         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45734         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45735         shell variable gl_fnmatch_required to detect which variant is
45736         requested.
45737         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45738         gl_FUNC_FNMATCH_POSIX.
45739         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45740         exclude fnmatch-posix.
45741
45742 2009-05-02  Bruno Haible  <bruno@clisp.org>
45743
45744         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45745         * modules/mbsrtowcs (License): Change to LGPLv2+.
45746         * modules/strnlen1 (License): Likewise.
45747         Reported by Simon Josefsson.
45748
45749 2009-05-02  Bruno Haible  <bruno@clisp.org>
45750
45751         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45752         "cross".
45753         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45754         gnulib-tool was called with option --source-base=lib.
45755
45756 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45757
45758         Use automake *-local hooks without commands, for extensibility.
45759         * modules/localcharset (Makefile.am): Rename install-exec-local
45760         rule to install-exec-localcharset, and make it a prerequisite of
45761         install-exec-local.  Likewise, rename the uninstall-local rule to
45762         uninstall-localcharset, and make it a prerequisite of the former.
45763
45764 2009-05-01  Bruno Haible  <bruno@clisp.org>
45765
45766         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45767         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45768         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45770         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45771         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45772         m4/locale-zh.m4, m4/codeset.m4.
45773
45774         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45775         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45776         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45777         m4/locale-zh.m4.
45778
45779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45780         REPLACE_WCRTOMB if mbstate_t must be replaced.
45781         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45782         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45783
45784 2009-05-01  Bruno Haible  <bruno@clisp.org>
45785
45786         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45787         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45788         dngettext, dcngettext, textdomain, bindtextdomain,
45789         bind_textdomain_codeset): Undefine before redefining.
45790
45791 2009-04-30  Bruno Haible  <bruno@clisp.org>
45792
45793         Fix bug introduced on 2009-04-25.
45794         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45795         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45796         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45797         is defined.
45798         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45799         is defined.
45800         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45801         is defined.
45802         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45803
45804 2009-04-28  Bruno Haible  <bruno@clisp.org>
45805
45806         Comment tweaks.
45807         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45808         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45809         * lib/unicase.h (u*_casexfrm): Likewise.
45810         Reported by Paolo Bonzini.
45811
45812 2009-04-28  Bruno Haible  <bruno@clisp.org>
45813
45814         Fix a compilation error.
45815         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45816         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45817         Reported by Jim Meyering.
45818
45819 2009-04-27  Bruno Haible  <bruno@clisp.org>
45820
45821         New module 'libunistring'.
45822         * modules/libunistring: New file.
45823         * m4/libunistring.m4: New file.
45824         * MODULES.html.sh (Unicode string functions): Add it.
45825
45826 2009-04-27  Eric Blake  <ebb9@byu.net>
45827
45828         maint.mk: allow package-specific header to provide <config.h>
45829         * top/maint.mk (sc_require_config_h): New variable.
45830         (sc_require_config_h, sc_require_config_h_first): Use it.
45831
45832 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45833
45834         * top/maint.mk (sc_avoid_if_before_free): Except
45835         useless-if-before-free script.
45836
45837 2009-04-27  Eric Blake  <ebb9@byu.net>
45838
45839         maintainer-makefile: depend on all required helper scripts
45840         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45841         useless-if-before-free.
45842         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45843         version, rather than assuming gnulib checkout is available.
45844         Reported by Simen Josefsson.
45845
45846 2009-04-26  Bruno Haible  <bruno@clisp.org>
45847
45848         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45849         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45850         "../" or "..".
45851
45852 2009-04-26  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45855         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45856         AC_LIB_HAVE_LINKFLAGS.
45857
45858 2009-04-26  Bruno Haible  <bruno@clisp.org>
45859
45860         Simplify calling convention of u*_conv_from_encoding.
45861         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45862         u32_conv_from_encoding): Expect a resultbuf argument and return the
45863         result directly as a pointer.
45864         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45865         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45866         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45867         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45868         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45869         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45870         Update.
45871         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45872         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45873         * lib/vasnprintf.c (VASNPRINTF): Update.
45874         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45875         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45876         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45877         * NEWS: Mention the change.
45878
45879 2009-04-26  Bruno Haible  <bruno@clisp.org>
45880
45881         Simplify calling convention of u*_conv_to_encoding.
45882         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45883         u32_conv_to_encoding): Expect a resultbuf argument and return the
45884         result directly as a pointer.
45885         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45886         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45887         freeing scaled_offsets if mem_iconveha failed.
45888         * lib/unicase/u-casexfrm.h (FUNC): Update.
45889         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45890         * lib/vasnprintf.c (VASNPRINTF): Update.
45891         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45892         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45893         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45894         * NEWS: Mention the change.
45895
45896 2009-04-26  Bruno Haible  <bruno@clisp.org>
45897
45898         Avoid test failures on AIX and OSF/1.
45899         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45900         malloc(0).
45901         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45902         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45903         Likewise.
45904         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45905         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45906         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45907         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45908         * doc/posix-functions/malloc.texi: Document the portability problem
45909         related to malloc(0).
45910
45911 2009-04-26  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45914         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45915         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45916
45917 2009-04-25  Bruno Haible  <bruno@clisp.org>
45918
45919         Avoid link error when creating a namespace clean library.
45920         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45921         as macro with arguments if already defined as an alias.
45922         * lib/signbitf.c (gl_signbitf): Don't undefine.
45923         * lib/signbitd.c (gl_signbitd): Don't undefine.
45924         * lib/signbitl.c (gl_signbitl): Don't undefine.
45925
45926 2009-04-25  Jim Meyering  <meyering@redhat.com>
45927
45928         vc-list-files: fix another quoting bug
45929         * build-aux/vc-list-files: Avoid sed backslash expansion
45930         of pathological directory names.
45931
45932 2009-04-25  Eric Blake  <ebb9@byu.net>
45933
45934         vc-list-files: fix shell quoting error
45935         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45936         timestamp.
45937
45938 2009-04-25  Jim Meyering  <meyering@redhat.com>
45939
45940         vc-list-files: restore lost functionality with subdir argument
45941         * build-aux/vc-list-files: When given a non-"." sub-directory
45942         argument, substitute the $dir/ prefix back onto each resulting name.
45943         Otherwise, coreutils' root_tests check would fail.
45944
45945 2009-04-24  Eric Blake  <ebb9@byu.net>
45946
45947         vc-list-files: ignore git symlinks
45948         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45949         than ls-files, to ignore git symlinks.
45950
45951         maint.mk: import improvements from m4
45952         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45953         (move_if_change): Delete unused macro.
45954         (news-date-check, vc-diff-check): Support VPATH builds.
45955         (announcement): Likewise.  Split --bootstrap-tools list...
45956         (boostrap-tools): ...into separate list, which can be overridden
45957         in cfg.mk.
45958         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45959         requiring dependency on useless-if-before-free module.
45960         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45961         Support VPATH builds.
45962
45963 2009-04-24  Jim Meyering  <meyering@redhat.com>
45964
45965         maint.mk: remove coreutils-specific rules and variables
45966         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45967         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45968         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45969
45970         maint.mk: remove obsolete rule
45971         * top/maint.mk (rel-check): Remove rule.
45972         (WGET, WGETFLAGS): Remove now-unused variables.
45973
45974 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45975
45976         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45977         consistency.
45978
45979         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45980         '$(PATH_SEPARATOR)' instead of ':'.
45981
45982 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45983
45984         * lib/getopt1.c (main): Use 'const' for static array.
45985
45986 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45987
45988         * top/maint.mk: Sync with coreutils.
45989         * NEWS: Explain incompatibilities.
45990
45991 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45992             Bruno Haible  <bruno@clisp.org>
45993
45994         Fix cross-compilation results.
45995         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45996         statement, as third argument of AC_TRY_RUN.
45997         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45998         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45999         Likewise.
46000         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46001         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46002         Likewise.
46003         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46004         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46005         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46006
46007 2009-04-20  Bruno Haible  <bruno@clisp.org>
46008
46009         Avoid test failure on mingw.
46010         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46011
46012 2009-04-20  Bruno Haible  <bruno@clisp.org>
46013
46014         Avoid compilation error on mingw.
46015         * modules/localename-tests (Depends-on): Add locale.
46016
46017 2009-04-19  Bruno Haible  <bruno@clisp.org>
46018
46019         Support for building a shared library on Windows platforms.
46020         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46021         (main): Test the presence of UNINORM_NFC here.
46022         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46023         (main): Test the presence of UNINORM_NFD here.
46024         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46025         (main): Test the presence of UNINORM_NFKC here.
46026         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46027         (main): Test the presence of UNINORM_NFKD here.
46028
46029 2009-04-19  Bruno Haible  <bruno@clisp.org>
46030
46031         Avoid a compiler warning.
46032         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46033         Change type of variable 'sequence'.
46034
46035 2009-04-19  Bruno Haible  <bruno@clisp.org>
46036
46037         * modules/configmake (Makefile.am): When the contents of configmake.h
46038         does not change, arrange to preserve its modification time.
46039
46040 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46041
46042         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46043         gettext domain.
46044
46045 2009-04-16  Jim Meyering  <meyering@redhat.com>
46046
46047         useless-if-before-free: improve conversion code
46048         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46049         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46050
46051 2009-04-14  Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/fcntl (Depends-on): Add extensions.
46054         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46055
46056 2009-04-12  Ben Pfaff  <blp@gnu.org>
46057
46058         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46059         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46060
46061 2009-03-20  Ben Pfaff  <blp@gnu.org>
46062
46063         Make rename replace existing destinations on Windows.
46064         * m4/rename.m4: Add test for Mingw.
46065         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46066         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46067         * doc/posix-functions/rename.texi: Document.
46068
46069 2009-04-10  Bruno Haible  <bruno@clisp.org>
46070
46071         New include file "iconveh.h".
46072         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46073         * lib/striconveh.h: Include it.
46074         (enum iconv_ilseq_handler): Remove definition.
46075         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46076         striconveh.h.
46077         * lib/striconveha.c: Include striconveh.h.
46078         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46079         * modules/striconveh (Files): Add lib/iconveh.h.
46080         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46081         lib/striconveh.h.
46082
46083 2009-04-10  Bruno Haible  <bruno@clisp.org>
46084
46085         * lib/uniconv.h: Update comment.
46086
46087 2009-04-10  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46090         always.
46091         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46092         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46093         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46094         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46095         "unistring-notinline.h", so that the function gets defined always.
46096         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46097         * lib/unistr/u8-uctomb.c: Likewise.
46098         * lib/unistr/u16-mbtouc.c: Likewise.
46099         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46100         * lib/unistr/u16-uctomb.c: Likewise.
46101         * lib/unistr/u32-mbtouc.c: Likewise.
46102         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46103         * lib/unistr/u32-uctomb.c: Likewise.
46104
46105 2009-04-10  Bruno Haible  <bruno@clisp.org>
46106
46107         Mark 'utime' obsolete.
46108         * modules/utime (Status, Notice): New sections.
46109         Suggested by Jim Meyering.
46110
46111         Fix cross-compile guess for utime test.
46112         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46113         autoconf.
46114         * doc/posix-functions/utime.texi: Give more precisions.
46115         Reported by Jan <ipif@ymail.com>.
46116
46117 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46118
46119         filevercmp: correct today's change
46120         * lib/filevercmp.c: Also handle coreutils' test inputs.
46121         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46122
46123         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46124         for reporting it.
46125         * lib/filevercmp.c: Special handle for "", "." and "..".
46126         * tests/test-filevercmp.c: Enlarge the set suite.
46127
46128 2009-04-07  Jim Meyering  <meyering@redhat.com>
46129
46130         useless-if-before-free: show how to remove braced useless free, too
46131         * build-aux/useless-if-before-free: still only in a comment, though.
46132
46133 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46134
46135         maint.mk: import changes to syntax-check macros from coreutils
46136         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46137         Use them in the relevant macros.
46138
46139 2009-04-06  Bruno Haible  <bruno@clisp.org>
46140
46141         Fix unportable use of bit-fields.
46142         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46143         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46144         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46145
46146 2009-04-06  Bruno Haible  <bruno@clisp.org>
46147
46148         Avoid test failures on AIX and OSF/1.
46149         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46150         that malloc(0) = NULL.
46151         * tests/unicase/test-u8-tolower.c (check): Likewise.
46152         * tests/unicase/test-u8-totitle.c (check): Likewise.
46153         * tests/unicase/test-u8-toupper.c (check): Likewise.
46154         * tests/unicase/test-u16-casefold.c (check): Likewise.
46155         * tests/unicase/test-u16-tolower.c (check): Likewise.
46156         * tests/unicase/test-u16-totitle.c (check): Likewise.
46157         * tests/unicase/test-u16-toupper.c (check): Likewise.
46158         * tests/unicase/test-u32-casefold.c (check): Likewise.
46159         * tests/unicase/test-u32-tolower.c (check): Likewise.
46160         * tests/unicase/test-u32-totitle.c (check): Likewise.
46161         * tests/unicase/test-u32-toupper.c (check): Likewise.
46162         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46163         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46164         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46165         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46166         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46167         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46168         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46169         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46170         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46171         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46172         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46173         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46174
46175 2009-04-05  Bruno Haible  <bruno@clisp.org>
46176
46177         Work around an autoconf limitation.
46178         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46179         comment line if it would be longer than 3 KB.
46180
46181 2009-04-05  Bruno Haible  <bruno@clisp.org>
46182
46183         Avoid test failure with libiconv-1.13.
46184         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46185         of the expected test results.
46186
46187 2009-04-05  Bruno Haible  <bruno@clisp.org>
46188
46189         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46190         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46191         that it should be installed.
46192
46193 2009-04-05  Bruno Haible  <bruno@clisp.org>
46194
46195         * gnulib-tool: New option --copy-file.
46196         (func_usage): Document it.
46197         (func_dest_tmpfilename): Moved out of func_import.
46198         (func_add_file, func_update_file): New functions, extracted from
46199         func_import.
46200         (func_import): Update.
46201
46202 2009-04-05  Karl Berry  <karl@gnu.org>
46203
46204         * README: prominently mention gnulib-tool.
46205         Rearrange sections so getting the code is near the top.
46206
46207 2009-04-05  Bruno Haible  <bruno@clisp.org>
46208
46209         * lib/unicase.h: Mention u*_cmp2.
46210         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46211         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46212         * lib/unicase/ulc-casecmp.c: Likewise.
46213         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46214         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46215         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46216         unistr/u8-cmp.
46217         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46218         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46219         unistr/u16-cmp.
46220         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46221         unistr/u32-cmp.
46222
46223         * lib/uninorm.h: Mention u*_cmp2.
46224         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46225         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46226         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46227         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46228         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46229         unistr/u8-cmp.
46230         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46231         unistr/u16-cmp.
46232         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46233         unistr/u32-cmp.
46234
46235         New module 'unistr/u32-cmp2'.
46236         * lib/unistr/u32-cmp2.c: New file.
46237         * modules/unistr/u32-cmp2: New file.
46238
46239         New module 'unistr/u16-cmp2'.
46240         * lib/unistr/u16-cmp2.c: New file.
46241         * modules/unistr/u16-cmp2: New file.
46242
46243         New module 'unistr/u8-cmp2'.
46244         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46245         * lib/unistr/u8-cmp2.c: New file.
46246         * lib/unistr/u-cmp2.h: New file.
46247         * modules/unistr/u8-cmp2: New file.
46248
46249 2009-04-05  Bruno Haible  <bruno@clisp.org>
46250
46251         * lib/unictype.h (uc_property_is_valid): New macro.
46252         * tests/unictype/test-pr_byname.c (main): Use it.
46253
46254         * lib/unistr.h: Doc fixes.
46255         * lib/uniconv.h: Doc fixes.
46256         * lib/unictype.h: Doc fixes.
46257
46258 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46259
46260         Port coreutils 7.2 to Solaris 8.
46261
46262         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46263         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46264         for Solaris 8.  This is a bit of a hack, as it means it's the
46265         caller's responsibility to add -lnsl if needed, but most likely it
46266         won't be needed since only getaddrinfo uses this and getaddrinfo
46267         isn't needed on Solaris 8.
46268
46269         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46270         problem to Solaris 8 encountered with coreutils 7.2, which
46271         resulted in a message "fnmatch.c:292: warning: passing argument 4
46272         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46273         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46274
46275 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46276
46277         * m4/ld-version-script.m4: Add FIXME comment.
46278
46279 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46280
46281         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46282         SOVERSION variable.
46283
46284 2009-04-02  Bruno Haible  <bruno@clisp.org>
46285
46286         * Makefile (info, html, dvi, pdf): Combine the rules.
46287         Suggested by Jim Meyering.
46288
46289 2009-04-01  Bruno Haible  <bruno@clisp.org>
46290
46291         * Makefile (info, html, dvi, pdf): New targets.
46292         Reported by Reuben Thomas <rrt@sc3d.org>.
46293
46294 2009-04-01  Bruno Haible  <bruno@clisp.org>
46295
46296         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46297         can be put into PATH.
46298         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46299
46300 2009-04-01  Bruno Haible  <bruno@clisp.org>
46301
46302         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46303
46304 2009-04-01  Bruno Haible  <bruno@clisp.org>
46305
46306         Rename module 'visibility'.
46307         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46308         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46309         * doc/gnulib.texi: Update.
46310         * MODULES.html.sh (Misc): Update.
46311         * NEWS: Mention the change.
46312
46313 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46314
46315         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46316         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46317         Eric Blake <ebb9@byu.net> for review.
46318         * MODULES.html.sh: Add lib-msvc-compat.
46319         * doc/gnulib.texi: Link to new section.
46320         * m4/ld-output-def.m4: New file.
46321         * doc/ld-output-def.texi: New file.
46322
46323 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46324
46325         Rename ld-version-script to lib-symbol-versions.  Suggested by
46326         Bruno Haible <bruno@clisp.org>.
46327         * modules/ld-version-script: Renamed to lib-symbol-versions.
46328         * doc/ld-version-script.texi: Fix module name.
46329         * MODULES.html.sh: Add lib-symbol-versions.
46330
46331 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46332
46333         * modules/u64-tests: New file.
46334         * tests/test-u64.c: New file.
46335
46336 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46337
46338         * MODULES.html.sh: Mention u64.
46339         * modules/u64: New module.
46340         * modules/crypto/sha512: Depend on u64 module instead of providing
46341         u64.h.
46342
46343 2009-03-27  Eric Blake  <ebb9@byu.net>
46344
46345         test-strerror: make debugging EAI_SYSTEM easier
46346         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46347         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46348         failure was EAI_SYSTEM.
46349
46350 2009-03-25  Bruno Haible  <bruno@clisp.org>
46351
46352         Fix a problem with --enable-relocatable on Solaris 7.
46353         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46354         since 2008-02-24.
46355
46356 2009-03-25  Eric Blake  <ebb9@byu.net>
46357
46358         test-sockets: avoid gcc warning
46359         * tests/test-sockets.c (main): Silence compiler warning.
46360
46361 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46362
46363         New modules nproc, pthread, contributed by Glen Lenker.
46364
46365         * MODULES.html.sh: Add pthread, nproc.
46366         * lib/nproc.c: New file.
46367         * lib/nproc.h: New file.
46368         * lib/pthread.in.h: New file.
46369         * m4/pthread.m4: New file.
46370         * modules/nproc: New file.
46371         * modules/pthread: New file.
46372
46373 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46374
46375         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46376         New variable.
46377
46378 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46379
46380         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46381         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46382         * tests/test-filevercmp.c: Add tests for backup suffixes.
46383
46384 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46385
46386         * modules/stdlib (Depends-on): Add stdint, needed when defining
46387         struct random_data on, for example, HP-UX 10.20.  Reported by
46388         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46389
46390 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46391
46392         * lib/readline.c (readline): Call fflush on stdout after printing
46393         prompt.
46394
46395 2009-03-20  Bruno Haible  <bruno@clisp.org>
46396
46397         Remove dependency from 'close' module to -lws2_32 on native Windows.
46398         * lib/close-hook.h: New file.
46399         * lib/close-hook.c: New file.
46400         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46401         w32sock.h.
46402         (_gl_close_fd_maybe_socket): Remove function.
46403         (rpl_close): Invoke execute_all_close_hooks instead of
46404         _gl_close_fd_maybe_socket.
46405         * lib/sockets.c: Include close-hook.h, w32sock.h.
46406         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46407         (close_sockets_hook): New variable.
46408         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46409         (gl_sockets_cleanup): Unregister it.
46410         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46411         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46412         * modules/close-hook: New file.
46413         * modules/close (Files): Remove lib/w32sock.h.
46414         (Depends-on): Add close-hook.
46415         (Link): Remove section.
46416         * modules/sockets (Files): Add lib/w32sock.h.
46417         (Depends-on): Add close-hook.
46418         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46419         invocation.
46420         * NEWS: Mention that LIB_CLOSE is gone.
46421
46422 2009-03-23  Eric Blake  <ebb9@byu.net>
46423
46424         signal-tests: test previous patch
46425         * tests/test-signal.c: New file.
46426         * modules/signal-tests: Likewise.
46427
46428         signal.h: always support 'volatile sig_atomic_t'
46429         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46430         (gl_SIGNAL_H_DEFAULTS): Add a default.
46431         * modules/signal (Makefile.am): Substitute if needed.
46432         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46433         users can blindly add volatile.
46434         * doc/posix-headers/signal.texi (signal.h): Document it.
46435         Reported by Matthew Woehlke.
46436
46437 2009-03-23  Jim Meyering  <meyering@redhat.com>
46438
46439         pathmax: PATH_MAX: use pathconf only when available
46440         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46441         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46442         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46443         This avoids a link failure in a PSP cross-compilation environment
46444         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46445
46446         * lib/vasnprintf.c (divide): Fix typo in comment.
46447
46448 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46449
46450         * gnulib-tool (func_filter_filelist): Fix comment.
46451
46452 2009-03-20  Bruno Haible  <bruno@clisp.org>
46453
46454         Make sockets.h self-contained.
46455         * lib/sockets.c: Include sockets.h first.
46456         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46457
46458 2009-03-19  Eric Blake  <ebb9@byu.net>
46459
46460         doc: mention more functions added in cygwin 1.7.0
46461         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46462         addition.
46463         * doc/posix-functions/log2f.texi: Likewise.
46464
46465 2009-03-19  Jim Meyering  <meyering@redhat.com>
46466
46467         fsusage: avoid syntax error due to statement-before-declaration
46468         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46469         after all declarations.  Reported by Matthew Woehlke in
46470         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46471
46472 2009-03-18  Eric Blake  <ebb9@byu.net>
46473
46474         build-aux/compile: sync from automake
46475         * build-aux/compile: New file, from automake.
46476         * config/srclist.txt: Mention build-aux/compile.
46477
46478 2009-03-17  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/git-merge-changelog.c: Fix typo in comment.
46481         Reported by Reuben Thomas <rrt@sc3d.org>.
46482
46483 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46484
46485         * m4/regex.m4: update and improve help for
46486         --without-included-regex.
46487
46488 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46489
46490         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46491         failure on missing include files.
46492
46493 2009-03-17  Eric Blake  <ebb9@byu.net>
46494
46495         doc: mention more functions added in cygwin 1.7.0
46496         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46497         addition.
46498         * doc/posix-functions/fwscanf.texi: Likewise.
46499         * doc/posix-functions/swprintf.texi: Likewise.
46500         * doc/posix-functions/swscanf.texi: Likewise.
46501         * doc/posix-functions/vfwprintf.texi: Likewise.
46502         * doc/posix-functions/vfwscanf.texi: Likewise.
46503         * doc/posix-functions/vswprintf.texi: Likewise.
46504         * doc/posix-functions/vswscanf.texi: Likewise.
46505         * doc/posix-functions/vwprintf.texi: Likewise.
46506         * doc/posix-functions/vwscanf.texi: Likewise.
46507         * doc/posix-functions/wcscasecmp.texi: Likewise.
46508         * doc/posix-functions/wcsdup.texi: Likewise.
46509         * doc/posix-functions/wcsftime.texi: Likewise.
46510         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46511         * doc/posix-functions/wprintf.texi: Likewise.
46512         * doc/posix-functions/wscanf.texi: Likewise.
46513         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46514
46515 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46516
46517         maint.mk: really add $(AM_MAKEFLAGS)
46518         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46519         was inadvertently omitted in the last commit.
46520         Spotted by Bruno Haible.
46521
46522         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46523         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46524         $(AM_MAKEFLAGS)' rather than plain `make'.
46525
46526         gnulib-tool: execute $MAKE not make
46527         * gnulib-tool: Default $MAKE to 'make'.
46528         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46529         than make.  Initialize $MAKE in the do-autobuild script.
46530
46531         gnulib-tool: use $MAKE not make in generated files
46532         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46533         make, in generated files.  Initialize $MAKE in the do-autobuild
46534         script.
46535
46536         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46537
46538         GNUmakefile: disable parallelism only for multiple, recursive targets
46539         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46540         additions in the Makefile.
46541         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46542         by Automake.
46543         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46544         are listed on the command line and at least one of them is
46545         listed in $(ALL_RECURSIVE_TARGETS).
46546
46547 2009-03-14  Bruno Haible  <bruno@clisp.org>
46548
46549         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46550         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46551         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46552         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46553         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46554         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46555         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46556         unistr/u8-uctomb.
46557         * modules/unistr/u8-strchr (Depends-on): Likewise.
46558         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46559         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46560         unistr/u16-uctomb.
46561         * modules/unistr/u16-strchr (Depends-on): Likewise.
46562         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46563
46564 2009-03-12  Bruno Haible  <bruno@clisp.org>
46565
46566         Work around select() bug on Interix 3.5.
46567         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46568         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46569         * m4/select.m4: New file.
46570         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46571         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46572         * modules/select (Files): Add m4/select.m4.
46573         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46574         * modules/nanosleep (Depends-on): Add select.
46575         * modules/poll (Depends-on): Likewise.
46576         * doc/posix-functions/select.texi: Mention the Interix bug.
46577         Reported by Markus Duft <mduft@gentoo.org>.
46578
46579         * lib/select.c: Renamed from lib/winsock-select.c.
46580         * modules/select (Files): Add lib/select.c, remove
46581         lib/winsock-select.c.
46582         (configure.ac): Update.
46583
46584 2009-03-12  Jim Meyering  <meyering@redhat.com>
46585
46586         avoid gcc warnings about unused macro definitions
46587         * lib/readtokens.c (STREQ): Remove unused definition.
46588         * lib/xmalloc.c (SIZE_MAX): Likewise.
46589         * lib/openat-die.c (N_): Likewise.
46590         * lib/mountlist.c (SIZE_MAX): Remove definition.
46591         Instead, include <stdint.h>.
46592         * lib/readutmp.c: Likewise.
46593         * modules/readutmp (Depends-on): Add stdint.
46594         * modules/mountlist (Depends-on): Add stdint.
46595         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46596
46597 2009-03-10  Bruno Haible  <bruno@clisp.org>
46598
46599         Tests for module 'mbmemcasecoll'.
46600         * modules/mbmemcasecoll-tests: New file.
46601         * tests/test-mbmemcasecoll1.sh: New file.
46602         * tests/test-mbmemcasecoll2.sh: New file.
46603         * tests/test-mbmemcasecoll3.sh: New file.
46604         * tests/test-mbmemcasecoll.c: New file.
46605
46606         New module 'mbmemcasecoll'.
46607         * lib/mbmemcasecoll.h: New file.
46608         * lib/mbmemcasecoll.c: New file.
46609         * modules/mbmemcasecoll: New file.
46610
46611         * tests/test-mbmemcasecmp.h: New file, extracted from
46612         tests/test-mbmemcasecmp.c.
46613         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46614         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46615         (main): Update.
46616         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46617
46618 2009-03-09  Bruno Haible  <bruno@clisp.org>
46619
46620         Tests for module 'mbmemcasecmp'.
46621         * modules/mbmemcasecmp-tests: New file.
46622         * tests/test-mbmemcasecmp1.sh: New file.
46623         * tests/test-mbmemcasecmp2.sh: New file.
46624         * tests/test-mbmemcasecmp3.sh: New file.
46625         * tests/test-mbmemcasecmp.c: New file.
46626
46627         New module 'mbmemcasecmp'.
46628         * lib/mbmemcasecmp.h: New file.
46629         * lib/mbmemcasecmp.c: New file.
46630         * modules/mbmemcasecmp: New file.
46631
46632 2009-03-09  Bruno Haible  <bruno@clisp.org>
46633
46634         Tests for module 'unicase/ulc-casecoll'.
46635         * modules/unicase/ulc-casecoll-tests: New file.
46636         * tests/unicase/test-ulc-casecoll1.sh: New file.
46637         * tests/unicase/test-ulc-casecoll2.sh: New file.
46638         * tests/unicase/test-ulc-casecoll.c: New file.
46639
46640         New module 'unicase/ulc-casecoll'.
46641         * lib/unicase.h (ulc_casecoll): New declaration.
46642         * lib/unicase/ulc-casecoll.c: New file.
46643         * modules/unicase/ulc-casecoll: New file.
46644
46645         New module 'unicase/ulc-casexfrm'.
46646         * lib/unicase.h (ulc_casexfrm): New declaration.
46647         * lib/unicase/ulc-casexfrm.c: New file.
46648         * modules/unicase/ulc-casexfrm: New file.
46649
46650 2009-03-09  Bruno Haible  <bruno@clisp.org>
46651
46652         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46653         invocations.
46654
46655         * m4/mbscasecmp.m4: Remove file.
46656         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46657         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46658
46659         * m4/mbscasestr.m4: Remove file.
46660         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46661         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46662
46663         * m4/mbschr.m4: Remove file.
46664         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46665         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46666
46667         * m4/mbscspn.m4: Remove file.
46668         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46669         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46670
46671         * m4/mbslen.m4: Remove file.
46672         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46673         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46674
46675         * m4/mbsncasecmp.m4: Remove file.
46676         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46677         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46678
46679         * m4/mbsnlen.m4: Remove file.
46680         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46681         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46682
46683         * m4/mbspbrk.m4: Remove file.
46684         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46685         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46686
46687         * m4/mbspcasecmp.m4: Remove file.
46688         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46689         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46690
46691         * m4/mbsrchr.m4: Remove file.
46692         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46693         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46694
46695         * m4/mbssep.m4: Remove file.
46696         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46697         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46698
46699         * m4/mbsspn.m4: Remove file.
46700         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46701         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46702
46703         * m4/mbsstr.m4: Remove file.
46704         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46705         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46706
46707         * m4/mbstok_r.m4: Remove file.
46708         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46709         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46710
46711         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46712
46713         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46714         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46715
46716         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46717
46718 2009-03-08  Bruno Haible  <bruno@clisp.org>
46719
46720         Tests for module 'unicase/ulc-casecmp'.
46721         * modules/unicase/ulc-casecmp-tests: New file.
46722         * tests/unicase/test-ulc-casecmp1.sh: New file.
46723         * tests/unicase/test-ulc-casecmp2.sh: New file.
46724         * tests/unicase/test-ulc-casecmp.c: New file.
46725
46726         New module 'unicase/ulc-casecmp'.
46727         * lib/unicase.h (ulc_casecmp): New declaration.
46728         * lib/unicase/ulc-casecmp.c: New file.
46729         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46730         'const SRC_UNIT *'.
46731         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46732         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46733         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46734         * modules/unicase/ulc-casecmp: New file.
46735
46736         Tests for module 'unicase/u32-is-cased'.
46737         * modules/unicase/u32-is-cased-tests: New file.
46738         * tests/unicase/test-u32-is-cased.c: New file.
46739
46740         Tests for module 'unicase/u16-is-cased'.
46741         * modules/unicase/u16-is-cased-tests: New file.
46742         * tests/unicase/test-u16-is-cased.c: New file.
46743
46744         Tests for module 'unicase/u8-is-cased'.
46745         * modules/unicase/u8-is-cased-tests: New file.
46746         * tests/unicase/test-u8-is-cased.c: New file.
46747         * tests/unicase/test-is-cased.h: New file.
46748
46749         New module 'unicase/u32-is-cased'.
46750         * lib/unicase/u32-is-cased.c: New file.
46751         * modules/unicase/u32-is-cased: New file.
46752
46753         New module 'unicase/u16-is-cased'.
46754         * lib/unicase/u16-is-cased.c: New file.
46755         * modules/unicase/u16-is-cased: New file.
46756
46757         New module 'unicase/u8-is-cased'.
46758         * lib/unicase/u8-is-cased.c: New file.
46759         * lib/unicase/u-is-cased.h: New file.
46760         * modules/unicase/u8-is-cased: New file.
46761
46762         Tests for module 'unicase/u32-is-casefolded'.
46763         * modules/unicase/u32-is-casefolded-tests: New file.
46764         * tests/unicase/test-u32-is-casefolded.c: New file.
46765
46766         Tests for module 'unicase/u16-is-casefolded'.
46767         * modules/unicase/u16-is-casefolded-tests: New file.
46768         * tests/unicase/test-u16-is-casefolded.c: New file.
46769
46770         Tests for module 'unicase/u8-is-casefolded'.
46771         * modules/unicase/u8-is-casefolded-tests: New file.
46772         * tests/unicase/test-u8-is-casefolded.c: New file.
46773         * tests/unicase/test-is-casefolded.h: New file.
46774
46775         New module 'unicase/u32-is-casefolded'.
46776         * lib/unicase/u32-is-casefolded.c: New file.
46777         * modules/unicase/u32-is-casefolded: New file.
46778
46779         New module 'unicase/u16-is-casefolded'.
46780         * lib/unicase/u16-is-casefolded.c: New file.
46781         * modules/unicase/u16-is-casefolded: New file.
46782
46783         New module 'unicase/u8-is-casefolded'.
46784         * lib/unicase/u8-is-casefolded.c: New file.
46785         * modules/unicase/u8-is-casefolded: New file.
46786
46787         Tests for module 'unicase/u32-is-titlecase'.
46788         * modules/unicase/u32-is-titlecase-tests: New file.
46789         * tests/unicase/test-u32-is-titlecase.c: New file.
46790
46791         Tests for module 'unicase/u16-is-titlecase'.
46792         * modules/unicase/u16-is-titlecase-tests: New file.
46793         * tests/unicase/test-u16-is-titlecase.c: New file.
46794
46795         Tests for module 'unicase/u8-is-titlecase'.
46796         * modules/unicase/u8-is-titlecase-tests: New file.
46797         * tests/unicase/test-u8-is-titlecase.c: New file.
46798         * tests/unicase/test-is-titlecase.h: New file.
46799
46800         New module 'unicase/u32-is-titlecase'.
46801         * lib/unicase/u32-is-titlecase.c: New file.
46802         * modules/unicase/u32-is-titlecase: New file.
46803
46804         New module 'unicase/u16-is-titlecase'.
46805         * lib/unicase/u16-is-titlecase.c: New file.
46806         * modules/unicase/u16-is-titlecase: New file.
46807
46808         New module 'unicase/u8-is-titlecase'.
46809         * lib/unicase/u8-is-titlecase.c: New file.
46810         * modules/unicase/u8-is-titlecase: New file.
46811
46812         Tests for module 'unicase/u32-is-lowercase'.
46813         * modules/unicase/u32-is-lowercase-tests: New file.
46814         * tests/unicase/test-u32-is-lowercase.c: New file.
46815
46816         Tests for module 'unicase/u16-is-lowercase'.
46817         * modules/unicase/u16-is-lowercase-tests: New file.
46818         * tests/unicase/test-u16-is-lowercase.c: New file.
46819
46820         Tests for module 'unicase/u8-is-lowercase'.
46821         * modules/unicase/u8-is-lowercase-tests: New file.
46822         * tests/unicase/test-u8-is-lowercase.c: New file.
46823         * tests/unicase/test-is-lowercase.h: New file.
46824
46825         New module 'unicase/u32-is-lowercase'.
46826         * lib/unicase/u32-is-lowercase.c: New file.
46827         * modules/unicase/u32-is-lowercase: New file.
46828
46829         New module 'unicase/u16-is-lowercase'.
46830         * lib/unicase/u16-is-lowercase.c: New file.
46831         * modules/unicase/u16-is-lowercase: New file.
46832
46833         New module 'unicase/u8-is-lowercase'.
46834         * lib/unicase/u8-is-lowercase.c: New file.
46835         * modules/unicase/u8-is-lowercase: New file.
46836
46837         Tests for module 'unicase/u32-is-uppercase'.
46838         * modules/unicase/u32-is-uppercase-tests: New file.
46839         * tests/unicase/test-u32-is-uppercase.c: New file.
46840
46841         Tests for module 'unicase/u16-is-uppercase'.
46842         * modules/unicase/u16-is-uppercase-tests: New file.
46843         * tests/unicase/test-u16-is-uppercase.c: New file.
46844
46845         Tests for module 'unicase/u8-is-uppercase'.
46846         * modules/unicase/u8-is-uppercase-tests: New file.
46847         * tests/unicase/test-u8-is-uppercase.c: New file.
46848         * tests/unicase/test-is-uppercase.h: New file.
46849
46850         New module 'unicase/u32-is-uppercase'.
46851         * lib/unicase/u32-is-uppercase.c: New file.
46852         * modules/unicase/u32-is-uppercase: New file.
46853
46854         New module 'unicase/u16-is-uppercase'.
46855         * lib/unicase/u16-is-uppercase.c: New file.
46856         * modules/unicase/u16-is-uppercase: New file.
46857
46858         New module 'unicase/u8-is-uppercase'.
46859         * lib/unicase/u8-is-uppercase.c: New file.
46860         * modules/unicase/u8-is-uppercase: New file.
46861
46862         New module 'unicase/u32-is-invariant'.
46863         * lib/unicase/u32-is-invariant.c: New file.
46864         * modules/unicase/u32-is-invariant: New file.
46865
46866         New module 'unicase/u16-is-invariant'.
46867         * lib/unicase/u16-is-invariant.c: New file.
46868         * modules/unicase/u16-is-invariant: New file.
46869
46870         New module 'unicase/u8-is-invariant'.
46871         * lib/unicase/u8-is-invariant.c: New file.
46872         * lib/unicase/invariant.h: New file.
46873         * lib/unicase/u-is-invariant.h: New file.
46874         * modules/unicase/u8-is-invariant: New file.
46875
46876         Tests for module 'unicase/u32-casecoll'.
46877         * modules/unicase/u32-casecoll-tests: New file.
46878         * tests/unicase/test-u32-casecoll.c: New file.
46879
46880         Tests for module 'unicase/u16-casecoll'.
46881         * modules/unicase/u16-casecoll-tests: New file.
46882         * tests/unicase/test-u16-casecoll.c: New file.
46883
46884         Tests for module 'unicase/u8-casecoll'.
46885         * modules/unicase/u8-casecoll-tests: New file.
46886         * tests/unicase/test-u8-casecoll.c: New file.
46887
46888         New module 'unicase/u32-casecoll'.
46889         * lib/unicase/u32-casecoll.c: New file.
46890         * modules/unicase/u32-casecoll: New file.
46891
46892         New module 'unicase/u16-casecoll'.
46893         * lib/unicase/u16-casecoll.c: New file.
46894         * modules/unicase/u16-casecoll: New file.
46895
46896         New module 'unicase/u8-casecoll'.
46897         * lib/unicase/u8-casecoll.c: New file.
46898         * lib/unicase/u-casecoll.h: New file.
46899         * modules/unicase/u8-casecoll: New file.
46900
46901         New module 'unicase/u32-casexfrm'.
46902         * lib/unicase/u32-casexfrm.c: New file.
46903         * modules/unicase/u32-casexfrm: New file.
46904
46905         New module 'unicase/u16-casexfrm'.
46906         * lib/unicase/u16-casexfrm.c: New file.
46907         * modules/unicase/u16-casexfrm: New file.
46908
46909         New module 'unicase/u8-casexfrm'.
46910         * lib/unicase/u8-casexfrm.c: New file.
46911         * lib/unicase/u-casexfrm.h: New file.
46912         * modules/unicase/u8-casexfrm: New file.
46913
46914         Tests for module 'unicase/u32-casecmp'.
46915         * modules/unicase/u32-casecmp-tests: New file.
46916         * tests/unicase/test-u32-casecmp.c: New file.
46917
46918         Tests for module 'unicase/u16-casecmp'.
46919         * modules/unicase/u16-casecmp-tests: New file.
46920         * tests/unicase/test-u16-casecmp.c: New file.
46921
46922         Tests for module 'unicase/u8-casecmp'.
46923         * modules/unicase/u8-casecmp-tests: New file.
46924         * tests/unicase/test-u8-casecmp.c: New file.
46925         * tests/unicase/test-casecmp.h: New file.
46926
46927         New module 'unicase/u32-casecmp'.
46928         * lib/unicase/u32-casecmp.c: New file.
46929         * modules/unicase/u32-casecmp: New file.
46930
46931         New module 'unicase/u16-casecmp'.
46932         * lib/unicase/u16-casecmp.c: New file.
46933         * modules/unicase/u16-casecmp: New file.
46934
46935         New module 'unicase/u8-casecmp'.
46936         * lib/unicase/u8-casecmp.c: New file.
46937         * lib/unicase/u-casecmp.h: New file.
46938         * modules/unicase/u8-casecmp: New file.
46939
46940         Tests for module 'unicase/u32-casefold'.
46941         * modules/unicase/u32-casefold-tests: New file.
46942         * tests/unicase/test-u32-casefold.c: New file.
46943
46944         Tests for module 'unicase/u16-casefold'.
46945         * modules/unicase/u16-casefold-tests: New file.
46946         * tests/unicase/test-u16-casefold.c: New file.
46947
46948         Tests for module 'unicase/u8-casefold'.
46949         * modules/unicase/u8-casefold-tests: New file.
46950         * tests/unicase/test-u8-casefold.c: New file.
46951
46952         New module 'unicase/u32-casefold'.
46953         * lib/unicase/u32-casefold.c: New file.
46954         * modules/unicase/u32-casefold: New file.
46955
46956         New module 'unicase/u16-casefold'.
46957         * lib/unicase/u16-casefold.c: New file.
46958         * modules/unicase/u16-casefold: New file.
46959
46960         New module 'unicase/u8-casefold'.
46961         * lib/unicase/u8-casefold.c: New file.
46962         * lib/unicase/u-casefold.h: New file.
46963         * modules/unicase/u8-casefold: New file.
46964
46965         New module 'unicase/tocasefold'.
46966         * lib/unicase/casefold.h: New file.
46967         * lib/unicase/tocasefold.c: New file.
46968         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46969         * modules/unicase/tocasefold: New file.
46970
46971         Tests for module 'unicase/u32-totitle'.
46972         * modules/unicase/u32-totitle-tests: New file.
46973         * tests/unicase/test-u32-totitle.c: New file.
46974
46975         Tests for module 'unicase/u16-totitle'.
46976         * modules/unicase/u16-totitle-tests: New file.
46977         * tests/unicase/test-u16-totitle.c: New file.
46978
46979         Tests for module 'unicase/u8-totitle'.
46980         * modules/unicase/u8-totitle-tests: New file.
46981         * tests/unicase/test-u8-totitle.c: New file.
46982
46983         New module 'unicase/u32-totitle'.
46984         * lib/unicase/u32-totitle.c: New file.
46985         * modules/unicase/u32-totitle: New file.
46986
46987         New module 'unicase/u16-totitle'.
46988         * lib/unicase/u16-totitle.c: New file.
46989         * modules/unicase/u16-totitle: New file.
46990
46991         New module 'unicase/u8-totitle'.
46992         * lib/unicase/u8-totitle.c: New file.
46993         * lib/unicase/u-totitle.h: New file.
46994         * modules/unicase/u8-totitle: New file.
46995
46996         Tests for module 'unicase/u32-tolower'.
46997         * modules/unicase/u32-tolower-tests: New file.
46998         * tests/unicase/test-u32-tolower.c: New file.
46999
47000         Tests for module 'unicase/u16-tolower'.
47001         * modules/unicase/u16-tolower-tests: New file.
47002         * tests/unicase/test-u16-tolower.c: New file.
47003
47004         Tests for module 'unicase/u8-tolower'.
47005         * modules/unicase/u8-tolower-tests: New file.
47006         * tests/unicase/test-u8-tolower.c: New file.
47007
47008         New module 'unicase/u32-tolower'.
47009         * lib/unicase/u32-tolower.c: New file.
47010         * modules/unicase/u32-tolower: New file.
47011
47012         New module 'unicase/u16-tolower'.
47013         * lib/unicase/u16-tolower.c: New file.
47014         * modules/unicase/u16-tolower: New file.
47015
47016         New module 'unicase/u8-tolower'.
47017         * lib/unicase/u8-tolower.c: New file.
47018         * modules/unicase/u8-tolower: New file.
47019
47020         Tests for module 'unicase/u32-toupper'.
47021         * modules/unicase/u32-toupper-tests: New file.
47022         * tests/unicase/test-u32-toupper.c: New file.
47023
47024         Tests for module 'unicase/u16-toupper'.
47025         * modules/unicase/u16-toupper-tests: New file.
47026         * tests/unicase/test-u16-toupper.c: New file.
47027
47028         Tests for module 'unicase/u8-toupper'.
47029         * modules/unicase/u8-toupper-tests: New file.
47030         * tests/unicase/test-u8-toupper.c: New file.
47031
47032         New module 'unicase/u32-toupper'.
47033         * lib/unicase/u32-toupper.c: New file.
47034         * modules/unicase/u32-toupper: New file.
47035
47036         New module 'unicase/u16-toupper'.
47037         * lib/unicase/u16-toupper.c: New file.
47038         * modules/unicase/u16-toupper: New file.
47039
47040         New module 'unicase/u8-toupper'.
47041         * lib/unicase/u8-toupper.c: New file.
47042         * modules/unicase/u8-toupper: New file.
47043
47044         New module 'unicase/u32-casemap'.
47045         * lib/unicase/u32-casemap.c: New file.
47046         * modules/unicase/u32-casemap: New file.
47047
47048         New module 'unicase/u16-casemap'.
47049         * lib/unicase/u16-casemap.c: New file.
47050         * modules/unicase/u16-casemap: New file.
47051
47052         New module 'unicase/u8-casemap'.
47053         * lib/unicase/unicasemap.h: New file.
47054         * lib/unicase/u8-casemap.c: New file.
47055         * lib/unicase/u-casemap.h: New file.
47056         * modules/unicase/u8-casemap: New file.
47057
47058         New module 'unicase/special-casing'.
47059         * lib/unicase/special-casing.h: New file.
47060         * lib/unicase/special-casing.c: New file.
47061         * lib/unicase/special-casing-table.gperf: New file, generated by
47062         gen-uni-tables.c.
47063         * modules/unicase/special-casing: New file.
47064
47065         Tests for module 'unicase/locale-language'.
47066         * modules/unicase/locale-language-tests: New file.
47067         * tests/unicase/test-locale-language.sh: New file.
47068         * tests/unicase/test-locale-language.c: New file.
47069
47070         New module 'unicase/locale-language'.
47071         * lib/unicase/locale-language.c: New file.
47072         * lib/unicase/locale-languages.gperf: New file.
47073         * modules/unicase/locale-language: New file.
47074
47075         Generate more tables for case conversion and case folding.
47076         * lib/gen-uni-tables.c (SCC_*): New enum items.
47077         (struct special_casing_rule): New type.
47078         (casing_rules, num_casing_rules, allocated_casing_rules): New
47079         variables.
47080         (add_casing_rule, fill_casing_rules): New functions.
47081         (struct casefold_rule): New type.
47082         (casefolding_rules, num_casefolding_rules,
47083         allocated_casefolding_rules): New variables.
47084         (fill_casefolding_rules): New function.
47085         (unicode_casefold): New variable.
47086         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47087         sort_casing_rules, output_casing_rules): New functions.
47088         (main): Accept to more arguments: SpecialCasing.txt and
47089         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47090         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47091         Output mapping for casefolding.
47092
47093         * lib/unicase.h: Include stdbool.h, uninorm.h.
47094         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47095         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47096         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47097         arguments.
47098         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47099         resultp arguments.
47100         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47101         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47102         resultp arguments.
47103         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47104         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47105         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47106         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47107         declarations.
47108         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47109
47110 2009-03-08  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47113         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47114         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47115         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47116
47117 2009-03-07  Bruno Haible  <bruno@clisp.org>
47118
47119         Adjust u*_normcmp, u*_normcoll API.
47120         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47121         u16_normcoll, u32_normcoll): Change failure conventions.
47122         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47123         errno and return -1.
47124         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47125
47126 2009-03-07  Bruno Haible  <bruno@clisp.org>
47127
47128         Tests for module 'uninorm/u32-normcoll'.
47129         * modules/uninorm/u32-normcoll-tests: New file.
47130         * tests/uninorm/test-u32-normcoll.c: New file.
47131
47132         Tests for module 'uninorm/u16-normcoll'.
47133         * modules/uninorm/u16-normcoll-tests: New file.
47134         * tests/uninorm/test-u16-normcoll.c: New file.
47135
47136         Tests for module 'uninorm/u8-normcoll'.
47137         * modules/uninorm/u8-normcoll-tests: New file.
47138         * tests/uninorm/test-u8-normcoll.c: New file.
47139
47140 2009-03-07  Bruno Haible  <bruno@clisp.org>
47141
47142         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47143         tests/uninorm/test-u32-normcmp.c.
47144         * tests/uninorm/test-u32-normcmp.c: Include it.
47145         (test_nonascii): New function, extracted from main. Add some more
47146         tests.
47147         (main): Invoke test_ascii and test_nonascii.
47148         * modules/uninorm/u32-normcmp-tests (Files): Add
47149         tests/uninorm/test-u32-normcmp.h.
47150         (Depends-on): Remove uninorm/u32-normcmp.
47151
47152         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47153         tests/uninorm/test-u16-normcmp.c.
47154         * tests/uninorm/test-u16-normcmp.c: Include it.
47155         (test_nonascii): New function, extracted from main. Add some more
47156         tests.
47157         (main): Invoke test_ascii and test_nonascii.
47158         * modules/uninorm/u16-normcmp-tests (Files): Add
47159         tests/uninorm/test-u16-normcmp.h.
47160         (Depends-on): Remove uninorm/u16-normcmp.
47161
47162         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47163         tests/uninorm/test-u8-normcmp.c.
47164         * tests/uninorm/test-u8-normcmp.c: Include it.
47165         (test_nonascii): New function, extracted from main. Add some more
47166         tests.
47167         (main): Invoke test_ascii and test_nonascii.
47168         * modules/uninorm/u8-normcmp-tests (Files): Add
47169         tests/uninorm/test-u8-normcmp.h.
47170         (Depends-on): Remove uninorm/u8-normcmp.
47171
47172 2009-03-07  Bruno Haible  <bruno@clisp.org>
47173
47174         New module 'uninorm/u32-normcoll'.
47175         * lib/uninorm/u32-normcoll.c: New file.
47176         * modules/uninorm/u32-normcoll: New file.
47177
47178         New module 'uninorm/u16-normcoll'.
47179         * lib/uninorm/u16-normcoll.c: New file.
47180         * modules/uninorm/u16-normcoll: New file.
47181
47182         New module 'uninorm/u8-normcoll'.
47183         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47184         declarations.
47185         * lib/uninorm/u8-normcoll.c: New file.
47186         * lib/uninorm/u-normcoll.h: New file.
47187         * modules/uninorm/u8-normcoll: New file.
47188
47189         New module 'uninorm/u32-normxfrm'.
47190         * lib/uninorm/u32-normxfrm.c: New file.
47191         * modules/uninorm/u32-normxfrm: New file.
47192
47193         New module 'uninorm/u16-normxfrm'.
47194         * lib/uninorm/u16-normxfrm.c: New file.
47195         * modules/uninorm/u16-normxfrm: New file.
47196
47197         New module 'uninorm/u8-normxfrm'.
47198         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47199         declarations.
47200         * lib/uninorm/u8-normxfrm.c: New file.
47201         * lib/uninorm/u-normxfrm.h: New file.
47202         * modules/uninorm/u8-normxfrm: New file.
47203
47204 2009-03-07  Bruno Haible  <bruno@clisp.org>
47205
47206         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47207         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47208         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47209
47210 2009-03-07  Bruno Haible  <bruno@clisp.org>
47211
47212         New module 'memxfrm'.
47213         * lib/memxfrm.h: New file.
47214         * lib/memxfrm.c: New file.
47215         * modules/memxfrm: New file.
47216
47217 2009-03-07  Bruno Haible  <bruno@clisp.org>
47218
47219         New module 'memcmp2'.
47220         * lib/memcmp2.h: New file.
47221         * lib/memcmp2.c: New file.
47222         * modules/memcmp2: New file.
47223
47224 2009-03-07  Bruno Haible  <bruno@clisp.org>
47225
47226         Tests for module 'uninorm/decomposing-form'.
47227         * modules/uninorm/decomposing-form-tests: New file.
47228         * tests/uninorm/test-decomposing-form.c: New file.
47229
47230         New module 'uninorm/decomposing-form'.
47231         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47232         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47233         Add 'decomposing_variant' field.
47234         * lib/uninorm/decomposing-form.c: New file.
47235         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47236         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47237         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47238         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47239         * modules/uninorm/decomposing-form: New file.
47240         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47241         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47242
47243 2009-03-07  Bruno Haible  <bruno@clisp.org>
47244
47245         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47246         strings.
47247
47248 2009-03-06  Bruno Haible  <bruno@clisp.org>
47249
47250         Tests for module 'uninorm/u32-normcmp'.
47251         * tests/uninorm/test-u32-normcmp.c: New file.
47252         * modules/uninorm/u32-normcmp-tests: New file.
47253
47254         Tests for module 'uninorm/u16-normcmp'.
47255         * tests/uninorm/test-u16-normcmp.c: New file.
47256         * modules/uninorm/u16-normcmp-tests: New file.
47257
47258         Tests for module 'uninorm/u8-normcmp'.
47259         * tests/uninorm/test-u8-normcmp.c: New file.
47260         * modules/uninorm/u8-normcmp-tests: New file.
47261
47262         New module 'uninorm/u32-normcmp'.
47263         * lib/uninorm/u32-normcmp.c: New file.
47264         * modules/uninorm/u32-normcmp: New file.
47265
47266         New module 'uninorm/u16-normcmp'.
47267         * lib/uninorm/u16-normcmp.c: New file.
47268         * modules/uninorm/u16-normcmp: New file.
47269
47270         New module 'uninorm/u8-normcmp'.
47271         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47272         declarations.
47273         * lib/uninorm/u8-normcmp.c: New file.
47274         * lib/uninorm/u-normcmp.h: New file.
47275         * modules/uninorm/u8-normcmp: New file.
47276
47277 2009-03-06  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47280         Reported by Eric Blake.
47281
47282 2009-03-06  Eric Blake  <ebb9@byu.net>
47283             Bruno Haible  <bruno@clisp.org>
47284
47285         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47286         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47287         condition.
47288         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47289         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47290         condition.
47291         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47292
47293 2009-03-06  Eric Blake  <ebb9@byu.net>
47294
47295         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47296         to avoid compiler warnings.
47297         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47298
47299 2009-03-05  Bruno Haible  <bruno@clisp.org>
47300
47301         * tests/test-ftell.c (main): Disable test beyond end of file on
47302         FreeMiNT.
47303         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47304
47305 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47306
47307         * lib/filevercmp.c: Move hidden files up in ordering.
47308         * tests/test-filevercmp.c: Add tests for hidden files.
47309
47310 2009-03-04  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47313         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47314         AM_CFLAGS.
47315         Reported by Simon Josefsson.
47316
47317 2009-03-03  Bruno Haible  <bruno@clisp.org>
47318
47319         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47320         Reported by Simon Josefsson.
47321
47322         * doc/ld-version-script.texi: Update node reference.
47323
47324 2009-03-03  Bruno Haible  <bruno@clisp.org>
47325
47326         * modules/visibility (License): Change to 'unlimited'.
47327         Suggested by Simon Josefsson.
47328
47329 2009-03-03  Jim Meyering  <meyering@redhat.com>
47330
47331         unlinkdir: cannot_unlink_dir may modify process state
47332         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47333         it's neither thread-safe nor appropriate for use in a library.
47334
47335 2009-03-03  Eric Blake  <ebb9@byu.net>
47336
47337         test-closein: silence test under Darwin
47338         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47339         care if it dies from EPIPE or EBADF.
47340
47341 2009-03-03  Bruno Haible  <bruno@clisp.org>
47342
47343         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47344         earlier.
47345         * doc/visibility.texi: Fix @node and @section.
47346
47347 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47348
47349         * doc/gnulib.texi: Link to sections for ld version script and
47350         visibility.
47351         * doc/visibility.texi: Add @node and @section.
47352         * modules/ld-version-script: New module.
47353         * m4/ld-version-script.m4: New file.
47354         * doc/ld-version-script.texi: New file.
47355
47356 2009-03-02  David Lutterkort  <lutter@redhat.com>
47357
47358         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47360
47361 2009-03-02  Bruno Haible  <bruno@clisp.org>
47362
47363         * doc/visibility.texi: Mention libtool's -export-symbols option.
47364
47365 2009-03-02  Jim Meyering  <meyering@redhat.com>
47366
47367         announce-gen: new option: --no-print-checksums
47368         * build-aux/announce-gen (usage): Describe it.
47369         (print_checksums): Print a newline here, not in the [*] footnote.
47370         (main): Honor it.
47371
47372 2009-03-01  Bruno Haible  <bruno@clisp.org>
47373
47374         Use socklen_t in the native Windows replacements prototypes.
47375         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47376         instead of 'int'.
47377         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47378         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47379         * modules/getsockopt (Depends-on): Add socklen.
47380         * modules/setsockopt (Depends-on): Add socklen.
47381
47382 2009-03-01  Bruno Haible  <bruno@clisp.org>
47383
47384         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47385         least 4.2.
47386
47387 2009-03-01  Eric Blake  <ebb9@byu.net>
47388             Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47391         error messages.
47392         * lib/wait-process.c (wait_subprocess): Omit error message about
47393         deadly signal sent to the child of termsigp != NULL.
47394
47395 2009-03-01  Eric Blake  <ebb9@byu.net>
47396
47397         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47398
47399 2009-03-01  Bruno Haible  <bruno@clisp.org>
47400
47401         Avoid a gcc warning.
47402         * tests/test-sched.c (b): Make global.
47403         Reported by Eric Blake.
47404
47405 2009-01-19  Martin Lambers  <marlam@marlam.de>
47406
47407         Provide POSIX semantics for socket timeout options on W32.
47408         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47409         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47410         * modules/setsockopt: Depend on sys_time module for struct timeval.
47411         * modules/getsockopt: Depend on sys_time module for struct timeval.
47412
47413 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47414
47415         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47416         __USE_GNU, for consistency with netdb.in.h.
47417         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47418
47419 2009-03-01  Bruno Haible  <bruno@clisp.org>
47420
47421         More support for FreeMiNT.
47422         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47423         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47424
47425 2009-03-01  Bruno Haible  <bruno@clisp.org>
47426
47427         More support for FreeMiNT.
47428         * lib/fpurge.c (fpurge): Correct last commit.
47429         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47430
47431 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47432
47433         Fix unportable awk script in vc-list-files.
47434         * build-aux/vc-list-files: In the replacement awk script, use
47435         substr with a second argument of 1, not zero.
47436         Report by Simon Josefsson.
47437
47438 2009-02-28  Bruno Haible  <bruno@clisp.org>
47439
47440         More support for FreeMiNT.
47441         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47442         to FreeMiNT today.
47443         * lib/fwriting.c (fwriting): Likewise.
47444         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47445
47446 2009-02-28  Bruno Haible  <bruno@clisp.org>
47447
47448         * tests/test-freadseek.c (main): Disable test beyond end of file on
47449         FreeMiNT.
47450         * tests/test-ftello.c (main): Likewise.
47451         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47452
47453 2009-02-28  Bruno Haible  <bruno@clisp.org>
47454
47455         Add tentative support for FreeMiNT.
47456         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47457         * lib/fpurge.c (fpurge): Likewise.
47458         * lib/freadable.c (freadable): Likewise.
47459         * lib/freading.c (freading): Likewise.
47460         * lib/freadptr.c (freadptr): Likewise.
47461         * lib/freadseek.c (freadptrinc): Likewise.
47462         * lib/fseeko.c (rpl_fseeko): Likewise.
47463         * lib/fseterr.c (fseterr): Likewise.
47464         * lib/fwritable.c (fwritable): Likewise.
47465         * lib/fwriting.c (fwriting): Likewise.
47466         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47467         Hourihane.
47468         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47469
47470 2009-02-28  Bruno Haible  <bruno@clisp.org>
47471
47472         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47473         SIGCHLD.
47474         Reported by Jim Meyering.
47475
47476 2009-02-28  Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47479         Mention the results of these tests on various platforms.
47480         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47481         order.
47482         * doc/posix-functions/printf.texi: Likewise.
47483         * doc/posix-functions/snprintf.texi: Likewise.
47484         * doc/posix-functions/sprintf.texi: Likewise.
47485         * doc/posix-functions/vfprintf.texi: Likewise.
47486         * doc/posix-functions/vprintf.texi: Likewise.
47487         * doc/posix-functions/vsnprintf.texi: Likewise.
47488         * doc/posix-functions/vsprintf.texi: Likewise.
47489         * doc/glibc-functions/obstack_printf.texi: Likewise.
47490         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47491
47492 2009-02-28  Bruno Haible  <bruno@clisp.org>
47493
47494         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47495         Reported by Loïc Minier <lool@dooz.org>.
47496
47497 2009-02-27  Bruno Haible  <bruno@clisp.org>
47498
47499         * gnulib-tool (func_import): Make the sed expression used to create the
47500         sed script for updating the .gitignore file POSIX compliant.
47501         Reported by Eric Blake.
47502
47503 2009-02-27  Bruno Haible  <bruno@clisp.org>
47504
47505         * gnulib-tool (sed): Don't alias as "sed --posix".
47506         Reported by Eric Blake.
47507
47508 2009-02-27  Bruno Haible  <bruno@clisp.org>
47509
47510         Avoid test link errors.
47511         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47512         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47513         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47514         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47516
47517 2009-02-27  Bruno Haible  <bruno@clisp.org>
47518
47519         Avoid spurious "(cached)" in configure output.
47520         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47521         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47522         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47523         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47524         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47526         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47527         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47528         Reported by Eric Blake.
47529
47530 2009-02-27  Eric Blake  <ebb9@byu.net>
47531
47532         printf: fix regression in previous patch
47533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47534
47535 2009-02-27  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47538         value.
47539         * lib/stdint.in.h: Likewise.
47540         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47541
47542 2009-02-27  Eric Blake  <ebb9@byu.net>
47543
47544         doc: mention more functions added in cygwin 1.7.0
47545         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47546         addition.
47547         * doc/posix-functions/open_wmemstream.texi: Likewise.
47548         * doc/posix-functions/wcsnlen.texi: Likewise.
47549         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47550         * doc/posix-functions/wcstod.texi: Likewise.
47551         * doc/posix-functions/wcstof.texi: Likewise.
47552         * doc/posix-functions/wcstoimax.texi: Likewise.
47553         * doc/posix-functions/wcstok.texi: Likewise.
47554         * doc/posix-functions/wcstoumax.texi: Likewise.
47555
47556         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47558         * doc/posix-functions/fprintf.texi: Update.
47559         * doc/posix-functions/printf.texi: Update.
47560         * doc/posix-functions/snprintf.texi: Update.
47561         * doc/posix-functions/sprintf.texi: Update.
47562         * doc/posix-functions/vfprintf.texi: Update.
47563         * doc/posix-functions/vprintf.texi: Update.
47564         * doc/posix-functions/vsnprintf.texi: Update.
47565         * doc/posix-functions/vsprintf.texi: Update.
47566         * doc/glibc-functions/obstack_printf.texi: Update.
47567         * doc/glibc-functions/obstack_vprintf.texi: Update.
47568
47569 2009-02-26  Eric Blake  <ebb9@byu.net>
47570
47571         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47572         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47573         compilation bug by using runtime conversion.
47574         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47575         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47576         * modules/ceill-tests (Files): Use nan.h.
47577         * modules/floorl-tests (Files): Likewise.
47578         * modules/frexpl-tests (Files): Likewise.
47579         * modules/isnanl-tests (Files): Likewise.
47580         * modules/ldexpl-tests (Files): Likewise.
47581         * modules/roundl-tests (Files): Likewise.
47582         * modules/truncl-tests (Files): Likewise.
47583         * tests/test-ceill.c (main): Use a working NaN.
47584         * tests/test-floorl.c (main): Likewise.
47585         * tests/test-frexpl.c (main): Likewise.
47586         * tests/test-isnan.c (test_long_double): Likewise.
47587         * tests/test-isnanl.h (main): Likewise.
47588         * tests/test-ldexpl.h (main): Likewise.
47589         * tests/test-roundl.h (main): Likewise.
47590         * tests/test-truncl.h (main): Likewise.
47591         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47592
47593 2009-02-26  Eric Blake  <ebb9@byu.net>
47594             Bruno Haible  <bruno@clisp.org>
47595
47596         Work around a *printf bug with %ls on Solaris.
47597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47598         precision is specified, sprintf stops converting the wide string
47599         argument when the number of bytes that have been produced by this
47600         conversion equals or exceeds the precision.
47601         * doc/posix-functions/fprintf.texi: Update.
47602         * doc/posix-functions/printf.texi: Update.
47603         * doc/posix-functions/snprintf.texi: Update.
47604         * doc/posix-functions/sprintf.texi: Update.
47605         * doc/posix-functions/vfprintf.texi: Update.
47606         * doc/posix-functions/vprintf.texi: Update.
47607         * doc/posix-functions/vsnprintf.texi: Update.
47608         * doc/posix-functions/vsprintf.texi: Update.
47609         * doc/glibc-functions/obstack_printf.texi: Update.
47610         * doc/glibc-functions/obstack_vprintf.texi: Update.
47611
47612 2009-02-26  Eric Blake  <ebb9@byu.net>
47613
47614         stdlib: favor compiler check of random.h
47615         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47616         to avoid an ObjC random.h installed by Swarm.
47617
47618 2009-02-26  Bruno Haible  <bruno@clisp.org>
47619
47620         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47621         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47622         Reported by Gary V. Vaughan <gary@gnu.org>.
47623
47624 2009-02-26  Bruno Haible  <bruno@clisp.org>
47625
47626         Fix *printf behaviour regarding the %ls directive.
47627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47628         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47629         NEED_PRINTF_DIRECTIVE_LS.
47630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47631         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47633         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47634         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47635         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47636         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47641         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47645         * doc/posix-functions/fprintf.texi: Update.
47646         * doc/posix-functions/printf.texi: Update.
47647         * doc/posix-functions/snprintf.texi: Update.
47648         * doc/posix-functions/sprintf.texi: Update.
47649         * doc/posix-functions/vfprintf.texi: Update.
47650         * doc/posix-functions/vprintf.texi: Update.
47651         * doc/posix-functions/vsnprintf.texi: Update.
47652         * doc/posix-functions/vsprintf.texi: Update.
47653         * doc/glibc-functions/obstack_printf.texi: Update.
47654         * doc/glibc-functions/obstack_vprintf.texi: Update.
47655         Reported by Eric Blake.
47656
47657 2009-02-25  Bruno Haible  <bruno@clisp.org>
47658
47659         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47660         with known value.
47661         Reported by Gary V. Vaughan <gary@gnu.org>.
47662
47663 2009-02-25  Bruno Haible  <bruno@clisp.org>
47664
47665         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47666         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47667         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47668         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47669         Reported by Gary V. Vaughan <gary@gnu.org>.
47670
47671 2009-02-25  Bruno Haible  <bruno@clisp.org>
47672
47673         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47674         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47675         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47676         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47677         Reported by Gary V. Vaughan <gary@gnu.org>.
47678
47679 2009-02-25  Eric Blake  <ebb9@byu.net>
47680
47681         tests: skip fseek/ftell tests if ungetc is broken
47682         * m4/ungetc.m4: New file.
47683         * modules/fseek-tests: Split test, so ungetc dependency is
47684         separate from rest of test.
47685         * modules/fseeko-tests: Likewise.
47686         * modules/ftell-tests: Likewise.
47687         * modules/ftello-tests: Likewise.
47688         * tests/test-fseek.c (main): Isolate ungetc dependency.
47689         * tests/test-fseeko.c (main): Likewise.
47690         * tests/test-ftell.c (main): Likewise.
47691         * tests/test-ftello.c (main): Likewise.
47692         * tests/test-fseek2.sh: New file.
47693         * tests/test-fseeko2.sh: Likewise.
47694         * tests/test-ftell2.sh: Likewise.
47695         * tests/test-ftello2.sh: Likewise.
47696
47697 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47698
47699         test-getaddrinfo: fix usage of skip return code 77
47700         * tests/test-gettaddrinfo.c: Return skip code 77 only
47701         for first occurrence of skip (4x77 is not 77)
47702
47703 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47704
47705         strtod: avoid C99 decl-after-statement
47706         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47707
47708 2009-02-24  Eric Blake  <ebb9@byu.net>
47709
47710         strtod: detect HP-UX 11.31 bug
47711         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47712         Reported by Gary V. Vaughan.
47713
47714 2009-02-23  Bruno Haible  <bruno@clisp.org>
47715
47716         Fix invalid read past end of memory block.
47717         * lib/vasnprintf.c (DCHAR_SET): Define.
47718         (local_wcslen): Define only when needed.
47719         (local_strnlen, local_wcsnlen): New functions.
47720         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47721         directives that involve a conversion ourselves.
47722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47723         wcsnlen, mbrtowc, wcrtomb.
47724         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47725         * tests/test-vasprintf-posix.c (test_function): Likewise.
47726         * tests/test-snprintf-posix.h (test_function): Likewise.
47727         * tests/test-sprintf-posix.h (test_function): Likewise.
47728         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47729
47730 2009-02-22  Bruno Haible  <bruno@clisp.org>
47731
47732         Implement new clarified decomposition of Hangul syllables.
47733         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47734         of type LTV, return only a pairwise decomposition.
47735         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47736         Likewise.
47737         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47738         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47739         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47740
47741 2009-02-22  Bruno Haible  <bruno@clisp.org>
47742
47743         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47744         zero-length results and shrink excess allocated memory.
47745         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47746         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47747         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47748         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47749         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47750         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47751         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47752         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47753         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47754         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47755         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47756         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47757
47758 2009-02-21  Bruno Haible  <bruno@clisp.org>
47759
47760         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47761         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47762         spaces after a period. Put a space between a macro name and its
47763         argument list. Trivial rewordings.
47764         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47765         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47766         (main): Return 0 explicitly.
47767
47768 2009-02-21  Bruno Haible  <bruno@clisp.org>
47769
47770         Tests for module 'uninorm/filter'.
47771         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47772         * modules/uninorm/filter-tests: New file.
47773
47774         New module 'uninorm/filter'.
47775         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47776         uninorm_filter_flush, uninorm_filter_free): New declarations.
47777         * lib/uninorm/uninorm-filter.c: New file.
47778         * modules/uninorm/filter: New file.
47779
47780 2009-02-21  Bruno Haible  <bruno@clisp.org>
47781
47782         Tests for module 'uninorm/nfkc'.
47783         * tests/uninorm/test-nfkc.c: New file.
47784         * tests/uninorm/test-u8-nfkc.c: New file.
47785         * tests/uninorm/test-u16-nfkc.c: New file.
47786         * tests/uninorm/test-u32-nfkc.c: New file.
47787         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47788         * tests/uninorm/test-u32-nfkc-big.c: New file.
47789         * modules/uninorm/nfkc-tests: New file.
47790
47791         New module 'uninorm/nfkc'.
47792         * lib/uninorm/nfkc.c: New file.
47793         * modules/uninorm/nfkc: New file.
47794
47795         Tests for module 'uninorm/nfkd'.
47796         * tests/uninorm/test-nfkd.c: New file.
47797         * tests/uninorm/test-u8-nfkd.c: New file.
47798         * tests/uninorm/test-u16-nfkd.c: New file.
47799         * tests/uninorm/test-u32-nfkd.c: New file.
47800         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47801         * tests/uninorm/test-u32-nfkd-big.c: New file.
47802         * modules/uninorm/nfkd-tests: New file.
47803
47804         New module 'uninorm/nfkd'.
47805         * lib/uninorm/nfkd.c: New file.
47806         * modules/uninorm/nfkd: New file.
47807
47808         Tests for module 'uninorm/nfc'.
47809         * tests/uninorm/test-nfc.c: New file.
47810         * tests/uninorm/test-u8-nfc.c: New file.
47811         * tests/uninorm/test-u16-nfc.c: New file.
47812         * tests/uninorm/test-u32-nfc.c: New file.
47813         * tests/uninorm/test-u32-nfc-big.sh: New file.
47814         * tests/uninorm/test-u32-nfc-big.c: New file.
47815         * modules/uninorm/nfc-tests: New file.
47816
47817         New module 'uninorm/nfc'.
47818         * lib/uninorm/nfc.c: New file.
47819         * modules/uninorm/nfc: New file.
47820
47821         Tests for module 'uninorm/nfd'.
47822         * tests/uninorm/test-nfd.c: New file.
47823         * tests/uninorm/test-u8-nfd.c: New file.
47824         * tests/uninorm/test-u16-nfd.c: New file.
47825         * tests/uninorm/test-u32-nfd.c: New file.
47826         * tests/uninorm/test-u32-nfd-big.sh: New file.
47827         * tests/uninorm/test-u32-nfd-big.c: New file.
47828         * tests/uninorm/test-u32-normalize-big.h: New file.
47829         * tests/uninorm/test-u32-normalize-big.c: New file.
47830         * tests/uninorm/NormalizationTest.txt: New file, created from
47831         Unicode 5.1.0 NormalizationTest.txt.
47832         * modules/uninorm/nfd-tests: New file.
47833
47834         New module 'uninorm/nfd'.
47835         * lib/uninorm/nfd.c: New file.
47836         * modules/uninorm/nfd: New file.
47837
47838         New module 'uninorm/u32-normalize'.
47839         * lib/uninorm/u32-normalize.c: New file.
47840         * modules/uninorm/u32-normalize: New file.
47841
47842         New module 'uninorm/u16-normalize'.
47843         * lib/uninorm/u16-normalize.c: New file.
47844         * modules/uninorm/u16-normalize: New file.
47845
47846         New module 'uninorm/u8-normalize'.
47847         * lib/uninorm/u8-normalize.c: New file.
47848         * lib/uninorm/normalize-internal.h: New file.
47849         * lib/uninorm/u-normalize-internal.h: New file.
47850         * modules/uninorm/u8-normalize: New file.
47851
47852         New module 'uninorm/decompose-internal'.
47853         * lib/uninorm/decompose-internal.c: New file.
47854         * modules/uninorm/decompose-internal: New file.
47855
47856         Tests for module 'uninorm/composition'.
47857         * tests/uninorm/test-composition.c: New file.
47858         * modules/uninorm/composition-tests: New file.
47859
47860         New module 'uninorm/composition'.
47861         * lib/uninorm/composition.c: New file.
47862         * lib/uninorm/composition-table.gperf: New file, generated by
47863         gen-uni-tables.
47864         * modules/uninorm/composition: New file.
47865
47866         Tests for module 'uninorm/compat-decomposition'.
47867         * tests/uninorm/test-compat-decomposition.c: New file.
47868         * modules/uninorm/compat-decomposition-tests: New file.
47869
47870         New module 'uninorm/compat-decomposition'.
47871         * lib/uninorm/decompose-internal.h: New file.
47872         * lib/uninorm/compat-decomposition.c: New file.
47873         * modules/uninorm/compat-decomposition: New file.
47874
47875         Tests for module 'uninorm/canonical-decomposition'.
47876         * tests/uninorm/test-canonical-decomposition.c: New file.
47877         * modules/uninorm/canonical-decomposition-tests: New file.
47878
47879         New module 'uninorm/canonical-decomposition'.
47880         * lib/uninorm/canonical-decomposition.c: New file.
47881         * modules/uninorm/canonical-decomposition: New file.
47882
47883         Tests for module 'uninorm/decomposition'.
47884         * tests/uninorm/test-decomposition.c: New file.
47885         * modules/uninorm/decomposition-tests: New file.
47886
47887         New module 'uninorm/decomposition'.
47888         * lib/uninorm/decomposition.c: New file.
47889         * modules/uninorm/decomposition: New file.
47890
47891         New module 'uninorm/decomposition-table'.
47892         * lib/uninorm/decomposition-table.h: New file.
47893         * lib/uninorm/decomposition-table.c: New file.
47894         * lib/uninorm/decomposition-table1.h: New file, generated by
47895         gen-uni-tables.
47896         * lib/uninorm/decomposition-table2.h: New file, generated by
47897         gen-uni-tables.
47898         * modules/uninorm/decomposition-table: New file.
47899
47900         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47901         (UC_DECOMP_*): New enumeration items.
47902         (get_decomposition): New function.
47903         (struct decomp_table): New type.
47904         (output_decomposition, output_decomposition_tables): New functions.
47905         (unicode_composition_exclusions): New variable.
47906         (fill_composition_exclusions, debug_output_composition_tables): New
47907         functions.
47908         (main): Accept one more argument. Invoke fill_composition_exclusions.
47909         Output decomposition and composition tables.
47910
47911         New module 'uninorm/base'.
47912         * lib/uninorm.h: New file.
47913         * lib/unictype.h: Update comment.
47914         * modules/uninorm/base: New file.
47915
47916 2009-02-21  David Lutterkort  <lutter@redhat.com>
47917
47918         Tests for module 'safe-alloc'.
47919         * tests/test-safe-alloc.c: New file.
47920         * modules/safe-alloc-tests: New file.
47921
47922         New module 'safe-alloc'.
47923         * lib/safe-alloc.h: New file.
47924         * lib/safe-alloc.c: New file.
47925         * m4/safe-alloc.m4: New file.
47926         * modules/safe-alloc: New file.
47927         * doc/safe-alloc.texi: New file.
47928         * doc/gnulib.texi: Include it.
47929         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47930         safe-alloc.
47931
47932 2009-02-18  Bruno Haible  <bruno@clisp.org>
47933
47934         Fix link error on non-glibc systems.
47935         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47936         variable.
47937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47938
47939 2009-02-18  Jim Meyering  <meyering@redhat.com>
47940
47941         fts: avoid used-uninitialized error due to recent change
47942         * lib/fts.c (fts_read): Guard uses of the new member,
47943         parent->fts_n_dirs_remaining, since it's not relevant for
47944         the parent of a directory specified on the command-line.
47945
47946 2009-02-17  James Youngman  <jay@gnu.org>
47947             Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/include_next.m4: Reformulate comment.
47950
47951 2009-02-16  Jim Meyering  <meyering@redhat.com>
47952
47953         fts: add #if guards so that the fts_lgpl module still builds
47954         * lib/fts.c: Guard just-added hash-table-using parts with
47955         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47956         Reported by Simon Josefsson.
47957
47958 2009-02-15  Bruno Haible  <bruno@clisp.org>
47959
47960         * modules/array-mergesort-tests: New file.
47961         * tests/test-array-mergesort.c: New file.
47962
47963         New module 'array-mergesort'.
47964         * modules/array-mergesort: New file.
47965         * lib/array-mergesort.h: New file.
47966
47967 2009-02-15  Bruno Haible  <bruno@clisp.org>
47968
47969         Fix 2009-02-07 commit.
47970         * lib/gen-uni-tables.c (output_predicate, output_category,
47971         output_combclass, output_bidi_category, output_decimal_digit,
47972         output_digit, output_numeric, output_mirror, output_scripts,
47973         output_ident_category, output_simple_mapping): Fix format directives.
47974         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47975
47976 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47977
47978         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47979         fixes are available from IBM.
47980
47981 2009-02-13  Jim Meyering  <meyering@redhat.com>
47982
47983         fts: arrange not to stat non-directories in more cases
47984         This makes GNU find (when it doesn't need to stat each file)
47985         *much* more efficient at traversing reiserfs file systems.
47986         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47987         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47988         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47989         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47990         (leaf_optimization_applies): New function.
47991         (LCO_hash, LCO_compare): New helper functions.
47992         (link_count_optimize_ok): New function.
47993         (fts_stat): Initialize new member (if dir).
47994         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47995         we've just stat'ed a directory.  Skip the stat call when possible.
47996         ---
47997         Note this AFS-related exchange:
47998         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47999         and note find's pioctl call in find/fstype.c.
48000         But that is necessary only if you want to enable the
48001         optimization for AFS, and for now, I don't.
48002
48003         fts: move a function definition "up" (no semantic change)
48004         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48005         "up" to precede upcoming use of a related function.
48006
48007 2009-02-11  Jim Meyering  <meyering@redhat.com>
48008
48009         fts: correct internal computation of nlinks (optimization-related)
48010         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48011         whether the current entry is a directory, so don't test it.
48012
48013 2009-02-10  Bruno Haible  <bruno@clisp.org>
48014
48015         Tests for module 'uniwbrk/ulc-wordbreaks'.
48016         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48017         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48018         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48019
48020         Tests for module 'uniwbrk/u32-wordbreaks'.
48021         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48022         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48023
48024         Tests for module 'uniwbrk/u16-wordbreaks'.
48025         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48026         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48027
48028         Tests for module 'uniwbrk/u8-wordbreaks'.
48029         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48030         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48031
48032 2009-02-10  Bruno Haible  <bruno@clisp.org>
48033
48034         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48035         property.
48036         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48037         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48038         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48039
48040 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48041
48042         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48043         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48044
48045 2009-02-10  Bruno Haible  <bruno@clisp.org>
48046
48047         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48048         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48049         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48050         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48051         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48052         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48053
48054 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48055
48056         * lib/sockets.h (gl_fd_to_handle): New function.
48057
48058         * tests/test-sockets.c: Call gl_fd_to_handle.
48059
48060 2009-02-09  Bruno Haible  <bruno@clisp.org>
48061
48062         * doc/havelib.texi: Document the conventions on bi-arch systems.
48063
48064 2009-02-08  Bruno Haible  <bruno@clisp.org>
48065
48066         Document the AC_LIB_LINKFLAGS macro.
48067         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48068         * doc/gnulib.texi: Include it.
48069
48070 2009-02-08  Bruno Haible  <bruno@clisp.org>
48071
48072         Fix wrong order of sections, compared to TOC.
48073         * doc/gnulib.texi: Include relocatable-maint.texi after the
48074         "Regular expressions" node, not before.
48075
48076 2009-02-08  Bruno Haible  <bruno@clisp.org>
48077
48078         Tests for module 'unicase/totitle'.
48079         * modules/unicase/totitle-tests: New file.
48080
48081         Tests for module 'unicase/tolower'.
48082         * modules/unicase/tolower-tests: New file.
48083
48084         Tests for module 'unicase/toupper'.
48085         * modules/unicase/toupper-tests: New file.
48086         * tests/unicase/test-mapping-part1.h: New file.
48087         * tests/unicase/test-mapping-part2.h: New file.
48088
48089         New module 'unicase/totitle'.
48090         * modules/unicase/totitle: New file.
48091         * lib/unicase/totitle.c: New file.
48092
48093         New module 'unicase/tolower'.
48094         * modules/unicase/tolower: New file.
48095         * lib/unicase/tolower.c: New file.
48096
48097         New module 'unicase/toupper'.
48098         * modules/unicase/toupper: New file.
48099         * lib/unicase/toupper.c: New file.
48100         * lib/unicase/simple-mapping.h: New file.
48101
48102         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48103         (mapping_table): New structure.
48104         (output_simple_mapping): New function.
48105         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48106         * modules/gen-uni-tables (Description): Update.
48107         * lib/unicase/toupper.h: New file, automatically generated by
48108         gen-uni-tables.
48109         * lib/unicase/tolower.h: New file, automatically generated by
48110         gen-uni-tables.
48111         * lib/unicase/totitle.h: New file, automatically generated by
48112         gen-uni-tables.
48113         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48114         gen-uni-tables.
48115         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48116         gen-uni-tables.
48117         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48118         gen-uni-tables.
48119
48120         New module 'unicase/base'.
48121         * modules/unicase/base: New file.
48122         * lib/unicase.h: New file.
48123
48124 2009-02-08  Bruno Haible  <bruno@clisp.org>
48125
48126         New module 'uniwbrk/ulc-wordbreaks'.
48127         * modules/uniwbrk/ulc-wordbreaks: New file.
48128         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48129
48130         New module 'uniwbrk/u32-wordbreaks'.
48131         * modules/uniwbrk/u32-wordbreaks: New file.
48132         * lib/uniwbrk/u32-wordbreaks.c: New file.
48133
48134         New module 'uniwbrk/u16-wordbreaks'.
48135         * modules/uniwbrk/u16-wordbreaks: New file.
48136         * lib/uniwbrk/u16-wordbreaks.c: New file.
48137
48138         New module 'uniwbrk/u8-wordbreaks'.
48139         * modules/uniwbrk/u8-wordbreaks: New file.
48140         * lib/uniwbrk/u8-wordbreaks.c: New file.
48141         * lib/uniwbrk/u-wordbreaks.h: New file.
48142
48143         New module 'uniwbrk/table'.
48144         * modules/uniwbrk/table: New file.
48145         * lib/uniwbrk/wbrktable.h: New file.
48146         * lib/uniwbrk/wbrktable.c: New file.
48147
48148         New module 'uniwbrk/wordbreak-property'.
48149         * modules/uniwbrk/wordbreak-property: New file.
48150         * lib/uniwbrk/wordbreak-property.c: New file.
48151
48152         * lib/gen-uni-tables.c (WBP_*): New enum items.
48153         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48154         (unicode_org_wbp): New variable.
48155         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48156         New functions.
48157         (wbp_table): New structure.
48158         (output_wbp, output_wbrk_tables): New functions.
48159         (main): Accept additional argument. Invoke fill_org_wbp,
48160         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48161         output_wbrk_tables.
48162         * modules/gen-uni-tables (Description): Update.
48163         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48164         gen-uni-tables.
48165
48166         New module 'uniwbrk/base'.
48167         * modules/uniwbrk/base: New file.
48168         * lib/uniwbrk.h: New file.
48169
48170 2009-02-08  Bruno Haible  <bruno@clisp.org>
48171
48172         Update to Unicode 5.1.0.
48173         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48174         U+2185..U+2188.
48175         (is_property_default_ignorable_code_point): Don't include characters
48176         of category Cc or Cs and not-a-characters.
48177         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48178         U+0D79, U+109E, U+109F, U+A60C.
48179         * lib/unictype/bidi_of.h: Regenerated.
48180         * lib/unictype/blocks.h: Regenerated.
48181         * lib/unictype/categ_C.h: Regenerated.
48182         * lib/unictype/categ_Cf.h: Regenerated.
48183         * lib/unictype/categ_Cn.h: Regenerated.
48184         * lib/unictype/categ_L.h: Regenerated.
48185         * lib/unictype/categ_Ll.h: Regenerated.
48186         * lib/unictype/categ_Lm.h: Regenerated.
48187         * lib/unictype/categ_Lo.h: Regenerated.
48188         * lib/unictype/categ_Lu.h: Regenerated.
48189         * lib/unictype/categ_M.h: Regenerated.
48190         * lib/unictype/categ_Mc.h: Regenerated.
48191         * lib/unictype/categ_Me.h: Regenerated.
48192         * lib/unictype/categ_Mn.h: Regenerated.
48193         * lib/unictype/categ_N.h: Regenerated.
48194         * lib/unictype/categ_Nd.h: Regenerated.
48195         * lib/unictype/categ_Nl.h: Regenerated.
48196         * lib/unictype/categ_No.h: Regenerated.
48197         * lib/unictype/categ_P.h: Regenerated.
48198         * lib/unictype/categ_Pd.h: Regenerated.
48199         * lib/unictype/categ_Pe.h: Regenerated.
48200         * lib/unictype/categ_Pf.h: Regenerated.
48201         * lib/unictype/categ_Pi.h: Regenerated.
48202         * lib/unictype/categ_Po.h: Regenerated.
48203         * lib/unictype/categ_Ps.h: Regenerated.
48204         * lib/unictype/categ_S.h: Regenerated.
48205         * lib/unictype/categ_Sk.h: Regenerated.
48206         * lib/unictype/categ_Sm.h: Regenerated.
48207         * lib/unictype/categ_So.h: Regenerated.
48208         * lib/unictype/categ_of.h: Regenerated.
48209         * lib/unictype/combining.h: Regenerated.
48210         * lib/unictype/ctype_alnum.h: Regenerated.
48211         * lib/unictype/ctype_alpha.h: Regenerated.
48212         * lib/unictype/ctype_graph.h: Regenerated.
48213         * lib/unictype/ctype_lower.h: Regenerated.
48214         * lib/unictype/ctype_print.h: Regenerated.
48215         * lib/unictype/ctype_punct.h: Regenerated.
48216         * lib/unictype/ctype_upper.h: Regenerated.
48217         * lib/unictype/decdigit.h: Regenerated.
48218         * lib/unictype/digit.h: Regenerated.
48219         * lib/unictype/mirror.h: Regenerated.
48220         * lib/unictype/numeric.h: Regenerated.
48221         * lib/unictype/pr_alphabetic.h: Regenerated.
48222         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48223         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48224         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48225         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48226         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48227         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48228         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48229         * lib/unictype/pr_combining.h: Regenerated.
48230         * lib/unictype/pr_dash.h: Regenerated.
48231         * lib/unictype/pr_decimal_digit.h: Regenerated.
48232         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48233         * lib/unictype/pr_deprecated.h: Regenerated.
48234         * lib/unictype/pr_diacritic.h: Regenerated.
48235         * lib/unictype/pr_extender.h: Regenerated.
48236         * lib/unictype/pr_format_control.h: Regenerated.
48237         * lib/unictype/pr_grapheme_base.h: Regenerated.
48238         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48239         * lib/unictype/pr_grapheme_link.h: Regenerated.
48240         * lib/unictype/pr_id_continue.h: Regenerated.
48241         * lib/unictype/pr_id_start.h: Regenerated.
48242         * lib/unictype/pr_ideographic.h: Regenerated.
48243         * lib/unictype/pr_ignorable_control.h: Regenerated.
48244         * lib/unictype/pr_lowercase.h: Regenerated.
48245         * lib/unictype/pr_math.h: Regenerated.
48246         * lib/unictype/pr_numeric.h: Regenerated.
48247         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48248         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48249         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48250         * lib/unictype/pr_other_id_continue.h: Regenerated.
48251         * lib/unictype/pr_other_lowercase.h: Regenerated.
48252         * lib/unictype/pr_other_math.h: Regenerated.
48253         * lib/unictype/pr_punctuation.h: Regenerated.
48254         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48255         * lib/unictype/pr_soft_dotted.h: Regenerated.
48256         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48257         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48258         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48259         * lib/unictype/pr_uppercase.h: Regenerated.
48260         * lib/unictype/pr_xid_continue.h: Regenerated.
48261         * lib/unictype/pr_xid_start.h: Regenerated.
48262         * lib/unictype/pr_zero_width.h: Regenerated.
48263         * lib/unictype/scripts.h: Regenerated.
48264         * lib/unictype/scripts_byname.gperf: Regenerated.
48265         * lib/unictype/sy_java_ident.h: Regenerated.
48266         * lib/unilbrk/lbrkprop1.h: Regenerated.
48267         * lib/unilbrk/lbrkprop2.h: Regenerated.
48268         * tests/unictype/test-categ_C.c: Regenerated.
48269         * tests/unictype/test-categ_Cf.c: Regenerated.
48270         * tests/unictype/test-categ_Cn.c: Regenerated.
48271         * tests/unictype/test-categ_L.c: Regenerated.
48272         * tests/unictype/test-categ_Ll.c: Regenerated.
48273         * tests/unictype/test-categ_Lm.c: Regenerated.
48274         * tests/unictype/test-categ_Lo.c: Regenerated.
48275         * tests/unictype/test-categ_Lu.c: Regenerated.
48276         * tests/unictype/test-categ_M.c: Regenerated.
48277         * tests/unictype/test-categ_Mc.c: Regenerated.
48278         * tests/unictype/test-categ_Me.c: Regenerated.
48279         * tests/unictype/test-categ_Mn.c: Regenerated.
48280         * tests/unictype/test-categ_N.c: Regenerated.
48281         * tests/unictype/test-categ_Nd.c: Regenerated.
48282         * tests/unictype/test-categ_Nl.c: Regenerated.
48283         * tests/unictype/test-categ_No.c: Regenerated.
48284         * tests/unictype/test-categ_P.c: Regenerated.
48285         * tests/unictype/test-categ_Pd.c: Regenerated.
48286         * tests/unictype/test-categ_Pe.c: Regenerated.
48287         * tests/unictype/test-categ_Pf.c: Regenerated.
48288         * tests/unictype/test-categ_Pi.c: Regenerated.
48289         * tests/unictype/test-categ_Po.c: Regenerated.
48290         * tests/unictype/test-categ_Ps.c: Regenerated.
48291         * tests/unictype/test-categ_S.c: Regenerated.
48292         * tests/unictype/test-categ_Sk.c: Regenerated.
48293         * tests/unictype/test-categ_Sm.c: Regenerated.
48294         * tests/unictype/test-categ_So.c: Regenerated.
48295         * tests/unictype/test-ctype_alnum.c: Regenerated.
48296         * tests/unictype/test-ctype_alpha.c: Regenerated.
48297         * tests/unictype/test-ctype_graph.c: Regenerated.
48298         * tests/unictype/test-ctype_lower.c: Regenerated.
48299         * tests/unictype/test-ctype_print.c: Regenerated.
48300         * tests/unictype/test-ctype_punct.c: Regenerated.
48301         * tests/unictype/test-ctype_upper.c: Regenerated.
48302         * tests/unictype/test-decdigit.h: Regenerated.
48303         * tests/unictype/test-digit.h: Regenerated.
48304         * tests/unictype/test-numeric.h: Regenerated.
48305         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48306         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48307         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48308         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48309         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48310         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48311         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48312         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48313         * tests/unictype/test-pr_combining.c: Regenerated.
48314         * tests/unictype/test-pr_dash.c: Regenerated.
48315         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48316         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48317         * tests/unictype/test-pr_deprecated.c: Regenerated.
48318         * tests/unictype/test-pr_diacritic.c: Regenerated.
48319         * tests/unictype/test-pr_extender.c: Regenerated.
48320         * tests/unictype/test-pr_format_control.c: Regenerated.
48321         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48322         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48323         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48324         * tests/unictype/test-pr_id_continue.c: Regenerated.
48325         * tests/unictype/test-pr_id_start.c: Regenerated.
48326         * tests/unictype/test-pr_ideographic.c: Regenerated.
48327         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48328         * tests/unictype/test-pr_lowercase.c: Regenerated.
48329         * tests/unictype/test-pr_math.c: Regenerated.
48330         * tests/unictype/test-pr_numeric.c: Regenerated.
48331         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48332         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48333         Regenerated.
48334         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48335         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48336         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48337         * tests/unictype/test-pr_other_math.c: Regenerated.
48338         * tests/unictype/test-pr_punctuation.c: Regenerated.
48339         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48340         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48341         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48342         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48343         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48344         * tests/unictype/test-pr_uppercase.c: Regenerated.
48345         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48346         * tests/unictype/test-pr_xid_start.c: Regenerated.
48347         * tests/unictype/test-pr_zero_width.c: Regenerated.
48348
48349         Update to Unicode 5.1.0.
48350         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48351         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48352         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48353         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48354         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48355         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48356         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48357         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48358         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48359         (nonspacing_table_ind): Update.
48360         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48361
48362         Update to Unicode 5.1.0.
48363         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48364         code transform.
48365         * lib/uniname/uniname.c (unicode_character_name,
48366         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48367         * lib/uniname/uninames.h: Regenerated.
48368         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48369
48370 2009-02-07  Bruno Haible  <bruno@clisp.org>
48371
48372         Merge gen-ctype and gen-lbrk into a single program.
48373         * lib/gen-uni-tables.c: New file, incorporating
48374         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48375         Add directory prefixes to the names of the generated files.
48376         * lib/unictype/gen-ctype.c: Remove file.
48377         * lib/unilbrk/gen-lbrk.c: Remove file.
48378         * modules/gen-uni-tables: New file.
48379         * modules/unictype/gen-ctype: Remove file.
48380         * modules/unilbrk/gen-lbrk: Remove file.
48381
48382 2009-02-07  Bruno Haible  <bruno@clisp.org>
48383
48384         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48385
48386         New module 'unistr/u32-strcoll'.
48387         * modules/unistr/u32-strcoll: New file.
48388         * lib/unistr/u32-strcoll.c: New file.
48389
48390         New module 'unistr/u16-strcoll'.
48391         * modules/unistr/u16-strcoll: New file.
48392         * lib/unistr/u16-strcoll.c: New file.
48393
48394         New module 'unistr/u8-strcoll'.
48395         * modules/unistr/u8-strcoll: New file.
48396         * lib/unistr/u8-strcoll.c: New file.
48397         * lib/unistr/u-strcoll.h: New file.
48398
48399 2009-02-07  Bruno Haible  <bruno@clisp.org>
48400
48401         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48402         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48403         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48404         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48405         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48406         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48407
48408 2009-02-07  Bruno Haible  <bruno@clisp.org>
48409
48410         Make 64-bit clean.
48411         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48412         output_combclass, output_bidi_category, output_decimal_digit,
48413         output_digit, output_numeric, output_mirror, output_scripts,
48414         output_ident_category): Use proper width specifier in format strings.
48415
48416 2009-02-07  Bruno Haible  <bruno@clisp.org>
48417
48418         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48419         failure behaviour.
48420
48421 2009-02-07  Jim Meyering  <meyering@redhat.com>
48422
48423         regex: avoid compilation failure with upcoming gcc-4.4
48424         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48425         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48426         "... error: integer overflow in preprocessor expression".
48427
48428 2009-02-05  Ben Pfaff  <blp@gnu.org>
48429
48430         Fix link errors on Windows when close module is used.
48431         * modules/close: Add $(LIB_CLOSE) to Link section.
48432         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48433         $(LIB_CLOSE) on Windows.
48434
48435 2009-02-05  Jim Meyering  <meyering@redhat.com>
48436
48437         still avoid unused-parameter warnings, but do it cleanly
48438         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48439         (get_fs_usage): Cast to void instead.
48440         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48441         (dev_from_mount_options, read_file_system_list): Cast to void.
48442         Prompted by Bruno Haible.
48443
48444 2009-02-04  Jim Meyering  <meyering@redhat.com>
48445
48446         fsusage.c: correct copyright year
48447         * lib/fsusage.c: Reflect year in which the change is pushed into
48448
48449         avoid misc. warnings
48450         * lib/fsusage.c (UNUSED_PARAM): Define.
48451         (get_fs_usage): Mark parameter "disk" as unused.
48452         * lib/getugroups.c (getgrent): Use "void" in prototype.
48453         * lib/mountlist.c: Mark unused parameters.
48454         (read_file_system_list): Declare a local with "const".
48455         * lib/nanosleep.c (getnow): Declare static.
48456         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48457
48458         dirfd: set errno upon failure
48459         * lib/dirfd.c: Include <errno.h>.
48460         Set errno to ENOTSUP when returning -1.
48461         * modules/dirfd (Depends-on): Add errno.
48462         Suggested by John Kodis <kodis@comcast.net>.
48463
48464 2009-02-01  Bruno Haible  <bruno@clisp.org>
48465
48466         Don't assume sizeof (long) >= sizeof (void *).
48467         * lib/memcmp.c: Include stdint.h.
48468         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48469         srcp2 to 'const byte *'.
48470         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48471         types to uintptr_t.
48472         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48473         * modules/memcmp (Depends-on): Add stdint.
48474         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48475
48476 2009-01-30  Eric Blake  <ebb9@byu.net>
48477
48478         fix more require-before-expand issues
48479         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48480         expand, AC_PROG_AWK.
48481         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48482
48483 2009-01-28  Eric Blake  <ebb9@byu.net>
48484
48485         version-etc: use consistent URL formatting
48486         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48487         Improve formatting.  Use fputs for string without %.
48488
48489 2009-01-28  Jim Meyering  <meyering@redhat.com>
48490
48491         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48492         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48493         "underquoted definition of NAME" from autoconf-2.59.
48494
48495 2009-01-28  Bruno Haible  <bruno@clisp.org>
48496
48497         * doc/gnulib.texi: Add "Obsolete modules" to index.
48498
48499 2009-01-28  Jim Meyering  <meyering@redhat.com>
48500
48501         useless-if-before-free: recognize more variants
48502         * build-aux/useless-if-before-free: Also recognize e.g.,
48503         if (NULL != p) free (p);
48504
48505 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48506
48507         test-getaddrinfo: skip (don't fail) this test when there's no network
48508         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48509         on the presumption that it means you lack network access.
48510
48511 2009-01-26  Jim Meyering  <meyering@redhat.com>
48512
48513         fflush: avoid warnings on modern systems
48514         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48515         pos and result, into scopes where they're used.
48516
48517 2009-01-26  Eric Blake  <ebb9@byu.net>
48518
48519         Silence warning reintroduced by recent extensions patch.
48520         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48521         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48522         autoconf.
48523
48524         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48525         * m4/00gnulib.m4: New file.
48526         * gnulib-tool (func_get_filelist): Always use it.
48527         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48528         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48529
48530 2009-01-25  Bruno Haible  <bruno@clisp.org>
48531
48532         Make test-quotearg work on MacOS X and AIX.
48533         * tests/test-quotearg.sh: New file.
48534         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48535         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48536         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48537         include <libintl.h>.
48538         (fake_locale): Remove variable.
48539         (gettext, dgettext, dcgettext): Remove functions.
48540         (main): Instead of setting a fake locale, set a real locale. Call
48541         textdomain and bindtextdomain.
48542         * modules/quotearg-tests (Files): Add the new files.
48543         (Depends-on): Add gettext, setenv, unsetenv.
48544         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48545         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48546         Augment TESTS_ENVIRONMENT.
48547
48548 2009-01-25  Bruno Haible  <bruno@clisp.org>
48549
48550         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48551         fr_FR.ISO8859-1 locale on MacOS X.
48552         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48553         ja_JP.eucJP locale on MacOS X.
48554         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48555         zh_CN.GB18030 locale on MacOS X.
48556
48557 2009-01-25  Bruno Haible  <bruno@clisp.org>
48558
48559         Avoid link errors on MacOS X 10.3.
48560         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48561         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48562
48563 2009-01-25  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48566         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48567         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48568         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48569         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48570         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48571         posix_spawnattr_init, posix_spawnattr_setsigmask,
48572         posix_spawnattr_setflags, posix_spawnattr_destroy.
48573
48574         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48575         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48576         * modules/execute (Files): Remove m4/posix_spawn.m4.
48577         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48578         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48579         posix_spawnattr_init, posix_spawnattr_setsigmask,
48580         posix_spawnattr_setflags, posix_spawnattr_destroy.
48581
48582 2009-01-25  Bruno Haible  <bruno@clisp.org>
48583
48584         * lib/glthread/threadlib.c: Include <stdlib.h>.
48585
48586 2009-01-25  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/glthread/threadlib.c (dummy): New declaration.
48589
48590 2009-01-25  Bruno Haible  <bruno@clisp.org>
48591
48592         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48593         multibyte characters also for the GB18030 encoding. Don't crash when
48594         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48595
48596 2009-01-25  Bruno Haible  <bruno@clisp.org>
48597
48598         Avoid redefining 'struct random_data' on OSF/1 5.1.
48599         * lib/stdlib.in.h: Include <random.h> if it exists.
48600         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48601         HAVE_RANDOM_H. Include <random.h> when testing whether
48602         'struct random_data' exists.
48603         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48604
48605 2009-01-25  Bruno Haible  <bruno@clisp.org>
48606
48607         Don't install charset.alias on MacOS X >= 10.3.
48608         * lib/localcharset.c (DARWIN7): New macro.
48609         (get_charset_aliases): Hardcode the result for Darwin7.
48610         * modules/localcharset (install-exec-local): Don't install
48611         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48612
48613 2009-01-25  Bruno Haible  <bruno@clisp.org>
48614
48615         Don't install charset.alias on mingw and Cygwin.
48616         * modules/localcharset (install-exec-local): Don't install
48617         charset.alias on mingw and Cygwin, if the file does not yet exist.
48618         The result for these platforms is hardcoded in localcharset.c.
48619
48620 2009-01-25  Bruno Haible  <bruno@clisp.org>
48621
48622         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48623         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48624         before requiring AC_USE_SYSTEM_EXTENSIONS.
48625
48626 2009-01-25  Jim Meyering  <meyering@redhat.com>
48627
48628         c-strtod: avoid warnings
48629         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48630         "assignment discards qualifiers from pointer target type" warnings.
48631
48632 2009-01-24  Bruno Haible  <bruno@clisp.org>
48633
48634         Add support for non-UTF-8 locales on MacOS X.
48635         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48636         canonical encodings. For Darwin 7 and newer, don't map traditional
48637         encodings to UTF-8.
48638         Reported by Vincent Lefevre <vincent@vinc17.org>
48639         at <http://savannah.gnu.org/bugs/?25235>.
48640
48641 2009-01-24  Bruno Haible  <bruno@clisp.org>
48642
48643         * doc/gnulib.texi (Obsolete modules): New section.
48644         Reported by Mike Frysinger <vapier@gentoo.org>.
48645
48646 2009-01-24  Bruno Haible  <bruno@clisp.org>
48647
48648         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48649         (%.dvi): New rule.
48650
48651 2009-01-24  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48654         Reported by Eric Blake.
48655
48656 2009-01-24  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48659         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48660         Reported by Gary V. Vaughan <gary@gnu.org>.
48661
48662 2009-01-24  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48665
48666 2009-01-23  Bruno Haible  <bruno@clisp.org>
48667
48668         Make c-strtod, c-strtold usable in libraries.
48669         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48670         (C_STRTOD): Call strdup instead of xstrdup.
48671         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48672         * modules/c-strtold (Depends-on): Likewise.
48673         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48674         * NEWS: Mention the change.
48675         Reported by Michael Gold <mgold@ncf.ca>.
48676
48677 2009-01-23  Jim Meyering  <meyering@redhat.com>
48678
48679         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48680         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48681         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48682
48683 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48684
48685         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48686         GNU CoreUtils.
48687         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48688         * modules/version-etc (Description): Update.
48689
48690 2009-01-22  Bruno Haible  <bruno@clisp.org>
48691
48692         Cache the C locale object.
48693         * lib/c-strtod.c (c_locale_cache): New variable.
48694         (c_locale): New function.
48695         (C_STRTOD): Use it, and don't call freelocale.
48696         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48697         Suggested by Paolo Bonzini.
48698
48699 2009-01-21  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48702         conditions other than overflow.
48703
48704 2009-01-21  Bruno Haible  <bruno@clisp.org>
48705
48706         * lib/c-strtod.c: Include errno.h.
48707         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48708         value from STRTOD_L and STRTOD.
48709
48710 2009-01-21  Bruno Haible  <bruno@clisp.org>
48711         and Jim Meyering  <meyering@redhat.com>
48712
48713         nanosleep: skip configure test (fail it) for apple universal builds
48714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48715         universal builds, assume that nanosleep does not work.
48716         * modules/nanosleep (Depends-on): Add multiarch.
48717
48718         mktime: skip configure test (fail it) for apple universal builds
48719         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48720         universal builds, assume that mktime does not work.
48721         * modules/mktime (Depends-on): Add multiarch.
48722
48723 2009-01-21  Eric Blake  <ebb9@byu.net>
48724
48725         multiarch: avoid expand-before-require warning
48726         * modules/multiarch (configure.ac): Require, rather than expand,
48727         gl_MULTIARCH.
48728         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48729         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48730         enforce that all clients require it.  Partial reversion of
48731         2008-12-29 patch.
48732
48733         error: avoid expand-before-require warning
48734         * modules/errno (configure.ac): Require, rather than expand,
48735         gl_HEADER_ERRNO_H.
48736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48737         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48738         enforce that all clients require it.
48739
48740         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48741         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48742         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48743         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48744
48745 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48746
48747         Revert:
48748         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48749
48750         regex: do not depend on obsolete modules.
48751         * modules/regex: Remove memcmp and memmove.
48752
48753 2009-01-20  Bruno Haible  <bruno@clisp.org>
48754
48755         Make the 'link' module link on Windows NT 4.
48756         * lib/link.c (_WIN32_WINNT): Don't define.
48757         (CreateHardLinkFuncType): New type.
48758         (CreateHardLinkFunc, initialized): New variables.
48759         (initialize): New function.
48760         (link): Invoke CreateHardLink indirectly through the function pointer.
48761
48762 2009-01-20  Bruno Haible  <bruno@clisp.org>
48763
48764         Fix compilation failure on mingw.
48765         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48766
48767 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48768
48769         * doc/c-strtod.texi: Mention a couple of restrictions.
48770
48771 2009-01-20  Jim Meyering  <meyering@redhat.com>
48772
48773         gettimeofday: move more declarations out of functions
48774         * lib/gettimeofday.c: Move extern declarations of tzset and
48775         gmtime out of containing functions.  Prompted by Bruno Haible.
48776
48777 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48778
48779         regex: do not depend on obsolete modules.
48780         * modules/regex: Remove memcmp and memmove.
48781
48782 2009-01-19  Bruno Haible  <bruno@clisp.org>
48783
48784         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48785         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48786         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48787         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48788         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48789
48790 2009-01-19  Bruno Haible  <bruno@clisp.org>
48791
48792         * tests/test-link.c: Include <errno.h>.
48793         (main): Exit with code 77 when a hard link cannot be created due to
48794         the file system.
48795         * tests/test-link.sh: Skip test when a hard link cannot be created due
48796         to the file system.
48797         Suggested by Eric Blake.
48798
48799 2009-01-19  Martin Lambers  <marlam@marlam.de>
48800
48801         * modules/link-tests: New file.
48802         * tests/test-link.sh: New file.
48803         * tests/test-link.c: New file.
48804
48805 2009-01-19  Eric Blake  <ebb9@byu.net>
48806
48807         doc: mention another function added in cygwin 1.7.0
48808         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48809         Another new function in cygwin 1.7.
48810
48811 2009-01-19  Bruno Haible  <bruno@clisp.org>
48812
48813         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48814         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48815         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48816         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48817         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48818         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48819         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48820         * m4/md4.m4 (gl_MD4): Likewise.
48821         * m4/md5.m4 (gl_MD5): Likewise.
48822         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48823         * m4/sha1.m4 (gl_SHA1): Likewise.
48824         * m4/sha256.m4 (gl_SHA256): Likewise.
48825         * m4/sha512.m4 (gl_SHA512): Likewise.
48826
48827 2009-01-19  Bruno Haible  <bruno@clisp.org>
48828
48829         * modules/uniname/uniname-tests (Depends-on): Add progname.
48830         * tests/uniname/test-uninames.c: Include progname.h.
48831         (main): Call set_program_name.
48832
48833         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48834         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48835         (main): Call set_program_name.
48836
48837         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48838         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48839         (main): Call set_program_name.
48840
48841         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48842         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48843         (main): Call set_program_name.
48844
48845         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48846         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48847         (main): Call set_program_name.
48848
48849         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48850         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48851         (main): Call set_program_name.
48852
48853         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48854         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48855         (main): Call set_program_name.
48856
48857         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48858         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48859         (main): Call set_program_name.
48860
48861         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48862         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48863         (main): Call set_program_name.
48864
48865 2009-01-19  Eric Blake  <ebb9@byu.net>
48866
48867         test-unistd: test previous patch
48868         * tests/test-unistd.c: Test *_FILENO macros.
48869
48870         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48871         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48872         Guarantee a definition.
48873         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48874         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48875         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48876         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48877         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48878         Likewise.
48879         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48880         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48881         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48882         Likewise.
48883         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48884         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48885         (STDERR_FILENO): Likewise.
48886         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48887         (STDERR_FILENO): Likewise.
48888         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48889         (STDERR_FILENO): Likewise.
48890         Reported by Elbert Pol.
48891
48892 2009-01-19  Eric Blake  <ebb9@byu.net>
48893
48894         doc: mention more functions added in cygwin 1.7.0
48895         * doc/posix-functions/abort.texi (abort): Update wording related
48896         to cygwin.
48897         * doc/posix-functions/daylight.texi (daylight): Likewise.
48898         * doc/posix-functions/optarg.texi (optarg): Likewise.
48899         * doc/posix-functions/optarg.texi (opterr): Likewise.
48900         * doc/posix-functions/optarg.texi (optind): Likewise.
48901         * doc/posix-functions/optarg.texi (optopt): Likewise.
48902         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48903         worked in 1.5.x, and was withdrawn in 1.7.
48904         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48905         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48906         cygwin versions.
48907         * doc/posix-functions/perror.texi (perror): Likewise.
48908         * doc/posix-functions/printf.texi (printf): Likewise.
48909         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48910         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48911         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48912         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48913         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48914         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48915         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48916         Likewise.
48917         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48918         Likewise.
48919         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48920         this function.
48921         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48922         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48923         Likewise.
48924         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48925         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48926         * doc/posix-functions/confstr.texi (confstr): Likewise.
48927         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48928         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48929         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48930         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48931         * doc/posix-functions/fputws.texi (fputws): Likewise.
48932         * doc/posix-functions/fwide.texi (fwide): Likewise.
48933         * doc/posix-functions/getwc.texi (getwc): Likewise.
48934         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48935         * doc/posix-functions/putwc.texi (putwc): Likewise.
48936         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48937         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48938         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48939         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48940         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48941         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48942         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48943         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48944         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48945         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48946         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48947
48948 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48949
48950         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48951         * lib/ioctl.c: Include <sys/ioctl.h>.
48952
48953 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48954
48955         * modules/getdate-tests (Depends-on): Add progname.
48956         * tests/test-getdate.c: Use progname module, to avoid link errors
48957         on non-glibc systems.
48958
48959 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48960
48961         * modules/filenamecat-tests (Depends-on): Add progname.
48962         * modules/fstrcmp-tests (Depends-on): Likewise.
48963
48964         * tests/test-filenamecat.c: Use progname module, to avoid link
48965         errors on non-glibc systems.
48966         * tests/test-fstrcmp.c: Likewise.
48967
48968 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48969
48970         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48971         * lib/gettimeofday.c: Move extern declaration out of function.
48972
48973 2009-01-18  Bruno Haible  <bruno@clisp.org>
48974
48975         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48976         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48977         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48978
48979 2009-01-18  Bruno Haible  <bruno@clisp.org>
48980
48981         * lib/strftime.c (MEMPCPY): Remove unused macro.
48982         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48983
48984 2009-01-18  Martin Lambers  <marlam@marlam.de>
48985
48986         New module 'link'.
48987         * lib/unistd.in.h (link): New declaration.
48988         * lib/link.c: New file.
48989         * m4/link.m4: New file.
48990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48991         HAVE_LINK.
48992         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48993         * modules/link: New file.
48994         * doc/posix-functions/link.texi: Mention the new module.
48995
48996 2009-01-18  Bruno Haible  <bruno@clisp.org>
48997
48998         * tests/test-avltree_list.c (main): Call set_program_name.
48999         * tests/test-avltree_oset.c (main): Likewise.
49000         * tests/test-obstack-printf.c: Include progname.h.
49001         (main): Call set_program_name.
49002         * tests/test-quotearg.c: Include progname.h.
49003         (main): Call set_program_name.
49004         * tests/test-xmemdup0.c: Include progname.h.
49005         (main): Call set_program_name.
49006
49007 2009-01-18  Bruno Haible  <bruno@clisp.org>
49008
49009         New module 'alphasort'.
49010         * lib/dirent.in.h (alphasort): New declaration.
49011         * lib/alphasort.c: New file, from glibc with modifications.
49012         * m4/alphasort.m4: New file.
49013         * modules/alphasort: New file.
49014         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49015         HAVE_ALPHASORT.
49016         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49017         HAVE_ALPHASORT.
49018         * doc/posix-functions/alphasort.texi: Mention the new module and the
49019         portability problems.
49020
49021 2009-01-18  Bruno Haible  <bruno@clisp.org>
49022
49023         New module 'scandir'.
49024         * lib/dirent.in.h (scandir): New declaration.
49025         * lib/scandir.c: New file, from glibc with modifications.
49026         * m4/scandir.m4: New file.
49027         * modules/scandir: New file.
49028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49029         HAVE_SCANDIR.
49030         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49031         HAVE_SCANDIR.
49032         * doc/posix-functions/scandir.texi: Mention the new module and the
49033         portability problems.
49034
49035 2009-01-17  Bruno Haible  <bruno@clisp.org>
49036
49037         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49038         Update documentation.
49039         (func_remove_suffix): Escape all dots in the suffix. Update
49040         documentation.
49041         (func_filter_filelist): Update documentation.
49042         Reported by Ralf Wildenhues.
49043
49044 2009-01-17  Bruno Haible  <bruno@clisp.org>
49045
49046         * modules/dprintf-posix-tests: New file.
49047         * tests/test-dprintf-posix.sh: New file.
49048         * tests/test-dprintf-posix.c: New file.
49049
49050         New modules 'dprintf', 'dprintf-posix'.
49051         * lib/stdio.in.h (dprintf): New declaration.
49052         * lib/dprintf.c: New file.
49053         * m4/dprintf.m4: New file.
49054         * m4/dprintf-posix.m4: New file.
49055         * modules/dprintf: New file.
49056         * modules/dprintf-posix: New file.
49057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49058         HAVE_DPRINTF, REPLACE_DPRINTF.
49059         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49060         HAVE_DPRINTF, REPLACE_DPRINTF.
49061         * doc/posix-functions/dprintf.texi: Mention the new modules.
49062
49063 2009-01-17  Bruno Haible  <bruno@clisp.org>
49064
49065         * modules/vdprintf-posix-tests: New file.
49066         * tests/test-vdprintf-posix.sh: New file.
49067         * tests/test-vdprintf-posix.c: New file.
49068
49069         New modules 'vdprintf', 'vdprintf-posix'.
49070         * lib/stdio.in.h (vdprintf): New declaration.
49071         * lib/vdprintf.c: New file.
49072         * m4/vdprintf.m4: New file.
49073         * m4/vdprintf-posix.m4: New file.
49074         * modules/vdprintf: New file.
49075         * modules/vdprintf-posix: New file.
49076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49077         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49078         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49079         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49080         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49081
49082 2009-01-17  Bruno Haible  <bruno@clisp.org>
49083
49084         Fix replacement of fopen on mingw.
49085         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49086         mingw.
49087
49088 2009-01-17  Bruno Haible  <bruno@clisp.org>
49089
49090         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49091         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49092
49093 2009-01-17  Bruno Haible  <bruno@clisp.org>
49094
49095         Avoid test-fflush2.sh failure on mingw.
49096         * tests/test-fflush2.c: Include binary-io.h.
49097         (main): Put standard input into binary mode.
49098         * modules/fflush-tests (Depends-on): Add binary-io.
49099
49100 2009-01-17  Bruno Haible  <bruno@clisp.org>
49101
49102         * lib/wchar.in.h: In another particular situation, include only the
49103         system's <wchar.h> file.
49104         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49105         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49106         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49107
49108 2009-01-17  Bruno Haible  <bruno@clisp.org>
49109
49110         Support for stripping executables in --enable-relocatable.
49111         * build-aux/install-reloc: Expect one more argument, or an environment
49112         variable RELOC_STRIP_PROG. If set, strip the destination program and
49113         its wrapper.
49114         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49115         RELOC_STRIP_PROG.
49116         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49117         to set RELOCATABLE_STRIP.
49118         * NEWS: Mention the new Makefile requirement.
49119
49120 2009-01-17  Bruno Haible  <bruno@clisp.org>
49121
49122         * build-aux/install-reloc: Remove debugging information left over by
49123         C compiler on MacOS X.
49124
49125 2009-01-17  Bruno Haible  <bruno@clisp.org>
49126
49127         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49128         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49129         _NSGetExecutablePath.
49130
49131 2009-01-16  Jim Meyering  <meyering@redhat.com>
49132
49133         strerror: avoid warnings about discarding "const"
49134         * lib/strerror.c (rpl_strerror): Instead of returning a const
49135         string from each and every "case", use a variable, and add a single
49136         cast after the switch.
49137
49138 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49139
49140         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49141
49142 2009-01-16  Bruno Haible  <bruno@clisp.org>
49143
49144         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49145         array initializer syntax that also works in C++ mode.
49146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49147
49148 2009-01-16  Jim Meyering  <meyering@redhat.com>
49149
49150         poll: suppress a warning
49151         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49152         to ignore "...unsigned expression < 0 is always false" warnings.
49153
49154 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49155
49156         poll: remove declarations of unused variables
49157         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49158         sockbuf and optlen.
49159
49160 2009-01-15  Bruno Haible  <bruno@clisp.org>
49161
49162         Make fflush-after-ungetc POSIX compliant on BSD systems.
49163         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49164         (clear_ungetc_buffer): Implement also for other systems.
49165         (rpl_fflush): On glibc systems, invoke
49166         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49167         clear_ungetc_buffer after fetching the stream's position, not before.
49168
49169 2009-01-15  Bruno Haible  <bruno@clisp.org>
49170
49171         Make fflush-after-ungetc POSIX compliant on glibc systems.
49172         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49173         after ungetc.
49174         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49175         (rpl_fflush): On glibc systems, simply call the system's fflush
49176         function after clearing the ungetc buffer.
49177         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49178         Instead, lseek only to the end of file, then use the system's fseeko
49179         for the rest. On glibc systems, reset the EOF indicator bit.
49180
49181 2009-01-15  Jim Meyering  <meyering@redhat.com>
49182
49183         openmp.m4: revert quote-adding change, for portability to older autoconf
49184         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49185         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49186         Simon Josefsson noticed the problem when using autoconf-2.61.
49187
49188 2009-01-15  Bruno Haible  <bruno@clisp.org>
49189
49190         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49191         * tests/test-fflush2.c (ASSERT): Always fail.
49192         (main): Add two tests for fflush() after ungetc(), taking into account
49193         the Austin Group's clarification.
49194         Suggested by Eric Blake.
49195
49196 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49197
49198         mktime.m4: remove K&R-style function prototypes
49199         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49200         for the Sun C++ compiler.
49201
49202 2009-01-14  Bruno Haible  <bruno@clisp.org>
49203
49204         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49205         while including <wchar.h>.
49206         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49207         the system's <wchar.h> file.
49208         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49209
49210 2009-01-14  Bruno Haible  <bruno@clisp.org>
49211
49212         * m4/csharp.m4: Don't mention gettext on the serial number line.
49213         * m4/csharpexec.m4: Likewise.
49214         * m4/eaccess.m4: Likewise.
49215         * m4/javaexec.m4: Likewise.
49216         * m4/sig_atomic_t.m4: Likewise.
49217         * m4/tmpdir.m4: Likewise.
49218         * m4/intldir.m4: Bump gettext version.
49219         * m4/lib-ld.m4: Likewise.
49220
49221 2009-01-14  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/progname.c (set_program_name): Add more comments.
49224         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49225
49226 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49227
49228         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49229         were sys/stat.h does not define it.
49230
49231 2009-01-14  Jim Meyering  <meyering@redhat.com>
49232
49233         many *.m4 files: improve m4 quoting
49234         99% of this change was performed by running the following commands:
49235         git ls-files | grep '\.m4$' | xargs perl -pi \
49236           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49237           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49238           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49239           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49240         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49241         The remainder were to add Copyright dates, increment serial numbers,
49242         undo some changes in comments, exclude m4/intl.m4, and add quotes
49243         around the "1" in ",1" where the unusual spacing prohibited the
49244         above regexps from doing the job.  For more details, see
49245         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49246         * m4/acl.m4: Modified.
49247         * m4/afs.m4: Likewise.
49248         * m4/alloca.m4: Likewise.
49249         * m4/argp.m4: Likewise.
49250         * m4/argz.m4: Likewise.
49251         * m4/atexit.m4: Likewise.
49252         * m4/bison-i18n.m4: Likewise.
49253         * m4/bison.m4: Likewise.
49254         * m4/byteswap.m4: Likewise.
49255         * m4/c-stack.m4: Likewise.
49256         * m4/c-strtod.m4: Likewise.
49257         * m4/calloc.m4: Likewise.
49258         * m4/canonicalize-lgpl.m4: Likewise.
49259         * m4/chown.m4: Likewise.
49260         * m4/clock_time.m4: Likewise.
49261         * m4/codeset.m4: Likewise.
49262         * m4/copy-file.m4: Likewise.
49263         * m4/csharp.m4: Likewise.
49264         * m4/csharpcomp.m4: Likewise.
49265         * m4/csharpexec.m4: Likewise.
49266         * m4/d-ino.m4: Likewise.
49267         * m4/d-type.m4: Likewise.
49268         * m4/dirfd.m4: Likewise.
49269         * m4/double-slash-root.m4: Likewise.
49270         * m4/eaccess.m4: Likewise.
49271         * m4/eealloc.m4: Likewise.
49272         * m4/environ.m4: Likewise.
49273         * m4/errno_h.m4: Likewise.
49274         * m4/euidaccess.m4: Likewise.
49275         * m4/execute.m4: Likewise.
49276         * m4/fatal-signal.m4: Likewise.
49277         * m4/fchdir.m4: Likewise.
49278         * m4/fcntl_h.m4: Likewise.
49279         * m4/fileblocks.m4: Likewise.
49280         * m4/filenamecat.m4: Likewise.
49281         * m4/findprog.m4: Likewise.
49282         * m4/flexmember.m4: Likewise.
49283         * m4/fnmatch.m4: Likewise.
49284         * m4/fopen.m4: Likewise.
49285         * m4/fpending.m4: Likewise.
49286         * m4/fprintf-posix.m4: Likewise.
49287         * m4/free.m4: Likewise.
49288         * m4/frexp.m4: Likewise.
49289         * m4/frexpl.m4: Likewise.
49290         * m4/fsusage.m4: Likewise.
49291         * m4/ftruncate.m4: Likewise.
49292         * m4/gc-camellia.m4: Likewise.
49293         * m4/gc-random.m4: Likewise.
49294         * m4/gc.m4: Likewise.
49295         * m4/getaddrinfo.m4: Likewise.
49296         * m4/getcwd-abort-bug.m4: Likewise.
49297         * m4/getcwd-path-max.m4: Likewise.
49298         * m4/getdate.m4: Likewise.
49299         * m4/getdomainname.m4: Likewise.
49300         * m4/getgroups.m4: Likewise.
49301         * m4/gethostname.m4: Likewise.
49302         * m4/gethrxtime.m4: Likewise.
49303         * m4/getline.m4: Likewise.
49304         * m4/getloadavg.m4: Likewise.
49305         * m4/getndelim2.m4: Likewise.
49306         * m4/getpass.m4: Likewise.
49307         * m4/gettext.m4: Likewise.
49308         * m4/gettime.m4: Likewise.
49309         * m4/gettimeofday.m4: Likewise.
49310         * m4/gnulib-common.m4: Likewise.
49311         * m4/group-member.m4: Likewise.
49312         * m4/host-os.m4: Likewise.
49313         * m4/iconv.m4: Likewise.
49314         * m4/iconv_open.m4: Likewise.
49315         * m4/inet_ntop.m4: Likewise.
49316         * m4/inet_pton.m4: Likewise.
49317         * m4/inline.m4: Likewise.
49318         * m4/intldir.m4: Likewise.
49319         * m4/intlmacosx.m4: Likewise.
49320         * m4/intmax.m4: Likewise.
49321         * m4/intmax_t.m4: Likewise.
49322         * m4/inttypes.m4: Likewise.
49323         * m4/inttypes_h.m4: Likewise.
49324         * m4/inttypes-pri.m4: Likewise.
49325         * m4/isapipe.m4: Likewise.
49326         * m4/isnand.m4: Likewise.
49327         * m4/isnanf.m4: Likewise.
49328         * m4/isnanl.m4: Likewise.
49329         * m4/javacomp.m4: Likewise.
49330         * m4/javaexec.m4: Likewise.
49331         * m4/jm-winsz1.m4: Likewise.
49332         * m4/jm-winsz2.m4: Likewise.
49333         * m4/lchown.m4: Likewise.
49334         * m4/lcmessage.m4: Likewise.
49335         * m4/ldexpl.m4: Likewise.
49336         * m4/lib-ld.m4: Likewise.
49337         * m4/lib-link.m4: Likewise.
49338         * m4/libsigsegv.m4: Likewise.
49339         * m4/link-follow.m4: Likewise.
49340         * m4/localcharset.m4: Likewise.
49341         * m4/locale-fr.m4: Likewise.
49342         * m4/locale-ja.m4: Likewise.
49343         * m4/locale-tr.m4: Likewise.
49344         * m4/locale-zh.m4: Likewise.
49345         * m4/lock.m4: Likewise.
49346         * m4/longlong.m4: Likewise.
49347         * m4/ls-mntd-fs.m4: Likewise.
49348         * m4/lstat.m4: Likewise.
49349         * m4/malloc.m4: Likewise.
49350         * m4/mathl.m4: Likewise.
49351         * m4/mbrtowc.m4: Likewise.
49352         * m4/mbstate_t.m4: Likewise.
49353         * m4/mbswidth.m4: Likewise.
49354         * m4/memchr.m4: Likewise.
49355         * m4/memcmp.m4: Likewise.
49356         * m4/memcpy.m4: Likewise.
49357         * m4/memmem.m4: Likewise.
49358         * m4/memmove.m4: Likewise.
49359         * m4/mempcpy.m4: Likewise.
49360         * m4/memrchr.m4: Likewise.
49361         * m4/memset.m4: Likewise.
49362         * m4/minmax.m4: Likewise.
49363         * m4/mkdir-slash.m4: Likewise.
49364         * m4/mkdtemp.m4: Likewise.
49365         * m4/mktime.m4: Likewise.
49366         * m4/mmap-anon.m4: Likewise.
49367         * m4/mountlist.m4: Likewise.
49368         * m4/nanosleep.m4: Likewise.
49369         * m4/nls.m4: Likewise.
49370         * m4/nocrash.m4: Likewise.
49371         * m4/open.m4: Likewise.
49372         * m4/openat.m4: Likewise.
49373         * m4/openmp.m4: Likewise.
49374         * m4/pathmax.m4: Likewise.
49375         * m4/perl.m4: Likewise.
49376         * m4/physmem.m4: Likewise.
49377         * m4/pipe.m4: Likewise.
49378         * m4/po.m4: Likewise.
49379         * m4/poll.m4: Likewise.
49380         * m4/posixtm.m4: Likewise.
49381         * m4/posixver.m4: Likewise.
49382         * m4/printf-frexp.m4: Likewise.
49383         * m4/printf-frexpl.m4: Likewise.
49384         * m4/printf-posix.m4: Likewise.
49385         * m4/printf-posix-rpl.m4: Likewise.
49386         * m4/printf.m4: Likewise.
49387         * m4/progtest.m4: Likewise.
49388         * m4/putenv.m4: Likewise.
49389         * m4/readline.m4: Likewise.
49390         * m4/readlink.m4: Likewise.
49391         * m4/readutmp.m4: Likewise.
49392         * m4/realloc.m4: Likewise.
49393         * m4/regex.m4: Likewise.
49394         * m4/relocatable.m4: Likewise.
49395         * m4/relocatable-lib.m4: Likewise.
49396         * m4/rename-dest-slash.m4: Likewise.
49397         * m4/rename.m4: Likewise.
49398         * m4/rmdir-errno.m4: Likewise.
49399         * m4/rmdir.m4: Likewise.
49400         * m4/roundf.m4: Likewise.
49401         * m4/roundl.m4: Likewise.
49402         * m4/rpmatch.m4: Likewise.
49403         * m4/save-cwd.m4: Likewise.
49404         * m4/selinux-selinux-h.m4: Likewise.
49405         * m4/setenv.m4: Likewise.
49406         * m4/settime.m4: Likewise.
49407         * m4/sig2str.m4: Likewise.
49408         * m4/sig_atomic_t.m4: Likewise.
49409         * m4/signalblocking.m4: Likewise.
49410         * m4/signbit.m4: Likewise.
49411         * m4/sigpipe.m4: Likewise.
49412         * m4/sockets.m4: Likewise.
49413         * m4/sockpfaf.m4: Likewise.
49414         * m4/st_dm_mode.m4: Likewise.
49415         * m4/stat-time.m4: Likewise.
49416         * m4/stdbool.m4: Likewise.
49417         * m4/stdint.m4: Likewise.
49418         * m4/stdint_h.m4: Likewise.
49419         * m4/stpcpy.m4: Likewise.
49420         * m4/stpncpy.m4: Likewise.
49421         * m4/strcase.m4: Likewise.
49422         * m4/strchrnul.m4: Likewise.
49423         * m4/strcspn.m4: Likewise.
49424         * m4/strdup.m4: Likewise.
49425         * m4/strftime.m4: Likewise.
49426         * m4/strndup.m4: Likewise.
49427         * m4/strnlen.m4: Likewise.
49428         * m4/strpbrk.m4: Likewise.
49429         * m4/strptime.m4: Likewise.
49430         * m4/strsep.m4: Likewise.
49431         * m4/strtod.m4: Likewise.
49432         * m4/strtoimax.m4: Likewise.
49433         * m4/strtok_r.m4: Likewise.
49434         * m4/strtol.m4: Likewise.
49435         * m4/strtoll.m4: Likewise.
49436         * m4/strtoul.m4: Likewise.
49437         * m4/strtoull.m4: Likewise.
49438         * m4/strtoumax.m4: Likewise.
49439         * m4/strverscmp.m4: Likewise.
49440         * m4/threadlib.m4: Likewise.
49441         * m4/timegm.m4: Likewise.
49442         * m4/tm_gmtoff.m4: Likewise.
49443         * m4/tmpdir.m4: Likewise.
49444         * m4/tmpfile.m4: Likewise.
49445         * m4/tzset.m4: Likewise.
49446         * m4/uintmax_t.m4: Likewise.
49447         * m4/unlinkdir.m4: Likewise.
49448         * m4/unlocked-io.m4: Likewise.
49449         * m4/uptime.m4: Likewise.
49450         * m4/userspec.m4: Likewise.
49451         * m4/utimbuf.m4: Likewise.
49452         * m4/utime.m4: Likewise.
49453         * m4/utimes-null.m4: Likewise.
49454         * m4/utimes.m4: Likewise.
49455         * m4/vararrays.m4: Likewise.
49456         * m4/vasnprintf.m4: Likewise.
49457         * m4/vfprintf-posix.m4: Likewise.
49458         * m4/vprintf-posix.m4: Likewise.
49459         * m4/wait-process.m4: Likewise.
49460         * m4/wchar_t.m4: Likewise.
49461         * m4/wint_t.m4: Likewise.
49462         * m4/write-any-file.m4: Likewise.
49463         * m4/yield.m4: Likewise.
49464
49465 2009-01-13  Bruno Haible  <bruno@clisp.org>
49466
49467         Avoid test-copy-file.sh failures when ACL support insufficient.
49468         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49469         TESTS_ENVIRONMENT.
49470         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49471         Reported by Jim Meyering.
49472
49473 2009-01-13  Bruno Haible  <bruno@clisp.org>
49474
49475         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49476         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49477         * modules/unistdio/u8-printf-parse (Files): Likewise.
49478         * modules/unistdio/u32-printf-parse (Files): Likewise.
49479         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49480
49481 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49482
49483         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49484         and m4/inttypes_h.m4 too.
49485
49486 2009-01-12  Eric Blake  <ebb9@byu.net>
49487
49488         tests: IRIX 6.2 cc can't compile -0.0 into .data
49489         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49490         rather than at compile-time.
49491         * tests/test-floorl.c (minus_zero): Likewise.
49492         * tests/test-frexpl.c (minus_zero): Likewise.
49493         * tests/test-isnan.c (minus_zerol): Likewise.
49494         * tests/test-isnanl.h (minus_zero): Likewise.
49495         * tests/test-ldexpl.c (minus_zero): Likewise.
49496         * tests/test-roundl.c (minus_zero): Likewise.
49497         * tests/test-signbit.c (minus_zerol): Likewise.
49498         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49499         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49500         * tests/test-truncl.c (minus_zero): Likewise.
49501         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49502         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49503         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49504
49505 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49506
49507         regex: fix glibc bug 9697
49508         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49509         handling.
49510
49511 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49512
49513         regex: fix glibc bug 697
49514         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49515         being NULL also if there are no backreferences.
49516
49517 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49518
49519         regex: merge glibc changes
49520         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49521         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49522         re_string_skip_chars, re_string_reconstruct): Likewise.
49523         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49524
49525 2009-01-07  Jim Meyering  <meyering@redhat.com>
49526
49527         poll: filter through cppi
49528         * lib/poll.c: Indent cpp directives to reflect nesting.
49529
49530 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49531
49532         poll: don't return uninitialized
49533         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49534
49535 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49536
49537         avoid compile failure on AIX 6.1
49538         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49539         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49540
49541 2009-01-04  Jim Meyering  <meyering@redhat.com>
49542
49543         remove duplicate inclusion of <stdio.h>
49544         * tests/test-fprintf-posix.c: Likewise.
49545         * tests/test-printf-posix.c: Likewise.
49546         * tests/test-snprintf-posix.c: Likewise.
49547         * tests/test-sprintf-posix.c: Likewise.
49548         * tests/test-vasprintf-posix.c: Likewise.
49549         * tests/test-vfprintf-posix.c: Likewise.
49550         * tests/test-vprintf-posix.c: Likewise.
49551         * tests/test-vsnprintf-posix.c: Likewise.
49552         * tests/test-vsprintf-posix.c: Likewise.
49553
49554 2009-01-03  Jim Meyering  <meyering@redhat.com>
49555
49556         gnulib-tool: fix sed-based filtering
49557         * gnulib-tool (func_filter_filelist): Remove extra backslash
49558         in sed_fff_filter definition.
49559
49560 2009-01-02  Jim Meyering  <meyering@redhat.com>
49561
49562         strftime: avoid compilation failure on Solaris 2.6
49563         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49564         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49565         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49566         be available.  Reported by Tom G. Christensen.  Details in
49567         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49568
49569 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49570             Bruno Haible  <bruno@clisp.org>
49571
49572         Speed up gnulib-tool by doing more string processing through shell
49573         built-ins.
49574         * gnulib-tool (fast_func_append): New variable.
49575         (func_remove_prefix, func_remove_suffix): New functions.
49576         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49577         (func_filter_filelist): New function.
49578         (func_get_dependencies): Use func_remove_suffix instead of sed.
49579         (func_get_automake_snippet): Use func_filter_filelist instead of a
49580         subshell and sed invocation.
49581
49582 2009-01-01  Bruno Haible  <bruno@clisp.org>
49583
49584         Fix a security bug.
49585         * gnulib-tool (func_import, import, update): Don't allow the characters
49586         '"', '$', '`', '\' in macro arguments that become part of commands that
49587         are evaluated.
49588
49589 2009-01-01  Bruno Haible  <bruno@clisp.org>
49590
49591         * gnulib-tool (func_reset_sigpipe): Add more comments.
49592
49593 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49594
49595         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49596         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49597         already know the answer.
49598
49599 2009-01-01  Jim Meyering  <meyering@redhat.com>
49600
49601         * lib/version-etc.c (version_etc_va): Update copyright year.
49602
49603 2008-12-30  Bruno Haible  <bruno@clisp.org>
49604
49605         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49606         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49607         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49608
49609 2008-12-29  Eric Blake  <ebb9@byu.net>
49610
49611         multiarch: avoid autoconf AC_REQUIRE bug
49612         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49613         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49614         2.63 and older.
49615         Reported by Bruno Haible, and analyzed in
49616         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49617
49618 2008-12-29  Bruno Haible  <bruno@clisp.org>
49619
49620         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49621         files in subdirectories correctly.
49622         Reported by Ralf Wildenhues.
49623
49624 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49625
49626         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49627         rather than 'join FILE -', for Solaris join.
49628
49629 2008-12-29  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49632         quoting.
49633         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49634         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49635         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49636         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49637         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49638         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49639         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49640         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49641         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49642         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49643         * m4/nls.m4 (AM_NLS): Likewise.
49644         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49645         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49646         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49647         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49648         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49649         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49650         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49651         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49652         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49653         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49654         * m4/xsize.m4 (gl_XSIZE): Likewise.
49655         Suggested by Jim Meyering.
49656
49657 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49658
49659         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49660         * lib/parse-duration.c: use a switch instead of cascading if's.
49661
49662 2008-12-29  Eric Blake  <ebb9@byu.net>
49663
49664         wchar.h: supply WEOF on Irix 5.3
49665         * lib/wchar.in.h (wint_t): Also supply WEOF.
49666         * lib/wctype.in.h (wint_t): Likewise.
49667         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49668         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49669         Reported by Tom G. Christensen.
49670
49671 2008-12-26  Bruno Haible  <bruno@clisp.org>
49672
49673         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49674         i486, i586, i686.
49675
49676 2008-12-26  Bruno Haible  <bruno@clisp.org>
49677
49678         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49679
49680 2008-12-26  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49683         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49684         not __STDC_CONSTANT_MACROS.
49685         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49686
49687 2008-12-25  Bruno Haible  <bruno@clisp.org>
49688
49689         Add support for universal builds to vasnprintf.
49690         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49691         universal builds, guess no.
49692         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49693         * modules/vasprintf-posix (Depends-on): Likewise.
49694         * modules/fprintf-posix (Depends-on): Likewise.
49695         * modules/vfprintf-posix (Depends-on): Likewise.
49696         * modules/snprintf-posix (Depends-on): Likewise.
49697         * modules/vsnprintf-posix (Depends-on): Likewise.
49698         * modules/sprintf-posix (Depends-on): Likewise.
49699         * modules/vsprintf-posix (Depends-on): Likewise.
49700         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49701         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49702         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49703         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49704         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49705         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49706         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49707
49708         Add support for universal builds to <inttypes.h>.
49709         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49710         _SCNu64_PREFIX): In Apple
49711         universal builds, define directly, using _LP64.
49712         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49713         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49714         * modules/inttypes (Depends-on): Add multiarch.
49715         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49716
49717         Add support for universal builds to <stdint.h>.
49718         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49719         universal builds, define directly, using _LP64.
49720         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49721         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49722         and size_t.
49723         * modules/stdint (Depends-on): Add multiarch.
49724         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49725
49726         New module 'multiarch'.
49727         * modules/multiarch: New file.
49728         * m4/multiarch.m4: New file.
49729
49730 2008-12-25  Bruno Haible  <bruno@clisp.org>
49731
49732         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49733
49734 2008-12-25  Bruno Haible  <bruno@clisp.org>
49735
49736         * modules/btowc (License): Relicense under LGPLv2+.
49737         * modules/mbsinit (License): Likewise.
49738         * modules/mbrtowc (License): Likewise.
49739         * modules/wcrtomb (License): Likewise.
49740         * modules/streq (License): Likewise.
49741         Reported by David Lutterkort <lutter@redhat.com>.
49742
49743 2008-12-23  Bruno Haible  <bruno@clisp.org>
49744
49745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49746
49747 2008-12-23  Bruno Haible  <bruno@clisp.org>
49748
49749         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49750         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49751         GETADDRINFO_LIB, not in LIBS.
49752         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49753         * modules/canon-host (Link): Likewise.
49754         * NEWS: Mention the change.
49755         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49756         GETADDRINFO_LIB.
49757
49758 2008-12-22  Bruno Haible  <bruno@clisp.org>
49759
49760         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49761         * doc/posix-functions/iswalpha_l.texi: Likewise.
49762         * doc/posix-functions/iswblank_l.texi: Likewise.
49763         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49764         * doc/posix-functions/iswctype_l.texi: Likewise.
49765         * doc/posix-functions/iswdigit_l.texi: Likewise.
49766         * doc/posix-functions/iswgraph_l.texi: Likewise.
49767         * doc/posix-functions/iswlower_l.texi: Likewise.
49768         * doc/posix-functions/iswprint_l.texi: Likewise.
49769         * doc/posix-functions/iswpunct_l.texi: Likewise.
49770         * doc/posix-functions/iswspace_l.texi: Likewise.
49771         * doc/posix-functions/iswupper_l.texi: Likewise.
49772         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49773         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49774         * doc/posix-functions/open_wmemstream.texi: Likewise.
49775         * doc/posix-functions/swscanf.texi: Likewise.
49776         * doc/posix-functions/towctrans_l.texi: Likewise.
49777         * doc/posix-functions/towlower.texi: Likewise.
49778         * doc/posix-functions/towlower_l.texi: Likewise.
49779         * doc/posix-functions/towupper.texi: Likewise.
49780         * doc/posix-functions/towupper_l.texi: Likewise.
49781         * doc/posix-functions/vfwprintf.texi: Likewise.
49782         * doc/posix-functions/vfwscanf.texi: Likewise.
49783         * doc/posix-functions/vswscanf.texi: Likewise.
49784         * doc/posix-functions/vwprintf.texi: Likewise.
49785         * doc/posix-functions/vwscanf.texi: Likewise.
49786         * doc/posix-functions/wcpcpy.texi: Likewise.
49787         * doc/posix-functions/wcpncpy.texi: Likewise.
49788         * doc/posix-functions/wcscasecmp.texi: Likewise.
49789         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49790         * doc/posix-functions/wcscoll_l.texi: Likewise.
49791         * doc/posix-functions/wcsdup.texi: Likewise.
49792         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49793         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49794         * doc/posix-functions/wcsnlen.texi: Likewise.
49795         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49796         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49797         * doc/posix-functions/wctrans_l.texi: Likewise.
49798         * doc/posix-functions/wctype_l.texi: Likewise.
49799         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49800         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49801         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49802         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49803         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49804         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49805         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49806         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49807         * doc/glibc-functions/wcschrnul.texi: Likewise.
49808         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49809         * doc/glibc-functions/wcstod_l.texi: Likewise.
49810         * doc/glibc-functions/wcstof_l.texi: Likewise.
49811         * doc/glibc-functions/wcstol_l.texi: Likewise.
49812         * doc/glibc-functions/wcstold_l.texi: Likewise.
49813         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49814         * doc/glibc-functions/wcstoq.texi: Likewise.
49815         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49816         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49817         * doc/glibc-functions/wcstouq.texi: Likewise.
49818         * doc/glibc-functions/wmempcpy.texi: Likewise.
49819
49820 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49821             Eric Blake  <ebb9@byu.net>
49822             Paolo Bonzini  <bonzini@gnu.org>
49823             Bruno Haible  <bruno@clisp.org>
49824
49825         Make c-stack work on Haiku.
49826         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49827         (c_stack_action): Use SA_ONSTACK flag.
49828
49829 2008-12-22  Bruno Haible  <bruno@clisp.org>
49830
49831         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49832
49833 2008-12-22  Bruno Haible  <bruno@clisp.org>
49834
49835         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49836         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49837         being overridden.
49838         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49839         New macros.
49840         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49842         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49843         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49844
49845 2008-12-22  Bruno Haible  <bruno@clisp.org>
49846
49847         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49848         from test code.
49849
49850 2008-12-22  Eric Blake  <ebb9@byu.net>
49851
49852         Avoid gcc warnings on cygwin.
49853         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49854         Avoid unused variable.
49855         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49856         Likewise.
49857
49858 2008-12-22  Bruno Haible  <bruno@clisp.org>
49859
49860         Remove HAVE_MBRTOWC conditionals.
49861         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49862         (mbscasecmp): Assume mbrtowc function.
49863         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49864         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49865         * lib/mbschr.c: Include mbuiter.h unconditionally.
49866         (mbschr): Assume mbrtowc function.
49867         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49868         (mbscspn): Assume mbrtowc function.
49869         * lib/mbslen.c: Include mbuiter.h unconditionally.
49870         (mbslen): Assume mbrtowc function.
49871         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49872         (mbsncasecmp): Assume mbrtowc function.
49873         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49874         (mbsnlen): Assume mbrtowc function.
49875         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49876         (mbspbrk): Assume mbrtowc function.
49877         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49878         (mbspcasecmp): Assume mbrtowc function.
49879         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49880         (mbsrchr): Assume mbrtowc function.
49881         * lib/mbssep.c: Include mbuiter.h unconditionally.
49882         (mbssep): Assume mbrtowc function.
49883         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49884         (mbsspn): Assume mbrtowc function.
49885         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49886         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49887         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49888         (mbstok_r): Assume mbrtowc function.
49889         * lib/propername.c: Include mbuiter.h unconditionally.
49890         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49891         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49892         (trim2): Assume mbrtowc function.
49893         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49894         (mbsnwidth): Assume mbrtowc function.
49895         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49896         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49897         fallback definitions.
49898         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49899
49900 2008-12-22  Bruno Haible  <bruno@clisp.org>
49901
49902         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49903
49904 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49905
49906         * modules/regex: Request emulations for the mb*/wc* functions we need.
49907         * m4/regex.m4: Don't look for those functions here.
49908         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49909
49910 2008-12-22  Bruno Haible  <bruno@clisp.org>
49911
49912         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49913
49914 2008-12-21  Bruno Haible  <bruno@clisp.org>
49915
49916         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49917         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49918         (Include): Remove conditionalization.
49919         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49920         (Include): Remove conditionalization.
49921         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49922         (Include): Remove conditionalization.
49923         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49924         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49925         * NEWS: Mention the change.
49926         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49927         via Sergey Poznyakoff <gray@gnu.org.ua>.
49928
49929 2008-12-21  Bruno Haible  <bruno@clisp.org>
49930
49931         * MODULES.html.sh (Extended multibyte and wide character utilities
49932         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49933         wcrtomb, wcsrtombs.
49934         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49935         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49936         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49937         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49938
49939 2008-12-21  Bruno Haible  <bruno@clisp.org>
49940
49941         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49942
49943 2008-12-21  Bruno Haible  <bruno@clisp.org>
49944
49945         * modules/wcsnrtombs-tests: New file.
49946         * tests/test-wcsnrtombs1.sh: New file.
49947         * tests/test-wcsnrtombs2.sh: New file.
49948         * tests/test-wcsnrtombs3.sh: New file.
49949         * tests/test-wcsnrtombs4.sh: New file.
49950         * tests/test-wcsnrtombs.c: New file.
49951
49952         New module 'wcsnrtombs'.
49953         * lib/wchar.in.h (wcsnrtombs): New declaration.
49954         * lib/wcsnrtombs.c: New file.
49955         * lib/wcsrtombs-state.c: New file.
49956         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49957         (internal_state): Remove variable.
49958         * m4/wcsnrtombs.m4: New file.
49959         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49960         compilation units.
49961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49962         HAVE_WCSNRTOMBS.
49963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49964         HAVE_WCSNRTOMBS.
49965         * modules/wcsnrtombs: New file.
49966         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49967         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49968
49969 2008-12-21  Bruno Haible  <bruno@clisp.org>
49970
49971         * modules/wcsrtombs-tests: New file.
49972         * tests/test-wcsrtombs1.sh: New file.
49973         * tests/test-wcsrtombs2.sh: New file.
49974         * tests/test-wcsrtombs3.sh: New file.
49975         * tests/test-wcsrtombs4.sh: New file.
49976         * tests/test-wcsrtombs.c: New file.
49977
49978         New module 'wcsrtombs'.
49979         * lib/wchar.in.h (wcsrtombs): New declaration.
49980         * lib/wcsrtombs.c: New file.
49981         * m4/wcsrtombs.m4: New file.
49982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49983         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49985         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49986         * modules/wcsrtombs: New file.
49987         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49988         bugs.
49989
49990 2008-12-21  Bruno Haible  <bruno@clisp.org>
49991
49992         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49993         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49994         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49995         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49996         if not correct.
49997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49998         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49999         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50000         m4/locale-zh.m4, m4/codeset.m4.
50001         * doc/posix-functions/wcrtomb.texi: Document the bug.
50002
50003 2008-12-21  Bruno Haible  <bruno@clisp.org>
50004
50005         Work around a btowc() bug on IRIX 6.5.
50006         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50007         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50008         REPLACE_WTOBC if not.
50009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50010         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50011         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50012
50013 2008-12-21  Bruno Haible  <bruno@clisp.org>
50014
50015         * modules/wcrtomb-tests: New file.
50016         * tests/test-wcrtomb.sh: New file.
50017         * tests/test-wcrtomb.c: New file.
50018
50019         New module 'wcrtomb'.
50020         * lib/wchar.in.h (wcrtomb): New declaration.
50021         * lib/wcrtomb.c: New file.
50022         * m4/wcrtomb.m4: New file.
50023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50024         HAVE_WCRTOMB.
50025         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50026         HAVE_WCRTOMB.
50027         * modules/wcrtomb: New file.
50028         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50029
50030 2008-12-21  Bruno Haible  <bruno@clisp.org>
50031
50032         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50033         * modules/mbsrtowcs (Files): Likewise.
50034         * modules/wctob (Files): Likewise.
50035         * modules/c-strcase-tests (Files): Likewise.
50036         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50037         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50038         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50039         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50040         * modules/vasnprintf-posix-tests (Files): Likewise.
50041
50042 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50043
50044         gitlog-to-changelog: pass all command-line arguments to git-log
50045         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50046         it is sometimes convenient to filter the commits in various ways.
50047         gitlog-to-changelog only allows --since to specify a start date,
50048         but git-log itself supports many other filtering mechanisms.
50049         At the moment, I want to filter by branch name.  Rather than
50050         adding a --branch option to gitlog-to-changelog, it seems more
50051         flexible to simply pass all options directly to git-log and let
50052         git do the work.  Notice that this effectively makes --since a
50053         redundant option for gitlog-to-changelog, but removing it would
50054         require current usage to change since calls would then require
50055         an additional '--'.
50056
50057 2008-12-21  Bruno Haible  <bruno@clisp.org>
50058
50059         * modules/mbsnrtowcs-tests: New file.
50060         * tests/test-mbsnrtowcs1.sh: New file.
50061         * tests/test-mbsnrtowcs2.sh: New file.
50062         * tests/test-mbsnrtowcs3.sh: New file.
50063         * tests/test-mbsnrtowcs4.sh: New file.
50064         * tests/test-mbsnrtowcs.c: New file.
50065
50066         New module 'mbsnrtowcs'.
50067         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50068         * lib/mbsnrtowcs.c: New file.
50069         * lib/mbsrtowcs-state.c: New file.
50070         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50071         (internal_state): Remove variable.
50072         * m4/mbsnrtowcs.m4: New file.
50073         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50074         compilation units.
50075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50076         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50077         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50078         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50079         * modules/mbsnrtowcs: New file.
50080         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50081         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50082         portability problem.
50083
50084 2008-12-21  Bruno Haible  <bruno@clisp.org>
50085
50086         Work around mbsrtowcs bug.
50087         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50088         (gl_FUNC_MBSRTOWCS): Invoke it.
50089         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50090         m4/locale-zh.m4.
50091         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50092
50093 2008-12-21  Bruno Haible  <bruno@clisp.org>
50094
50095         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50096
50097 2008-12-21  Bruno Haible  <bruno@clisp.org>
50098
50099         Update doc for AIX.
50100         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50101         16-bit wchar_t type.
50102         * doc/posix-functions/btowc.texi: Likewise.
50103         * doc/posix-functions/fgetwc.texi: Likewise.
50104         * doc/posix-functions/fgetws.texi: Likewise.
50105         * doc/posix-functions/fputwc.texi: Likewise.
50106         * doc/posix-functions/fputws.texi: Likewise.
50107         * doc/posix-functions/fwide.texi: Likewise.
50108         * doc/posix-functions/fwprintf.texi: Likewise.
50109         * doc/posix-functions/fwscanf.texi: Likewise.
50110         * doc/posix-functions/getwchar.texi: Likewise.
50111         * doc/posix-functions/getwc.texi: Likewise.
50112         * doc/posix-functions/iswalnum.texi: Likewise.
50113         * doc/posix-functions/iswalpha.texi: Likewise.
50114         * doc/posix-functions/iswblank.texi: Likewise.
50115         * doc/posix-functions/iswcntrl.texi: Likewise.
50116         * doc/posix-functions/iswctype.texi: Likewise.
50117         * doc/posix-functions/iswdigit.texi: Likewise.
50118         * doc/posix-functions/iswgraph.texi: Likewise.
50119         * doc/posix-functions/iswlower.texi: Likewise.
50120         * doc/posix-functions/iswprint.texi: Likewise.
50121         * doc/posix-functions/iswpunct.texi: Likewise.
50122         * doc/posix-functions/iswspace.texi: Likewise.
50123         * doc/posix-functions/iswupper.texi: Likewise.
50124         * doc/posix-functions/iswxdigit.texi: Likewise.
50125         * doc/posix-functions/mbrtowc.texi: Likewise.
50126         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50127         * doc/posix-functions/mbstowcs.texi: Likewise.
50128         * doc/posix-functions/mbtowc.texi: Likewise.
50129         * doc/posix-functions/putwchar.texi: Likewise.
50130         * doc/posix-functions/putwc.texi: Likewise.
50131         * doc/posix-functions/swprintf.texi: Likewise.
50132         * doc/posix-functions/tolower.texi: Likewise.
50133         * doc/posix-functions/toupper.texi: Likewise.
50134         * doc/posix-functions/towctrans.texi: Likewise.
50135         * doc/posix-functions/ungetwc.texi: Likewise.
50136         * doc/posix-functions/vswprintf.texi: Likewise.
50137         * doc/posix-functions/wcrtomb.texi: Likewise.
50138         * doc/posix-functions/wcscat.texi: Likewise.
50139         * doc/posix-functions/wcschr.texi: Likewise.
50140         * doc/posix-functions/wcscmp.texi: Likewise.
50141         * doc/posix-functions/wcscoll.texi: Likewise.
50142         * doc/posix-functions/wcscpy.texi: Likewise.
50143         * doc/posix-functions/wcscspn.texi: Likewise.
50144         * doc/posix-functions/wcsftime.texi: Likewise.
50145         * doc/posix-functions/wcslen.texi: Likewise.
50146         * doc/posix-functions/wcsncat.texi: Likewise.
50147         * doc/posix-functions/wcsncmp.texi: Likewise.
50148         * doc/posix-functions/wcsncpy.texi: Likewise.
50149         * doc/posix-functions/wcspbrk.texi: Likewise.
50150         * doc/posix-functions/wcsrchr.texi: Likewise.
50151         * doc/posix-functions/wcsrtombs.texi: Likewise.
50152         * doc/posix-functions/wcsspn.texi: Likewise.
50153         * doc/posix-functions/wcsstr.texi: Likewise.
50154         * doc/posix-functions/wcstod.texi: Likewise.
50155         * doc/posix-functions/wcstof.texi: Likewise.
50156         * doc/posix-functions/wcstoimax.texi: Likewise.
50157         * doc/posix-functions/wcstok.texi: Likewise.
50158         * doc/posix-functions/wcstold.texi: Likewise.
50159         * doc/posix-functions/wcstoll.texi: Likewise.
50160         * doc/posix-functions/wcstol.texi: Likewise.
50161         * doc/posix-functions/wcstombs.texi: Likewise.
50162         * doc/posix-functions/wcstoull.texi: Likewise.
50163         * doc/posix-functions/wcstoul.texi: Likewise.
50164         * doc/posix-functions/wcstoumax.texi: Likewise.
50165         * doc/posix-functions/wcswidth.texi: Likewise.
50166         * doc/posix-functions/wcsxfrm.texi: Likewise.
50167         * doc/posix-functions/wctob.texi: Likewise.
50168         * doc/posix-functions/wctomb.texi: Likewise.
50169         * doc/posix-functions/wctrans.texi: Likewise.
50170         * doc/posix-functions/wctype.texi: Likewise.
50171         * doc/posix-functions/wcwidth.texi: Likewise.
50172         * doc/posix-functions/wmemchr.texi: Likewise.
50173         * doc/posix-functions/wmemcmp.texi: Likewise.
50174         * doc/posix-functions/wmemcpy.texi: Likewise.
50175         * doc/posix-functions/wmemmove.texi: Likewise.
50176         * doc/posix-functions/wmemset.texi: Likewise.
50177         * doc/posix-functions/wprintf.texi: Likewise.
50178         * doc/posix-functions/wscanf.texi: Likewise.
50179
50180 2008-12-21  Bruno Haible  <bruno@clisp.org>
50181
50182         Update doc for HP-UX 11.11.
50183         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50184         in HP-UX version 11.00, not in all versions of HP-UX 11.
50185         * doc/posix-functions/fwide.texi: Likewise.
50186         * doc/posix-functions/fwprintf.texi: Likewise.
50187         * doc/posix-functions/fwscanf.texi: Likewise.
50188         * doc/posix-functions/inet_ntop.texi: Likewise.
50189         * doc/posix-functions/inet_pton.texi: Likewise.
50190         * doc/posix-functions/mbrlen.texi: Likewise.
50191         * doc/posix-functions/mbrtowc.texi: Likewise.
50192         * doc/posix-functions/mbsinit.texi: Likewise.
50193         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50194         * doc/posix-functions/swprintf.texi: Likewise.
50195         * doc/posix-functions/swscanf.texi: Likewise.
50196         * doc/posix-functions/towctrans.texi: Likewise.
50197         * doc/posix-functions/vfwprintf.texi: Likewise.
50198         * doc/posix-functions/vswprintf.texi: Likewise.
50199         * doc/posix-functions/vwprintf.texi: Likewise.
50200         * doc/posix-functions/wcrtomb.texi: Likewise.
50201         * doc/posix-functions/wcsrtombs.texi: Likewise.
50202         * doc/posix-functions/wcsstr.texi: Likewise.
50203         * doc/posix-functions/wctob.texi: Likewise.
50204         * doc/posix-functions/wctrans.texi: Likewise.
50205         * doc/posix-functions/wmemchr.texi: Likewise.
50206         * doc/posix-functions/wmemcmp.texi: Likewise.
50207         * doc/posix-functions/wmemcpy.texi: Likewise.
50208         * doc/posix-functions/wmemmove.texi: Likewise.
50209         * doc/posix-functions/wmemset.texi: Likewise.
50210         * doc/posix-functions/wprintf.texi: Likewise.
50211         * doc/posix-functions/wscanf.texi: Likewise.
50212
50213 2008-12-21  Bruno Haible  <bruno@clisp.org>
50214
50215         Work around a portability problem.
50216         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50217         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50218
50219 2008-12-20  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50222         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50223         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50225         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50226
50227         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50228         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50229         set.
50230         (GNULIB_defined_mbstate_t): New macro.
50231         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50232         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50233         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50234         reuses the system's mbrtowc function but works around the bugs.
50235         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50236         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50237         macros.
50238         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50239         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50240         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50241         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50242         REPLACE_MBSINIT if mbsinit needs to be overridden.
50243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50244         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50245         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50246         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50247         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50248         m4/locale-zh.m4.
50249         (Depends): Add mbsinit.
50250         * modules/mbsinit (Depends): Add mbrtowc.
50251         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50252
50253 2008-12-20  Bruno Haible  <bruno@clisp.org>
50254
50255         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50256         so that there are no conversion errors on AIX.
50257         * tests/test-mbsrtowcs.c (main): LIkewise.
50258
50259 2008-12-20  Bruno Haible  <bruno@clisp.org>
50260
50261         Work around wctob bug on Solaris <= 9.
50262         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50263         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50265         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50266         * modules/wctob (Files): Add m4/locale-fr.m4.
50267         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50268
50269 2008-12-20  Bruno Haible  <bruno@clisp.org>
50270
50271         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50272         /dev/null.
50273         * tests/test-select-in.sh: Likewise.
50274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50275
50276 2008-12-20  Bruno Haible  <bruno@clisp.org>
50277
50278         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50279         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50280         Cygwin 1.5.x.
50281
50282 2008-12-20  Bruno Haible  <bruno@clisp.org>
50283
50284         Ensure mbstate_t is defined on HP-UX 11.11.
50285         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50286         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50287         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50288         AC_USE_SYSTEM_EXTENSIONS.
50289         * modules/fnmatch (Depends-on): Add extensions.
50290         * modules/mbrlen (Depends-on): Likewise.
50291         * modules/mbrtowc (Depends-on): Likewise.
50292         * modules/mbsinit (Depends-on): Likewise.
50293         * modules/mbsrtowcs (Depends-on): Likewise.
50294         * modules/mbswidth (Depends-on): Likewise.
50295         * modules/quotearg (Depends-on): Likewise.
50296         * modules/strftime (Depends-on): Likewise.
50297
50298 2008-12-20  Bruno Haible  <bruno@clisp.org>
50299
50300         Ensure wctob is declared on IRIX 6.5.
50301         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50302         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50303         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50305         of HAVE_WCTOB.
50306         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50307         HAVE_WCTOB.
50308         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50309
50310 2008-12-19  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/mbsrtowcs-tests: New file.
50313         * tests/test-mbsrtowcs1.sh: New file.
50314         * tests/test-mbsrtowcs2.sh: New file.
50315         * tests/test-mbsrtowcs3.sh: New file.
50316         * tests/test-mbsrtowcs4.sh: New file.
50317         * tests/test-mbsrtowcs.c: New file.
50318
50319         New module 'mbsrtowcs'.
50320         * lib/wchar.in.h (mbsrtowcs): New declaration.
50321         * lib/mbsrtowcs.c: New file.
50322         * m4/mbsrtowcs.m4: New file.
50323         * modules/mbsrtowcs: New file.
50324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50325         HAVE_MBSRTOWCS.
50326         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50327         HAVE_MBSRTOWCS.
50328         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50329
50330 2008-12-19  Bruno Haible  <bruno@clisp.org>
50331
50332         New module 'mbrlen'.
50333         * lib/wchar.in.h (mbrlen): New declaration.
50334         * lib/mbrlen.c: New file.
50335         * m4/mbrlen.m4: New file.
50336         * modules/mbrlen: New file.
50337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50338         HAVE_MBRLEN.
50339         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50340         HAVE_MBRLEN.
50341         * doc/posix-functions/mbrlen.texi: Document the new module.
50342
50343 2008-12-19  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50346         * modules/mbrtowc (Depends-on): Add verify.
50347         Suggested by Paul Eggert.
50348
50349 2008-12-18  Bruno Haible  <bruno@clisp.org>
50350
50351         * modules/mbsinit-tests: New file.
50352         * tests/test-mbsinit.sh: New file.
50353         * tests/test-mbsinit.c: New file.
50354
50355 2008-12-18  Bruno Haible  <bruno@clisp.org>
50356
50357         * modules/mbrtowc-tests: New file.
50358         * tests/test-mbrtowc1.sh: New file.
50359         * tests/test-mbrtowc2.sh: New file.
50360         * tests/test-mbrtowc3.sh: New file.
50361         * tests/test-mbrtowc4.sh: New file.
50362         * tests/test-mbrtowc.c: New file.
50363
50364         New module 'mbrtowc'.
50365         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50366         mbsinit and mbrtowc.
50367         (mbrtowc): New declaration.
50368         * lib/mbrtowc.c: New file.
50369         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50370         * modules/mbrtowc: New file.
50371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50372         HAVE_MBRTOWC.
50373         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50374         HAVE_MBRTOWC.
50375         * doc/posix-functions/mbrtowc.texi: Document the new module.
50376
50377 2008-12-18  Bruno Haible  <bruno@clisp.org>
50378
50379         New module 'wctob'.
50380         * lib/wchar.in.h (wctob): New declaration.
50381         * lib/wctob.c: New file.
50382         * m4/wctob.m4: New file.
50383         * modules/wctob: New file.
50384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50385         HAVE_WCTOB.
50386         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50387         * doc/posix-functions/wctob.texi: Document the new module.
50388
50389 2008-12-18  Bruno Haible  <bruno@clisp.org>
50390
50391         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50392         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50393
50394 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50395
50396         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50397         G. Christensen" <tgc@jupiterrise.com>.
50398
50399         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50400         G. Christensen" <tgc@jupiterrise.com>.
50401
50402         * lib/flock.c: Need to include string.h.  Reported by "Tom
50403         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50404         <ebb9@byu.net>.
50405
50406 2008-12-18  Bruno Haible  <bruno@clisp.org>
50407
50408         * m4/locale-ja.m4: New file, from GNU gettext.
50409
50410 2008-12-17  Bruno Haible  <bruno@clisp.org>
50411
50412         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50413         Suggested by Eric Blake.
50414
50415 2008-12-17  Bruno Haible  <bruno@clisp.org>
50416
50417         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50418
50419 2008-12-17  Bruno Haible  <bruno@clisp.org>
50420
50421         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50422         * modules/mbsinit (Depends-on): Add verify.
50423         Suggested by Paul Eggert.
50424
50425 2008-12-17  Bruno Haible  <bruno@clisp.org>
50426
50427         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50428         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50429         gl_FUNC_MBRTOWC.
50430         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50431         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50432         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50433         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50434         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50435         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50436         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50437         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50438         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50439         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50440         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50441         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50442         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50443         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50444         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50445         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50446         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50447         * modules/trim (configure.ac): Likewise.
50448
50449 2008-12-17  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/btowc-tests: New file.
50452         * tests/test-btowc1.sh: New file.
50453         * tests/test-btowc2.sh: New file.
50454         * tests/test-btowc.c: New file.
50455
50456         New module 'btowc'.
50457         * lib/wchar.in.h (btowc): New declaration.
50458         * lib/btowc.c: New file.
50459         * m4/btowc.m4: New file.
50460         * modules/btowc: New file.
50461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50462         HAVE_BTOWC.
50463         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50464         * doc/posix-functions/btowc.texi: Document the new module.
50465
50466 2008-12-17  Bruno Haible  <bruno@clisp.org>
50467
50468         New module 'mbsinit'.
50469         * lib/wchar.in.h (mbsinit): New declaration.
50470         * lib/mbsinit.c: New file.
50471         * m4/mbsinit.m4: New file.
50472         * modules/mbsinit: New file.
50473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50474         HAVE_MBSINIT.
50475         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50476         HAVE_MBSINIT.
50477         * doc/posix-functions/mbsinit.texi: Document the new module.
50478
50479 2008-12-16  Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/unistd.in.h: Add comment.
50482         * tests/test-environ.c: Don't include <stdlib.h>.
50483
50484 2008-12-16  Bruno Haible  <bruno@clisp.org>
50485
50486         * lib/parse-duration.h (parse_duration): Document return value
50487         convention.
50488         * lib/parse-duration.c: Include specification header first. Add
50489         comments.
50490         (_): Remove macro.
50491         (parse_year_month_day, parse_hour_minute_second): Move side effects
50492         outside of strchr call.
50493         (parse_non_iso8601): Move side effects outside of isspace call.
50494         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50495         call.
50496
50497 2008-12-16  Bruno Haible  <bruno@clisp.org>
50498
50499         * tests/test-parse-duration.sh: Produce no output when the test
50500         succeeds.
50501
50502 2008-12-16  Bruno Haible  <bruno@clisp.org>
50503
50504         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50505         expressions.
50506
50507 2008-12-15  Bruno Haible  <bruno@clisp.org>
50508
50509         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50510         * doc/glibc-functions/flistxattr.texi: Likewise.
50511         * doc/glibc-functions/fopencookie.texi: Likewise.
50512         * doc/glibc-functions/fremovexattr.texi: Likewise.
50513         * doc/glibc-functions/fsetxattr.texi: Likewise.
50514         * doc/glibc-functions/getxattr.texi: Likewise.
50515         * doc/glibc-functions/lgetxattr.texi: Likewise.
50516         * doc/glibc-functions/listxattr.texi: Likewise.
50517         * doc/glibc-functions/llistxattr.texi: Likewise.
50518         * doc/glibc-functions/lremovexattr.texi: Likewise.
50519         * doc/glibc-functions/lsetxattr.texi: Likewise.
50520         * doc/glibc-functions/removexattr.texi: Likewise.
50521         * doc/glibc-functions/setxattr.texi: Likewise.
50522         * doc/posix-functions/open_memstream.texi: Likewise.
50523
50524 2008-12-15  Eric Blake  <ebb9@byu.net>
50525
50526         Update doc for cygwin 1.7.
50527         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50528         functions.
50529         * doc/posix-functions/fchmodat.texi: Likewise.
50530         * doc/posix-functions/fchownat.texi: Likewise.
50531         * doc/posix-functions/fdopendir.texi: Likewise.
50532         * doc/posix-functions/fmemopen.texi: Likewise.
50533         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50534         * doc/posix-functions/fstatat.texi: Likewise.
50535         * doc/posix-functions/futimens.texi: Likewise.
50536         * doc/posix-functions/gai_strerror.texi: Likewise.
50537         * doc/posix-functions/getaddrinfo.texi: Likewise.
50538         * doc/posix-functions/getnameinfo.texi: Likewise.
50539         * doc/posix-functions/if_freenameindex.texi: Likewise.
50540         * doc/posix-functions/if_indextoname.texi: Likewise.
50541         * doc/posix-functions/if_nameindex.texi: Likewise.
50542         * doc/posix-functions/if_nametoindex.texi: Likewise.
50543         * doc/posix-functions/insque.texi: Likewise.
50544         * doc/posix-functions/linkat.texi: Likewise.
50545         * doc/posix-functions/llrint.texi: Likewise.
50546         * doc/posix-functions/llrintf.texi: Likewise.
50547         * doc/posix-functions/llrintl.texi: Likewise.
50548         * doc/posix-functions/lockf.texi: Likewise.
50549         * doc/posix-functions/lrintl.texi: Likewise.
50550         * doc/posix-functions/mkdirat.texi: Likewise.
50551         * doc/posix-functions/mkfifoat.texi: Likewise.
50552         * doc/posix-functions/mknodat.texi: Likewise.
50553         * doc/posix-functions/mq_close.texi: Likewise.
50554         * doc/posix-functions/mq_getattr.texi: Likewise.
50555         * doc/posix-functions/mq_notify.texi: Likewise.
50556         * doc/posix-functions/mq_open.texi: Likewise.
50557         * doc/posix-functions/mq_receive.texi: Likewise.
50558         * doc/posix-functions/mq_send.texi: Likewise.
50559         * doc/posix-functions/mq_setattr.texi: Likewise.
50560         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50561         * doc/posix-functions/mq_timedsend.texi: Likewise.
50562         * doc/posix-functions/mq_unlink.texi: Likewise.
50563         * doc/posix-functions/open_memstream.texi: Likewise.
50564         * doc/posix-functions/openat.texi: Likewise.
50565         * doc/posix-functions/posix_fadvise.texi: Likewise.
50566         * doc/posix-functions/posix_fallocate.texi: Likewise.
50567         * doc/posix-functions/posix_madvise.texi: Likewise.
50568         * doc/posix-functions/posix_memalign.texi: Likewise.
50569         * doc/posix-functions/posix_openpt.texi: Likewise.
50570         * doc/posix-functions/readlinkat.texi: Likewise.
50571         * doc/posix-functions/remque.texi: Likewise.
50572         * doc/posix-functions/renameat.texi: Likewise.
50573         * doc/posix-functions/rintl.texi: Likewise.
50574         * doc/posix-functions/sem_unlink.texi: Likewise.
50575         * doc/posix-functions/shm_open.texi: Likewise.
50576         * doc/posix-functions/shm_unlink.texi: Likewise.
50577         * doc/posix-functions/signgam.texi: Likewise.
50578         * doc/posix-functions/sigset.texi: Likewise.
50579         * doc/posix-functions/stpcpy.texi: Likewise.
50580         * doc/posix-functions/stpncpy.texi: Likewise.
50581         * doc/posix-functions/strerror.texi: Likewise.
50582         * doc/posix-functions/strtod.texi: Likewise.
50583         * doc/posix-functions/symlinkat.texi: Likewise.
50584         * doc/posix-functions/unlinkat.texi: Likewise.
50585         * doc/posix-functions/utimensat.texi: Likewise.
50586         * doc/glibc-functions/bindresvport.texi: Likewise.
50587         * doc/glibc-functions/dn_expand.texi: Likewise.
50588         * doc/glibc-functions/exp10.texi: Likewise.
50589         * doc/glibc-functions/exp10f.texi: Likewise.
50590         * doc/glibc-functions/fgetxattr.texi: Likewise.
50591         * doc/glibc-functions/flistxattr.texi: Likewise.
50592         * doc/glibc-functions/fopencookie.texi: Likewise.
50593         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50594         * doc/glibc-functions/fremovexattr.texi: Likewise.
50595         * doc/glibc-functions/fsetxattr.texi: Likewise.
50596         * doc/glibc-functions/getifaddrs.texi: Likewise.
50597         * doc/glibc-functions/getxattr.texi: Likewise.
50598         * doc/glibc-functions/lgetxattr.texi: Likewise.
50599         * doc/glibc-functions/listxattr.texi: Likewise.
50600         * doc/glibc-functions/llistxattr.texi: Likewise.
50601         * doc/glibc-functions/lremovexattr.texi: Likewise.
50602         * doc/glibc-functions/lsetxattr.texi: Likewise.
50603         * doc/glibc-functions/pow10.texi: Likewise.
50604         * doc/glibc-functions/pow10f.texi: Likewise.
50605         * doc/glibc-functions/rcmd_af.texi: Likewise.
50606         * doc/glibc-functions/removexattr.texi: Likewise.
50607         * doc/glibc-functions/res_init.texi: Likewise.
50608         * doc/glibc-functions/res_mkquery.texi: Likewise.
50609         * doc/glibc-functions/res_query.texi: Likewise.
50610         * doc/glibc-functions/res_querydomain.texi: Likewise.
50611         * doc/glibc-functions/res_send.texi: Likewise.
50612         * doc/glibc-functions/rresvport_af.texi: Likewise.
50613         * doc/glibc-functions/setxattr.texi: Likewise.
50614         * doc/glibc-functions/strcasestr.texi: Likewise.
50615
50616 2008-12-15  Bruno Haible  <bruno@clisp.org>
50617
50618         Fix compilation error on OSF/1 4.0.
50619         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50620         <sys/time.h>, simply delegate to the system header.
50621         Reported by Daniel Richard G. <oss@teragram.com>.
50622
50623 2008-12-15  Bruno Haible  <bruno@clisp.org>
50624
50625         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50626         * doc/posix-functions/fchmodat.texi: Likewise.
50627         * doc/posix-functions/fchownat.texi: Likewise.
50628         * doc/posix-functions/fdopendir.texi: Likewise.
50629         * doc/posix-functions/fstatat.texi: Likewise.
50630         * doc/posix-functions/mkdirat.texi: Likewise.
50631         * doc/posix-functions/unlinkat.texi: Likewise.
50632
50633 2008-12-14  Bruno Haible  <bruno@clisp.org>
50634
50635         Update doc for POSIX:2008.
50636         * doc/posix-functions/faccessat.texi: New file.
50637         * doc/posix-functions/fchmodat.texi: New file.
50638         * doc/posix-functions/fchownat.texi: New file.
50639         * doc/posix-functions/fdopendir.texi: New file.
50640         * doc/posix-functions/fstatat.texi: New file.
50641         * doc/posix-functions/futimens.texi: New file.
50642         * doc/posix-functions/linkat.texi: New file.
50643         * doc/posix-functions/mkdirat.texi: New file.
50644         * doc/posix-functions/mkfifoat.texi: New file.
50645         * doc/posix-functions/mknodat.texi: New file.
50646         * doc/posix-functions/open_wmemstream.texi: New file.
50647         * doc/posix-functions/openat.texi: New file.
50648         * doc/posix-functions/psiginfo.texi: New file.
50649         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50650         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50651         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50652         * doc/posix-functions/readlinkat.texi: New file.
50653         * doc/posix-functions/renameat.texi: New file.
50654         * doc/posix-functions/strerror_l.texi: New file.
50655         * doc/posix-functions/symlinkat.texi: New file.
50656         * doc/posix-functions/unlinkat.texi: New file.
50657         * doc/posix-functions/utimensat.texi: New file.
50658         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50659
50660 2008-12-14  Bruno Haible  <bruno@clisp.org>
50661
50662         Update doc for POSIX:2008.
50663         * doc/posix-functions/alphasort.texi: Renamed from
50664         doc/glibc-functions/alphasort.texi.
50665         * doc/posix-functions/dirfd.texi: Renamed from
50666         doc/glibc-functions/dirfd.texi.
50667         * doc/posix-functions/dprintf.texi: Renamed from
50668         doc/glibc-functions/dprintf.texi.
50669         * doc/posix-functions/duplocale.texi: Renamed from
50670         doc/glibc-functions/duplocale.texi.
50671         * doc/posix-functions/fexecve.texi: Renamed from
50672         doc/glibc-functions/fexecve.texi.
50673         * doc/posix-functions/fmemopen.texi: Renamed from
50674         doc/glibc-functions/fmemopen.texi.
50675         * doc/posix-functions/freelocale.texi: Renamed from
50676         doc/glibc-functions/freelocale.texi.
50677         * doc/posix-functions/getdate_err.texi: Renamed from
50678         doc/glibc-functions/getdate_err.texi.
50679         * doc/posix-functions/isalnum_l.texi: Renamed from
50680         doc/glibc-functions/isalnum_l.texi.
50681         * doc/posix-functions/isalpha_l.texi: Renamed from
50682         doc/glibc-functions/isalpha_l.texi.
50683         * doc/posix-functions/isblank_l.texi: Renamed from
50684         doc/glibc-functions/isblank_l.texi.
50685         * doc/posix-functions/iscntrl_l.texi: Renamed from
50686         doc/glibc-functions/iscntrl_l.texi.
50687         * doc/posix-functions/isdigit_l.texi: Renamed from
50688         doc/glibc-functions/isdigit_l.texi.
50689         * doc/posix-functions/isgraph_l.texi: Renamed from
50690         doc/glibc-functions/isgraph_l.texi.
50691         * doc/posix-functions/islower_l.texi: Renamed from
50692         doc/glibc-functions/islower_l.texi.
50693         * doc/posix-functions/isprint_l.texi: Renamed from
50694         doc/glibc-functions/isprint_l.texi.
50695         * doc/posix-functions/ispunct_l.texi: Renamed from
50696         doc/glibc-functions/ispunct_l.texi.
50697         * doc/posix-functions/isspace_l.texi: Renamed from
50698         doc/glibc-functions/isspace_l.texi.
50699         * doc/posix-functions/isupper_l.texi: Renamed from
50700         doc/glibc-functions/isupper_l.texi.
50701         * doc/posix-functions/iswalnum_l.texi: Renamed from
50702         doc/glibc-functions/iswalnum_l.texi.
50703         * doc/posix-functions/iswalpha_l.texi: Renamed from
50704         doc/glibc-functions/iswalpha_l.texi.
50705         * doc/posix-functions/iswblank_l.texi: Renamed from
50706         doc/glibc-functions/iswblank_l.texi.
50707         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50708         doc/glibc-functions/iswcntrl_l.texi.
50709         * doc/posix-functions/iswctype_l.texi: Renamed from
50710         doc/glibc-functions/iswctype_l.texi.
50711         * doc/posix-functions/iswdigit_l.texi: Renamed from
50712         doc/glibc-functions/iswdigit_l.texi.
50713         * doc/posix-functions/iswgraph_l.texi: Renamed from
50714         doc/glibc-functions/iswgraph_l.texi.
50715         * doc/posix-functions/iswlower_l.texi: Renamed from
50716         doc/glibc-functions/iswlower_l.texi.
50717         * doc/posix-functions/iswprint_l.texi: Renamed from
50718         doc/glibc-functions/iswprint_l.texi.
50719         * doc/posix-functions/iswpunct_l.texi: Renamed from
50720         doc/glibc-functions/iswpunct_l.texi.
50721         * doc/posix-functions/iswspace_l.texi: Renamed from
50722         doc/glibc-functions/iswspace_l.texi.
50723         * doc/posix-functions/iswupper_l.texi: Renamed from
50724         doc/glibc-functions/iswupper_l.texi.
50725         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50726         doc/glibc-functions/iswxdigit_l.texi.
50727         * doc/posix-functions/isxdigit_l.texi: Renamed from
50728         doc/glibc-functions/isxdigit_l.texi.
50729         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50730         doc/glibc-functions/mbsnrtowcs.texi.
50731         * doc/posix-functions/mkdtemp.texi: Renamed from
50732         doc/glibc-functions/mkdtemp.texi.
50733         * doc/posix-functions/newlocale.texi: Renamed from
50734         doc/glibc-functions/newlocale.texi.
50735         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50736         doc/glibc-functions/nl_langinfo_l.texi.
50737         * doc/posix-functions/open_memstream.texi: Renamed from
50738         doc/glibc-functions/open_memstream.texi.
50739         * doc/posix-functions/opterr.texi: Renamed from
50740         doc/glibc-functions/opterr.texi.
50741         * doc/posix-functions/optind.texi: Renamed from
50742         doc/glibc-functions/optind.texi.
50743         * doc/posix-functions/optopt.texi: Renamed from
50744         doc/glibc-functions/optopt.texi.
50745         * doc/posix-functions/psignal.texi: Renamed from
50746         doc/glibc-functions/psignal.texi.
50747         * doc/posix-functions/scandir.texi: Renamed from
50748         doc/glibc-functions/scandir.texi.
50749         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50750         doc/glibc-functions/sched_get_priority_min.texi.
50751         * doc/posix-functions/signgam.texi: Renamed from
50752         doc/glibc-functions/signgam.texi.
50753         * doc/posix-functions/stpcpy.texi: Renamed from
50754         doc/glibc-functions/stpcpy.texi.
50755         * doc/posix-functions/stpncpy.texi: Renamed from
50756         doc/glibc-functions/stpncpy.texi.
50757         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50758         doc/glibc-functions/strcasecmp_l.texi.
50759         * doc/posix-functions/strcoll_l.texi: Renamed from
50760         doc/glibc-functions/strcoll_l.texi.
50761         * doc/posix-functions/strfmon_l.texi: Renamed from
50762         doc/glibc-functions/strfmon_l.texi.
50763         * doc/posix-functions/strftime_l.texi: Renamed from
50764         doc/glibc-functions/strftime_l.texi.
50765         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50766         doc/glibc-functions/strncasecmp_l.texi.
50767         * doc/posix-functions/strndup.texi: Renamed from
50768         doc/glibc-functions/strndup.texi.
50769         * doc/posix-functions/strnlen.texi: Renamed from
50770         doc/glibc-functions/strnlen.texi.
50771         * doc/posix-functions/strsignal.texi: Renamed from
50772         doc/glibc-functions/strsignal.texi.
50773         * doc/posix-functions/strxfrm_l.texi: Renamed from
50774         doc/glibc-functions/strxfrm_l.texi.
50775         * doc/posix-functions/timer_gettime.texi: Renamed from
50776         doc/glibc-functions/timer_gettime.texi.
50777         * doc/posix-functions/tolower_l.texi: Renamed from
50778         doc/glibc-functions/tolower_l.texi.
50779         * doc/posix-functions/toupper_l.texi: Renamed from
50780         doc/glibc-functions/toupper_l.texi.
50781         * doc/posix-functions/towctrans_l.texi: Renamed from
50782         doc/glibc-functions/towctrans_l.texi.
50783         * doc/posix-functions/towlower_l.texi: Renamed from
50784         doc/glibc-functions/towlower_l.texi.
50785         * doc/posix-functions/towupper_l.texi: Renamed from
50786         doc/glibc-functions/towupper_l.texi.
50787         * doc/posix-functions/uselocale.texi: Renamed from
50788         doc/glibc-functions/uselocale.texi.
50789         * doc/posix-functions/vdprintf.texi: Renamed from
50790         doc/glibc-functions/vdprintf.texi.
50791         * doc/posix-functions/wcpcpy.texi:
50792         Renamed from doc/glibc-functions/wcpcpy.texi.
50793         * doc/posix-functions/wcpncpy.texi: Renamed from
50794         doc/glibc-functions/wcpncpy.texi.
50795         * doc/posix-functions/wcscasecmp.texi: Renamed from
50796         doc/glibc-functions/wcscasecmp.texi.
50797         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50798         doc/glibc-functions/wcscasecmp_l.texi.
50799         * doc/posix-functions/wcscoll_l.texi: Renamed from
50800         doc/glibc-functions/wcscoll_l.texi.
50801         * doc/posix-functions/wcsdup.texi: Renamed from
50802         doc/glibc-functions/wcsdup.texi.
50803         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50804         doc/glibc-functions/wcsncasecmp.texi.
50805         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50806         doc/glibc-functions/wcsncasecmp_l.texi.
50807         * doc/posix-functions/wcsnlen.texi: Renamed from
50808         doc/glibc-functions/wcsnlen.texi.
50809         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50810         doc/glibc-functions/wcsnrtombs.texi.
50811         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50812         doc/glibc-functions/wcsxfrm_l.texi.
50813         * doc/posix-functions/wctrans_l.texi: Renamed from
50814         doc/glibc-functions/wctrans_l.texi.
50815         * doc/posix-functions/wctype_l.texi: Renamed from
50816         doc/glibc-functions/wctype_l.texi.
50817         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50818         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50819         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50820         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50821         these subsections.
50822         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50823         Remove sections.
50824
50825 2008-12-14  Bruno Haible  <bruno@clisp.org>
50826
50827         Update doc for POSIX:2008.
50828         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50829
50830 2008-12-14  Bruno Haible  <bruno@clisp.org>
50831
50832         Update doc for POSIX:2008.
50833         * doc/pastposix-functions/bcmp.texi: Renamed from
50834         doc/posix-functions/bcmp.texi.
50835         * doc/pastposix-functions/bcopy.texi: Renamed from
50836         doc/posix-functions/bcopy.texi.
50837         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50838         doc/posix-functions/bsd_signal.texi.
50839         * doc/pastposix-functions/bzero.texi: Renamed from
50840         doc/posix-functions/bzero.texi.
50841         * doc/pastposix-functions/ecvt.texi: Renamed from
50842         doc/posix-functions/ecvt.texi.
50843         * doc/pastposix-functions/fcvt.texi: Renamed from
50844         doc/posix-functions/fcvt.texi.
50845         * doc/pastposix-functions/ftime.texi: Renamed from
50846         doc/posix-functions/ftime.texi.
50847         * doc/pastposix-functions/gcvt.texi: Renamed from
50848         doc/posix-functions/gcvt.texi.
50849         * doc/pastposix-functions/getcontext.texi: Renamed from
50850         doc/posix-functions/getcontext.texi.
50851         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50852         doc/posix-functions/gethostbyaddr.texi.
50853         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50854         doc/posix-functions/gethostbyname.texi.
50855         * doc/pastposix-functions/getwd.texi: Renamed from
50856         doc/posix-functions/getwd.texi.
50857         * doc/pastposix-functions/h_errno.texi: Renamed from
50858         doc/posix-functions/h_errno.texi.
50859         * doc/pastposix-functions/index.texi: Renamed from
50860         doc/posix-functions/index.texi.
50861         * doc/pastposix-functions/makecontext.texi: Renamed from
50862         doc/posix-functions/makecontext.texi.
50863         * doc/pastposix-functions/mktemp.texi: Renamed from
50864         doc/posix-functions/mktemp.texi.
50865         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50866         doc/posix-functions/pthread_attr_getstackaddr.texi.
50867         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50868         doc/posix-functions/pthread_attr_setstackaddr.texi.
50869         * doc/pastposix-functions/rindex.texi: Renamed from
50870         doc/posix-functions/rindex.texi.
50871         * doc/pastposix-functions/scalb.texi: Renamed from
50872         doc/posix-functions/scalb.texi.
50873         * doc/pastposix-functions/setcontext.texi: Renamed from
50874         doc/posix-functions/setcontext.texi.
50875         * doc/pastposix-functions/swapcontext.texi: Renamed from
50876         doc/posix-functions/swapcontext.texi.
50877         * doc/pastposix-functions/ualarm.texi: Renamed from
50878         doc/posix-functions/ualarm.texi.
50879         * doc/pastposix-functions/usleep.texi: Renamed from
50880         doc/posix-functions/usleep.texi.
50881         * doc/pastposix-functions/vfork.texi: Renamed from
50882         doc/posix-functions/vfork.texi.
50883         * doc/pastposix-functions/wcswcs.texi: Renamed from
50884         doc/posix-functions/wcswcs.texi.
50885         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50886         (Function Substitutes): Update.
50887
50888 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50889
50890         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50891         m4/strerror.m4.
50892
50893 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50894             Bruno Haible  <bruno@clisp.org>
50895
50896         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50897
50898 2008-12-13  Bruno Haible  <bruno@clisp.org>
50899
50900         * modules/strtoull (Depends-on): Remove unistd.
50901
50902 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50903
50904         * modules/strtoull (Depends-on): Add stdlib.
50905
50906 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50907
50908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50909
50910 2008-12-10  Jim Meyering  <meyering@redhat.com>
50911
50912         gl_ASSERT: don't say assertions are disabled when they're not
50913         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50914         "checking whether to enable assertions... no", when they are in
50915         fact enabled.  This is solely a bug in the output of configure.
50916         In spite of saying "no", NDEBUG was not defined in that case.
50917         Also, as noted by Eric Blake, leave assertions enabled upon
50918         --enable-assert=INVALID.
50919
50920 2008-12-10  Bruno Haible  <bruno@clisp.org>
50921
50922         Change MODULES.html to refer to POSIX:2008 where possible.
50923         * MODULES.html.sh (POSIX2008_URL): New variable.
50924         (posix_headers): Remove sys/timeb, ucontext.
50925         (posix2001_headers): New variable.
50926         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50927         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50928         index, makecontext, mktemp, pthread_attr_getstackaddr,
50929         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50930         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50931         (posix2001_functions): New variable.
50932         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50933         otherwise.
50934
50935 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50936
50937         add missing include to parse-duration.c
50938         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50939         * modules/parse-duration (Depends-on): Add xalloc.
50940
50941         fix sed script reading maint.mk
50942         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50943         (syntax-check-rules): Use it.
50944
50945 2008-12-09  Bruno Haible  <bruno@clisp.org>
50946
50947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50948         MacOS X 10.4/PowerPC.
50949         Reported by Simon Josefsson.
50950
50951 2008-12-08  Jim Meyering  <meyering@redhat.com>
50952
50953         work around mingw's lack of some S_IF definitions
50954         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50955         Reported by Simon Josefsson.
50956
50957 2008-12-08  Bruno Haible  <bruno@clisp.org>
50958
50959         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50960         applied to variables. Needed on MacOS X 10.4/PowerPC.
50961         Reported by Simon Josefsson.
50962
50963 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50964         and Eric Blake  <ebb9@byu.net>
50965
50966         assert: honor --enable-assert
50967         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50968         order to honor --enable-assert, rather than treating it as a
50969         synonym for --disable-assert.
50970
50971 2008-12-08  Jim Meyering  <meyering@redhat.com>
50972
50973         * lib/posixtm.c: Remove now-useless declaration of mktime.
50974
50975         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50976
50977 2008-12-07  Bruno Haible  <bruno@clisp.org>
50978
50979         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50980         test_once): Mark functions as static.
50981         * tests/test-tls.c (test_tls): Likewise.
50982
50983 2008-12-07  Bruno Haible  <bruno@clisp.org>
50984
50985         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50986         iconv_register_autodetect.
50987
50988 2008-12-07  Jim Meyering  <meyering@redhat.com>
50989
50990         posixtm.c: avoid a warning
50991         * lib/posixtm.c (posixtime): Don't initialize tm0.
50992         It's no longer needed to placate gcc4's -Wuninitialized,
50993         and the attempt to placate would elicit a new warning.
50994
50995         unicodeio.c: mark unused parameters
50996         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50997         (fallback_failure_callback): Likewise.
50998
50999 2008-12-07  Bruno Haible  <bruno@clisp.org>
51000
51001         * gnulib-tool (func_create_testdir): When building the tests
51002         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51003         Reported by Simon Josefsson.
51004
51005 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51006
51007         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51008
51009 2008-12-06  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51012         Suggested by Eric Blake.
51013
51014 2008-12-06  Bruno Haible  <bruno@clisp.org>
51015
51016         Fix a c-stack test failure on MacOS X.
51017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51018         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51019         handler for SIGBUS as well.
51020         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51021         install a signal handler for SIGBUS as well.
51022         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51023
51024 2008-12-06  Bruno Haible  <bruno@clisp.org>
51025
51026         Advocacy documentation.
51027         * doc/gnulib-intro.texi (Benefits): New section.
51028         * doc/gnulib.texi: Update.
51029
51030 2008-12-06  Bruno Haible  <bruno@clisp.org>
51031
51032         Document the 'manywarnings' module.
51033         * doc/manywarnings.texi: New file.
51034         * doc/gnulib.texi: Include it.
51035
51036 2008-12-05  Eric Blake  <ebb9@byu.net>
51037
51038         tests: silence some gcc warnings
51039         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51040         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51041         type mismatches.
51042
51043 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51044             Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51047
51048 2008-11-29  Jim Meyering  <meyering@redhat.com>
51049
51050         unicodeio.c: mark unused parameters
51051         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51052         (fallback_failure_callback): Likewise.
51053
51054         fts: fix a thinko
51055         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51056         (set_stat_type): Return S_IF*-valued "type" directly.
51057         Prompted by James Youngman's spotting a related bug.
51058         Confirmed by further testing through find.
51059
51060         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51061         * lib/fts.c (D_TYPE): Define.
51062         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51063         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51064         (s_ifmt_shift_bits): New function.
51065         (set_stat_type): New function.
51066         (fts_build): When not calling fts_stat, call set_stat_type
51067         to propagate dirent.d_type info to fts_read caller.
51068         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51069         fts_statp->st_mode type information may be valid.
51070
51071 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51072
51073         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51074         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51075         <sds@gnu.org>.
51076
51077 2008-11-20  Bruno Haible  <bruno@clisp.org>
51078
51079         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51080         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51081         INCLUDE_NEXT.
51082         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51083         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51084         * modules/math (Makefile.am): Substitute
51085         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51086         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51087
51088 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51089             Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/stdint.in.h: Define all type macros so that their expansion is
51092         a single typedef'ed token. Fixes a compilation failure in Boost which
51093         does "using ::int8_t;".
51094
51095 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51096
51097         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51098         gl_MANYWARN_ALL_GCC.
51099         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51100         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51101         * modules/manywarnings: New file.
51102         * MODULES.html.sh: Mention manywarnings module.
51103
51104 2008-11-18  Bruno Haible  <bruno@clisp.org>
51105
51106         * doc/gnulib-tool.texi (Unit tests): New section.
51107
51108 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51109
51110         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51111         paths like 'lib/po/foo.po'.
51112
51113 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51114
51115         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51116         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51117
51118 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51119
51120         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51121         parameter works.
51122
51123 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51124
51125         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51126
51127 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51128
51129         * modules/parse-duration-tests: New file.
51130         * tests/test-parse-duration.sh: New file.
51131         * tests/test-parse-duration.c: New file.
51132
51133         New module 'parse-duration'.
51134         * lib/parse-duration.h: New file.
51135         * lib/parse-duration.c: New file.
51136         * modules/parse-duration: New file.
51137
51138 2008-11-17  Bruno Haible  <bruno@clisp.org>
51139
51140         * tests/test-select-out.sh: Comment out the first pipe test.
51141         Reported by Simon Josefsson.
51142
51143 2008-11-17  Bruno Haible  <bruno@clisp.org>
51144
51145         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51146         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51147         gl_HOSTENT.
51148
51149 2008-11-17  Bruno Haible  <bruno@clisp.org>
51150
51151         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51152         -lnetwork and -lnet. Needed for Haiku and BeOS.
51153
51154 2008-11-16  Bruno Haible  <bruno@clisp.org>
51155
51156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51157
51158 2008-11-16  Bruno Haible  <bruno@clisp.org>
51159
51160         Avoid test failure on Haiku.
51161         * tests/test-fsync.c: Include <errno.h>.
51162         (main): Don't require that fsync (0) fails.
51163
51164 2008-11-15  Bruno Haible  <bruno@clisp.org>
51165
51166         New module 'hostent'.
51167         * modules/hostent: New file.
51168         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51169
51170 2008-11-15  Bruno Haible  <bruno@clisp.org>
51171
51172         New module 'servent'.
51173         * modules/servent: New file.
51174         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51175
51176 2008-11-15  Bruno Haible  <bruno@clisp.org>
51177
51178         Avoid generating same test program with two different rules.
51179         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51180         test-frexp to test-frexp-nolibm.
51181         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51182         test-frexpl to test-frexpl-nolibm.
51183
51184 2008-11-15  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51187         $(FREXPL_LIBM).
51188
51189 2008-11-15  Bruno Haible  <bruno@clisp.org>
51190
51191         * lib/netdb.in.h: Activate the definitions also when the system's
51192         <netdb.h> has 'struct addrinfo'.
51193         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51194         EAI_OVERFLOW or AI_NUMERICSERV.
51195         * doc/posix-headers/netdb.texi: Document the problem.
51196
51197 2008-11-15  Bruno Haible  <bruno@clisp.org>
51198
51199         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51200
51201         Make the 'sched' module work on platforms where <sched.h> exists but
51202         is incomplete (such as Haiku).
51203         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51204         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51205         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51206         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51207         HAVE_STRUCT_SCHED_PARAM.
51208         * modules/sched (Depends-on): Add include_next.
51209         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51210         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51211         * doc/posix-headers/sched.texi: Document the issue.
51212
51213 2008-11-13  Jim Meyering  <meyering@redhat.com>
51214
51215         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51216         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51217         test would fail due to the difference in the Report bugs to ...
51218         line.  The expected address is empty, "<>", while the actual
51219         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51220
51221 2008-11-12  Bruno Haible  <bruno@clisp.org>
51222
51223         lstat: don't compile lstat.c on systems lacking lstat
51224         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51225         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51226         Reported by Daniel P. Berrange via Jim Meyering.
51227
51228 2008-11-12  Jim Meyering  <meyering@redhat.com>
51229
51230         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51231
51232 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51233
51234         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51235         instead.
51236
51237 2008-11-12  Bruno Haible  <bruno@clisp.org>
51238
51239         * lib/unicodeio.c: Include unistr.h.
51240         (utf8_wctomb): Remove function.
51241         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51242
51243 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51244
51245         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51246         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51247         <bruno@clisp.org>.
51248         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51249
51250 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51251
51252         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51253         * doc/gnulib.texi: Add section for warnings.
51254
51255 2008-11-11  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/sockets.h: Add a comment.
51258
51259 2008-11-11  Karl Berry  <karl@gnu.org>
51260
51261         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51262
51263 2008-11-11  Eric Blake  <ebb9@byu.net>
51264
51265         fdl.texi: avoid git symlinks
51266         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51267
51268 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51269
51270         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51271
51272 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51273
51274         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51275         (gl_WARN_ADD): Substitute $2 if literal.
51276
51277 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51278
51279         * m4/warning.m4: Remove.
51280
51281 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51282
51283         * m4/warnings.m4: Almost complete rewrite. :-)
51284
51285 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51286
51287         * modules/warnings: New module.
51288         * m4/warnings.m4: New file.
51289         * MODULES.html.sh: Mention warnings module.
51290         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51291         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51292
51293 2008-11-10  Eric Blake  <ebb9@byu.net>
51294
51295         fdl.texi: make a symlink to the latest version
51296         * doc/standards.texi: Revert today's earlier change.
51297         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51298         * doc/fdl.texi: ...and replace this with a symlink to the newer
51299         fdl-1.3.texi.
51300
51301 2008-11-10  Bruno Haible  <bruno@clisp.org>
51302
51303         * tests/test-select-fd.c (main): Accept the result file name as fourth
51304         argument.
51305         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51306         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51307
51308 2008-11-10  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51311         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51312         as autoconf-substituted macros.
51313         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51314         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51315         gl_NETDB_H_DEFAULTS. Set these variables.
51316         * modules/netdb (Makefile.am): Substitute these variables.
51317
51318 2008-11-10  Eric Blake  <ebb9@byu.net>
51319
51320         standards.texi: include correct file for FDL 1.3
51321         * doc/standards.texi (GNU Free Documentation License): Change
51322         include file to pull in FDL 1.3, not 1.2.
51323
51324         fdl.texi: revert accidental change to license
51325         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51326
51327 2008-11-10  Bruno Haible  <bruno@clisp.org>
51328
51329         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51330         cross-compiling guesses also when the native compile gives no result.
51331
51332 2008-11-10  Bruno Haible  <bruno@clisp.org>
51333
51334         * lib/spawni.c (__spawni): Force variable into the stack.
51335
51336 2008-11-10  Bruno Haible  <bruno@clisp.org>
51337
51338         Add support for Haiku.
51339         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51340         glibc and BeOS, but also on Haiku.
51341         * lib/fpurge.c (fpurge): Likewise.
51342         * lib/freadable.c (freadable): Likewise.
51343         * lib/freadahead.c (freadahead): Likewise.
51344         * lib/freading.c (freading): Likewise.
51345         * lib/freadptr.c (freadptr): Likewise.
51346         * lib/freadseek.c (freadptrinc): Likewise.
51347         * lib/fseeko.c (rpl_fseeko): Likewise.
51348         * lib/fseterr.c (fseterr): Likewise.
51349         * lib/fwritable.c (fwritable): Likewise.
51350         * lib/fwriting.c (fwriting): Likewise.
51351         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51352
51353 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51354
51355         * lib/config.charset: Treat Haiku like BeOS.
51356
51357 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51358
51359         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51360         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51361
51362 2008-11-08  Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51365         AC_CACHE_CHECK.
51366
51367 2008-11-08  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51370
51371 2008-11-08  Bruno Haible  <bruno@clisp.org>
51372
51373         * tests/test-select-fd.c: New file.
51374         * tests/test-select-in.sh: New file.
51375         * tests/test-select-out.sh: New file.
51376         * tests/test-select-stdin.c: New file.
51377         * modules/select-tests (Files): Add the new files.
51378         (Depends-on): Add gettimeofday.
51379         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51380         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51381         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51382
51383 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51384             Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51387
51388 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51389
51390         * build-aux/pmccabe2html: Added support for C++ source files.
51391
51392 2008-11-05  Ben Pfaff  <blp@gnu.org>
51393
51394         Fix lib/close.c build on Windows.
51395         * modules/close (Files): Add lib/w32sock.h.
51396
51397 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51398
51399         Accept Bison's NEWS format.
51400         * build-aux/announce-gen (print_news_deltas): Tweak
51401         $re_prefix.
51402
51403 2008-11-04  Bruno Haible  <bruno@clisp.org>
51404
51405         * modules/random_r (Maintainer): Add glibc.
51406
51407 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51408
51409         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51410         by karl@freefriends.org (Karl Berry).
51411         * doc/alloca.texi: Likewise.
51412         * doc/c-ctype.texi: Likewise.
51413         * doc/c-strcase.texi: Likewise.
51414         * doc/c-strcaseeq.texi: Likewise.
51415         * doc/c-strcasestr.texi: Likewise.
51416         * doc/c-strstr.texi: Likewise.
51417         * doc/c-strtod.texi: Likewise.
51418         * doc/c-strtold.texi: Likewise.
51419         * doc/ctime.texi: Likewise.
51420         * doc/error.texi: Likewise.
51421         * doc/fdl.texi: Likewise.
51422         * doc/gcd.texi: Likewise.
51423         * doc/getdate.texi: Likewise.
51424         * doc/gnulib-intro.texi: Likewise.
51425         * doc/gnulib-tool.texi: Likewise.
51426         * doc/gnulib.texi: Likewise.
51427         * doc/inet_ntoa.texi: Likewise.
51428         * doc/maintain.texi: Likewise.
51429         * doc/make-stds.texi: Likewise.
51430         * doc/quote.texi: Likewise.
51431         * doc/regexprops-generic.texi: Likewise.
51432         * doc/standards.texi: Likewise.
51433         * doc/verify.texi: Likewise.
51434         * doc/visibility.texi: Likewise.
51435         * doc/gnulib.texi (GNU Free Documentation License): Include
51436         fdl-1.3.texi instead of fdl.texi.
51437
51438 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51439
51440         * doc/fdl-1.3.texi: New file, from
51441         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51442         * modules/fdl-1.3: Add.
51443         * MODULES.html.sh: Add fdl-1.3.
51444
51445 2008-11-03  Bruno Haible  <bruno@clisp.org>
51446
51447         Make determination of absolute name of header file work with AIX xlc.
51448         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51449         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51450         preprocessing.
51451         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51452         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51453
51454 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51455
51456         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51457         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51458         <ludo@gnu.org>.
51459
51460 2008-11-02  Bruno Haible  <bruno@clisp.org>
51461
51462         Mark 'strpbrk' obsolete.
51463         * modules/strpbrk (Status, Notice): New sections.
51464         * modules/strtok_r (Depends-on): Add strpbrk.
51465
51466 2008-11-02  Bruno Haible  <bruno@clisp.org>
51467
51468         Mark 'strdup' obsolete.
51469         * modules/strdup (Status, Notice): New sections.
51470         * modules/findprog (Depends-on): Add strdup.
51471         * modules/getaddrinfo (Depends-on): Likewise.
51472         * modules/localename (Depends-on): Likewise.
51473         * modules/relocatable-lib (Depends-on): Likewise.
51474         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51475         * modules/relocatable-prog (Depends-on): Likewise.
51476         * modules/trim (Depends-on): Likewise.
51477         * modules/unictype/gen-ctype (Depends-on): Likewise.
51478         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51479
51480 2008-11-02  Bruno Haible  <bruno@clisp.org>
51481
51482         Mark 'strcspn' obsolete.
51483         * modules/strcspn (Status, Notice): New sections.
51484
51485 2008-11-02  Bruno Haible  <bruno@clisp.org>
51486
51487         Mark 'rmdir' obsolete.
51488         * modules/rmdir (Status, Notice): New sections.
51489         * modules/clean-temp (Depends-on): Add rmdir.
51490         * modules/openat (Depends-on): Likewise.
51491
51492 2008-11-02  Bruno Haible  <bruno@clisp.org>
51493
51494         Mark 'raise' obsolete.
51495         * modules/raise (Status, Notice): New sections.
51496         (Include): Specify <signal.h>.
51497         * modules/stdio (Depends-on): Add raise.
51498         * modules/write (Depends-on): Likewise.
51499
51500 2008-11-02  Bruno Haible  <bruno@clisp.org>
51501
51502         Mark 'memset' obsolete.
51503         * modules/memset (Status, Notice): New sections.
51504
51505 2008-11-02  Bruno Haible  <bruno@clisp.org>
51506
51507         Mark 'memmove' obsolete.
51508         * modules/memmove (Status, Notice): New sections.
51509         * modules/argp (Depends-on): Add memmove.
51510         * modules/argz (Depends-on): Likewise.
51511         * modules/canonicalize (Depends-on): Likewise.
51512         * modules/canonicalize-lgpl (Depends-on): Likewise.
51513         * modules/fts (Depends-on): Likewise.
51514         * modules/getcwd (Depends-on): Likewise.
51515         * modules/human (Depends-on): Likewise.
51516         * modules/regex (Depends-on): Likewise.
51517         * modules/striconveh (Depends-on): Likewise.
51518         * modules/trim (Depends-on): Likewise.
51519         * modules/unistr/u8-move (Depends-on): Likewise.
51520         * modules/unistr/u16-move (Depends-on): Likewise.
51521         * modules/unistr/u32-move (Depends-on): Likewise.
51522
51523 2008-11-02  Bruno Haible  <bruno@clisp.org>
51524
51525         Mark 'memcpy' obsolete.
51526         * modules/memcpy (Status, Notice): New sections.
51527
51528 2008-11-02  Bruno Haible  <bruno@clisp.org>
51529
51530         Mark 'memcmp' obsolete.
51531         * modules/memcmp (Status, Notice): New sections.
51532         * modules/argmatch (Depends-on): Add memchr.
51533         * modules/backupfile (Depends-on): Likewise.
51534         * modules/c-strcasestr (Depends-on): Likewise.
51535         * modules/crypto/des (Depends-on): Likewise.
51536         * modules/csharpcomp (Depends-on): Likewise.
51537         * modules/fnmatch (Depends-on): Likewise.
51538         * modules/git-merge-changelog (Depends-on): Likewise.
51539         * modules/isnand (Depends-on): Likewise.
51540         * modules/isnand-nolibm (Depends-on): Likewise.
51541         * modules/isnanf (Depends-on): Likewise.
51542         * modules/isnanf-nolibm (Depends-on): Likewise.
51543         * modules/isnanl (Depends-on): Likewise.
51544         * modules/isnanl-nolibm (Depends-on): Likewise.
51545         * modules/mbchar (Depends-on): Likewise.
51546         * modules/memcoll (Depends-on): Likewise.
51547         * modules/quotearg (Depends-on): Likewise.
51548         * modules/regex (Depends-on): Likewise.
51549         * modules/relocatable-prog (Depends-on): Likewise.
51550         * modules/same (Depends-on): Likewise.
51551         * modules/signbit (Depends-on): Likewise.
51552         * modules/strcasestr-simple (Depends-on): Likewise.
51553         * modules/unictype/gen-ctype (Depends-on): Likewise.
51554         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51555         * modules/uniname/uniname (Depends-on): Likewise.
51556         * modules/unistr/u8-cmp (Depends-on): Likewise.
51557
51558 2008-11-02  Bruno Haible  <bruno@clisp.org>
51559
51560         Mark 'memchr' obsolete.
51561         * modules/memchr (Status, Notice): New sections.
51562         * modules/argp (Depends-on): Add memchr.
51563         * modules/base64 (Depends-on): Likewise.
51564         * modules/c-strcasestr (Depends-on): Likewise.
51565         * modules/chdir-long (Depends-on): Likewise.
51566         * modules/fnmatch (Depends-on): Likewise.
51567         * modules/getsubopt (Depends-on): Likewise.
51568         * modules/git-merge-changelog (Depends-on): Likewise.
51569         * modules/glob (Depends-on): Likewise.
51570         * modules/strcasestr-simple (Depends-on): Likewise.
51571         * modules/strnlen (Depends-on): Likewise.
51572
51573 2008-11-02  Bruno Haible  <bruno@clisp.org>
51574
51575         Mark 'atexit' obsolete.
51576         * modules/atexit (Status, Notice): New sections.
51577         * modules/chdir-long (Depends-on): Add atexit.
51578         * modules/wait-process (Depends-on): Likewise.
51579
51580 2008-11-02  Bruno Haible  <bruno@clisp.org>
51581
51582         * gnulib-tool: New option --with-obsolete.
51583         (func_usage): Document it.
51584         (func_modules_transitive_closure): Drop obsolete dependencies if
51585         incobsolete is not true.
51586         (func_import): Read and save the incobsolete variable to the cache.
51587
51588 2008-11-02  Bruno Haible  <bruno@clisp.org>
51589
51590         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51591         * gnulib-tool: New option --extract-status.
51592         (func_usage): Document it.
51593         (sed_extract_prog): Recognize it.
51594         (func_get_status): New function.
51595
51596 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51597
51598         * modules/sockets (License): Change from LGPL to LGPLv2+.
51599
51600 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51601
51602         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51603
51604 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51605
51606         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51607         Mention times and sys_times.
51608         * modules/sys_times, modules/sys_times-tests: New modules.
51609         * modules/times, modules/times-tests: Likewise
51610         * m4/sys_times_h.m4: New file.
51611         * lib/sys_times.in.h: Likewise
51612         * lib/times.c: Likewise.
51613         * tests/test-sys_times.c: Likewise.
51614         * tests/test-times.c: Likewise.
51615         * doc/posix-headers/sys_times.texi: Update.
51616         * doc/posix-functions/times.texi: Update.
51617
51618 2008-10-28  Jim Meyering  <meyering@redhat.com>
51619
51620         * modules/tempname (Depends-on): Add lstat.
51621
51622         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51623
51624 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51625
51626         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51627         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51628         using idiom used elsewhere in gnulib.
51629
51630 2008-10-27  Jim Meyering  <meyering@redhat.com>
51631
51632         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51633
51634 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51635
51636         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51637         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51638         programs.
51639         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51640
51641 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51642
51643         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51644
51645 2008-10-27  Bruno Haible  <bruno@clisp.org>
51646
51647         * tests/test-lstat.c: Include <stdio.h>.
51648
51649 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51650
51651         * modules/lstat-tests: New module.
51652         * tests/test-lstat.c: New file.
51653
51654 2008-10-26  Jim Meyering  <meyering@redhat.com>
51655
51656         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51657
51658 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51659             Bruno Haible  <bruno@clisp.org>
51660
51661         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51662         * modules/configmake (Include): Add a note that the include must come
51663         after all system headers.
51664         * lib/javaversion.c: Include configmake.h after all other includes.
51665
51666 2008-10-26  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51669         HAVE_STRUCT_RANDOM_DATA to 1.
51670         (gl_STDLIB_H): Simplify.
51671
51672 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51673
51674         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51675         substitute HAVE_STRUCT_RANDOM_DATA.
51676         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51677         random_data.
51678         * modules/stdlib (Makefile.am): Substitute
51679         HAVE_STRUCT_RANDOM_DATA.
51680
51681 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51682
51683         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51684         * doc/gnulib-intro.texi (Copyright): Likewise.
51685
51686 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51687
51688         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51689         findings.
51690
51691 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51692             Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/unistd.in.h: Include <winsock2.h>.
51695         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51696         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51697         Provide dummy declarations.
51698         (gethostname): Override.
51699         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51700         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51701         gl_PREREQ_SYS_H_WINSOCK2.
51702         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51703         * doc/posix-functions/gethostname.texi: More details.
51704
51705 2008-10-25  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51708         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51709         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51710
51711         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51712         here ...
51713         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51714         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51715         gl_UNISTD_H_DEFAULTS.
51716
51717 2008-10-25  Eric Blake  <ebb9@byu.net>
51718
51719         signbit: avoid spurious compiler failure
51720         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51721         declarations inside function.
51722
51723 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51724             Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51727         * modules/random_r (Depends-on): Add stdint.
51728
51729 2008-10-24  Bruno Haible  <bruno@clisp.org>
51730
51731         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51732         Eggert.
51733         * modules/strerror (License): Likewise.
51734
51735 2008-10-24  Jim Meyering  <meyering@redhat.com>
51736
51737         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51738         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51739
51740 2008-10-24  Eric Blake  <ebb9@byu.net>
51741
51742         getgroups: fix compilation when getgroups is available
51743         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51744         but with <config.h> override of getgroups disabled.
51745
51746 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51747
51748         * doc/gnulib.texi (Header files): Add note about C++ problems.
51749         Explained by Bruno Haible <bruno@clisp.org>.
51750
51751 2008-10-23  Bruno Haible  <bruno@clisp.org>
51752
51753         Define a dummy SA_NODEFER macro on Interix.
51754         * lib/signal.in.h (SA_NODEFER): Define fallback.
51755         Reported by Aleksey Cheusov <cheusov@tut.by> via
51756         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51757
51758 2008-10-23  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/freadahead (License): Change to LGPLv2+.
51761         Suggested by Simon Josefsson.
51762
51763 2008-10-23  Jim Meyering  <meyering@redhat.com>
51764
51765         random_r: new module
51766         * modules/random_r: New file.
51767         * m4/random_r.m4: New file.
51768         * lib/random_r.c: New file, from glibc.
51769         * modules/random_r-tests: New file.
51770         * tests/test-random_r.c: New file.
51771         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51772          Declare.
51773         (RAND_MAX): Define.
51774         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51775         * modules/stdlib: Substitute them, too.
51776         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51777         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51778         * doc/glibc-functions/random_r.texi: Likewise.
51779         * doc/glibc-functions/setstate_r.texi: Likewise.
51780         * doc/glibc-functions/srandom_r.texi: Likewise.
51781         * config/srclist.txt: Mention it.
51782
51783 2008-10-23  David Lutterkort  <lutter@redhat.com>
51784
51785         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51786         link requirement
51787
51788 2008-10-23  Jim Meyering  <meyering@redhat.com>
51789
51790         selinux-h: mark parameters of stub functions as intentionally unused
51791         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51792         * lib/se-context.in.h: Likewise.
51793
51794 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51795
51796         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51797
51798 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51799
51800         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51801
51802 2008-10-22  Eric Blake  <ebb9@byu.net>
51803
51804         glthread/thread: avoid compiler warning
51805         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51806         Add unreachable abort to silence compiler.
51807
51808 2008-10-22  Eric Blake  <ebb9@byu.net>
51809
51810         netdb: also supply struct addrinfo for cygwin 1.5.x
51811         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51812         older cygwin.
51813         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51814         cygwin.
51815         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51816
51817 2008-10-22  Bruno Haible  <bruno@clisp.org>
51818
51819         * users.txt: Update entry about pspp.
51820
51821 2008-10-21  Bruno Haible  <bruno@clisp.org>
51822
51823         Simplification.
51824         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51825         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51826
51827         Simplification.
51828         * lib/ioctl.c (ioctl): Don't undefine.
51829         * lib/socket.c (socket): Don't undefine.
51830
51831         Remove unused module indicator macros.
51832         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51833         GNULIB_$1 as a C macro.
51834
51835         * doc/posix-functions/close.texi: Undo last change.
51836         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51837         Windows platforms.
51838
51839 2008-10-21  Bruno Haible  <bruno@clisp.org>
51840
51841         Add gethostname() declaration to <unistd.h>.
51842         * lib/unistd.in.h (gethostname): New declaration.
51843         * lib/gethostname.c: Include <unistd.h>.
51844         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51845         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51847         and HAVE_GETHOSTNAME.
51848         * modules/gethostname (Depends-on): Add unistd.
51849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51850         (Include): Specify <unistd.h>.
51851         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51852         HAVE_GETHOSTNAME.
51853         * tests/test-gethostname.c: Include <unistd.h> first.
51854
51855 2008-10-21  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51858         * modules/select-tests (Depends-on): Likewise.
51859         Reported by Simon Josefsson.
51860
51861 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51862
51863         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51864         * lib/accept.c: New file, based on winsock.c.
51865         * lib/bind.c: New file, based on winsock.c.
51866         * lib/connect.c: New file, based on winsock.c.
51867         * lib/getpeername.c: New file, based on winsock.c.
51868         * lib/getsockname.c: New file, based on winsock.c.
51869         * lib/getsockopt.c: New file, based on winsock.c.
51870         * lib/ioctl.c: New file, based on winsock.c.
51871         * lib/listen.c: New file, based on winsock.c.
51872         * lib/recv.c: New file, based on winsock.c.
51873         * lib/recvfrom.c: New file, based on winsock.c.
51874         * lib/send.c: New file, based on winsock.c.
51875         * lib/sendto.c: New file, based on winsock.c.
51876         * lib/setsockopt.c: New file, based on winsock.c.
51877         * lib/shutdown.c: New file, based on winsock.c.
51878         * lib/socket.c: New file, based on winsock.c.
51879         * lib/w32sock.h: New file, based on winsock.c.
51880         * lib/winsock.c: Remove file.
51881         * modules/accept: Likewise.
51882         * modules/bind: Likewise.
51883         * modules/connect: Likewise.
51884         * modules/getpeername: Likewise.
51885         * modules/getsockname: Likewise.
51886         * modules/getsockopt: Likewise.
51887         * modules/ioctl: Likewise.
51888         * modules/listen: Likewise.
51889         * modules/recv: Likewise.
51890         * modules/recvfrom: Likewise.
51891         * modules/send: Likewise.
51892         * modules/sendto: Likewise.
51893         * modules/setsockopt: Likewise.
51894         * modules/shutdown: Likewise.
51895         * modules/socket: Use socket.c instead of winsock.c.
51896         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51897         * doc/posix-functions/accept.texi: Doc fix.
51898         * doc/posix-functions/bind.texi: Doc fix.
51899         * doc/posix-functions/close.texi: Doc fix.
51900         * doc/posix-functions/connect.texi: Doc fix.
51901         * doc/posix-functions/getpeername.texi: Doc fix.
51902         * doc/posix-functions/getsockname.texi: Doc fix.
51903         * doc/posix-functions/getsockopt.texi: Doc fix.
51904         * doc/posix-functions/ioctl.texi: Doc fix.
51905         * doc/posix-functions/listen.texi: Doc fix.
51906         * doc/posix-functions/recv.texi: Doc fix.
51907         * doc/posix-functions/recvfrom.texi: Doc fix.
51908         * doc/posix-functions/send.texi: Doc fix.
51909         * doc/posix-functions/sendto.texi: Doc fix.
51910         * doc/posix-functions/setsockopt.texi: Doc fix.
51911         * doc/posix-functions/shutdown.texi: Doc fix.
51912         * doc/posix-functions/socket.texi: Doc fix.
51913
51914 2008-10-20  Bruno Haible  <bruno@clisp.org>
51915
51916         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51917         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51918         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51919         as an alias for SIGABRT.
51920         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51921         (sigaction): Map it to SIGABRT.
51922         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51923
51924 2008-10-20  Bruno Haible  <bruno@clisp.org>
51925
51926         * lib/fts.c: Don't include lstat.h.
51927         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51928
51929         Move the lstat() declaration to <sys/stat.h>.
51930         * lib/lstat.h: Remove file.
51931         * lib/sys_stat.in.h: Add special invocation convention.
51932         (lstat): New declaration.
51933         * lib/lstat.c (orig_lstat): New function.
51934         (rpl_lstat): Use orig_lstat instead of lstat.
51935         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51936         AC_C_INLINE. Set REPLACE_LSTAT.
51937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51938         and REPLACE_LSTAT.
51939         * modules/lstat (Files): Remove lib/lstat.h.
51940         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51941         (Include): Specify <sys/stat.h> instead of lstat.h.
51942         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51943         REPLACE_LSTAT.
51944         * NEWS: Mention the change.
51945
51946 2008-10-20  Bruno Haible  <bruno@clisp.org>
51947
51948         * modules/posix_spawn-tests: New file.
51949         * tests/test-posix_spawn3.c: New file.
51950
51951 2008-10-20  Bruno Haible  <bruno@clisp.org>
51952
51953         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51954         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51955         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51956         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51957         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51958
51959 2008-10-20  Bruno Haible  <bruno@clisp.org>
51960
51961         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51962         of posix_spawn on AIX 5.3.
51963
51964 2008-10-20  Bruno Haible  <bruno@clisp.org>
51965
51966         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51967
51968 2008-10-20  Bruno Haible  <bruno@clisp.org>
51969
51970         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51971         of AC_LANG_PROGRAM.
51972
51973 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51974
51975         * lib/netdb.in.h: Don't define GNU specific constants until they
51976         are supported or needed.  Reported by Bruno Haible
51977         <bruno@clisp.org>.
51978
51979 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51980
51981         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51982
51983 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51984
51985         * lib/getaddrinfo.h: Remove file.
51986         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51987         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51988         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51989         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51990         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51991         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51992         * tests/test-getaddrinfo.c: Likewise.
51993         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51994         * NEWS: Mention change.
51995
51996 2008-10-19  Bruno Haible  <bruno@clisp.org>
51997
51998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51999
52000 2008-10-19  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/wait-process.c: Include simply <sys/wait.h>.
52003         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52004         WIFSTOPPED): Remove fallback definitions.
52005         * modules/wait-process (Depends-on): Add sys_wait.
52006
52007         New module 'sys_wait'.
52008         * modules/sys_wait: New file.
52009         * lib/sys_wait.in.h: New file, partially copied from
52010         lib/wait-process.c.
52011         * m4/sys_wait_h.m4: New file.
52012         * doc/posix-headers/sys_wait.texi: Mention the new module.
52013
52014 2008-10-19  Bruno Haible  <bruno@clisp.org>
52015
52016         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52017
52018 2008-10-19  Bruno Haible  <bruno@clisp.org>
52019
52020         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52021         * lib/wait-process.c (WAIT_T): Remove type.
52022         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52023         (wait_subprocess): Update.
52024
52025 2008-10-19  Bruno Haible  <bruno@clisp.org>
52026
52027         New module 'atoll'.
52028         * modules/atoll: New file.
52029         * lib/stdlib.in.h (atoll): New declaration.
52030         * lib/atoll.c: New file, from glibc with modifications.
52031         * m4/atoll.m4: New file.
52032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52033         HAVE_ATOLL.
52034         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52035         * doc/posix-functions/atoll.texi: Mention the new module.
52036
52037 2008-10-19  Bruno Haible  <bruno@clisp.org>
52038
52039         Add strtoull() declaration to <stdlib.h>.
52040         * lib/stdlib.in.h (strtoull): New declaration.
52041         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52042         Set HAVE_STRTOULL.
52043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52044         HAVE_STRTOULL.
52045         * modules/strtoull (Depends-on): Add stdlib.
52046         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52047         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52048         HAVE_STRTOULL.
52049
52050 2008-10-19  Bruno Haible  <bruno@clisp.org>
52051
52052         Add strtoll() declaration to <stdlib.h>.
52053         * lib/stdlib.in.h (strtoll): New declaration.
52054         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52055         Set HAVE_STRTOLL.
52056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52057         HAVE_STRTOLL.
52058         * modules/strtoll (Depends-on): Add stdlib.
52059         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52060         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52061
52062 2008-10-19  Bruno Haible  <bruno@clisp.org>
52063
52064         * modules/bcopy (Depends-on): Add strings.
52065         (Include): Specify <strings.h>.
52066
52067 2008-10-19  Bruno Haible  <bruno@clisp.org>
52068
52069         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52070
52071 2008-10-19  Bruno Haible  <bruno@clisp.org>
52072
52073         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52074         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52075         mingw.
52076
52077 2008-10-19  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/atanl.c: Don't include isnanl.h.
52080         * lib/cosl.c: Likewise.
52081         * lib/ldexpl.c: Likewise.
52082         * lib/logl.c: Likewise.
52083         * lib/sinl.c: Likewise.
52084         * lib/sqrtl.c: Likewise.
52085         * lib/tanl.c: Likewise.
52086
52087         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52088         * lib/isnanf.h: Remove file.
52089         * lib/isnand.h: Remove file.
52090         * lib/isnanl.h: Remove file.
52091         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52092         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52093         macros.
52094         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52095         HAVE_ISNANF, don't define it as a C macro.
52096         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52097         HAVE_ISNAND, don't define it as a C macro.
52098         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52099         HAVE_ISNANL, don't define it as a C macro.
52100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52101         HAVE_ISNAN[FDL].
52102         * modules/isnanf (Files): Remove lib/isnanf.h.
52103         (Depends-on): Add math.
52104         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52105         (Include): Specify <math.h> instead of isnanf.h.
52106         * modules/isnand (Files): Remove lib/isnand.h.
52107         (Depends-on): Add math.
52108         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52109         (Include): Specify <math.h> instead of isnand.h.
52110         * modules/isnanl (Files): Remove lib/isnanl.h.
52111         (Depends-on): Add math.
52112         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52113         (Include): Specify <math.h> instead of isnanl.h.
52114         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52115         HAVE_ISNAN[FDL].
52116         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52117         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52118         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52119         * NEWS: Mention the change.
52120
52121 2008-10-18  Bruno Haible  <bruno@clisp.org>
52122
52123         Add getusershell(), setusershell(), endusershell() declarations to
52124         <unistd.h>.
52125         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52126         declarations.
52127         * lib/getusershell.c: Include unistd.h.
52128         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52129         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52130         HAVE_GETUSERSHELL.
52131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52132         and HAVE_GETUSERSHELL.
52133         * modules/getusershell (Depends-on): Add unistd, extensions.
52134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52135         (Include): Specify <unistd.h>.
52136         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52137         HAVE_GETUSERSHELL.
52138
52139 2008-10-18  Bruno Haible  <bruno@clisp.org>
52140
52141         Add a getloadavg() declaration to <stdlib.h>.
52142         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52143         getloadavg declaration.
52144         (getloadavg): New declaration.
52145         * lib/getloadavg.c: Include <stdlib.h> first.
52146         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52147         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52148         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52150         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52151         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52152         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52153         (Include): Specify <stdlib.h>.
52154         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52155         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52156
52157 2008-10-18  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/dirchownmod.c: Don't include lchmod.h.
52160
52161         Move the lchmod() declaration to <sys/stat.h>.
52162         * lib/lchmod.h: Remove file.
52163         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52164         (lchmod): New declaration, moved here from lib/lchown.h.
52165         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52166         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52168         and HAVE_LCHMOD.
52169         * modules/lchmod (Files): Remove lib/lchmod.h.
52170         (Depends-on): Add sys_stat, extensions.
52171         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52172         (Include): Specify <sys/stat.h> instead of lchmod.h.
52173         * modules/sys_stat (Depends-on): Add link-warning.
52174         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52175         definition of GL_LINK_WARNING.
52176         * NEWS: Mention the change.
52177
52178 2008-10-18  Bruno Haible  <bruno@clisp.org>
52179
52180         * lib/fchdir.c: Don't include dirfd.h.
52181         * lib/fts.c: Likewise.
52182         * lib/getcwd.c: Likewise.
52183         * lib/glob.c: Likewise.
52184
52185         Move the dirfd() declaration to <dirent.h>.
52186         * lib/dirfd.h: Remove file.
52187         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52188         (dirfd): New declaration.
52189         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52190         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52191         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52192         HAVE_DECL_DIRFD.
52193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52194         HAVE_DECL_DIRFD.
52195         * modules/dirfd (Files): Remove lib/dirfd.h.
52196         (Depends-on): Add dirent, extensions.
52197         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52198         (Include): Specify <dirent.h> instead of dirfd.h.
52199         * modules/dirent (Depends-on): Add link-warning.
52200         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52201         definition of GL_LINK_WARNING.
52202         * NEWS: Mention the change.
52203
52204 2008-10-18  Bruno Haible  <bruno@clisp.org>
52205
52206         Move the euidaccess() declaration to <unistd.h>.
52207         * lib/euidaccess.h: Remove file.
52208         * lib/unistd.in.h (euidaccess): New declaration.
52209         * lib/euidaccess.c: Don't include euidaccess.h.
52210         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52211         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52213         and HAVE_EUIDACCESS.
52214         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52215         (Depends-on): Add unistd.
52216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52217         (Include): Specify <unistd.h> instead of euidaccess.h.
52218         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52219         HAVE_EUIDACCESS.
52220         * NEWS: Mention the change.
52221
52222 2008-10-18  Bruno Haible  <bruno@clisp.org>
52223
52224         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52225
52226         Move the getdomainname() declaration to <unistd.h>.
52227         * lib/getdomainname.h: Remove file.
52228         * lib/unistd.in.h (getdomainname): New declaration.
52229         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52230         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52231         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52232         HAVE_GETDOMAINNAME.
52233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52234         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52235         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52236         (Depends-on): Add unistd, extensions.
52237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52238         (Includes): Specify <unistd.h> instead of getdomainname.h.
52239         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52240         HAVE_GETDOMAINNAME.
52241         * NEWS: Mention the change.
52242
52243 2008-10-18  Bruno Haible  <bruno@clisp.org>
52244
52245         * modules/dirent: New file.
52246         * m4/dirent_h.m4: New file.
52247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52248         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52249         * modules/fchdir (Files): Remove lib/dirent.in.h.
52250         (Depends-on): Add dirent.
52251         (Makefile.am): Move rules to modules/dirent.
52252         * doc/posix-headers/dirent.texi: Mention the new module.
52253
52254 2008-10-18  Bruno Haible  <bruno@clisp.org>
52255
52256         Avoid -Wunused-parameter warnings in public gnulib header files.
52257         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52258         macro.
52259         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52260
52261 2008-10-18  Bruno Haible  <bruno@clisp.org>
52262
52263         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52264         * doc/glibc-functions/error.texi: Mention the module 'error'.
52265         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52266         * doc/glibc-functions/getdomainname.texi: Mention the module
52267         'getdomainname'.
52268         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52269         * doc/glibc-functions/getpagesize.texi: Mention the module
52270         'getpagesize'.
52271         * doc/glibc-functions/getusershell.texi: Mention the module
52272         'getusershell'.
52273         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52274         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52275         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52276         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52277         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52278         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52279         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52280         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52281         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52282         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52283         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52284         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52285         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52286         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52287
52288 2008-10-17  Bruno Haible  <bruno@clisp.org>
52289
52290         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52291         HP-UX and IRIX, use -0.0L.
52292         * tests/test-ceill.c (minus_zero): Likewise.
52293         * tests/test-floorl.c (minus_zero): Likewise.
52294         * tests/test-frexpl.c (minus_zero): Likewise.
52295         * tests/test-isnan.c (minus_zerol): Likewise.
52296         * tests/test-isnanl.h (minus_zero): Likewise.
52297         * tests/test-ldexpl.c (minus_zero): Likewise.
52298         * tests/test-roundl.c (minus_zero): Likewise.
52299         * tests/test-signbit.c (minus_zerol): Likewise.
52300         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52301         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52302         * tests/test-truncl.c (minus_zero): Likewise.
52303         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52304         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52305         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52306         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52307
52308 2008-10-17  Bruno Haible  <bruno@clisp.org>
52309
52310         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52311         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52312         that it gets activated only for gcc >= 3.0.
52313         * lib/dirent.in.h: Likewise.
52314         * lib/errno.in.h: Likewise.
52315         * lib/fcntl.in.h: Likewise.
52316         * lib/float.in.h: Likewise.
52317         * lib/iconv.in.h: Likewise.
52318         * lib/inttypes.in.h: Likewise.
52319         * lib/locale.in.h: Likewise.
52320         * lib/math.in.h: Likewise.
52321         * lib/netdb.in.h: Likewise.
52322         * lib/netinet_in.in.h: Likewise.
52323         * lib/search.in.h: Likewise.
52324         * lib/signal.in.h: Likewise.
52325         * lib/spawn.in.h: Likewise.
52326         * lib/stdarg.in.h: Likewise.
52327         * lib/stdint.in.h: Likewise.
52328         * lib/stdio.in.h: Likewise.
52329         * lib/stdlib.in.h: Likewise.
52330         * lib/string.in.h: Likewise.
52331         * lib/strings.in.h: Likewise.
52332         * lib/sys_file.in.h: Likewise.
52333         * lib/sys_ioctl.in.h: Likewise.
52334         * lib/sys_select.in.h: Likewise.
52335         * lib/sys_socket.in.h: Likewise.
52336         * lib/sys_stat.in.h: Likewise.
52337         * lib/sys_time.in.h: Likewise.
52338         * lib/sysexits.in.h: Likewise.
52339         * lib/time.in.h: Likewise.
52340         * lib/unistd.in.h: Likewise.
52341         * lib/wchar.in.h: Likewise.
52342         * lib/wctype.in.h: Likewise.
52343         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52344
52345 2008-10-17  Jim Meyering  <meyering@redhat.com>
52346
52347         ignore-value: don't depend on inline module
52348         * modules/ignore-value (Depends-on): Remove 'inline'.
52349         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52350         Suggestion from Bruno Haible.
52351
52352 2008-10-17  Bruno Haible  <bruno@clisp.org>
52353
52354         New implementation of condition variables for Win32.
52355         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52356         (gl_linked_waitqueue_t): New type.
52357         (gl_cond_t): Use it.
52358         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52359         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52360         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52361         (glthread_cond_init_func, glthread_cond_wait_func,
52362         glthread_cond_timedwait_func, glthread_cond_signal_func,
52363         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52364         Reimplemented on the basis of gl_linked_waitqueue_t.
52365         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52366         gl_waitqueue_t.
52367         (gl_rwlock_t): Update.
52368         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52369
52370 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52371
52372         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52373         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52374
52375 2008-10-17  Jim Meyering  <meyering@redhat.com>
52376
52377         ignore-value: new module
52378         * modules/ignore-value: New file.
52379         * lib/ignore-value.h: New file.
52380         * MODULES.html.sh (Compiler warning management): New section,
52381         just for this module.  More to come.
52382
52383 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52384
52385         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52386         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52387         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52388
52389 2008-10-16  Jim Meyering  <meyering@redhat.com>
52390
52391         openat-die.c: avoid 'no previous prototype' warning
52392         * lib/openat-die.c: Include "openat.h".
52393         Reported by Reuben Thomas <rrt@sc3d.org>.
52394
52395 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52396
52397         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52398         * lib/netdb.in.h: Fix typo.
52399         Reported by Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/netdb.in.h: Include sys/socket.h for platforms without
52402         netdb.h, to get structures like hostent on MinGW.
52403         * modules/netdb (Depends-on): Add sys_socket.
52404
52405 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52406
52407         * modules/netdb, modules/netdb-tests: New file.
52408         * m4/netdb_h.m4: New file.
52409         * lib/netdb.in.h: Add, currently just an empty file pending
52410         definitions.
52411         * tests/test-netdb.c: New file.
52412         * doc/posix-headers/netdb.texi: Mention that we replace it if
52413         needed.
52414         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52415         netdb.
52416
52417 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52418
52419         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52420         with code.
52421
52422 2008-10-13  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/glthread/cond.c (glthread_cond_wait_func,
52425         glthread_cond_timedwait_func): Add a comment.
52426
52427 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52428
52429         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52430         * tests/test-select.c: Likewise,
52431
52432 2008-10-13  Bruno Haible  <bruno@clisp.org>
52433
52434         * lib/glthread/cond.c (glthread_cond_wait_func,
52435         glthread_cond_timedwait_func): Fix variable name.
52436         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52437
52438 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52439
52440         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52442         struct sockaddr.sa_len.
52443         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52444
52445 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52446
52447         * build-aux/pmccabe2html: Add css and css_url parameters.
52448
52449 2008-10-12  Bruno Haible  <bruno@clisp.org>
52450
52451         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52452         calling aclx_get.
52453         Reported by Rainer Tammer <tammer@tammer.net>.
52454
52455 2008-10-12  Bruno Haible  <bruno@clisp.org>
52456
52457         Use msvcrt aware primitives for creation/termination of Win32 threads.
52458         * lib/glthread/thread.c: Include <process.h>.
52459         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52460         (wrapper_func): Update signature.
52461         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52462
52463 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52464             Bruno Haible  <bruno@clisp.org>
52465
52466         Provide a Win32 implementation of the 'cond' module.
52467         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52468         * lib/glthread/cond.c (glthread_cond_init_func,
52469         glthread_cond_wait_func, glthread_cond_timedwait_func,
52470         glthread_cond_signal_func, glthread_cond_broadcast_func,
52471         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52472         * modules/cond (Dependencies): Add gettimeofday.
52473
52474 2008-10-11  Bruno Haible  <bruno@clisp.org>
52475
52476         Make sleep work on older versions of mingw.
52477         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52478         only whether it exists.
52479         * doc/posix-functions/sleep.texi: Mention the problem with older
52480         versions of mingw.
52481
52482 2008-10-11  Bruno Haible  <bruno@clisp.org>
52483
52484         New module 'shutdown'.
52485         * modules/shutdown: New file.
52486         * lib/sys_socket.in.h (shutdown): New declaration.
52487         * lib/winsock.c (shutdown): New function.
52488         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52489         GNULIB_SHUTDOWN.
52490         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52491         * doc/posix-functions/shutdown.texi: Document the new module.
52492
52493 2008-10-11  Jim Meyering  <meyering@redhat.com>
52494
52495         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52496
52497 2008-10-11  Bruno Haible  <bruno@clisp.org>
52498
52499         New module 'fclose'.
52500         * modules/fclose: New file.
52501         * lib/stdio.in.h (fclose): New declaration.
52502         * lib/fclose.c: New file.
52503         * m4/fclose.m4: New file.
52504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52505         REPLACE_FCLOSE.
52506         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52507         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52508         REPLACE_FCLOSE.
52509         * modules/close (Depends-on): fclose.
52510         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52511
52512 2008-10-11  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52515         set errno and don't call _close.
52516
52517 2008-10-10  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52520         ACL, not afterwards. Fixes test failure on Cygwin.
52521
52522 2008-10-09  Ben Pfaff  <blp@gnu.org>
52523
52524         * build-aux/announce-gen: Fix gnulib version related part of usage
52525         message.  Die with a useful error message if no tarballs are
52526         found.
52527
52528 2008-10-10  Jim Meyering  <meyering@redhat.com>
52529
52530         bootstrap: use git's --depth=N option only if it's supported
52531         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52532         recognize the --depth option.  Reported by Pádraig Brady.
52533
52534 2008-10-09  Bruno Haible  <bruno@clisp.org>
52535
52536         New module 'ioctl'.
52537         * modules/ioctl: New file.
52538         * lib/sys_socket.in.h (ioctl): Remove declaration.
52539         * lib/winsock.c: Include <sys/ioctl.h>.
52540         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52541         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52542         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52543         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52544         * doc/posix-functions/ioctl.texi: Mention the new module.
52545
52546 2008-10-09  Bruno Haible  <bruno@clisp.org>
52547
52548         New module 'sys_ioctl'.
52549         * lib/sys_ioctl.in.h: New file.
52550         * m4/sys_ioctl_h.m4: New file.
52551         * modules/sys_ioctl: New file.
52552         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52553
52554 2008-10-09  Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52557         * lib/winsock.c: Include <stdarg.h>.
52558         (rpl_ioctl): Change to second argument 'int' and then varargs.
52559
52560 2008-10-09  Bruno Haible  <bruno@clisp.org>
52561
52562         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52563         when the sys_socket module is present and the system has <winsock2.h>.
52564
52565 2008-10-09  Bruno Haible  <bruno@clisp.org>
52566
52567         * doc/posix-functions/close.texi: Mention module 'close' instead of
52568         module 'sys_socket'.
52569
52570 2008-10-09  Bruno Haible  <bruno@clisp.org>
52571
52572         * doc/glibc-headers/sys_ioctl.texi: New file.
52573         * doc/gnulib.texi: Include it.
52574
52575 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52576             Bruno Haible  <bruno@clisp.org>
52577
52578         Combine the two replacements of 'close'.
52579         * lib/sys_socket.in.h (close): Define to a reminder to include
52580         <unistd.h>.
52581         (_gl_close_fd_maybe_socket): New declaration.
52582         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52583         * lib/winsock.c (close): Remove undefinition.
52584         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52585         needed for the gnulib module 'close'.
52586         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52587         define to an error symbol or to a warning, if suitable.
52588         * lib/close.c: Include <sys/socket.h>.
52589         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52590         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52591         UNISTD_H_HAVE_WINSOCK2_H.
52592         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52594         UNISTD_H_HAVE_WINSOCK2_H.
52595         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52596         (configure.ac): Set a module indicator.
52597         (Makefile.am): Substitute GNULIB_CLOSE.
52598         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52599         * modules/poll-tests (Depends-on): Add close.
52600         * modules/select-tests (Depends-on): Likewise.
52601
52602 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52603             Bruno Haible  <bruno@clisp.org>
52604
52605         New module 'close'.
52606         * modules/close: New file.
52607         * lib/unistd.in.h (close): Move declaration out of the
52608         FCHDIR_REPLACEMENT scope.
52609         (_gl_unregister_fd): New declaration.
52610         * lib/close.c: New file.
52611         * lib/fchdir.c (rpl_close): Remove function.
52612         * m4/close.m4: New file.
52613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52614         close.
52615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52616         REPLACE_CLOSE.
52617         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52618         REPLACE_CLOSE.
52619         * modules/fchdir (Depends-on): Add close.
52620
52621 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52622             Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/fcntl.in.h (open): Simplify conditionals.
52625         (_gl_register_fd): New declaration.
52626         * lib/fchdir.c (rpl_open): Remove function.
52627         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52628         also.
52629         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52630         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52631         open.
52632
52633 2008-10-09  Jim Meyering  <meyering@redhat.com>
52634
52635         GNUmakefile: use the more name-space-friendly "_version"
52636         * top/GNUmakefile (_dummy): Update.
52637         (_version): Rename from "version".
52638
52639 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52640             Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52643         rpl_close.
52644         (_gl_register_fd): New function, extracted from rpl_open.
52645         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52646         (rpl_open, rpl_opendir): Use _gl_register_fd.
52647
52648 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52649
52650         Fix organization of 'open' replacement.
52651         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52652         (gl_FUNC_OPEN): Use it.
52653         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52654
52655 2008-10-08  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52658
52659 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52660
52661         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52662         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52663         listen).
52664
52665 2008-10-08  Eric Blake  <ebb9@byu.net>
52666
52667         GNUmakefile: add 'make version' target
52668         * top/GNUmakefile (_curr-ver): Split version update rules...
52669         (version): ...into a target.
52670
52671 2008-10-07  Bruno Haible  <bruno@clisp.org>
52672
52673         Use a more portable replacement expression for -0.0L.
52674         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52675         instead of -0.0L. Fix m4 quotation.
52676
52677         * tests/test-signbit.c: Include <float.h>.
52678         (minus_zero): New variable.
52679         (test_signbitl): Use minus_zero instead of -zero.
52680         * modules/signbit-tests (Depends-on): Add float.
52681
52682         * tests/test-ceill.c: Include <float.h>.
52683         (zero): Remove variable.
52684         (minus_zero): New variable.
52685         (main): Use minus_zero instead of -zero.
52686         * modules/ceill-tests (Depends-on): Add float.
52687
52688         * tests/test-floorl.c: Include <float.h>.
52689         (zero): Remove variable.
52690         (minus_zero): New variable.
52691         (main): Use minus_zero instead of -zero.
52692         * modules/floorl-tests (Depends-on): Add float.
52693
52694         * tests/test-roundl.c: Include <float.h>.
52695         (zero): Remove variable.
52696         (minus_zero): New variable.
52697         (main): Use minus_zero instead of -zero.
52698         * modules/roundl-tests (Depends-on): Add float.
52699
52700         * tests/test-truncl.c: Include <float.h>.
52701         (zero): Remove variable.
52702         (minus_zero): New variable.
52703         (main): Use minus_zero instead of -zero.
52704         * modules/truncl-tests (Depends-on): Add float.
52705
52706         * tests/test-frexpl.c (zero): Remove variable.
52707         (minus_zero): New variable.
52708         (main): Use minus_zero instead of -zero.
52709         * modules/frexpl-tests (Depends-on): Add float.
52710
52711         * tests/test-isnan.c (zerol): Remove variable.
52712         (minus_zerol): New variable.
52713         (test_long_double): Use minus_zerol instead of -zerol.
52714         * modules/isnan-tests (Depends-on): Add float.
52715
52716         * tests/test-isnanl.h (zero): Remove variable.
52717         (minus_zero): New variable.
52718         (main): Use minus_zero instead of -zero.
52719         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52720         * modules/isnanl-tests (Depends-on): Add float.
52721
52722         * tests/test-ldexpl.c (zero): Remove variable.
52723         (minus_zero): New variable.
52724         (main): Use minus_zero instead of -zero.
52725         * modules/ldexpl-tests (Depends-on): Add float.
52726
52727         * tests/test-snprintf-posix.h (zerol): Remove variable.
52728         (minus_zerol): New variable.
52729         (test_function): Use minus_zerol instead of -zerol.
52730         * modules/snprintf-posix-tests (Depends-on): Add float.
52731         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52732
52733         * tests/test-sprintf-posix.h (zerol): Remove variable.
52734         (minus_zerol): New variable.
52735         (test_function): Use minus_zerol instead of -zerol.
52736         * modules/sprintf-posix-tests (Depends-on): Add float.
52737         * modules/vsprintf-posix-tests (Depends-on): Add float.
52738
52739         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52740         (minus_zerol): New variable.
52741         (test_function): Use minus_zerol instead of -zerol.
52742         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52743
52744         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52745         (minus_zerol): New variable.
52746         (test_function): Use minus_zerol instead of -zerol.
52747         * modules/vasprintf-posix-tests (Depends-on): Add float.
52748
52749 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52750
52751         * MODULES.html.sh (Support for building documentation): Mention
52752         pmccabe2html.  Sort entries.
52753
52754         Add pmccabe2html module, from gnupdf.
52755         * build-aux/pmccabe.css: New file.
52756         * build-aux/pmccabe2html: New file.
52757         * m4/pmccabe2html.m4: New file.
52758         * modules/pmccabe2html: New file.
52759
52760 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52761
52762         flock: new module
52763         * MODULES.html.sh: Add to list of modules.
52764         * lib/flock.c: flock implementation for Windows and Unix systems
52765         which have fcntl.
52766         * doc/glibc-functions/flock.texi: Update documentation.
52767         * lib/sys_file.in.h: <sys/file.h> header file.
52768         * m4/flock.m4: M4 macros.
52769         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52770         * modules/flock: flock module.
52771         * modules/flock-tests: flock tests module.
52772         * modules/sys_file: sys/file.h module.
52773         * tests/test-flock.c: test suite for flock.
52774
52775 2008-10-06  Jim Meyering  <meyering@redhat.com>
52776
52777         bootstrap: check for LT_INIT more portably still ;-)
52778         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52779         Spotted by Bruno Haible.
52780
52781 2008-10-06  Eric Blake  <ebb9@byu.net>
52782
52783         test-signbit: avoid tripping Irix cc bug on -0.0L
52784         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52785         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52786         entire testsuite consistent and avoids an Irix 6.2 bug.
52787
52788 2008-10-05  Bruno Haible  <bruno@clisp.org>
52789             Jim Meyering  <jim@meyering.net>
52790
52791         Add an option for ignoring EPIPE during close_stdout.
52792         * lib/closeout.h: Include <stdbool.h>.
52793         (close_stdout_set_ignore_EPIPE): New declaration.
52794         * lib/closeout.c: Include <stdbool.h>.
52795         (ignore_EPIPE): New variable.
52796         (close_stdout_set_ignore_EPIPE): New function.
52797         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52798         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52799         failure.
52800         * modules/closeout (Depends-on): Add stdbool.
52801
52802 2008-10-05  Bruno Haible  <bruno@clisp.org>
52803
52804         * modules/accept: New file.
52805         * modules/bind: New file.
52806         * modules/connect: New file.
52807         * modules/getpeername: New file.
52808         * modules/getsockname: New file.
52809         * modules/getsockopt: New file.
52810         * modules/listen: New file.
52811         * modules/recv: New file.
52812         * modules/recvfrom: New file.
52813         * modules/send: New file.
52814         * modules/sendto: New file.
52815         * modules/setsockopt: New file.
52816         * modules/socket: New file.
52817         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52818         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52819         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52820         the particular module is requested. Add a link warning when the
52821         particular module is not requested.
52822         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52823         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52824         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52825         the particular module is requested.
52826         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52827         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52828         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52829         * modules/sys_socket (Depends-on): Add link-warning.
52830         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52831         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52832         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52833         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52834         GL_LINK_WARNING.
52835         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52836         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52837         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52838         * doc/posix-functions/getpeername.texi: Mention the new module
52839         'getpeername'.
52840         * doc/posix-functions/getsockname.texi: Mention the new module
52841         'getsockname'.
52842         * doc/posix-functions/getsockopt.texi: Mention the new module
52843         'getsockopt'.
52844         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52845         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52846         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52847         * doc/posix-functions/send.texi: Mention the new module 'send'.
52848         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52849         * doc/posix-functions/setsockopt.texi: Mention the new module
52850         'setsockopt'.
52851         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52852         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52853         listen, connect, accept.
52854         * modules/select-tests (Depends-on): Likewise.
52855
52856 2008-10-05  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/winsock.c (strerror): Remove unused #undef.
52859         (rpl_close): Remove unused local variable.
52860
52861         * modules/sys_socket (Depends-on); Add errno.
52862
52863 2008-10-05  Bruno Haible  <bruno@clisp.org>
52864
52865         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52866         (select): Add a link warning when the 'select' module is not used.
52867         * modules/sys_select (Depends-on): Add link-warning.
52868         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52869         Suggested by Paolo Bonzini.
52870
52871 2008-10-05  Jim Meyering  <meyering@redhat.com>
52872
52873         bootstrap: check for LT_INIT more portably
52874         * build-aux/bootstrap: Avoid using grep -E, since it's not
52875         portable enough.  Suggestion from Bruno Haible.
52876
52877 2008-10-05  Bruno Haible  <bruno@clisp.org>
52878
52879         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52880         as being fixed by gnulib.
52881
52882 2008-10-05  Bruno Haible  <bruno@clisp.org>
52883
52884         * modules/select-tests: New file, mostly copied from
52885         modules/sys_select-tests.
52886         * tests/test-select.c: New file, mostly copied from
52887         tests/test-sys_select.c.
52888         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52889         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52890         (Makefile.am): Remove test_sys_select_LDADD.
52891
52892         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52893         to an undefined symbol, for an error message.
52894         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52895         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52896         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52897         winsock-select.c here.
52898         * modules/sys_select (Files): Remove lib/winsock-select.c.
52899         (Depends-on): Remove alloca.
52900         (Makefile.am): Substitute GNULIB_SELECT.
52901         * modules/select: New file.
52902         * doc/posix-functions/select.texi: Update.
52903
52904 2008-10-05  Bruno Haible  <bruno@clisp.org>
52905
52906         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52907         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52908         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52909         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52910         getdtablesize.
52911         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52912         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52913
52914 2008-10-05  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/getdtablesize-tests: New file.
52917         * tests/test-getdtablesize.c: New file.
52918
52919         New module 'getdtablesize'.
52920         * lib/unistd.in.h (getdtablesize): New declaration.
52921         * lib/getdtablesize.c: New file.
52922         * m4/getdtablesize.m4: New file.
52923         * modules/getdtablesize: New file.
52924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52925         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52926         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52927         HAVE_GETDTABLESIZE.
52928         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52929
52930 2008-10-05  Bruno Haible  <bruno@clisp.org>
52931
52932         * modules/sched (Makefile.am): Fix typo.
52933         Reported by Simon Josefsson.
52934
52935 2008-10-05  Jim Meyering  <meyering@redhat.com>
52936
52937         bootstrap: check for LT_INIT, too
52938         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52939         are deprecated.  Suggestion from Ralf Wildenhues.
52940
52941 2008-10-05  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52944         overriding them by ours.
52945         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52946
52947 2008-10-05  Jim Meyering  <meyering@redhat.com>
52948
52949         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52950         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52951         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52952
52953 2008-10-04  Bruno Haible  <bruno@clisp.org>
52954
52955         * modules/dup2 (License): Change to LGPLv2+.
52956         * modules/sleep (License): Likewise.
52957         * modules/perror (License): Likewise.
52958         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52959         Blake.
52960         * modules/signal (License): Likewise.
52961         * modules/sigprocmask (License): Likewise.
52962         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52963         Meyering.
52964
52965 2008-10-04  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52968         Reported by Rainer Tammer <tammer@tammer.net>.
52969
52970 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52971             Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52974         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52975         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52976
52977 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52978
52979         filevercmp: new module
52980         * lib/filevercmp.h: New function filevercmp comparing version strings.
52981         * lib/filevercmp.c: Implementation of filevercmp function.
52982         * modules/filevercmp: Module metadata.
52983         * tests/test-filevercmp.c: Unit test for new module.
52984         * modules/filevercmp-tests: Unit test metadata.
52985         * MODULES.html.sh: Add filevercmp module.
52986
52987 2008-10-03  Bruno Haible  <bruno@clisp.org>
52988
52989         * lib/c-ctype.h: Add comment.
52990         Reported by Jim Meyering.
52991
52992 2008-10-02  Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52995
52996 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52997
52998         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52999         name of bootstrap.conf accordingly.
53000
53001 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53002
53003         * build-aux/bootstrap: Install git-merge-changelog configuration
53004         items into .gitconfig if needed.
53005
53006 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53007
53008         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53009         git repository, and initialize/update it accordingly.
53010
53011 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53012
53013         * modules/fsync-tests: New file.
53014         * tests/test-fsync.c: New file.
53015
53016         New module 'fsync'.
53017         * lib/fsync.c: New file.
53018         * m4/fsync.m4: New file.
53019         * modules/fsync: New file.
53020         * lib/unistd.in.h (fsync): New declaration.
53021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53022         GNULIB_FSYNC and HAVE_FSYNC.
53023         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53024         * MODULES.html.sh (posix_functions): Add fsync.
53025         * doc/posix-functions/fsync.texi: Mention the new module.
53026
53027 2008-10-02  Jim Meyering  <meyering@redhat.com>
53028
53029         fts.c: sync with similar code from coreutils' remove.c
53030         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53031         Guard also with "#if defined __linux__", since for now at least,
53032         this code is Linux-kernel-specific.
53033
53034 2008-10-02  Jim Meyering  <meyering@redhat.com>
53035
53036         fts: bug fixes
53037         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53038         Include <sys/vfs.h>, not <sys/statfs.h>.
53039
53040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53041         Include <sys/vfs.h>, not <sys/statfs.h>.
53042
53043 2008-10-01  Bruno Haible  <bruno@clisp.org>
53044
53045         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53046         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53047         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53048         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53049         * doc/posix-functions/posix_spawnp.texi: Likewise.
53050         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53051         whether posix_spawn actually works.
53052         * m4/pipe.m4 (gl_PIPE): Likewise.
53053         * modules/execute (Files): Add m4/posix_spawn.m4.
53054         * modules/pipe (Files): Add m4/posix_spawn.m4.
53055         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53056
53057 2008-10-01  Jim Meyering  <meyering@redhat.com>
53058
53059         remove trailing spaces
53060         * NEWS: Likewise.
53061         * lib/poll.c (poll): Likewise.
53062         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53063         * lib/winsock.c (rpl_close): Likewise.
53064         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53065         * modules/yield: Likewise.
53066         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53067         * tests/test-sys_select.c (connect_to_socket): Likewise.
53068
53069         fts.c: adjust a new interface to be more generally useful
53070         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53071         (fts_build): Adjust caller.
53072
53073 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53074
53075         * modules/cond-tests: New file.
53076         * tests/test-cond.c: New file.
53077
53078 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53079             Bruno Haible  <bruno@clisp.org>
53080
53081         * modules/cond (Dependencies): Add errno, time.
53082         * lib/glthread/cond.h: Include <time.h>.
53083         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53084         across platforms.
53085
53086 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53087             Bruno Haible  <bruno@clisp.org>
53088
53089         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53090
53091 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53092             Bruno Haible  <bruno@clisp.org>
53093
53094         * modules/tls-tests (Depends-on): Add thread, yield.
53095         (configure.ac): Remove all checks.
53096         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53097         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53098         gl_thread_self): Remove definitions. Include glthread/thread.h and
53099         glthread/yield.h instead.
53100         (test_tls): Pass an additional NULL argument to gl_thread_join.
53101
53102 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53103             Bruno Haible  <bruno@clisp.org>
53104
53105         * modules/lock-tests (Depends-on): Add thread, yield.
53106         (configure.ac): Remove all checks.
53107         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53108         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53109         gl_thread_self): Remove definitions. Include glthread/thread.h and
53110         glthread/yield.h instead.
53111         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53112         additional NULL argument to gl_thread_join.
53113
53114 2008-09-30  Bruno Haible  <bruno@clisp.org>
53115
53116         Fix the Win32 implementation of the 'thread' module.
53117         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53118         pointer type.
53119         (gl_thread_self): Invoke gl_thread_self_func.
53120         (gl_thread_self_func): New declaration.
53121         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53122         (do_init_self_key, init_self_key): New functions.
53123         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53124         Remove some fields.
53125         (running_threads, running_lock): Remove variables.
53126         (get_current_thread_handle): New function.
53127         (gl_thread_self_func, wrapper_func, glthread_create_func,
53128         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53129         simplified.
53130
53131 2008-09-30  Bruno Haible  <bruno@clisp.org>
53132
53133         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53134         files.
53135
53136 2008-09-30  Jim Meyering  <meyering@redhat.com>
53137
53138         fts.m4: correct the test for statfs.f_type
53139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53140         when checking for statfs.f_type.
53141
53142 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53143
53144         tests: avoid some compiler warnings
53145         * tests/test-memchr.c (main): Pass NULL indirectly.
53146         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53147
53148 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53149
53150         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53151         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53152         exactly specified dayshifts.
53153         (dayshift): New rule.
53154         (rel): Add dayshift.
53155         (relative_time_table) [tomorrow, yesterday, today, now]:
53156         Use tDAY_SHIFT in place of tDAY_UNIT.
53157         * tests/test-getdate.c: Add tests for now-disallowed countable
53158         dayshifts, e.g., "4 yesterday ago".
53159
53160 2008-09-29  Bruno Haible  <bruno@clisp.org>
53161
53162         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53163         * tests/test-posix_spawn1.in.sh: Renamed from
53164         tests/test-posix_spawn.in.sh.
53165         * tests/test-posix_spawn2.c: New file.
53166         * tests/test-posix_spawn2.in.sh: New file.
53167         * modules/posix_spawnp-tests (Files): Update.
53168         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53169
53170 2008-09-29  Bruno Haible  <bruno@clisp.org>
53171
53172         Propagate effects of putenv/setenv/unsetenv to child processes.
53173         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53174         * lib/pipe.c (create_pipe): Likewise.
53175
53176 2008-09-29  Bruno Haible  <bruno@clisp.org>
53177
53178         Enable use of shell scripts as executables in mingw.
53179         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53180         run the program as a shell script.
53181         * lib/pipe.c (create_pipe): Likewise.
53182         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53183         resulting array.
53184
53185 2008-09-29  Eric Blake  <ebb9@byu.net>
53186
53187         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53188
53189 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53190
53191         * doc/posix-functions/accept.texi: Update mingw problems.
53192         * doc/posix-functions/bind.texi: Update mingw problems.
53193         * doc/posix-functions/close.texi: Update mingw problems.
53194         * doc/posix-functions/connect.texi: Update mingw problems.
53195         * doc/posix-functions/getpeername.texi: Update mingw problems.
53196         * doc/posix-functions/getsockname.texi: Update mingw problems.
53197         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53198         * doc/posix-functions/ioctl.texi: Update mingw problems.
53199         * doc/posix-functions/listen.texi: Update mingw problems.
53200         * doc/posix-functions/recv.texi: Update mingw problems.
53201         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53202         * doc/posix-functions/select.texi: Update mingw problems.
53203         * doc/posix-functions/send.texi: Update mingw problems.
53204         * doc/posix-functions/sendto.texi: Update mingw problems.
53205         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53206         * doc/posix-functions/socket.texi: Update mingw problems.
53207
53208 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53209             Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/sys_select.in.h: Include sys/time.h.
53212         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53213         * modules/sys_select: Depend on sys_time.
53214         * tests/test-sys_select.c: Test that sys/select.h defines struct
53215         timeval fully.
53216
53217 2008-09-29  Bruno Haible  <bruno@clisp.org>
53218
53219         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53220         * lib/sys_select.in.h: Likewise.
53221
53222 2008-09-29  Bruno Haible  <bruno@clisp.org>
53223
53224         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53225
53226 2008-09-29  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53229         Set LIBSOCKET instead of augmenting LIBS.
53230         * modules/sockets (Link): New section.
53231         * modules/sockets-tests (test_sockets_LDADD): New variable.
53232         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53233         * modules/poll-tests (test_poll_LDADD): New variable.
53234         * NEWS: Document the change.
53235
53236 2008-09-29  Bruno Haible  <bruno@clisp.org>
53237
53238         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53239         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53240         ARPA_INET_H directly.
53241         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53242
53243 2008-09-28  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53246         from gl_HEADER_SYS_SOCKET.
53247         (gl_HEADER_SYS_SOCKET): Invoke it.
53248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53249
53250 2008-09-28  Bruno Haible  <bruno@clisp.org>
53251
53252         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53253         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53254         Needed on OSF/1 4.0.
53255
53256 2008-09-28  Bruno Haible  <bruno@clisp.org>
53257
53258         Override open more carefully.
53259         * lib/open.c (orig_open): New function.
53260         (rpl_open): Use orig_open instead of open.
53261         * lib/fcntl.in.h: Add special invocation convention.
53262         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53263         (gl_FUNC_OPEN): Invoke it.
53264
53265         Override freopen more carefully.
53266         * lib/freopen.c (orig_freopen): New function.
53267         (rpl_freopen): Use orig_freopen instead of freopen.
53268         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53269         (gl_FUNC_FREOPEN): Invoke it.
53270
53271         Override fopen more carefully.
53272         * lib/fopen.c (orig_fopen): New function.
53273         (rpl_fopen): Use orig_fopen instead of fopen.
53274         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53275         (gl_FUNC_FOPEN): Invoke it.
53276         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53277
53278 2008-09-28  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53281         SIGPIPE.
53282
53283 2008-09-28  Bruno Haible  <bruno@clisp.org>
53284
53285         * tests/test-sigaction.c (handler, main): Disable the check whether
53286         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53287         glibc systems with LinuxThreads.
53288
53289 2008-09-28  Bruno Haible  <bruno@clisp.org>
53290
53291         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53292
53293         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53294         with AIX xlc.
53295         * lib/fcntl.in.h (open): Likewise.
53296         Reported by Rainer Tammer <tammer@tammer.net>.
53297
53298 2008-09-28  Bruno Haible  <bruno@clisp.org>
53299
53300         * modules/posix_spawnp-tests: New file.
53301         * tests/test-posix_spawn.c: New file.
53302         * tests/test-posix_spawn.in.sh: New file.
53303
53304         New module 'posix_spawnp'.
53305         * modules/posix_spawnp: New file.
53306         * lib/spawnp.c: New file, from GNU libc with modifications.
53307         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53308
53309         New module 'posix_spawn'.
53310         * modules/posix_spawn: New file.
53311         * lib/spawn.c: New file, from GNU libc with modifications.
53312         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53313
53314         New module 'posix_spawnattr_destroy'.
53315         * modules/posix_spawnattr_destroy: New file.
53316         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53317         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53318         module.
53319
53320         New module 'posix_spawnattr_setsigmask'.
53321         * modules/posix_spawnattr_setsigmask: New file.
53322         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53323         modifications.
53324         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53325         new module.
53326
53327         New module 'posix_spawnattr_getsigmask'.
53328         * modules/posix_spawnattr_getsigmask: New file.
53329         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53330         modifications.
53331         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53332         new module.
53333
53334         New module 'posix_spawnattr_setsigdefault'.
53335         * modules/posix_spawnattr_setsigdefault: New file.
53336         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53337         modifications.
53338         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53339         new module.
53340
53341         New module 'posix_spawnattr_getsigdefault'.
53342         * modules/posix_spawnattr_getsigdefault: New file.
53343         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53344         modifications.
53345         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53346         new module.
53347
53348         New module 'posix_spawnattr_setschedpolicy'.
53349         * modules/posix_spawnattr_setschedpolicy: New file.
53350         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53351         modifications.
53352         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53353         new module.
53354
53355         New module 'posix_spawnattr_getschedpolicy'.
53356         * modules/posix_spawnattr_getschedpolicy: New file.
53357         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53358         modifications.
53359         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53360         new module.
53361
53362         New module 'posix_spawnattr_setschedparam'.
53363         * modules/posix_spawnattr_setschedparam: New file.
53364         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53365         modifications.
53366         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53367         new module.
53368
53369         New module 'posix_spawnattr_getschedparam'.
53370         * modules/posix_spawnattr_getschedparam: New file.
53371         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53372         modifications.
53373         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53374         new module.
53375
53376         New module 'posix_spawnattr_setpgroup'.
53377         * modules/posix_spawnattr_setpgroup: New file.
53378         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53379         modifications.
53380         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53381         module.
53382
53383         New module 'posix_spawnattr_getpgroup'.
53384         * modules/posix_spawnattr_getpgroup: New file.
53385         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53386         modifications.
53387         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53388         module.
53389
53390         New module 'posix_spawnattr_setflags'.
53391         * modules/posix_spawnattr_setflags: New file.
53392         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53393         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53394         module.
53395
53396         New module 'posix_spawnattr_getflags'.
53397         * modules/posix_spawnattr_getflags: New file.
53398         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53399         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53400         module.
53401
53402         New module 'posix_spawnattr_init'.
53403         * modules/posix_spawnattr_init: New file.
53404         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53405         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53406         module.
53407
53408         New module 'posix_spawn_file_actions_destroy'.
53409         * modules/posix_spawn_file_actions_destroy: New file.
53410         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53411         modifications.
53412         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53413         the new module.
53414
53415         New module 'posix_spawn_file_actions_addopen'.
53416         * modules/posix_spawn_file_actions_addopen: New file.
53417         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53418         modifications.
53419         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53420         the new module.
53421
53422         New module 'posix_spawn_file_actions_adddup2'.
53423         * modules/posix_spawn_file_actions_adddup2: New file.
53424         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53425         modifications.
53426         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53427         the new module.
53428
53429         New module 'posix_spawn_file_actions_addclose'.
53430         * modules/posix_spawn_file_actions_addclose: New file.
53431         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53432         modifications.
53433         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53434         the new module.
53435
53436         New module 'posix_spawn_file_actions_init'.
53437         * modules/posix_spawn_file_actions_init: New file.
53438         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53439         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53440         new module.
53441
53442         New module 'posix_spawn-internal'.
53443         * modules/posix_spawn-internal: New file.
53444         * lib/spawn_int.h: New file, from GNU libc with modifications.
53445         * lib/spawni.c: New file, from GNU libc with modifications.
53446         * m4/posix_spawn.m4: New file.
53447
53448         New module 'spawn'.
53449         * modules/spawn: New file.
53450         * lib/spawn.in.h: New file, from GNU libc with modifications.
53451         * m4/spawn_h.m4: New file.
53452         * doc/posix-headers/spawn.texi: Mention the new module.
53453
53454 2008-09-28  Bruno Haible  <bruno@clisp.org>
53455
53456         * modules/sched-tests: New file.
53457         * tests/test-sched.c: New file.
53458
53459         New module 'sched'.
53460         * modules/sched: New file.
53461         * lib/sched.in.h: New file.
53462         * m4/sched_h.m4: New file.
53463         * doc/posix-headers/sched.texi: Mention the new module.
53464
53465 2008-09-27  Eric Blake  <ebb9@byu.net>
53466
53467         Fix previous patch, and tweak references to $0.
53468         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53469         (func_version, func_gnulib_dir): Don't call this program
53470         gnulib-tool.
53471         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53472         with using $0 in function.
53473         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53474         (func_fatal_error): Reuse the name the user invoked us with.
53475
53476 2008-09-27  Bruno Haible  <bruno@clisp.org>
53477
53478         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53479         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53480         (gl_ICONV_H): Not here.
53481         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53482         instead of assigning ICONV_H directly.
53483
53484         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53486         WCHAR_H directly.
53487
53488 2008-09-27  Bruno Haible  <bruno@clisp.org>
53489
53490         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53491         * modules/arpa_inet (Depends-on): Add link-warning.
53492         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53493         * modules/unistd (Makefile.am): Likewise.
53494
53495 2008-09-26  Bruno Haible  <bruno@clisp.org>
53496
53497         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53498         variables.
53499         (func_version): Essentially copied from gnulib-tool.
53500         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53501         func_readlink): Copied from gnulib-tool.
53502
53503 2008-09-26  Bruno Haible  <bruno@clisp.org>
53504
53505         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53506         invoking git-version-gen.
53507
53508 2008-09-26  Bruno Haible  <bruno@clisp.org>
53509
53510         * posix-modules: Update to directory names changed on 2008-01-19.
53511         Remove commas in output before splitting into words. No more need to
53512         avoid 'ftruncate' since 2007-02-19.
53513
53514 2008-09-26  Bruno Haible  <bruno@clisp.org>
53515
53516         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53517
53518 2008-09-26  Bruno Haible  <bruno@clisp.org>
53519
53520         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53521         * modules/fwriteerror (Depends-on): Add errno.
53522
53523 2008-09-26  Bruno Haible  <bruno@clisp.org>
53524
53525         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53526         * tests/test-vc-list-files-cvs.sh: Likewise.
53527
53528 2008-09-26  Bruno Haible  <bruno@clisp.org>
53529
53530         * doc/posix-headers/sys_resource.texi: Reorder items.
53531
53532 2008-09-26  Jim Meyering  <meyering@redhat.com>
53533
53534         fts: tweak inode comparison function
53535         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53536         inode numbers, as documented.
53537
53538         fts: sort dirent entries on inode number before traversing
53539         This avoids a quadratic, seek-related performance penalty when
53540         operating on a directory containing many entries (measurable at 10k;
53541         3.5 hours at 2 million entries with a cold cache) on certain types
53542         of file systems, including ext3 and ext4, but not tmpfs.
53543         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53544         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53545         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53546         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53547         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53548         (fts_build): Set the stat.st_ino member from D_INO.
53549         If it is likely to be useful, sort dirent entries on inode number.
53550
53551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53552         and the struct statfs.f_type member.
53553         * modules/fts (Depends-on): Add d-ino.
53554
53555 2008-09-26  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/sigpipe-die (Depends-on): Add sigpipe.
53558
53559         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53560         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53561         and GNULIB_STDIO_H_SIGPIPE are set.
53562         * lib/stdio-write.c: New file.
53563         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53564         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53565         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53566         REPLACE_STDIO_WRITE_FUNCS.
53567         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53568         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53569         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53570         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53571         * modules/stdio (Files): Add lib/stdio-write.c.
53572         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53573         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53574         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53575         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53576         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53577         REPLACE_FPRINTF_POSIX.
53578         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53579         REPLACE_PRINTF_POSIX.
53580         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53581         REPLACE_VFPRINTF_POSIX.
53582         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53583         REPLACE_VPRINTF_POSIX.
53584         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53585         SIGPIPE issue.
53586         * doc/posix-functions/fputc.texi: Likewise.
53587         * doc/posix-functions/fputs.texi: Likewise.
53588         * doc/posix-functions/fwrite.texi: Likewise.
53589         * doc/posix-functions/printf.texi: Likewise.
53590         * doc/posix-functions/putc.texi: Likewise.
53591         * doc/posix-functions/putchar.texi: Likewise.
53592         * doc/posix-functions/puts.texi: Likewise.
53593         * doc/posix-functions/vfprintf.texi: Likewise.
53594         * doc/posix-functions/vprintf.texi: Likewise.
53595
53596         * modules/safe-write (Depends-on): Add write.
53597
53598         * modules/sigpipe-tests: New file.
53599         * tests/test-sigpipe.c: New file.
53600         * tests/test-sigpipe.sh: New file.
53601
53602         * modules/write: New file.
53603         * lib/unistd.in.h: Include <sys/types.h>.
53604         (write): New declaration.
53605         * lib/write.c: New file.
53606         * m4/write.m4: New file.
53607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53608         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53609         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53610         GNULIB_WRITE, REPLACE_WRITE.
53611         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53612         and the SIGPIPE issue.
53613
53614         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53615         (raise): New declaration.
53616         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53617         (ext_signal): New function.
53618         (rpl_raise): New function.
53619         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53620         GNULIB_SIGNAL_H_SIGPIPE.
53621         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53622         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53623
53624         * modules/sigpipe: New file.
53625         * m4/sigpipe.m4: New file.
53626
53627 2008-09-25  Derek Price  <derek@ximbiot.com>
53628             Bruno Haible  <bruno@clisp.org>
53629
53630         * gnulib-tool (func_import): Report all license incompatibilities, not
53631         just the first one.
53632
53633 2008-09-25  Bruno Haible  <bruno@clisp.org>
53634
53635         * gnulib-tool (func_import): When computing the edits, consider not
53636         only the Makefile.ams that exist but also those that will be generated.
53637
53638 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53639
53640         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53641         fixes gnulib-tool --test warning about duplicate dependency.
53642
53643 2008-09-25  Bruno Haible  <bruno@clisp.org>
53644
53645         * gnulib-tool: Don't ask the user to perform edits in the generated
53646         Makefile.ams.
53647         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53648         apply to the Makefile.am being generated.
53649         (func_emit_tests_Makefile_am): Execute edits that apply to the
53650         Makefile.am being generated.
53651         (func_import): Setup list of Makefile.am edits before emitting the
53652         Makefile.ams, not at the end.
53653         (func_create_testdir): Update.
53654         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53655
53656 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53657
53658         * gnulib-tool (func_import): Store the --tests-base option in the
53659         comment in gnulib-cache.m4.
53660
53661 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53662
53663         * NEWS: Document increased portability that sys_select now provides.
53664
53665         * lib/sys_select.in.h: Install select wrapper.
53666         * lib/sys_socket.in.h: Use more descriptive name when there is no
53667         select wrapper.
53668         * lib/winsock-select.c: New.
53669         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53670         Require gl_HEADER_SYS_SOCKET.
53671         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53672         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53673         * tests/test-sys_select.c: Add functional tests.
53674
53675 2008-09-24  Eric Blake  <ebb9@byu.net>
53676
53677         open, fopen: close fd leak in last patch
53678         * lib/open.c (rpl_open): Close fd before returning error.
53679         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53680         * doc/posix-functions/open.texi (open): Document that Irix also
53681         has the bug.
53682         * doc/posix-functions/fopen.texi (fopen): Likewise.
53683         Reported by Paolo Bonzini.
53684
53685 2008-09-24  Bruno Haible  <bruno@clisp.org>
53686
53687         Ensure that a filename ending in a slash cannot be used to access a
53688         non-directory.
53689         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53690         to check whether it's really a directory.
53691         * lib/fopen.c: Include fcntl.h, unistd.h.
53692         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53693         and fdopen().
53694         * modules/fopen (Depends-on): Add unistd.
53695         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53696         * tests/test-fopen.c (main): Likewise.
53697         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53698         * doc/posix-functions/fopen.texi: Likewise.
53699         Reported by Eric Blake.
53700
53701 2008-09-23  Eric Blake  <ebb9@byu.net>
53702
53703         c-stack: avoid compiler optimizations when provoking overflow
53704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53705         recursion harder to optimize, to ensure a stack overflow occurs.
53706         * tests/test-c-stack.c (recurse): Likewise.
53707         Borrowed from libsigsegv.
53708
53709         c-stack: work around Irix sigaltstack bug
53710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53711         whether sigaltstack uses wrong end of stack_t (copied in part from
53712         libsigsegv).
53713         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53714         Irix bug, without requiring an over-allocation.
53715         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53716         bug.
53717
53718         fopen: document mingw bug on directories
53719         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53720         not allowing a stream visiting a directory, even though reading
53721         from such a stream is not portable.
53722
53723 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53724
53725         * lib/poll.c: Rewrite.
53726         * modules/poll: Depend on alloca.
53727
53728 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53729
53730         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53731         instead define prototypes for a full set of wrappers.  Ensure
53732         that Cygwin does not use the compatibility code, which is only
53733         for MinGW.
53734         * lib/winsock.c: New.
53735         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53736         * modules/sys_socket: Add lib/winsock.c.
53737
53738         * modules/poll-tests: Add errno and perror.
53739         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53740
53741 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53742
53743         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53744
53745 2008-09-23  Bruno Haible  <bruno@clisp.org>
53746
53747         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53748         * doc/glibc-functions/*: Likewise.
53749
53750 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53751
53752         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53753         success.
53754
53755 2008-09-22  Eric Blake  <ebb9@byu.net>
53756             Bruno Haible  <bruno@clisp.org>
53757
53758         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53759         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53760         supply %A but mishandle pseudo-NaN.
53761         Reported by Simon Josefsson.
53762
53763 2008-09-21  Bruno Haible  <bruno@clisp.org>
53764
53765         * tests/test-lock.c (main): Tweak skip message.
53766         * tests/test-tls.c (main): Likewise.
53767
53768 2008-09-21  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53771         whether 'struct sigaction' has sa_sigaction here...
53772         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53773         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53774
53775 2008-09-21  Bruno Haible  <bruno@clisp.org>
53776
53777         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53778         section.
53779         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53780         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53781         the new section.
53782         (Support for obsolete systems lacking POSIX:2001): New section.
53783         (String handling <string.h>): Move strdup to the new section.
53784         Suggested by Simon Josefsson and Paolo Bonzini.
53785
53786 2008-09-21  Bruno Haible  <bruno@clisp.org>
53787
53788         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53789         exponents in %e and %g results on 'long double'. Needed for mingw's
53790         improved *printf functions.
53791         * tests/test-vasprintf-posix.c (test_function): Likewise.
53792         * tests/test-snprintf-posix.h (test_function): Likewise.
53793         * tests/test-sprintf-posix.h (test_function): Likewise.
53794         Reported by Eric Blake.
53795
53796 2008-09-21  Bruno Haible  <bruno@clisp.org>
53797
53798         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53799         * tests/test-sprintf-posix.h (test_function): Likewise.
53800
53801 2008-09-21  Bruno Haible  <bruno@clisp.org>
53802
53803         * modules/getpass (Depends-on): Add strdup-posix.
53804
53805         New module 'strdup-posix'.
53806         * modules/strdup-posix: New file.
53807         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53808         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53810         REPLACE_STRDUP.
53811         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53812         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53814         strdup-posix.
53815
53816         * modules/strdup (Depends-on): Remove malloc-posix.
53817
53818 2008-09-20  Bruno Haible  <bruno@clisp.org>
53819
53820         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53821         Wildenhues.
53822
53823 2008-09-20  Bruno Haible  <bruno@clisp.org>
53824
53825         Ensure that wint_t gets defined on IRIX 5.3.
53826         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53827         * lib/wctype.in.h (wint_t): Likewise.
53828         (__wctype_wint_t): Remove type.
53829         (isw*): Use wint_t instead of __wctype_wint_t.
53830         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53831         * modules/wchar (Files): Add m4/wint_t.m4.
53832         (Makefile.am): Substitute HAVE_WINT_T.
53833         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53834         * tests/test-wctype.c: Check that wint_t is defined.
53835         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53836         * doc/posix-headers/wctype.texi: Likewise.
53837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53838
53839 2008-09-18  Bruno Haible  <bruno@clisp.org>
53840
53841         * gnulib-tool (func_exit): Update comment.
53842
53843 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53844
53845         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53846         assumes strdup exists and does not depend on strdup to return
53847         ENOMEM on out of memory conditions.
53848
53849 2008-09-18  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53852         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53853         digits for the exponent.
53854
53855 2008-09-18  Jim Meyering  <meyering@redhat.com>
53856             Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/vasnprintf.c (decimal_point_char): Define also if
53859         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53860
53861 2008-09-16  Bruno Haible  <bruno@clisp.org>
53862         and Eric Blake  <ebb9@byu.net>
53863
53864         vasnprintf: support Irix 5.3
53865         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53866         that mishandle long double infinity.
53867         Reported by Tom G. Christensen.
53868
53869 2008-09-16  Bruno Haible  <bruno@clisp.org>
53870
53871         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53872         Solaris 9.
53873         * doc/glibc-functions/alphasort.texi: Likewise.
53874         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53875
53876 2008-09-16  Jim Meyering  <meyering@redhat.com>
53877
53878         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53879         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53880         a umask modification leak out of a subshell.  Otherwise, the
53881         opensolaris /bin/sh would be accepted and thus cause unwarranted
53882         failures in the coreutils test suite.
53883
53884 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53885
53886         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53887         to succeed.
53888
53889 2008-09-16  Jim Meyering  <meyering@redhat.com>
53890
53891         avoid spurious test failure when library is built without ACL support
53892         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53893         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53894         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53895         * tests/test-copy-acl.sh: Likewise.
53896
53897 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53898
53899         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53900         based on character occurrence counts.
53901
53902 2008-09-15  Eric Blake  <ebb9@byu.net>
53903
53904         tests: avoid some compiler warnings
53905         * tests/test-memchr.c (main): Pass NULL indirectly.
53906         * tests/test-closein.c (main): Avoid unused variable.
53907
53908 2008-09-15  Bruno Haible  <bruno@clisp.org>
53909
53910         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53911         are missing on OpenBSD 4.0 individually.
53912         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53913
53914 2008-09-15  Bruno Haible  <bruno@clisp.org>
53915
53916         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53917         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53918         * doc/posix-functions/perror.texi: Likewise.
53919         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53920         is missing.
53921         Reported by Eric Blake.
53922
53923         * lib/errno.in.h: Use replacement values >= 2000.
53924         Reported by Eric Blake.
53925
53926 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53927
53928         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53929         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53930         limit.
53931         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53932         compareseq was aborted.
53933
53934 2008-09-14  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53937         yvec_edit_count.
53938         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53939         (fstrcmp_bounded): Simplify result computation accordingly.
53940
53941 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53942
53943         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53944         (fstrcmp): Define in terms of fstrcmp_bounded.
53945         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53946         lower_bound argument.
53947         Return quickly if the result is certainly < lower_bound.
53948         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53949
53950 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53951
53952         * lib/diffseq.h (EARLY_ABORT): New macro.
53953         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53954         evaluates to true.
53955
53956 2008-09-14  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/perror-tests: New file.
53959         * tests/test-perror.sh: New file.
53960         * tests/test-perror.c: New file.
53961
53962         New module 'perror'.
53963         * lib/stdio.in.h (perror): New declaration.
53964         * lib/perror.c: New file.
53965         * m4/perror.m4: New file.
53966         * modules/perror: New file.
53967         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53968         * doc/posix-functions/perror.texi: Mention the perror module.
53969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53970         REPLACE_PERROR.
53971         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53972         REPLACE_PERROR.
53973
53974 2008-09-14  Bruno Haible  <bruno@clisp.org>
53975
53976         * modules/stdio (Makefile.am): Reorder to match the order in
53977         lib/stdio.in.h.
53978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53979
53980 2008-09-13  Bruno Haible  <bruno@clisp.org>
53981
53982         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53983
53984 2008-09-13  Bruno Haible  <bruno@clisp.org>
53985
53986         Extend strerror to cover the added errno values.
53987         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53988         (rpl_strerror): Provide error messages for the added errno values and
53989         for the WSA* values.
53990         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53991         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53992         strerror.
53993         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53994         * modules/strerror (Depends-on): Add errno.
53995         * doc/posix-functions/strerror.texi: Document the change.
53996         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53997         and EOVERFLOW.
53998
53999 2008-09-13  Bruno Haible  <bruno@clisp.org>
54000
54001         * modules/EOVERFLOW: Remove file.
54002         * m4/eoverflow.m4: Remove file.
54003         * modules/EOVERFLOW-tests: Remove file.
54004         * tests/test-EOVERFLOW.c: Remove file.
54005         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54006         * modules/ftell (Depends-on): Likewise.
54007         * modules/getdelim (Depends-on): Likewise.
54008         * modules/getugroups (Depends-on): Likewise.
54009         * modules/poll (Depends-on): Likewise.
54010         * modules/snprintf (Depends-on): Likewise.
54011         * modules/sprintf-posix (Depends-on): Likewise.
54012         * modules/vasnprintf (Depends-on): Likewise.
54013         * modules/vasprintf (Depends-on): Likewise.
54014         * modules/vfprintf-posix (Depends-on): Likewise.
54015         * modules/vsnprintf (Depends-on): Likewise.
54016         * modules/vsprintf-posix (Depends-on): Likewise.
54017         * modules/xvasprintf (Depends-on): Likewise.
54018         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54019         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54020         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54021         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54022         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54023         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54024         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54025         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54026         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54027         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54028         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54029         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54030         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54031         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54032         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54033         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54034         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54035         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54036         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54037         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54038         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54039         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54040         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54041         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54042         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54043         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54044         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54045         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54046         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54047         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54048         * MODULES.html.sh: Remove EOVERFLOW.
54049         * NEWS: Mention the change.
54050
54051 2008-09-13  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/errno-tests: New file.
54054         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54055
54056         * lib/errno.in.h: New file.
54057         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54058         * modules/errno: New file.
54059         * doc/posix-headers/errno.texi: Update documentation.
54060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54061
54062 2008-09-13  Bruno Haible  <bruno@clisp.org>
54063
54064         * tests/test-poll.c: Use #if for native Windows, rather than testing
54065         __MSVCRT__.
54066
54067 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54068             Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/glob.c: Don't include <pwd.h> on native Windows.
54071         (WINDOWS32): New macro.
54072         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54073
54074 2008-09-13  Bruno Haible  <bruno@clisp.org>
54075
54076         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54077         (ETIMEDOUT): Remove macro.
54078         (glthread_cond_timedwait_multithreaded): New declaration.
54079         (glthread_cond_timedwait): Use it.
54080         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54081         (glthread_cond_timedwait_multithreaded): New function.
54082
54083 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54084
54085         * modules/poll-tests: Do not check for io.h.
54086         * tests/test-poll.c: Check for __MSVCRT__ instead.
54087
54088 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54089
54090         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54091         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54092         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54093
54094 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54095
54096         * modules/poll-tests: New.
54097         * tests/test-poll.c: New.
54098
54099 2008-09-12  Eric Blake  <ebb9@byu.net>
54100
54101         frexp: test for NetBSD failure on -0.0
54102         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54103         not all, bugs from NetBSD 3.0 have been fixed.
54104         * doc/posix-functions/frexp.texi (frexp): Document bug.
54105         Reported by Thomas Klausner.
54106
54107         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54108         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54109         literal -0.0.
54110         Reported by Jonathan C. Patschke <jp@centtech.com>.
54111
54112 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54113
54114         * lib/glthread/cond.h: Use dummy implementation also if
54115         USE_WIN32_THREADS.
54116
54117 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54118
54119         * modules/fnmatch-posix (License): Change to LGPLv2+.
54120         * modules/fnmatch-gnu (License): Likewise.
54121
54122 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54123
54124         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54125
54126 2008-09-11  Jim Meyering  <meyering@redhat.com>
54127
54128         * users.txt: Add gtk-vnc.
54129
54130 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54131
54132         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54133         rotate amounts.
54134
54135         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54136         required for 16-bit and 8-bit rotates.
54137         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54138         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54139         UINT8_MAX instead of hard-coded constants.
54140         Suggested by Paul Eggert.
54141
54142 2008-09-07  Bruno Haible  <bruno@clisp.org>
54143
54144         * tests/test-striconveh.c (main): Check behaviour when converting from
54145         UTF-7.
54146
54147         Make striconveh work better with stateful encodings.
54148         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54149         that iconv does not increment the inptr when returning -1/EINVAL.
54150
54151 2008-09-07  Bruno Haible  <bruno@clisp.org>
54152
54153         * build-aux/config.rpath: Update according to libtool-2.2.6.
54154         * build-aux/config.libpath: Likewise.
54155
54156 2008-09-06  Bruno Haible  <bruno@clisp.org>
54157
54158         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54159         * lib/freadptr.c (freadptr): Likewise.
54160         * lib/freadseek.c (freadptrinc): Likewise.
54161         Reported by Simon Josefsson.
54162
54163 2008-09-06  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/freadptr (License): Change to LGPLv2+.
54166         * modules/freadseek (License): Likewise.
54167         Suggested by Eric Blake.
54168
54169         * modules/memchr2 (License): Change to LGPLv2+.
54170         Approved by Eric Blake.
54171
54172 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54173             Bruno Haible  <bruno@clisp.org>
54174
54175         Make gnulib-tool work with native 'sed' on AIX.
54176         * gnulib-tool (sed_noop): New variable.
54177         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54178         func_add_or_update, func_create_testdir): Use it to initialize sed
54179         script variables.
54180         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54181
54182 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54183             Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54186         also works after #include directives.
54187
54188 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54189
54190         getdate.y: reject an out-of-range timezone value
54191         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54192         the range [-24...+24].  When specified with only one or two digits,
54193         * tests/test-getdate.c: Tests for the fix.
54194         * doc/getdate.texi: Document this change.
54195
54196 2008-09-03  Bruno Haible  <bruno@clisp.org>
54197
54198         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54199
54200 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54201
54202         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54203         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54204         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54205         Blake <ebb9@byu.net>.
54206
54207         * tests/test-bitrotate.c: Add more test vectors.
54208
54209 2008-09-02  Eric Blake  <ebb9@byu.net>
54210
54211         vasnprintf-posix: handle large precision via %.*d
54212         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54213         when handling it ourselves.
54214         * tests/test-vasnprintf-posix.c (test_function): Add test.
54215         * tests/test-snprintf-posix.h (test_function): Likewise.
54216         * tests/test-sprintf-posix.h (test_function): Likewise.
54217         * tests/test-vasprintf-posix.c (test_function): Likewise.
54218         Reported by Alain Guibert.
54219
54220 2008-09-01  Eric Blake  <ebb9@byu.net>
54221
54222         c-stack: make configure-time check more robust
54223         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54224         successful sigaction call.
54225         Reported by Tom G. Christensen.
54226
54227 2008-09-01  Bruno Haible  <bruno@clisp.org>
54228
54229         New module 'findprog-lgpl'.
54230         * modules/findprog-lgpl: New file.
54231         * lib/findprog-lgpl.c: New file.
54232         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54233         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54234         to decide whether to use strdup or xstrdup, concatenated_filename or
54235         xconcatenated_filename.
54236
54237 2008-09-01  Bruno Haible  <bruno@clisp.org>
54238
54239         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54240         'xconcat-filename' (GPL).
54241         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54242         (License): Change to LGPLv2+.
54243         * modules/xconcat-filename: New file.
54244         * lib/concat-filename.h (concatenated_filename): Change specification.
54245         (xconcatenated_filename): New declaration.
54246         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54247         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54248         memory situations.
54249         * lib/xconcat-filename.c: New file.
54250         * NEWS: Mention the change.
54251         * lib/findprog.c: Include concat-filename.h, not filename.h.
54252         (find_in_path): Use xconcatenated_filename instead of
54253         concatenated_filename.
54254         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54255         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54256         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54257         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54258         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54259         instead of concatenated_filename.
54260         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54261         (execute_java_class): Use xconcatenated_filename instead of
54262         concatenated_filename.
54263         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54264         * modules/javacomp (Depends-on): Likewise.
54265         * modules/javaexec (Depends-on): Likewise.
54266
54267 2008-09-01  Bruno Haible  <bruno@clisp.org>
54268
54269         Split module 'filename' into 'filename' and 'concat-filename'.
54270         * modules/filename: Keep only lib/filename.h.
54271         (License): Change to LGPLv2+.
54272         * modules/concat-filename: New file, extracted from modules/filename.
54273         * lib/filename.h (concatenated_filename): Remove declaration.
54274         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54275         * lib/concat-filename.c: Include concat-filename.h.
54276         * NEWS: Mention the change.
54277
54278 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54279
54280         * lib/bitrotate.h (rotl8, rotr8): Add.
54281
54282         * modules/bitrotate (configure.ac): Need
54283         AC_REQUIRE([AC_C_INLINE]).
54284         (Description): Mention stdint.h.  Reported by Bruno Haible
54285         <bruno@clisp.org>.
54286
54287         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54288         Paolo Bonzini <bonzini@gnu.org>.
54289
54290 2008-08-31  Bruno Haible  <bruno@clisp.org>
54291
54292         Assume Solaris specific bi-arch conventions on Solaris systems.
54293         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54294         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54296         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54297         like acl_libdirstem.
54298         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54299         acl_libdirstem.
54300         * NEWS: Mention the change.
54301         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54302
54303 2008-08-31  Jim Meyering  <meyering@redhat.com>
54304
54305         * lib/strftime.h: Add comments describing the two added arguments.
54306
54307         remove duplicate #include directives
54308         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54309         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54310
54311 2008-08-31  Bruno Haible  <bruno@clisp.org>
54312
54313         New module 'sigpipe-die'.
54314         * modules/sigpipe-die: New file.
54315         * lib/sigpipe-die.h: New file.
54316         * lib/sigpipe-die.c: New file.
54317         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54318
54319 2008-08-31  Bruno Haible  <bruno@clisp.org>
54320
54321         Don't override previously installed signal handlers.
54322         * lib/fatal-signal.c (saved_sigactions): New variable.
54323         (uninstall_handlers): Reset the signal to the saved handler, not
54324         to SIG_DFL (except when ignored).
54325         (install_handlers): Save the previous handlers.
54326
54327 2008-08-30  Bruno Haible  <bruno@clisp.org>
54328
54329         * gnulib-tool (func_reset_sigpipe): New function.
54330         (func_get_automake_snippet, func_modules_transitive_closure,
54331         func_import): Invoke it before a join command that reads from stdin,
54332         to avoid "echo: write error: Broken pipe" error messages on stderr.
54333         Reported by Sam Steingold <sds@gnu.org>.
54334
54335 2008-08-30  Bruno Haible  <bruno@clisp.org>
54336
54337         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54338         Code copied from m4/open.m4.
54339         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54340         access and the filename ends in a slash. Code copied from lib/open.c.
54341         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54342         * tests/test-fopen.c (main): Check against bug with trailing slash.
54343
54344 2008-08-29  Bruno Haible  <bruno@clisp.org>
54345
54346         Avoid some "gcc -pedantic" warnings.
54347         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54348         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54349         * lib/dirent.in.h: Likewise.
54350         * lib/fcntl.in.h: Likewise.
54351         * lib/float.in.h: Likewise.
54352         * lib/iconv.in.h: Likewise.
54353         * lib/inttypes.in.h: Likewise.
54354         * lib/locale.in.h: Likewise.
54355         * lib/math.in.h: Likewise.
54356         * lib/netinet_in.in.h: Likewise.
54357         * lib/search.in.h: Likewise.
54358         * lib/signal.in.h: Likewise.
54359         * lib/stdarg.in.h: Likewise.
54360         * lib/stdint.in.h: Likewise.
54361         * lib/stdio.in.h: Likewise.
54362         * lib/stdlib.in.h: Likewise.
54363         * lib/string.in.h: Likewise.
54364         * lib/strings.in.h: Likewise.
54365         * lib/sys_select.in.h: Likewise.
54366         * lib/sys_socket.in.h: Likewise.
54367         * lib/sys_stat.in.h: Likewise.
54368         * lib/sys_time.in.h: Likewise.
54369         * lib/sysexits.in.h: Likewise.
54370         * lib/time.in.h: Likewise.
54371         * lib/unistd.in.h: Likewise.
54372         * lib/wchar.in.h: Likewise.
54373         * lib/wctype.in.h: Likewise.
54374         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54375         * modules/fchdir (Makefile.am): Likewise.
54376         * modules/fcntl (Makefile.am): Likewise.
54377         * modules/float (Makefile.am): Likewise.
54378         * modules/iconv_open (Makefile.am): Likewise.
54379         * modules/inttypes (Makefile.am): Likewise.
54380         * modules/locale (Makefile.am): Likewise.
54381         * modules/math (Makefile.am): Likewise.
54382         * modules/netinet_in (Makefile.am): Likewise.
54383         * modules/search (Makefile.am): Likewise.
54384         * modules/signal (Makefile.am): Likewise.
54385         * modules/stdarg (Makefile.am): Likewise.
54386         * modules/stdint (Makefile.am): Likewise.
54387         * modules/stdio (Makefile.am): Likewise.
54388         * modules/stdlib (Makefile.am): Likewise.
54389         * modules/string (Makefile.am): Likewise.
54390         * modules/strings (Makefile.am): Likewise.
54391         * modules/sys_select (Makefile.am): Likewise.
54392         * modules/sys_socket (Makefile.am): Likewise.
54393         * modules/sys_stat (Makefile.am): Likewise.
54394         * modules/sys_time (Makefile.am): Likewise.
54395         * modules/sysexits (Makefile.am): Likewise.
54396         * modules/time (Makefile.am): Likewise.
54397         * modules/unistd (Makefile.am): Likewise.
54398         * modules/wchar (Makefile.am): Likewise.
54399         * modules/wctype (Makefile.am): Likewise.
54400         Reported by Reuben Thomas <rrt@sc3d.org>.
54401
54402 2008-08-29  Bruno Haible  <bruno@clisp.org>
54403
54404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54405         any more.
54406
54407 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54408
54409         * MODULES.html.sh (Misc): Add bitrotate.
54410
54411         * modules/bitrotate: New file.
54412
54413         * lib/bitrotate.h: New file.
54414
54415         * modules/bitrotate-tests: New file.
54416
54417         * tests/test-bitrotate.c: New file.
54418
54419         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54420         on the bitrotate module.
54421
54422         * lib/arctwo.c: Use new bitrotate module.
54423
54424 2008-08-29  Jim Meyering  <meyering@redhat.com>
54425
54426         bootstrap: merge changes from coreutils
54427         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54428         of copied files.  Remove a kludge, now that this is fixed.
54429         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54430         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54431         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54432
54433 2008-08-29  Bruno Haible  <bruno@clisp.org>
54434
54435         * MODULES.html.sh: Remove --cvs-urls option.
54436
54437 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54438
54439         maint.mk: adjust to file name change
54440         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54441
54442 2008-08-28  Jim Meyering  <meyering@redhat.com>
54443
54444         * modules/getndelim2 (License): Relicense to LGPLv2+.
54445         Approved by Richard Stallman for the version of 1995, and by
54446         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54447
54448 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54449
54450         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54451         dummy if one is not available.  Do not touch them if
54452         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54453         (getc_maybe_unlocked): New.
54454         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54455
54456 2008-08-26  Eric Blake  <ebb9@byu.net>
54457
54458         doc/INSTALL: resync from autoconf
54459         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54460         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54461         moving...
54462         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54463         * INSTALL: Regenerate.
54464         * INSTALL.ISO: New file.
54465         * INSTALL.UTF-8: Likewise.
54466
54467 2008-08-26  Jim Meyering  <meyering@redhat.com>
54468
54469         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54470         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54471         these definitions conditional, so that they may be overridden, too.
54472
54473 2008-08-26  Bruno Haible  <bruno@clisp.org>
54474
54475         Generate INSTALL file variants with prettier quotes.
54476         * doc/Makefile (INSTALL_PRELUDE): New macro.
54477         (INSTALL): Use it.
54478         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54479
54480 2008-08-26  Bruno Haible  <bruno@clisp.org>
54481
54482         Run makeinfo in an English locale.
54483         * doc/Makefile (MAKEINFO): New variable.
54484
54485 2008-08-26  Bruno Haible  <bruno@clisp.org>
54486
54487         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54488         Suggested by Eric Blake.
54489
54490 2008-08-25  Bruno Haible  <bruno@clisp.org>
54491
54492         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54493
54494 2008-08-25  Eric Blake  <ebb9@byu.net>
54495
54496         c-stack: test that stack overflow can be caught
54497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54498         that platform allows handling stack overflow; at least OS/2 EMX
54499         has sigaltstack, but crashes before transferring control to
54500         handler on stack overflow.
54501         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54502         check for HAVE_STACK_OVERFLOW_HANDLING.
54503         Reported by Elbert Pol.
54504
54505 2008-08-25  Bruno Haible  <bruno@clisp.org>
54506
54507         * doc/posix-functions/strftime.texi: Fix description of strftime
54508         module.
54509
54510 2008-08-24  Bruno Haible  <bruno@clisp.org>
54511
54512         * tests/uniwidth/test-uc_width2.c: New file.
54513         * tests/uniwidth/test-uc_width2.sh: New file.
54514         * modules/uniwidth/width-tests (Files): Add the new files.
54515         (TESTS): Add uniwidth/test-uc_width2.sh.
54516         (TESTS_ENVIRONMENT): New variable.
54517         (check_PROGRAMS): Add test-uc_width2.
54518         (test_uc_width2_SOURCES): New variable.
54519
54520         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54521         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54522         not 0x00AB.
54523         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54524
54525 2008-08-22  Eric Blake  <ebb9@byu.net>
54526
54527         test-lock, test-tls: mention why a test is skipped
54528         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54529         skipped.
54530         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54531
54532         count-one-bits: relax license
54533         * modules/count-one-bits (License): Relicense to LGPLv2+.
54534         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54535
54536 2008-08-22  Andreas Schwab  <schwab@suse.de>
54537
54538         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54539         Remove spurious space in assignment.
54540
54541 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54542
54543         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54544         Paul Eggert <eggert@CS.UCLA.EDU>.
54545
54546 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54547
54548         * modules/gettext: Add m4/threadlib.m4.
54549
54550 2008-08-19  Eric Blake  <ebb9@byu.net>
54551
54552         test-c-stack: fix compilation failure on FreeBSD 5.0
54553         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54554         headers before <sys/resource.h>.
54555         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54556         the bug.
54557         Reported by Nelson H. F. Beebe.
54558
54559         strverscmp: migrate from "strverscmp.h" to <string.h>
54560         * modules/string (Makefile.am): Add new hooks.
54561         * modules/strverscmp (Files): Remove strverscmp.h.
54562         (Depends-on): Add string.
54563         (configure.ac): Add indicator.
54564         (Include): Mention new header.
54565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54566         defaults.
54567         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54568         results.
54569         * lib/strverscmp.h: Delete.
54570         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54571         * tests/test-strverscmp.c (includes): Adjust client.
54572         * lib/check-version.c (includes): Likewise.
54573         * NEWS: Document the change.
54574
54575         strverscmp: add unit test
54576         * modules/strverscmp-tests: New file.
54577         * tests/test-strverscmp.c: Likewise.
54578
54579 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54580
54581         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54582         regarding Windows crypto stuff, from Mono.
54583
54584 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54585
54586         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54587         if present, for intel RND.  Return error on failures.
54588
54589 2008-08-18  Ben Pfaff  <blp@gnu.org>
54590
54591         gitlog-to-changelog: give better diagnostic for failed pipe-open
54592         * build-aux/gitlog-to-changelog: Improve error message: suggest
54593         that the version of Git may be too old.
54594
54595 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54596
54597         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54598         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54599
54600 2008-08-18  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54603         pthread_in_use().
54604
54605 2008-08-18  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/glthread/threadlib.c: Include <pthread.h>.
54608
54609 2008-08-18  Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54612         glthread_recursive_lock_* macros.
54613         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54614         Fix syntax error.
54615
54616 2008-08-18  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/glthread/thread.c: Avoid forcing a context switch right after
54619         thread creation.
54620
54621 2008-08-17  Bruno Haible  <bruno@clisp.org>
54622
54623         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54624         * lib/glthread/thread.h: Provide Win32 specific implementation.
54625         * modules/thread (Files): Add lib/glthread/thread.c.
54626         (Depends-on): Add lock.
54627         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54628
54629 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54630
54631         New module 'yield'.
54632         * modules/yield: New file.
54633         * lib/glthread/yield.h: New file.
54634         * m4/yield.m4: New file.
54635         * MODULES.html.sh (Multithreading): Add yield.
54636
54637 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54638
54639         New module 'thread'.
54640         * modules/thread: New file.
54641         * lib/glthread/thread.h: New file.
54642         * m4/thread.m4: New file.
54643         * MODULES.html.sh (Multithreading): Add thread.
54644
54645 2008-08-17  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/glthread/lock.h: Include <stdlib.h> always.
54648         * lib/glthread/tls.h: Likewise.
54649         * lib/glthread/cond.h: Likewise.
54650
54651 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54652
54653         New module 'cond'.
54654         * modules/cond: New file.
54655         * lib/glthread/cond.h: New file.
54656         * lib/glthread/cond.c: New file.
54657         * m4/cond.m4: New file.
54658         * MODULES.html.sh (Multithreading): Add cond.
54659
54660 2008-08-16  Eric Blake  <ebb9@byu.net>
54661
54662         c-stack: fix regression on Irix 5.3 from 2008-06-21
54663         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54664         sa_sigaction...
54665         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54666         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54667         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54668         * modules/signal (Makefile.am): Use the value.
54669         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54670         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54671         * doc/posix-headers/signal.texi (signal.h): Document this
54672         portability issue.
54673         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54674         Reported by Tom G. Christensen.
54675
54676 2008-08-17  Bruno Haible  <bruno@clisp.org>
54677
54678         New module 'threadlib'.
54679         * modules/threadlib: New file.
54680         * lib/glthread/threadlib.c: New file, extracted from
54681         lib/glthread/lock.c.
54682         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54683         functions.
54684         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54685         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54686         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54687         macros.
54688         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54689         (gl_DISABLE_THREADS): Remove macro.
54690         * modules/lock (Files): Remove build-aux/config.rpath.
54691         (Depends-on): Remove havelib. Add threadlib.
54692         (configure.ac-early): Remove section.
54693         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54694         * modules/tls (Depends-on): Remove lock. Add threadlib.
54695         (Link): New section, copied from threadlib.
54696         * MODULES.html.sh (Multithreading): Add threadlib.
54697
54698 2008-08-14  Bruno Haible  <bruno@clisp.org>
54699
54700         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54701         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54702         glthread_rwlock_unlock, glthread_rwlock_destroy,
54703         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54704         glthread_recursive_lock_destroy): Define as macros always.
54705         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54706         glthread_lock_lock.
54707         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54708         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54709         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54710         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54711         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54712         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54713         (glthread_recursive_lock_lock_func): Renamed from
54714         glthread_recursive_lock_lock.
54715         (glthread_recursive_lock_unlock_func): Renamed from
54716         glthread_recursive_lock_unlock.
54717         (glthread_recursive_lock_destroy_func): Renamed from
54718         glthread_recursive_lock_destroy.
54719
54720 2008-08-14  Bruno Haible  <bruno@clisp.org>
54721
54722         * lib/glthread/lock.h: Renamed from lib/lock.h.
54723         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54724         * lib/glthread/tls.h: Renamed from lib/tls.h.
54725         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54726         * lib/fstrcmp.c: Update includes.
54727         * lib/strsignal.c: Update includes.
54728         * modules/lock (Files, Makefile.am): Update.
54729         (Include): Change to "glthread/lock.h".
54730         * modules/tls (Files, Makefile.am): Update.
54731         (Include): Change to "glthread/tls.h".
54732         * tests/test-lock.c: Update includes.
54733         * tests/test-tls.c: Update includes.
54734         * NEWS: Mention the renamed header files.
54735
54736 2008-08-11  Jim Meyering  <meyering@redhat.com>
54737
54738         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54739
54740 2008-08-11  Eric Blake  <ebb9@byu.net>
54741
54742         test-c-stack: avoid C99-ism
54743         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54744         before statement.
54745         Reported by Alain Guibert.
54746
54747 2008-08-10  Jim Meyering  <meyering@redhat.com>
54748
54749         ensure that return value of uinttostr et al are not ignored
54750         * lib/inttostr.h (__GNUC_PREREQ): Define.
54751         (__attribute_warn_unused_result__): Define.
54752         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54753
54754 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54755
54756         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54757         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54758
54759 2008-08-07  Jim Meyering  <meyering@redhat.com>
54760
54761         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54762
54763         * modules/mkstemp (License): Relicense under LGPLv2+.
54764         * modules/tempname (License): Likewise.
54765
54766 2008-08-06  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/poll.c (poll): Further micro-optimization.
54769
54770 2008-08-06  Jim Meyering  <meyering@redhat.com>
54771
54772         inet_pton.c: use locale-independent tolower
54773         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54774         (inet_pton6): Use c_tolower rather than tolower.
54775         * modules/inet_pton (Depends-on): Add c-ctype.
54776
54777 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54778
54779         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54780         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54781
54782 2008-08-06  Jim Meyering  <meyering@redhat.com>
54783
54784         * modules/inet_pton (License): Relicense under LGPLv2+.
54785
54786 2008-08-03  Bruno Haible  <bruno@clisp.org>
54787
54788         Additional non-aborting API for lock and tls.
54789         * lib/lock.h: Include <errno.h>.
54790         (glthread_lock_init): New macro/function.
54791         (gl_lock_init): Define as wrapper around glthread_lock_init.
54792         (glthread_lock_lock): New macro/function.
54793         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54794         (glthread_lock_unlock): New macro/function.
54795         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54796         (glthread_lock_destroy): New macro/function.
54797         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54798         (glthread_rwlock_init): New macro/function.
54799         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54800         (glthread_rwlock_rdlock): New macro/function.
54801         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54802         (glthread_rwlock_wrlock): New macro/function.
54803         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54804         (glthread_rwlock_unlock): New macro/function.
54805         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54806         (glthread_rwlock_destroy): New macro/function.
54807         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54808         (glthread_recursive_lock_init): New macro/function.
54809         (gl_recursive_lock_init): Define as wrapper around
54810         glthread_recursive_lock_init.
54811         (glthread_recursive_lock_lock): New macro/function.
54812         (gl_recursive_lock_lock): Define as wrapper around
54813         glthread_recursive_lock_lock.
54814         (glthread_recursive_lock_unlock): New macro/function.
54815         (gl_recursive_lock_unlock): Define as wrapper around
54816         glthread_recursive_lock_unlock.
54817         (glthread_recursive_lock_destroy): New macro/function.
54818         (gl_recursive_lock_destroy): Define as wrapper around
54819         glthread_recursive_lock_destroy.
54820         (glthread_once): New macro/function.
54821         (gl_once): Define as wrapper around glthread_once.
54822         Update function declarations.
54823         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54824         glthread_rwlock_init. Return error code.
54825         (glthread_rwlock_rdlock_multithreaded): Renamed from
54826         glthread_rwlock_rdlock. Return error code.
54827         (glthread_rwlock_wrlock_multithreaded): Renamed from
54828         glthread_rwlock_wrlock. Return error code.
54829         (glthread_rwlock_unlock_multithreaded): Renamed from
54830         glthread_rwlock_unlock. Return error code.
54831         (glthread_rwlock_destroy_multithreaded): Renamed from
54832         glthread_rwlock_destroy. Return error code.
54833         (glthread_recursive_lock_init_multithreaded): Renamed from
54834         glthread_recursive_lock_init. Return error code.
54835         (glthread_recursive_lock_lock_multithreaded): Renamed from
54836         glthread_recursive_lock_lock. Return error code.
54837         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54838         glthread_recursive_lock_unlock. Return error code.
54839         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54840         glthread_recursive_lock_destroy. Return error code.
54841         (glthread_once_call): Make static.
54842         (glthread_once_multithreaded): Renamed from glthread_once.
54843         * lib/tls.h: Include <errno.h>.
54844         (glthread_tls_key_init): New macro/function.
54845         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54846         (glthread_tls_set): New macro/function.
54847         (gl_tls_set): Define as wrapper around glthread_tls_set.
54848         (glthread_tls_key_destroy): New macro/function.
54849         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54850         Update function declarations.
54851         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54852         glthread_tls_get.
54853         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54854
54855 2008-08-04  Eric Blake  <ebb9@byu.net>
54856
54857         gnumakefile: use space, not TAB, outside of targets
54858         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54859
54860 2008-08-02  Jim Meyering  <meyering@redhat.com>
54861
54862         getdate.y: avoid locale-dependent date parsing failure
54863         In Turkish locales, getdate would fail to recognize keywords
54864         containing a lowercase "i".  The solution is not to rely on
54865         locale-sensitive case-conversion.
54866         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54867         (lookup_word): Use c_toupper in place of toupper.
54868         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54869         Reported by Vefa Bicakci <bicave@superonline.com> in
54870         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54871         * modules/getdate (Depends-on): Add c-ctype.
54872
54873 2008-08-02  Bruno Haible  <bruno@clisp.org>
54874
54875         * gnulib-tool (func_import): When updating or creating a .gitignore
54876         file, prepend each added line with a slash, and ignore leading slashes
54877         from the existing lines.
54878         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54879
54880 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54881
54882         Portability fix for GNU make 3.79.1.
54883         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54884         versions do not understand.
54885
54886 2008-08-01  Bruno Haible  <bruno@clisp.org>
54887
54888         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54889         * tests/test-isnanf.h (zero): New variable.
54890         (main): Avoid literal -0.0f.
54891         * tests/test-isnand.h (zero): New variable.
54892         (main): Avoid literal -0.0.
54893         * tests/test-isnanl.h (zero): New variable.
54894         (main): Avoid literal -0.0L.
54895         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54896         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54897         -0.0, -0.0L.
54898         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54899         (test_signbitd): Avoid literal -0.0.
54900         (test_signbitl): Avoid literal -0.0L.
54901         * tests/test-ceilf1.c (zero): New variable.
54902         (main): Avoid literal -0.0f.
54903         * tests/test-ceill.c (zero): New variable.
54904         (main): Avoid literal -0.0L.
54905         * tests/test-floorf1.c (zero): New variable.
54906         (main): Avoid literal -0.0f.
54907         * tests/test-floorl.c (zero): New variable.
54908         (main): Avoid literal -0.0L.
54909         * tests/test-roundf1.c (zero): New variable.
54910         (main): Avoid literal -0.0f.
54911         * tests/test-round1.c (zero): New variable.
54912         (main): Avoid literal -0.0.
54913         * tests/test-roundl.c (zero): New variable.
54914         (main): Avoid literal -0.0L.
54915         * tests/test-truncf1.c (zero): New variable.
54916         (main): Avoid literal -0.0f.
54917         * tests/test-trunc1.c (zero): New variable.
54918         (main): Avoid literal -0.0.
54919         * tests/test-truncl.c (zero): New variable.
54920         (main): Avoid literal -0.0L.
54921         * tests/test-frexp.c (zero): New variable.
54922         (main): Avoid literal -0.0.
54923         * tests/test-frexpl.c (zero): New variable.
54924         (main): Avoid literal -0.0L.
54925         * tests/test-ldexpl.c (zero): New variable.
54926         (main): Avoid literal -0.0L.
54927         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54928         (zerod, zerol): New variables.
54929         (test_function): Avoid literals -0.0, -0.0L.
54930         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54931         (zerod, zerol): New variables.
54932         (test_function): Avoid literals -0.0, -0.0L.
54933         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54934         (zerod, zerol): New variables.
54935         (test_function): Avoid literals -0.0, -0.0L.
54936         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54937         (zerod, zerol): New variables.
54938         (test_function): Avoid literals -0.0, -0.0L.
54939         * tests/test-strtod.c (zero): New variable.
54940         (main): Avoid literal -0.0.
54941         Reported by Jonathan C. Patschke <jp@centtech.com>.
54942
54943 2008-07-31  Jim Meyering  <meyering@redhat.com>
54944
54945         sha256.h: correct definition of SHA224_DIGEST_SIZE
54946         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54947         Reported by Paulie Pena IV <paulie4@gmail.com>.
54948         Define as 224 / 8, rather than as a literal.
54949         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54950         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54951         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54952
54953 2008-07-31  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54956         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54957         Reported by Jonathan Patschke <jp@centtech.com>.
54958
54959 2008-07-31  Bruno Haible  <bruno@clisp.org>
54960
54961         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54962         Reported by Paolo Bonzini <bonzini@gnu.org>.
54963
54964 2008-07-30  Eric Blake  <ebb9@byu.net>
54965
54966         test-strtod: allow compilation without -lm
54967         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54968         Reported by Dennis Clarke <blastwave@gmail.com>.
54969
54970 2008-07-28  Jim Meyering  <meyering@redhat.com>
54971
54972         bootstrap: work also when there are no .po files in po/
54973         * build-aux/bootstrap (update_po_files): Complete the change
54974         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54975
54976 2008-07-27  Jim Meyering  <meyering@redhat.com>
54977
54978         * users.txt: Add zile.
54979
54980 2008-07-26  Ben Pfaff  <blp@gnu.org>
54981
54982         Add missing dependencies on new m4/exponent[fdl].m4 files.
54983         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54984         * modules/isnand-nolibm: Add m4/exponentd.m4.
54985         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54986         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54987         m4/isnan[fdl].m4, because the macros actually used moved.
54988         Reported by Jim Meyering.
54989
54990 2008-07-14  Ben Pfaff  <blp@gnu.org>
54991
54992         Add isinf module.
54993         * lib/isinf.c: New file.
54994         * lib/math.in.h: Define isinf macro if we have decided to replace
54995         it.
54996         * m4/isinf.m4: New file.
54997         * m4/math_h.m4: Initialize and substitute variables for isinf
54998         module.
54999         * modules/isinf: New file.
55000         * modules/isinf-tests: New file.
55001         * modules/math: Add substitutions for new module.
55002         * tests/test-isinf.c: New file.
55003         * doc/posix-functions/isinf.texi: Mention new module.
55004         * MODULES.html.sh: Mention new module.
55005
55006 2008-07-14  Ben Pfaff  <blp@gnu.org>
55007
55008         Factor out some macros for use by additional modules.
55009         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55010         exponentf.m4.
55011         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55012         exponentd.m4.
55013         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55014         file exponentl.m4.
55015         * m4/exponentf.m4: New file.
55016         * m4/exponentd.m4: New file.
55017         * m4/exponentl.m4: New file.
55018         * modules/isnanf: Use new file m4/exponentf.m4.
55019         * modules/isnand: Use new file m4/exponentd.m4.
55020         * modules/isnanl: Use new file m4/exponentl.m4.
55021
55022 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55023
55024         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55025         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55026         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55027         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55028
55029         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55030         readlink on platforms without PATH_MAX.
55031
55032 2008-07-21  Eric Blake  <ebb9@byu.net>
55033
55034         Warn, not fail, on stale version.
55035         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55036
55037         Don't allow installation with stale devel version number.
55038         * top/GNUmakefile (_is-install-target): New macro.
55039         (_curr-ver): Forbid installation with stale version number.
55040
55041 2008-07-20  Bruno Haible  <bruno@clisp.org>
55042
55043         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55044         TESTS_ENVIRONMENT.
55045         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55046
55047 2008-07-20  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/c-stack.h (c_stack_action): Add documentation.
55050         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55051
55052 2008-07-20  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55055         * modules/readlink (License): Likewise.
55056
55057 2008-07-17  Eric Blake  <ebb9@byu.net>
55058
55059         * modules/c-stack (Link): Fix typo.
55060
55061         Make c-stack use libsigsegv, when available.
55062         * modules/c-stack (Depends-on): Add libsigsegv.
55063         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55064         needed.
55065         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55066         (segv_handler, overflow_handler, c_stack_action)
55067         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55068         implementation when libsigsegv is available, but only when using
55069         the library is necessary.
55070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55071         comment, explaining why XSI check fails on Linux.
55072         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55073         * tests/test-c-stack2.sh: Tweak skip message.
55074         * NEWS: Document new link-time requirements.
55075
55076 2008-07-16  Eric Blake  <ebb9@byu.net>
55077
55078         c-stack: Expose false positives when not using libsigsegv.
55079         * modules/c-stack-tests (Files): Expand test.
55080         * tests/test-c-stack.c (main): Add means to conditionally trigger
55081         non-overflow SIGSEGV.
55082         * tests/test-c-stack2.sh: New file.
55083
55084 2008-07-14  Bruno Haible  <bruno@clisp.org>
55085
55086         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55087         Reported by Eric Blake.
55088
55089 2008-07-14  Sam Steingold  <sds@gnu.org>
55090             Bruno Haible  <bruno@clisp.org>
55091
55092         New module libsigsegv.
55093         * modules/libsigsegv: New file.
55094         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55095         modifications.
55096         * MODULES.html.sh (Signal handling): New section.
55097
55098 2008-07-14  Bruno Haible  <bruno@clisp.org>
55099
55100         * modules/unictype/ctype-* (Description): Add the word "function".
55101         Improves the resulting doc in MODULES.html.
55102
55103 2008-07-12  Ben Pfaff  <blp@gnu.org>
55104
55105         Add longlong module.
55106         * modules/longlong: New file.
55107
55108 2008-07-12  Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55111         to empty.
55112
55113 2008-07-10  Ben Pfaff  <blp@gnu.org>
55114
55115         Add isnan module.
55116         * doc/posix-functions/isnan.texi: Mention new module.
55117         * lib/math.in.h: Define isnan macro if we have decided to replace
55118         it.
55119         * m4/isnan.m4: New file.
55120         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55121         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55122         also.
55123         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55124         redundancy.
55125         * m4/math_h.m4: Initialize and substitute variables for isnan
55126         module.
55127         * modules/isnan: New file.
55128         * modules/isnan-tests: New file.
55129         * modules/math: Add substitutions for new module.
55130         * tests/test-isnan.c: New file.
55131         * MODULES.html.sh: Mention new module.
55132
55133 2008-07-10  Ben Pfaff  <blp@gnu.org>
55134
55135         Add isnanf module.
55136         * lib/isnanf.m4: New file.
55137         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55138         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55139         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55140         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55141         * modules/isnanf: New file.
55142         * modules/isnanf-tests: New file.
55143         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55144         files.
55145         * tests/test-isnanf-nolibm.c: factored most of its contents into
55146         new file tests/test-isnanf.h.
55147         * tests/test-isnanf.h: New file.
55148         * tests/test-isnanf.c: New file.
55149         * MODULES.html.sh: Mention new module.
55150         * doc/glibc-functions/isnanf.texi: Mention new module.
55151
55152 2008-07-10  Ben Pfaff  <blp@gnu.org>
55153
55154         Add isnand module.
55155         * lib/isnand.h: New file.
55156         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55157         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55158         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55159         functionality also.
55160         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55161         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55162         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55163         * modules/isnand: New file.
55164         * modules/isnand-tests: New file.
55165         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55166         files.
55167         * tests/test-isnand-nolibm.c: factored most of its contents into
55168         new file tests/test-isnand.h.
55169         * tests/test-isnand.h: New file.
55170         * tests/test-isnand.c: New file.
55171         * MODULES.html.sh: Mention new module.
55172
55173 2008-07-10  Ben Pfaff  <blp@gnu.org>
55174
55175         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55176         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55177         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55178         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55179         * modules/isnanf-nolibm: Update references to renamed files.
55180         * modules/isnand-nolibm: Likewise.
55181         * modules/isnanf-nolibm-tests: Likewise.
55182         * modules/isnand-nolibm-tests: Likewise.
55183         * lib/frexp.c: Likewise.
55184         * lib/isfinite.c: Likewise.
55185         * lib/signbitd.c: Likewise.
55186         * lib/signbitf.c: Likewise.
55187         * lib/vasnprintf.c: Likewise.
55188         * tests/test-ceilf1.c: Likewise.
55189         * tests/test-ceilf2.c: Likewise.
55190         * tests/test-floorf1.c: Likewise.
55191         * tests/test-floorf2.c: Likewise.
55192         * tests/test-frexp.c: Likewise.
55193         * tests/test-round1.c: Likewise.
55194         * tests/test-round2.c: Likewise.
55195         * tests/test-roundf1.c: Likewise.
55196         * tests/test-strtod.c: Likewise.
55197         * tests/test-trunc1.c: Likewise.
55198         * tests/test-trunc2.c: Likewise.
55199         * tests/test-truncf1.c: Likewise.
55200         * tests/test-truncf2.c: Likewise.
55201         * NEWS: Mention the renamed header files.
55202
55203 2008-07-11  Jim Meyering  <meyering@redhat.com>
55204
55205         vc-list-files: make the last-resort awk code more portable
55206         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55207         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55208         does not support it.
55209
55210 2008-07-10  Eric Blake  <ebb9@byu.net>
55211
55212         Work with tar's bootstrap.
55213         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55214         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55215         an m4 comment.
55216
55217 2008-07-09  Jim Meyering  <meyering@redhat.com>
55218
55219         posix-shell.m4: fix typo that made this test malfunction
55220         * m4/posix-shell.m4: Remove capitalization in variable name.
55221
55222 2008-07-08  Bruno Haible  <bruno@clisp.org>
55223
55224         * m4/onceonly.m4: Update comments.
55225         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55226
55227 2008-07-04  Jim Meyering  <meyering@redhat.com>
55228
55229         * users.txt: Add vc-dwim.
55230         (bison, coreutils): Use the gitweb URL.
55231
55232 2008-07-03  Jim Meyering  <meyering@redhat.com>
55233
55234         * users.txt: Add libffcall.  From Sam Steingold.
55235
55236 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55237
55238         getdate.y: do not ignore TZ with relative day, month or year offset
55239         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55240         relative-date-handling, since otherwise, the latter would clobber the
55241         sole output (an updated Start value) of the tz-handling block.
55242         * tests/test-getdate.c: Tests for the fix
55243
55244 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55245
55246         Recognize 'foo_LIBRARIES += libgnu.a'.
55247         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55248         makefile snippet has already specified an installation location,
55249         also using '+='.
55250
55251 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55252
55253         getdate.y: factor out common actions
55254         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55255         Use them in place of open-coded actions.
55256
55257 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55258
55259         Add self-test for getdate module.
55260         * modules/getdate-tests: New file.
55261         * tests/test-getdate.c: New file.
55262
55263 2008-06-29  Bruno Haible  <bruno@clisp.org>
55264
55265         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55266         .gitignore.
55267         Reported by Sylvain Beucler <beuc@beuc.net>.
55268
55269 2008-06-29  Bruno Haible  <bruno@clisp.org>
55270
55271         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55272         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55273
55274 2008-06-29  Bruno Haible  <bruno@clisp.org>
55275
55276         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55277         EXTRA_DIST.
55278         Reported by Sylvain Beucler <beuc@beuc.net>.
55279
55280 2008-06-26  Jim Meyering  <meyering@redhat.com>
55281
55282         make several modules depend on the "open" module
55283         This provides slightly increased consistency when opening-for-write
55284         the name of a non-directory spelled with a trailing slash.
55285         * modules/chdir-safer: Likewise.
55286         * modules/chown: Likewise.
55287         * modules/clean-temp: Likewise.
55288         * modules/copy-file: Likewise.
55289         * modules/fchdir: Likewise.
55290         * modules/fcntl-safer: Likewise.
55291         * modules/pipe: Likewise.
55292         * modules/utime: Likewise.
55293         Prompted by Eric Blake and Bruno Haible.
55294
55295 2008-06-24  Andreas Schwab  <schwab@suse.de>
55296
55297         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55298         literals can be used as initializers for global variables.
55299
55300 2008-06-23  Eric Blake  <ebb9@byu.net>
55301
55302         Make gnulib-cache.m4 easier to diff.
55303         * gnulib-tool (func_import): Allow newlines when reading cached
55304         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55305
55306 2008-06-23  Bruno Haible  <bruno@clisp.org>
55307
55308         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55309         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55310         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55311         m4/signalblocking.m4.
55312         (gl_PREREQ_SIGACTION): Don't invoke it.
55313         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55314         gl_PREREQ_SIG_HANDLER_H.
55315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55316         Don't check for sigaction here.
55317
55318 2008-06-23  Bruno Haible  <bruno@clisp.org>
55319
55320         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55321         (install_handlers): Don't set the SA_RESETHAND flag.
55322
55323 2008-06-23  Bruno Haible  <bruno@clisp.org>
55324
55325         * m4/sigaction.m4: Comment fixes.
55326         * lib/signal.in.h: Likewise.
55327
55328 2008-06-23  Eric Blake  <ebb9@byu.net>
55329
55330         Fix typo.
55331         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55332
55333         Avoid SA_ namespace.
55334         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55335         Reported by Ralf Wildenhues.
55336
55337         Avoid test failure due to SA_RESTORER.
55338         * tests/test-sigaction.c (SA_MASK): New macro.
55339         (main): Avoid failing due to extension flags being set.
55340         Reported by Jim Meyering.
55341
55342         Revert use of sig-handler.h in sigprocmask.c.
55343         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55344         it requires the existence of struct sigaction.
55345         * lib/sigprocmask.c (handler_t): Restore typedef.
55346         (rpl_signal, old_handlers): Use local type.
55347
55348 2008-06-22  Bruno Haible  <bruno@clisp.org>
55349
55350         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55351         conditionally.
55352         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55353
55354 2008-06-22  Bruno Haible  <bruno@clisp.org>
55355
55356         * doc/posix-functions/siginterrupt.texi: Move note.
55357
55358         * lib/signal.in.h (SA_RESTART): New macro.
55359         * lib/sigaction.c: Update comment.
55360
55361         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55362
55363         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55364         (gl_PREREQ_SIGPROCMASK): Invoke it.
55365         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55366
55367         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55368
55369         * lib/sigprocmask.c: Update a comment.
55370
55371 2008-06-21  Eric Blake  <ebb9@byu.net>
55372
55373         Use sigaction module rather than signal().
55374         * modules/c-stack (Depends-on): Add sigaction.
55375         * modules/fatal-signal (Depends-on): Likewise.
55376         * modules/nanosleep (Depends-on): Likewise.
55377         * modules/sigprocmask (Files): Add sig-handler.h.
55378         * modules/sigaction (Files): Likewise.
55379         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55380         Eggert.
55381         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55382         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55383         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55384         (init_fatal_signals): Likewise.
55385         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55386         (siginterrupt): Delete fallback.
55387         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55388         instead.
55389         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55390         siginterrupt.
55391
55392         New module sigaction, for mingw.
55393         * modules/sigaction: New module...
55394         * modules/sigaction-tests: ...and its test.
55395         * m4/sigaction.m4: New file.
55396         * lib/sigaction.c: Likewise.
55397         * tests/test-sigaction.c: Likewise.
55398         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55399         * modules/signal (Makefile.am): Likewise.
55400         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55401         needed.
55402         * doc/posix-headers/signal.texi (signal.h): Mention provided
55403         types.
55404         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55405         that sigaction is preferable.
55406         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55407         module.
55408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55409         sigaction.
55410
55411         Improve robustness of sigprocmask by overriding signal.
55412         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55413         is in use.
55414         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55415         (SIGKILL, SIGSTOP): Provide fallbacks.
55416         (rpl_signal): Implement.
55417         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55418         signal can be called inside handlers.
55419
55420         Fix nanosleep module on mingw.
55421         * modules/nanosleep (Depends-on): Add sys_select.
55422         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55423
55424         Fix licensing of sigprocmask.
55425         * modules/raise (License): Relicense as LGPL.
55426
55427 2008-06-21  Bruno Haible  <bruno@clisp.org>
55428
55429         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55430         result if it contains question marks.
55431         Reported by Michael Geng <linux@michaelgeng.de>.
55432
55433 2008-06-19  Bruno Haible  <bruno@clisp.org>
55434
55435         Fix CVS-ism.
55436         * doc/gnulib.texi: Include updated-stamp.texi.
55437         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55438         (updated-stamp.texi): New rule.
55439         (gnulib.info): Depend on it.
55440         * doc/.gitignore: Add updated-stamp.texi.
55441         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55442
55443 2008-06-19  Bruno Haible  <bruno@clisp.org>
55444
55445         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55446         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55447
55448 2008-06-19  Eric Blake  <ebb9@byu.net>
55449
55450         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55451         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55452         Reported by Stepan Kasal.
55453
55454 2008-06-18  Bruno Haible  <bruno@clisp.org>
55455
55456         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55457         Reported by Eric Blake.
55458
55459 2008-06-18  Eric Blake  <ebb9@byu.net>
55460
55461         Work around cygwin 1.5.25 strsignal bug.
55462         * tests/test-strsignal.c: Allow for const char *.
55463         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55464
55465 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55466
55467         * users.txt: Update URL to article and add author/date
55468         information.
55469
55470 2008-06-17  Bruno Haible  <bruno@clisp.org>
55471
55472         New macro gl_DISABLE_THREADS.
55473         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55474         if the user did not pass --enable-threads or --disable-threads option.
55475         (gl_DISABLE_THREADS): New macro.
55476         Reported by Eric Blake <ebb9@byu.net>.
55477
55478 2008-06-17  Bruno Haible  <bruno@clisp.org>
55479
55480         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55481         when the macro ignores it.
55482         Based on a patch by Eric Blake <ebb9@byu.net>.
55483
55484 2008-06-17  Bruno Haible  <bruno@clisp.org>
55485
55486         * modules/tls (License): Change to LGPLv2+.
55487         Reported by Eric Blake.
55488
55489 2008-06-17  Eric Blake  <ebb9@byu.net>
55490
55491         Simplify c-stack prerequisites.
55492         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55494         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55495         check.
55496         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55497         <sys/resource.h>.
55498
55499         Move c-stack test into testsuite.
55500         * modules/c-stack-tests: New file.
55501         * lib/c-stack.c [DEBUG]: Move test program...
55502         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55503         fail test if sigaltstack is lacking.
55504         * tests/test-c-stack.sh: New driver file.
55505
55506 2008-06-16  Eric Blake  <ebb9@byu.net>
55507
55508         Use raise module consistently.
55509         * modules/fatal-signal (Depends-on): Add raise.
55510         * modules/sigprocmask (Depends-on): Likewise.
55511         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55512         * lib/sigprocmask.c (sigprocmask): Likewise.
55513         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55514         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55515
55516         Fix compliance bug in sigpending.
55517         * lib/sigprocmask.c (sigpending): Return pending array via
55518         parameter, not return value.
55519
55520 2008-06-14  Eric Blake  <ebb9@byu.net>
55521
55522         Improve obstack-printf test code.
55523         * tests/test-obstack-printf.c (test_function): Fix comment, and
55524         simplify usage of obstack_* in macros.  Add a test for coverage.
55525         Reported by Bruno Haible.
55526
55527 2008-06-14  Bruno Haible  <bruno@clisp.org>
55528
55529         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55530         array size as a constant, not as a const variable.
55531         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55532         AC_USE_SYSTEM_EXTENSIONS.
55533         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55534         Test whether the obstack_printf function actually exists.
55535         * modules/obstack-printf (Depends-on): Add extensions.
55536         (Include): Remove obstack.h.
55537         * modules/obstack-printf-posix (Depends-on): Add extensions.
55538         (Include): Remove obstack.h.
55539
55540 2008-06-13  Eric Blake  <ebb9@byu.net>
55541
55542         Add obstack-printf and obstack-printf-posix modules.
55543         * modules/obstack-printf: New file.
55544         * modules/obstack-printf-posix: Likewise.
55545         * MODULES.html.sh (Misc): Mention them.
55546         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55547         Likewise.
55548         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55549         Likewise.
55550         * modules/stdio (Makefile.am): Accomodate new modules.
55551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55552         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55553         Declare.
55554         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55555         functions.
55556         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55557         (gl_REPLACE_OBSTACK_PRINTF): New macros
55558         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55559         * tests/test-obstack-printf.c: New file.
55560         * modules/obstack-printf-tests: Likewise.
55561         * modules/obstack-printf-posix-tests: Likewise.
55562
55563 2008-06-11  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55566         * lib/open.c: Include errno.h.
55567         (open): Fail when attempting to write to a file that has a trailing
55568         slash.
55569         * tests/test-open.c (main): Test against trailing slash bug.
55570         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55571
55572 2008-06-10  Bruno Haible  <bruno@clisp.org>
55573
55574         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55575         for $? to work inside the trap command, with various /bin/sh-s.
55576         * tests/test-vc-list-files-cvs.sh: Likewise.
55577
55578 2008-06-10  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/acl-internal.h: Don't include gettext.h here.
55581         * lib/set-mode-acl.c: Include gettext.h here.
55582         * lib/copy-acl.c: Likewise.
55583
55584 2008-06-10  Bruno Haible  <bruno@clisp.org>
55585
55586         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55587         * lib/wait-process.c (wait_subprocess): Likewise.
55588         * lib/execute.h (execute): Add termsigp argument.
55589         * lib/execute.c (execute): Likewise.
55590         * lib/csharpcomp.c (compile_csharp_using_pnet,
55591         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55592         * lib/csharpexec.c (execute_csharp_using_pnet,
55593         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55594         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55595         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55596         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55597         is_jikes_present): Update.
55598         * lib/javaexec.c (execute_java_class): Update.
55599         * lib/javaversion.c (execute_and_read_line): Update.
55600         * NEWS: Document the changes.
55601         Reported by Eric Blake.
55602
55603 2008-06-10  Eric Blake  <ebb9@byu.net>
55604
55605         Add missing include.
55606         * tests/test-strstr.c (includes): Add <signal.h>.
55607         * tests/test-strcasestr.c (includes): Likewise.
55608         * tests/test-memmem.c (includes): Likewise.
55609
55610 2008-06-10  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/wait-process.c (wait_subprocess): Add an assertion.
55613
55614 2008-06-10  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55617
55618 2008-06-10  Bruno Haible  <bruno@clisp.org>
55619
55620         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55621         using alarm().
55622         * tests/test-strcasestr.c (main): Likewise.
55623         * tests/test-strstr.c (main): Likewise.
55624
55625 2008-06-09  Bruno Haible  <bruno@clisp.org>
55626
55627         Work around the Solaris 10 ACE ACLs ABI change.
55628         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55629         declare if ACL_NO_TRIVIAL is present.
55630         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55631         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55632         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55633         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55634         define if ACL_NO_TRIVIAL is present.
55635         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55636         and use the current ABI.
55637         (file_has_acl): Use same #if condition as elsewhere.
55638         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55639         in use, and use the current ABI.
55640         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55641         Reported by Jim Meyering.
55642
55643 2008-06-09  Eric Blake  <ebb9@byu.net>
55644
55645         Work around environments that (stupidly) ignore SIGALRM.
55646         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55647         before using alarm().
55648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55649         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55650         Reported by Ian Beckwith <ianb@erislabs.net>.
55651
55652         Produce autobuild blurb earlier in log.
55653         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55654
55655 2008-06-09  Jim Meyering  <meyering@redhat.com>
55656         and Ondřej Vašík  <ovasik@redhat.com>
55657
55658         utimens.c: correct kernel bug work-around
55659         Ondřej Vašík found that the invalid return value of 280 indicates
55660         failure, not success, and the kernel bug we're trying to work
55661         around affects not just the utimensat call, but also the fallback
55662         futimens call.
55663         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55664         not success.
55665         [HAVE_FUTIMENS]: Use the same work-around, here.
55666
55667 2008-06-09  Jim Meyering  <meyering@redhat.com>
55668
55669         add more guards around definition of ACE_-related code
55670         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55671         ALLOW and ACE_OWNER are also defined.
55672
55673 2008-06-08  Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/acl-internal.h: Add me as co-author.
55676         * lib/file-has-acl.c: Likewise.
55677         * lib/set-mode-acl.c: Likewise.
55678         * lib/copy-acl.c: Likewise.
55679
55680 2008-06-08  Bruno Haible  <bruno@clisp.org>
55681
55682         Add support for AIX ACLs.
55683         * lib/acl-internal.h (acl_nontrivial): New declaration.
55684         * lib/file-has-acl.c (acl_nontrivial): New function.
55685         (file_has_acl): Add implementation using AIX 4 ACL API.
55686         * lib/set-mode-acl.c (qset_acl): Likewise.
55687         * lib/copy-acl.c (qcopy_acl): Likewise.
55688
55689 2008-06-08  Bruno Haible  <bruno@clisp.org>
55690
55691         Add support for HP-UX ACLs.
55692         * lib/acl-internal.h (acl_nontrivial): New declaration.
55693         * lib/file-has-acl.c (acl_nontrivial): New function.
55694         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55695         * lib/set-mode-acl.c (qset_acl): Likewise.
55696         * lib/copy-acl.c (qcopy_acl): Likewise.
55697
55698 2008-06-08  Bruno Haible  <bruno@clisp.org>
55699
55700         Add support for Cygwin ACLs.
55701         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55702         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55703         the chmod_or_fchmod call.
55704         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55705
55706 2008-06-08  Bruno Haible  <bruno@clisp.org>
55707
55708         Fix bug with setuid modes in Solaris 10+ code.
55709         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55710         succeeded, when the mode contains some special bits.
55711
55712 2008-06-08  Bruno Haible  <bruno@clisp.org>
55713
55714         Add support for Solaris 7..10 ACLs.
55715         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55716         declarations.
55717         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55718         functions.
55719         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55720         * lib/set-mode-acl.c (qset_acl): Likewise.
55721         * lib/copy-acl.c (qcopy_acl): Likewise.
55722
55723 2008-06-08  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55726         declaration.
55727         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55728         (acl_access_nontrivial): Remove MacOS X case.
55729         (file_has_acl): Use acl_extended_nontrivial.
55730         * lib/copy-acl.c (qcopy_acl): Likewise.
55731
55732 2008-06-08  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55735
55736 2008-06-08  Jim Meyering  <meyering@redhat.com>
55737
55738         * modules/acl (Maintainer): Add Bruno Haible.
55739
55740 2008-06-07  Bruno Haible  <bruno@clisp.org>
55741
55742         Improve support for Tru64 ACLs.
55743         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55744         ACL on OSF/1.
55745
55746 2008-06-07  Bruno Haible  <bruno@clisp.org>
55747
55748         Add support for MacOS X ACLs.
55749         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55750         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55751         * lib/set-mode-acl.c (qset_acl): Likewise.
55752         * lib/copy-acl.c (qcopy_acl): Likewise.
55753
55754 2008-06-07  Bruno Haible  <bruno@clisp.org>
55755
55756         Fix memory leak introduced on 2008-05-22.
55757         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55758         use.
55759
55760 2008-06-07  Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55763         to construct an empty ACL.
55764
55765 2008-06-07  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55768         precisely.
55769         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55770
55771 2008-06-07  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55774         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55775
55776 2008-06-07  Bruno Haible  <bruno@clisp.org>
55777
55778         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55779         regardless of POSIX.
55780         * doc/posix-functions/_longjmp.texi: Likewise.
55781         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55782         SystemV platform in this case.
55783
55784 2008-06-06  Eric Blake  <ebb9@byu.net>
55785
55786         Document abort() bugs.
55787         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55788
55789         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55790         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55791         sigsetjmp.
55792         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55793         siglongjmp, but only as a macro.
55794         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55795         is obsolete.
55796         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55797
55798         Tweak documentation to cover cygwin argz bugs.
55799         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55800         argz bug fix; no code change needed since no cygwin releases
55801         occurred between the last fix and the bug being tested.
55802         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55803         module and recently fixed cygwin bugs.
55804         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55805         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55806         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55807         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55808         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55809         Likewise.
55810         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55811         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55812         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55813         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55814         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55815         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55816         Likewise.
55817
55818         Avoid gcc warning on cygwin.
55819         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55820         !ACL_NO_TRIVIAL]: Avoid unused variable.
55821
55822 2008-06-05  Eric Blake  <ebb9@byu.net>
55823
55824         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55825         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55826         git-version-gen fails to come up with a version.
55827         Reported by Simon Josefsson.
55828
55829 2008-06-05  Jim Meyering  <meyering@redhat.com>
55830             Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         utimens.c: work around a probable Linux kernel bug
55833         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55834         appears to be a kernel bug that causes utimensat to return 280
55835         instead of 0, indicating success.
55836
55837 2008-06-04  Bruno Haible  <bruno@clisp.org>
55838
55839         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55840         2008-06-01 commit.
55841
55842 2008-06-04  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55845         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55846         (file_has_acl): Use it. Save errno afterwards.
55847         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55848
55849 2008-06-03  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55852         draft code. Simplify #ifs.
55853         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55854         Put Solaris code after POSIX-draft code. Fix comments regarding
55855         Solaris 10, HP-UX. Mention Cygwin.
55856         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55857
55858 2008-06-03  Eric Blake  <ebb9@byu.net>
55859
55860         Provide fallback for older kernels.
55861         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55862         Provide runtime fallback if kernel lacks support.
55863         Reported by Mike Frysinger.
55864
55865 2008-06-02  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55868         it exists.
55869
55870 2008-06-02  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55873         * lib/copy-acl.c (qcopy_acl): Update comment.
55874
55875 2008-06-02  Bruno Haible  <bruno@clisp.org>
55876
55877         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55878         like ACL APIs.
55879
55880 2008-06-02  Bruno Haible  <bruno@clisp.org>
55881
55882         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55883         * tests/test-set-mode-acl.sh: Likewise.
55884         * tests/test-copy-acl.sh: Likewise.
55885         * tests/test-copy-file.sh: Likewise.
55886
55887 2008-06-02  Bruno Haible  <bruno@clisp.org>
55888
55889         * tests/test-file-has-acl.sh: Remove unused code.
55890
55891 2008-06-01  Bruno Haible  <bruno@clisp.org>
55892
55893         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55894         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55895         messages.
55896         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55897
55898 2008-06-01  Bruno Haible  <bruno@clisp.org>
55899
55900         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55901         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55902         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55903         APIs.
55904         * modules/acl-tests (configure.ac): Remove tests now contained in
55905         m4/acl.m4.
55906
55907 2008-06-02  Jim Meyering  <meyering@redhat.com>
55908
55909         announce-gen: use a better key-server host name
55910         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55911         it may be more consistently reliable.  Suggested by Werner Koch
55912         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55913
55914 2008-06-01  Bruno Haible  <bruno@clisp.org>
55915
55916         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55917         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55918
55919 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55920
55921         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55922
55923 2008-06-01  Bruno Haible  <bruno@clisp.org>
55924
55925         New ACL tests.
55926         * tests/test-file-has-acl.sh: New file.
55927         * tests/test-file-has-acl.c: New file.
55928         * tests/test-set-mode-acl.sh: New file.
55929         * tests/test-set-mode-acl.c: New file.
55930         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55931         * tests/test-copy-acl.c: New file.
55932         * modules/acl-tests: New file, based on modules/copy-file-tests.
55933         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55934         (Depends-on): Add acl-tests.
55935         (configure.ac): Remove checks.
55936         (Makefile.am): Don't create test-sameacls program here any more.
55937
55938 2008-06-01  Bruno Haible  <bruno@clisp.org>
55939
55940         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55941         * tests/test-sameacls.c: Include progname.h.
55942         (main): Invoke set_program_name. Portability fixes for MacOS X,
55943         Solaris, HP-UX.
55944
55945 2008-06-01  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55948         function.
55949         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55950
55951 2008-06-01  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/rpmatch (Depends-on): Add strdup.
55954
55955 2008-06-01  Bruno Haible  <bruno@clisp.org>
55956
55957         * lib/pipe.c: Include unistd-safer.h.
55958         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55959         * modules/pipe (Depends-on): Add unistd-safer.
55960
55961 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55962
55963         * modules/autobuild (configure.ac): Call AB_INIT.
55964
55965 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55966
55967         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55968         Suggested by Bruno Haible <bruno@clisp.org>.
55969
55970 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55971
55972         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55973         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55974         <bruno@clisp.org>.
55975
55976 2008-05-29  Eric Blake  <ebb9@byu.net>
55977
55978         Prefer new POSIX 200x interfaces over futimesat.
55979         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55980         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55981         when available.
55982         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55983
55984 2008-05-28  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/stpcpy (License): Change to LGPLv2+.
55987         Requested by David Lutterkort <dlutter@redhat.com>.
55988
55989 2008-05-27  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55992         current mingw.
55993         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55994
55995 2008-05-27  Bruno Haible  <bruno@clisp.org>
55996
55997         * modules/iconv_open (Link): New section, from module 'iconv'.
55998         * modules/striconv (Link): Likewise.
55999         * modules/striconveh (Link): Likewise.
56000         * modules/xstriconv (Link): Likewise.
56001         * modules/unicodeio (Link): Likewise.
56002         * modules/propername (Link): Likewise.
56003         Reported by Jim Meyering.
56004
56005 2008-05-26  Jim Meyering  <meyering@redhat.com>
56006
56007         sha256: do not artificially restrict buffer length to be < 2^32
56008         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56009         uint32_t to size_t.
56010         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56011         to match.
56012
56013         avoid unaligned access errors, e.g., on sparc
56014         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56015         direct access through a possibly-unaligned uint64* pointer.
56016         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56017         direct access through a possibly-unaligned uint32* pointer.
56018         Prompted by this patch from Tom "spot" Callaway:
56019         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56020
56021         sha512.c: fix typo in comment
56022         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56023
56024 2008-05-25  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56027         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56028         (Makefile.am): Update lib_SOURCES.
56029
56030 2008-05-25  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56033
56034 2008-05-25  Jim Meyering  <meyering@redhat.com>
56035
56036         useless-if-before-free: freed expr may have white-space differences
56037         * build-aux/useless-if-before-free: Recognize cases in which the
56038         freed expression differs from the tested one in embedded white
56039         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56040         $1 was used, so we can't make any regexp shy.  Improved tests now
56041         detect this.
56042
56043         useless-if-before-free: accept white space in the expression.
56044         * build-aux/useless-if-before-free: For now, any white space
56045         in the expression must be identical in the free argument.
56046
56047         useless-if-before-free: efficiency tweak
56048         * build-aux/useless-if-before-free: Make the expression-matching
56049         regexp "shy".
56050         Make the *outer* regexp shy, not the expr-matching one.
56051
56052         update code-in-comment to accept cast of free arg
56053         * build-aux/useless-if-before-free: Update regexp.
56054
56055 2008-05-25  Bruno Haible  <bruno@clisp.org>
56056
56057         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56058         * modules/copy-file-tests (Files, Makefile.am): Update.
56059         * tests/test-copy-file.c (func_test_copy): Update.
56060
56061 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56062
56063         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56064
56065 2008-05-23  Bruno Haible  <bruno@clisp.org>
56066
56067         Improve support for ACLs on OSF/1.
56068         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56069         Remove fallback for unknown flavors of ACLs.
56070
56071 2008-05-22  Bruno Haible  <bruno@clisp.org>
56072
56073         Add support for ACLs on OSF/1.
56074         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56075         replacements.
56076         (acl_free_text): New macro fallback.
56077         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56078         acl_free.
56079         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56080         acl_free_text function. Require AC_C_INLINE.
56081
56082 2008-05-22  Bruno Haible  <bruno@clisp.org>
56083
56084         Make copy_acl work on MacOS X 10.5.
56085         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56086         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56087         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56088         If MODE_INSIDE_ACL, don't assume that every system has the same text
56089         representation for ACLs as FreeBSD.
56090         * lib/copy-acl.c (copy_acl): Add support for platforms with
56091         !MODE_INSIDE_ACL.
56092         * lib/file-has-acl.c (file_has_acl): Likewise.
56093         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56094         FreeBSD, MacOS X, or IRIX, respectively.
56095
56096 2008-05-22  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/acl.h: Don't include <sys/acl.h>.
56099         (GETACLCNT): Move fallback to lib/acl-internal.h.
56100         * lib/acl-internal.h: Include <sys/acl.h> here.
56101         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56102
56103 2008-05-22  Bruno Haible  <bruno@clisp.org>
56104
56105         Split off copy_acl function to separate file.
56106         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56107         * lib/acl.c (copy_acl): Moved function to separate file.
56108         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56109         * modules/acl (Files): Add lib/copy-acl.c.
56110         (Makefiles.am): Augment lib_SOURCES.
56111
56112 2008-05-22  Bruno Haible  <bruno@clisp.org>
56113
56114         * modules/copy-file-tests: New file.
56115         * tests/test-copy-file.sh: New file.
56116         * tests/test-copy-file.c: New file.
56117         * tests/test-copy-file-sameacls.c: New file.
56118
56119 2008-05-22  Eric Blake  <ebb9@byu.net>
56120
56121         Avoid gcc warning.
56122         * tests/test-memcmp.c (main): Pass NULL indirectly.
56123
56124 2008-05-21  Bruno Haible  <bruno@clisp.org>
56125
56126         Add reference doc about ACLs.
56127         * doc/acl-resources.txt: New file.
56128         * doc/acl-cygwin.txt: New file.
56129
56130 2008-05-21  Bruno Haible  <bruno@clisp.org>
56131
56132         Avoid one more warning from gcc.
56133         * lib/vasnprintf.c (IF_LINT): Update comments.
56134         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56135
56136 2008-05-21  Jim Meyering  <meyering@redhat.com>
56137
56138         avoid a warning from gcc
56139         * lib/vasnprintf.c (IF_LINT): Define.
56140         (scale10_round_decimal_long_double):
56141         Use it to avoid a "may be used uninitialized" warning.
56142         (scale10_round_decimal_double): Likewise.
56143
56144 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56145
56146         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56147         declared.
56148
56149 2008-05-20  Bruno Haible  <bruno@clisp.org>
56150
56151         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56152         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56153
56154 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56155
56156         * modules/memcmp-tests: New file.
56157         * tests/test-memcmp.c: New file.
56158
56159 2008-05-19  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/propername (Notice, configure.ac): Put quoted "..." into
56162         --keyword option.
56163         * lib/propername.h: Update comments accordingly.
56164         Reported by Eric Blake.
56165
56166 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56167
56168         * modules/getpass-gnu (Depends-on): Add fseeko.
56169
56170 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56171
56172         * modules/base64-tests: New file.
56173
56174 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56175
56176         * lib/base64.c (base64_decode_ctx): If a decode context structure
56177         was passed in use it to ignore newlines.  If a context structure
56178         was _not_ passed in, continue to treat newlines as garbage (this
56179         is the historical behavior).  Formerly base64_decode.
56180         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56181         takes a decode context structure.
56182         * lib/base64.h (base64_decode): Macro for four-argument calls.
56183         (base64_decode_alloc): Likewise.
56184         * lib/base64.c (base64_decode_ctx): If a decode context structure
56185         was passed in use it to ignore newlines.  If a context structure
56186         was _not_ passed in, continue to treat newlines as garbage (this
56187         is the historical behavior).  Formerly base64_decode.
56188         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56189         takes a decode context structure.
56190         * lib/base64.h (base64_decode): Macro for four-argument calls.
56191         (base64_decode_alloc): Likewise.
56192
56193 2008-05-19  Jim Meyering  <meyering@redhat.com>
56194
56195         avoid a warning from gcc
56196         * lib/trim.c (IF_LINT): Define.
56197         (trim2): Use it to avoid a "may be used uninitialized" warning.
56198
56199         Fix doc typo.
56200         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56201
56202 2008-05-19  Bruno Haible  <bruno@clisp.org>
56203
56204         * doc/glibc-functions/getpass.texi: Document limits of other
56205         implementations.
56206
56207 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56208             Bruno Haible <bruno@clisp.org>
56209
56210         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56211
56212 2008-05-18  Bruno Haible  <bruno@clisp.org>
56213
56214         * modules/propername: New file, from GNU gettext.
56215         * lib/propername.h: New file, from GNU gettext.
56216         * lib/propername.c: New file, from GNU gettext.
56217         * MODULES.html.sh (Internationalization functions): Add propername.
56218
56219 2008-05-16  Jim Meyering  <meyering@redhat.com>
56220             Bruno Haible  <bruno@clisp.org>
56221
56222         Avoid some warnings from "gcc -Wshadow".
56223         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56224
56225 2008-05-15  Eric Blake  <ebb9@byu.net>
56226
56227         Extend previous patch to cygwin 1.7.0.
56228         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56229         fast implementation in cygwin >= 1.7.0.
56230         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56232
56233 2008-05-15  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56236         implementation in glibc >= 2.9.
56237         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56239
56240 2008-05-15  Bruno Haible  <bruno@clisp.org>
56241
56242         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56243         (Unicode string functions): Add unilbrk/*.
56244         Reported by Karl Berry.
56245
56246 2008-05-15  Eric Blake  <ebb9@byu.net>
56247
56248         Fix violation of <stdbool.h> replacement in regex.
56249         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56250         * lib/regexec.c (re_search_internal): Likewise.
56251         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56252
56253 2008-05-15  Jim Meyering  <meyering@redhat.com>
56254
56255         avoid distracting test output when git or cvs is not found
56256         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56257         * tests/test-vc-list-files-git.sh: Likewise.
56258
56259 2008-05-15  Eric Blake  <ebb9@byu.net>
56260
56261         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56262         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56263         glibc version.
56264         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56265         * doc/posix-functions/strstr.texi (strstr): Likewise.
56266         * lib/str-two-way.h (MAX): Sychronize with glibc.
56267
56268 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56269
56270         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56271         opr.ctx_type.
56272         (calc_first): Initialize constraint field.
56273         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56274         Fix grammar.
56275         (duplicate_node): Merge constraint field for all node types.
56276         (calc_eclosure_iter): Look at constraint field for all node types.
56277         * lib/regex_internal.c (create_cd_newstate): Don't look at
56278         opr.ctx_type.
56279
56280 2008-05-14  Bruno Haible  <bruno@clisp.org>
56281
56282         Help GCC to do better code generation.
56283         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56284         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56285         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56286         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56287         Declare with attribute 'malloc' if supported.
56288
56289 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56290
56291         use "echo STR|wc -c" rather than unportable "expr length STR"
56292         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56293         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56294
56295 2008-05-14  Jim Meyering  <meyering@redhat.com>
56296
56297         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56298         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56299         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56300         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56301         via Collin Lasse.
56302
56303 2008-05-14  Eric Blake  <ebb9@byu.net>
56304
56305         Avoid quadratic growth in gl_LIBSOURCES.
56306         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56307         Suggested by Bruno Haible.
56308
56309         Test xmemdup0.
56310         * modules/xmemdup0-tests: New file.
56311         * tests/test-xmemdup0.c: Likewise.
56312
56313 2008-05-13  Eric Blake  <ebb9@byu.net>
56314
56315         Split xmemdup0 into its own module.
56316         * modules/xmemdup0: New file.
56317         * lib/xmemdup0.h: Likewise.
56318         * lib/xmemdup0.c: Likewise.
56319         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56320         * lib/xalloc.h (xmemdup0): Remove.
56321         * lib/xmalloc.c (xmemdup0): Likewise.
56322
56323 2008-05-13  Eric Blake  <ebb9@byu.net>
56324             Bruno Haible  <bruno@clisp.org>
56325
56326         Reduce number of forks required during autoconf.
56327         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56328         and gl_LIBSOURCES_DIR.
56329         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56330         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56331         m4_syscmd per file.
56332         <m4_foreach_w>: Move...
56333         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56334
56335 2008-05-13  Eric Blake  <ebb9@byu.net>
56336
56337         * gnulib-tool: Fix various comment typos.
56338
56339 2008-05-12  Bruno Haible  <bruno@clisp.org>
56340
56341         Tailor the linebreaking algorithm.
56342         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56343
56344 2008-05-12  Bruno Haible  <bruno@clisp.org>
56345
56346         Update to Unicode 5.0.0.
56347         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56348         LBP_JV, LBP_JT. Redistribute values.
56349         (unilbrk_table): Change size.
56350         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56351         Unicode TR#14 rev. 22.
56352         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56353         LBP_JV, LBP_JT. Redistribute values.
56354         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56355         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56356         Update.
56357         * lib/unilbrk/lbrkprop1.h: Regenerated.
56358         * lib/unilbrk/lbrkprop2.h: Regenerated.
56359         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56360         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56361         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56362         Likewise.
56363         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56364         Likewise.
56365         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56366         result.
56367         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56368         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56369         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56370         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56371         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56372         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56373
56374 2008-05-11  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56377
56378 2008-05-11  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56381         * modules/unilbrk/gen-lbrk: New file.
56382
56383 2008-05-11  Bruno Haible  <bruno@clisp.org>
56384
56385         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56386         * m4/sha512.m4 (gl_SHA512): Likewise.
56387
56388 2008-05-11  Jim Meyering  <meyering@redhat.com>
56389
56390         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56391         * modules/crypto/sha256: New file.
56392         * modules/crypto/sha512: Likewise.
56393         * lib/sha256.c: Likewise.
56394         * lib/sha256.h: Likewise.
56395         * lib/sha512.c: Likewise.
56396         * lib/sha512.h: Likewise.
56397         * lib/u64.h: Likewise.
56398         * m4/sha256.m4: Likewise.
56399         * m4/sha512.m4: Likewise.
56400         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56401
56402 2008-05-10  Bruno Haible  <bruno@clisp.org>
56403
56404         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56405         (Input/Output <stdio.h>): Add xprintf.
56406         (Signal handling <signal.h>): Add strsignal.
56407         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56408         (Core language properties): Add func.
56409         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56410         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56411         strings.
56412         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56413         (Input/output): New section.
56414         (File system functions): Add openat-die, stat-macros.
56415         (Networking functions): Add sockets.
56416         (Unicode string functions): Add unictype/*.
56417         (Support for building libraries and executables): Add gperf.
56418         (Support for building documentation): Add agpl-3.0.
56419         (Misc): Add nocrash.
56420
56421 2008-05-10  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/unictype/gen-ctype: New file.
56424
56425 2008-05-10  Jim Meyering  <meyering@redhat.com>
56426
56427         Make chdir-safer.c more efficient on a system with no symlinks.
56428         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56429         also if ELOOP is zero.  Suggested by Bruno Haible.
56430
56431         Make chdir-safer.c slightly safer.
56432         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56433         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56434
56435         Avoid compile failure on systems without ELOOP (like mingw).
56436         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56437         Reported by Bruno Haible.
56438
56439 2008-05-10  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56442         (is_utf8_encoding): Use a case-insensitive comparison.
56443         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56444         streq.
56445
56446 2008-05-10  Bruno Haible  <bruno@clisp.org>
56447
56448         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56449         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56450         * lib/unilbrk/ulc-common.h (iconv_string_length,
56451         iconv_string_keeping_offsets): Remove declarations.
56452         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56453         Don't include <iconv.h>, streq.h, xsize.h.
56454         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56455         conversion.
56456         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56457         <iconv.h>, streq.h, xsize.h.
56458         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56459         conversion.
56460         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56461         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56462         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56463         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56464
56465 2008-05-10  Bruno Haible  <bruno@clisp.org>
56466
56467         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56468         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56469
56470         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56471         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56472
56473         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56474         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56475
56476         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56477         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56478
56479         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56480         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56481
56482         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56483         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56484
56485         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56486         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56487
56488         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56489         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56490
56491 2008-05-10  Bruno Haible  <bruno@clisp.org>
56492
56493         Split up 'linebreak' module.
56494         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56495         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56496         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56497         modifications.
56498         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56499         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56500         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56501         lib/linebreak.c.
56502         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56503         lib/linebreak.c.
56504         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56505         lib/linebreak.c.
56506         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56507         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56508         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56509         lib/linebreak.c.
56510         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56511         lib/linebreak.c.
56512         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56513         lib/linebreak.c.
56514         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56515         lib/linebreak.c.
56516         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56517         lib/linebreak.c.
56518         * modules/unilbrk/base: New file.
56519         * modules/unilbrk/tables: New file.
56520         * modules/unilbrk/u8-possible-linebreaks: New file.
56521         * modules/unilbrk/u16-possible-linebreaks: New file.
56522         * modules/unilbrk/u32-possible-linebreaks: New file.
56523         * modules/unilbrk/ulc-common: New file.
56524         * modules/unilbrk/ulc-possible-linebreaks: New file.
56525         * modules/unilbrk/u8-width-linebreaks: New file.
56526         * modules/unilbrk/u16-width-linebreaks: New file.
56527         * modules/unilbrk/u32-width-linebreaks: New file.
56528         * modules/unilbrk/ulc-width-linebreaks: New file.
56529         * lib/linebreak.h: Remove file.
56530         * lib/linebreak.c: Remove file.
56531         * m4/linebreak.m4: Remove file.
56532         * modules/linebreak: Remove file.
56533         * NEWS: Mention the changes.
56534
56535 2008-05-09  Eric Blake  <ebb9@byu.net>
56536
56537         Add xmemdup0.
56538         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56539         implementation.
56540         * lib/xmalloc.c (xmemdup0): New C implementation.
56541
56542 2008-05-08  Bruno Haible  <bruno@clisp.org>
56543
56544         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56545
56546 2008-05-07  Eric Blake  <ebb9@byu.net>
56547
56548         Support cross-compilation of <wctype.h>.
56549         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56550         AC_CACHE_CHECK.
56551
56552 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56553
56554         * build-aux/vc-list-files: Add support for bzr.
56555
56556 2008-05-03  Jim Meyering  <meyering@redhat.com>
56557
56558         avoid failed assertion with tight malloc
56559         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56560
56561 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56562
56563         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56564         are needed from arpa/inet.h.
56565         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56566         Reported by Bruno Haible.
56567
56568 2008-05-02  Jim Meyering  <meyering@redhat.com>
56569
56570         avoid compilation error on FreeBSD 6
56571         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56572
56573 2008-05-01  Jim Meyering  <meyering@redhat.com>
56574
56575         useless-if-before-free: correct --help's exit status description
56576         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56577         for one or more matches, etc.  Reported by Bruno Haible.
56578
56579         vc-list-files: make the stand-alone gnulib test work
56580         * modules/vc-list-files-tests (configure.ac):
56581         Define and AC_SUBST abs_aux_dir.
56582         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56583         $(abs_top_srcdir) to each script and having each of them
56584         duplicate the work of setting PATH, set PATH here, using
56585         the new variable, abs_aux_dir instead.
56586         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56587         * tests/test-vc-list-files-git.sh: Likewise.
56588         Reported by Bruno Haible.
56589
56590 2008-05-01  Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56593         reallocation. Rename 'done' to 'found_delimiter'.
56594
56595 2008-05-01  Jim Meyering  <meyering@redhat.com>
56596
56597         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56598         * build-aux/vc-list-files: Use `...`, not $(...).
56599
56600 2008-04-30  Jim Meyering  <meyering@redhat.com>
56601
56602         add tests for vc-list-files
56603         * modules/vc-list-files-tests: New module.
56604         * tests/test-vc-list-files-cvs.sh: New file.
56605         * tests/test-vc-list-files-git.sh: New file.
56606
56607         avoid a warning from gcc
56608         * lib/getndelim2.c (IF_LINT): Define.
56609         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56610
56611         vc-list-files: work properly with build-aux/cvsu, too
56612         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56613         to all cvs-based clauses.
56614
56615         vc-list-files: work properly in the CVS+awk case, too
56616         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56617
56618         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56619         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56620         take more than one file argument, so .  Add quotes, just in case $dir
56621         ever contains a shell meta-character.  Prompted by Soren Hansen in
56622         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56623
56624 2008-04-29  Eric Blake  <ebb9@byu.net>
56625
56626         Optimize getndelim2 to use block operations when possible.
56627         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56628         freadseek, and memchr2.
56629         * lib/getndelim2.c (getndelim2): Use them for block reads.
56630
56631 2008-04-29  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56634         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56635         * modules/inet_ntop (Depends-on): Add extensions.
56636         * modules/inet_pton (Depends-on): Likewise.
56637         Reported by Simon Josefsson.
56638
56639 2008-04-29  Jim Meyering  <meyering@redhat.com>
56640
56641         When the is more than one match in a block, match all of them.
56642         * build-aux/useless-if-before-free: Iterate through each block
56643         until there are no more matches.
56644
56645         Fix broken useless-if-before-free script.
56646         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56647         the expression to match cast of argument to free-like function.
56648
56649 2008-04-29  Eric Blake  <ebb9@byu.net>
56650
56651         Use new header.
56652         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56653
56654 2008-04-29  Jim Meyering  <meyering@redhat.com>
56655
56656         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56657         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56658         by gnulib to exist and to declare e.g., inet_ntop.
56659         Don't include "inet_ntop.h", now removed.
56660
56661         * m4/arpa_inet_h.m4: Remove trailing blanks.
56662
56663 2008-04-29  Eric Blake  <ebb9@byu.net>
56664
56665         Silence valgrind on safe reads beyond potential array bounds.
56666         * lib/rawmemchr.valgrind: New file.
56667         * lib/strchrnul.valgrind: Likewise.
56668         * modules/rawmemchr (Files): Distribute new file.
56669         * modules/strchrnul (Files): Likewise.
56670         Suggested by Bruno Haible.
56671
56672 2008-04-29  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56675         (inet_ntop, inet_pton): Change portability warning's wording.
56676         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56677         Invoke gl_CHECK_NEXT_HEADERS.
56678         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56679         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56680         set ARPA_INET_H.
56681         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56682         * modules/arpa_inet (Description): No longer only for systems that
56683         lack it.
56684         (Depends-on): Add include_next.
56685         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56686         HAVE_ARPA_INET_H.
56687
56688 2008-04-29  Jim Meyering  <meyering@redhat.com>
56689
56690         * modules/mkdir (License): Re-license as LGPLv2+.
56691
56692 2008-04-29  Bruno Haible  <bruno@clisp.org>
56693
56694         * modules/rawmemchr (Maintainer): Set to Eric.
56695         * modules/strchrnul (Maintainer): Likewise.
56696
56697 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56698
56699         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56700         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56701
56702         * modules/arpa_inet (arpa/inet.h): Use them.
56703
56704 2008-04-28  Eric Blake  <ebb9@byu.net>
56705
56706         Test getndelim2.
56707         * modules/getndelim2-tests: New file.
56708         * tests/test-getndelim2.c: Likewise.
56709         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56710         stream.
56711         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56712
56713         * MODULES.html.sh: Document new module.
56714
56715 2008-04-20  Bruno Haible  <bruno@clisp.org>
56716
56717         * lib/c-stack.c (die): Use raise.
56718         * modules/c-stack (Depends-on): Add raise.
56719
56720 2008-04-28  Bruno Haible  <bruno@clisp.org>
56721
56722         Expect rpmatch to be declared.
56723         * lib/yesno.c (rpmatch): Remove declaration.
56724
56725         Declare rpmatch.
56726         * lib/stdlib.in.h (rpmatch): New declaration.
56727         * lib/rpmatch.c: Include <stdlib.h> first.
56728         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56729         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56731         HAVE_RPMATCH.
56732         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56734         (Include): Set to <stdlib.h>.
56735         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56736         HAVE_RPMATCH.
56737         * NEWS: Document the change.
56738
56739 2008-04-28  Bruno Haible  <bruno@clisp.org>
56740
56741         Change rpmatch to use nl_langinfo when appropriate.
56742         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56743         (N_): New macro.
56744         (localized_pattern): New function/macro.
56745         (try): Remove match, nomatch arguments. Copy the pattern into safe
56746         memory before caching it.
56747         (rpmatch): Use localized_pattern. Add translator comments.
56748         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56749         Suggested by Eric Blake.
56750         * modules/rpmatch (Depends-on): Add stdbool.
56751
56752 2008-04-28  Eric Blake  <ebb9@byu.net>
56753
56754         Add rawmemchr module, matching glibc.
56755         * modules/string (Makefile.am): New indicator.
56756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56757         * lib/string.in.h (rawmemchr): Declare when appropriate.
56758         * modules/rawmemchr: New file.
56759         * m4/rawmemchr.m4: Likewise.
56760         * lib/rawmemchr.c: Likewise.
56761         * modules/rawmemchr-tests: Likewise.
56762         * tests/test-rawmemchr.c: Likewise.
56763         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56764         module.
56765         * modules/strchrnul (Depends-on): Add rawmemchr.
56766         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56767
56768         Whitespace cleanup.
56769         * tests/test-strchrnul.c: Reindent.
56770         * lib/strchrnul.c: Likewise.
56771
56772         Optimize and test strchrnul.
56773         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56774         * modules/strchrnul-tests: New file.
56775         * tests/test-strchrnul.c: Likewise.
56776
56777         Remove intprops dependency.
56778         * modules/memchr (Depends-on): Remove intprops.
56779         * modules/memrchr (Depends-on): Likewise.
56780         * modules/memchr2 (Depends-on): Likewise.
56781         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56782         * lib/memrchr.c (__memrchr): Likewise.
56783         * lib/memrchr2.c (memchr2): Likewise.
56784         Reported by Simon Josefsson.
56785
56786 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56787
56788         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56789         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56790
56791 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56792
56793         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56794
56795         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56796
56797         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56798
56799         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56800         declarations.
56801         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56802
56803         * m4/inet_pton.m4: Don't check for header files.
56804
56805         * m4/inet_ntop.m4: Don't check for header files.
56806
56807 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56808
56809         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56810         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56811         trigger for cygwin).
56812         Reported by Bruno Haible  <bruno@clisp.org>.
56813
56814 2008-04-28  Bruno Haible  <bruno@clisp.org>
56815
56816         * doc/posix-functions/strdup.texi: Mention mingw problem.
56817
56818 2008-04-27  Bruno Haible  <bruno@clisp.org>
56819
56820         * modules/stat-time-tests (Depends-on): Add sleep.
56821         * tests/test-stat-time.c (force_unlink): New function.
56822         (cleanup): Use it.
56823         (test_mtime): Remove the ctime related tests.
56824         (test_ctime): New function, containing the ctime related tests.
56825         (main): Call test_ctime, except on native Windows platforms.
56826
56827 2008-04-27  Bruno Haible  <bruno@clisp.org>
56828
56829         * lib/rpmatch.c (rpmatch): Add some comments.
56830         Reported by James Youngman <jay@gnu.org>.
56831
56832 2008-04-27  Bruno Haible  <bruno@clisp.org>
56833
56834         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56835         quiet NaNs.
56836
56837 2008-04-27  Bruno Haible  <bruno@clisp.org>
56838
56839         Make test-yesno.sh work on mingw.
56840         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56841         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56842         (main): Set stdin to binary mode.
56843         * modules/yesno-tests (Depends-on): Add binary-io.
56844
56845 2008-04-27  Bruno Haible  <bruno@clisp.org>
56846
56847         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56848         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56849         argument that lie outside the IEEE 854 domain.
56850         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56851         (gl_ISFINITE): Use it.
56852         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56853
56854 2008-04-27  Bruno Haible  <bruno@clisp.org>
56855
56856         Allow local renaming in config.h.
56857         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56858
56859 2008-04-27  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/memchr.c (__memchr): Change type of 'i'.
56862         * lib/memchr2.c (memchr2): Likewise.
56863
56864 2008-04-26  Eric Blake  <ebb9@byu.net>
56865         and Bruno Haible  <bruno@clisp.org>
56866
56867         Optimize and test memrchr.
56868         * modules/memrchr (Depends-on): Add intprops.
56869         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56870         * modules/memrchr-tests: New file.
56871         * tests/test-memrchr.c: New file.
56872
56873 2008-04-26  Bruno Haible  <bruno@clisp.org>
56874
56875         Add tentative support for DragonFly BSD.
56876         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56877         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56878         fp.
56879         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56880         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56881         * lib/fpurge.c (fpurge): Likewise.
56882         * lib/freadable.c (freaadable): Likewise.
56883         * lib/freadahead.c (freadahead): Likewise.
56884         * lib/freading.c (freading): Likewise.
56885         * lib/freadptr.c (freadptr): Likewise.
56886         * lib/freadseek.c (freadptrinc): Likewise.
56887         * lib/fseeko.c (fseeko): Likewise.
56888         * lib/fseterr.c (fseterr): Likewise.
56889         * lib/fwritable.c (fwritable): Likewise.
56890         * lib/fwriting.c (fwriting): Likewise.
56891
56892 2008-04-26  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/stdio-impl.h: New file.
56895         * lib/fbufmode.c: Include stdio-impl.h.
56896         (fbufmode): Use fp_, remove redundant #defines.
56897         * lib/fflush.c: Include stdio-impl.h.
56898         (clear_ungetc_buffer): Remove redundant #defines.
56899         * lib/fpurge.c: Include stdio-impl.h.
56900         (fpurge): Remove redundant #defines.
56901         * lib/freadable.c: Include stdio-impl.h.
56902         (freadable): Remove redundant #defines.
56903         * lib/freadahead.c: Include stdio-impl.h.
56904         (freadahead): Remove redundant #defines.
56905         * lib/freading.c: Include stdio-impl.h.
56906         (freading): Remove redundant #defines.
56907         * lib/freadptr.c: Include stdio-impl.h.
56908         (freadptr): Remove redundant #defines.
56909         * lib/freadseek.c: Include stdio-impl.h.
56910         (freadptrinc): Remove redundant #defines.
56911         * lib/fseeko.c: Include stdio-impl.h.
56912         (rpl_fseeko): Remove redundant #defines.
56913         * lib/fseterr.c: Include stdio-impl.h.
56914         (fseterr): Remove redundant #defines.
56915         * lib/fwritable.c: Include stdio-impl.h.
56916         (fwritable: Remove redundant #defines.
56917         * lib/fwriting.c: Include stdio-impl.h.
56918         (fwriting): Remove redundant #defines.
56919         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56920         * modules/fflush (Files): Likewise.
56921         * modules/fpurge (Files): Likewise.
56922         * modules/freadable (Files): Likewise.
56923         * modules/freadahead (Files): Likewise.
56924         * modules/freading (Files): Likewise.
56925         * modules/freadptr (Files): Likewise.
56926         * modules/freadseek (Files): Likewise.
56927         * modules/fseeko (Files): Likewise.
56928         * modules/fseterr (Files): Likewise.
56929         * modules/fwritable (Files): Likewise.
56930         * modules/fwriting (Files): Likewise.
56931
56932 2008-04-26  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56935         restore_seek_optimization, update_fpos_cache): New functions, extracted
56936         from rpl_fflush.
56937         (rpl_fflush): Use them.
56938         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56939         (gl_REPLACE_FFLUSH): Use it.
56940
56941 2008-04-26  Bruno Haible  <bruno@clisp.org>
56942
56943         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56944         on Solaris.
56945         * tests/test-xstrtoimax.sh: Likewise.
56946         * tests/test-xstrtoumax.sh: Likewise.
56947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56948
56949 2008-04-26  Bruno Haible  <bruno@clisp.org>
56950
56951         * modules/memchr-tests: New file.
56952         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56953
56954 2008-04-26  Eric Blake  <ebb9@byu.net>
56955             Bruno Haible  <bruno@clisp.org>
56956
56957         * lib/memchr.c: Include intprops.h.
56958         (__memchr): Optimize parallel detection of matching bytes. Rename local
56959         variables. Add explanatory comments.
56960
56961 2008-04-26  Bruno Haible  <bruno@clisp.org>
56962
56963         Fix module 'memchr', broken since 2000-10-28.
56964         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56965
56966 2008-04-26  Bruno Haible  <bruno@clisp.org>
56967
56968         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56969         comments.
56970
56971 2008-04-25  Eric Blake  <ebb9@byu.net>
56972
56973         Use native fstatat on cygwin 1.7.0.
56974         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56975         first.
56976
56977 2008-04-23  Eric Blake  <ebb9@byu.net>
56978
56979         Improve memchr2 performance.
56980         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56981         NUL bytes.
56982         * modules/memchr2 (Depends-on): Use intprops.h.
56983
56984 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56985
56986         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56987         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56988         <blp@cs.stanford.edu>.
56989
56990 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56991
56992         * lib/arpa_inet.in.h: New file.
56993
56994         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56995         (Makefile.am): Sed in substitute header file.
56996
56997         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56998         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56999
57000         * modules/inet_ntop (configure.ac): Use
57001         gl_ARPA_INET_MODULE_INDICATOR.
57002
57003         * modules/inet_pton (configure.ac): Use
57004         gl_ARPA_INET_MODULE_INDICATOR.
57005
57006 2008-04-22  Jim Meyering  <meyering@redhat.com>
57007
57008         * modules/verify (License): Re-license as LGPLv2+.
57009
57010 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57011
57012         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57013         parameter to void* as per POSIX standard (MinGW uses char*).
57014
57015 2008-04-21  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57018         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57019         Define to replacements if REPLACE_ISWCNTRL is 1.
57020         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57021         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57022         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57023         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57024         what it fixes.
57025         * doc/posix-functions/iswalpha.texi: Likewise.
57026         * doc/posix-functions/iswblank.texi: Likewise.
57027         * doc/posix-functions/iswcntrl.texi: Likewise.
57028         * doc/posix-functions/iswdigit.texi: Likewise.
57029         * doc/posix-functions/iswgraph.texi: Likewise.
57030         * doc/posix-functions/iswlower.texi: Likewise.
57031         * doc/posix-functions/iswprint.texi: Likewise.
57032         * doc/posix-functions/iswpunct.texi: Likewise.
57033         * doc/posix-functions/iswspace.texi: Likewise.
57034         * doc/posix-functions/iswupper.texi: Likewise.
57035         * doc/posix-functions/iswxdigit.texi: Likewise.
57036         Reported by Alain Guibert.
57037
57038 2008-04-21  Bruno Haible  <bruno@clisp.org>
57039
57040         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57041         Patch by Alain Guibert.
57042
57043 2008-04-21  Bruno Haible  <bruno@clisp.org>
57044
57045         Fix test failures on mingw.
57046         * tests/test-xstrtol.c (print_no_progname): New function.
57047         (main): Install it in error_print_progname hook.
57048         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57049         * tests/test-xstrtoimax.sh: Likewise.
57050         * tests/test-xstrtoumax.sh: Likewise.
57051
57052 2008-04-21  Bruno Haible  <bruno@clisp.org>
57053
57054         Fix test failure on mingw.
57055         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57056
57057 2008-04-21  Bruno Haible  <bruno@clisp.org>
57058
57059         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57060         Actually assign a value.
57061
57062 2008-04-20  Bruno Haible  <bruno@clisp.org>
57063
57064         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57065         take 2.
57066         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57067         'canonicalize-lgpl' module is also used.
57068         * lib/canonicalize-lgpl.c: Undo last change.
57069         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57070
57071 2008-04-20  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57074         config.h. Provide _mkdir based fallback for mingw.
57075         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57076         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57077         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57078         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57079         rather than defining mkdir in config.h.
57080         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57081         (gl_SYS_STAT_H_DEFAULTS): New macro.
57082         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57083         HAVE_IO_H any more.
57084         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57085         HAVE_DECL_MKDIR and HAVE_IO_H.
57086
57087 2008-04-20  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/isapipe.c: Port to native Windows platforms.
57090
57091 2008-04-20  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57094
57095 2008-04-21  Eric Blake  <ebb9@byu.net>
57096
57097         Work around preprocessors that don't handle UINTMAX_MAX.
57098         * lib/memchr2.c (memchr2): Avoid embedded #if.
57099         Reported by Alain Guibert, fix suggested by Bruno Haible.
57100
57101 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57102
57103         * doc/posix-functions/strftime.texi (strftime): Explain better
57104         Windows incompatibility.  Suggested by Micah Cowan
57105         <micah@cowan.name>.
57106
57107 2008-04-20  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57110         unistr/u8-mblen.
57111
57112 2008-04-20  Bruno Haible  <bruno@clisp.org>
57113
57114         Fix test failure on platforms with non-GNU iconv.
57115         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57116         (U_TO_U8): Use it, rather than u16_to_u8.
57117         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57118         units at the end of the input string.
57119         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57120
57121 2008-04-20  Bruno Haible  <bruno@clisp.org>
57122
57123         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57124         when the resulting length is 0.
57125         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57126
57127 2008-04-20  Bruno Haible  <bruno@clisp.org>
57128
57129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57130         works.
57131         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57132
57133 2008-04-20  Bruno Haible  <bruno@clisp.org>
57134
57135         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57136         * modules/tsearch-tests (configure.ac): Test for initstate function.
57137
57138 2008-04-20  Bruno Haible  <bruno@clisp.org>
57139
57140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57141         for nlink_t if missing.
57142         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57143
57144 2008-04-19  Bruno Haible  <bruno@clisp.org>
57145
57146         Work around snprintf bug on Linux libc5.
57147         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57149         gl_SNPRINTF_SIZE1.
57150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57151         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57152         that test failed.
57153         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57154         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57155         * modules/snprintf (Files): Add m4/printf.m4.
57156         * modules/vsnprintf (Files): Likewise.
57157         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57158         * doc/posix-functions/vsnprintf.texi: Likewise.
57159
57160 2008-04-19  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57163         from 0.0058 to less than 10^-7.
57164
57165 2008-04-19  Bruno Haible  <bruno@clisp.org>
57166
57167         Fix rounding when a precision is given.
57168         * lib/vasnprintf.c (is_borderline): New function.
57169         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57170         9...9x.
57171         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57172         %e, %g.
57173         * tests/test-vasprintf-posix.c (test_function): Likewise.
57174         * tests/test-snprintf-posix.h (test_function): Likewise.
57175         * tests/test-sprintf-posix.h (test_function): Likewise.
57176         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57177         * tests/test-printf-posix.h (test_function): Likewise.
57178         * tests/test-printf-posix.output: Update.
57179         Reported by John Darrington <john@darrington.wattle.id.au> via
57180         Ben Pfaff <blp@cs.stanford.edu>.
57181
57182 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57183
57184         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57185         Suggested by Bruno Haible <bruno@clisp.org>.
57186
57187 2008-04-17  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57190         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57191         implementation.
57192         Patch by Bruce Merry <bmerry@gmail.com>.
57193
57194 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57195
57196         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57197         doesn't work under Windows.
57198
57199 2008-04-16  Bruno Haible  <bruno@clisp.org>
57200
57201         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57202         New macros.
57203         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57204         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57205         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57206         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57207         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57208         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57209         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57210         macros.
57211         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57212         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57213         Northern Sotho, Uighur.
57214
57215 2008-04-16  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57218         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57219         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57220         Reported by Daniel Bergström <daniel@octocode.com>.
57221
57222 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57223             Bruno Haible  <bruno@clisp.org>
57224
57225         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57226         function.
57227         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57228         New functions, mostly extracted from gl_locale_name_default.
57229         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57230
57231 2008-04-16  Eric Blake  <ebb9@byu.net>
57232
57233         Adjust strtod detection to catch glibc 2.7 bug.
57234         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57235         Reported by John Gatewood Ham.
57236
57237 2008-04-16  Bruno Haible  <bruno@clisp.org>
57238
57239         Add tentative support for Linux libc5.
57240         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57241         * lib/fpurge.c (fpurge): Likewise.
57242         * lib/freadable.c (freadable): Likewise.
57243         * lib/freadahead.c (freadahead): Likewise.
57244         * lib/freading.c (freading): Likewise.
57245         * lib/freadptr.c (freadptr): Likewise.
57246         * lib/freadseek.c (freadptrinc): Likewise.
57247         * lib/fseeko.c (rpl_fseeko): Likewise.
57248         * lib/fseterr.c (fseterr): Likewise.
57249         * lib/fwritable.c (fwritable): Likewise.
57250         * lib/fwriting.c (fwriting): Likewise.
57251         Reported by Alain Guibert <alguibert+bts@free.fr>.
57252
57253 2008-04-15  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/mathl (configure.ac): Define module indicator.
57256
57257 2008-04-15  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/logl.c (logl): Remove unused variables.
57260
57261 2008-04-15  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57264         fails.
57265
57266 2008-04-15  Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/trim.c (trim2): Fix argument of isspace() macro.
57269
57270 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57271
57272         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57273         to 0.
57274         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57275
57276 2008-04-14  Bruno Haible  <bruno@clisp.org>
57277
57278         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57279         AC_LANG_PROGRAM argument.
57280         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57281         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57283         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57284         * m4/math_h.m4 (gl_MATH_H): Likewise.
57285         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57286         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57287         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57288         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57289         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57290         * m4/regex.m4 (gl_REGEX): Likewise.
57291         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57292         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57295         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57296         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57299
57300 2008-04-14  Jim Meyering  <meyering@redhat.com>
57301
57302         test-strtod: fix typos: s/abs/fabs/
57303         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57304
57305 2008-04-13  Bruno Haible  <bruno@clisp.org>
57306
57307         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57308         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57309         module is also used and while not building the reloc-wrapper.
57310
57311 2008-04-13  Bruno Haible  <bruno@clisp.org>
57312
57313         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57314
57315 2008-04-13  Bruno Haible  <bruno@clisp.org>
57316
57317         Fix AIX compilation failure introduced on 2008-04-02.
57318         * tests/test-frexp.c (exp): Undefine before redefining.
57319         * tests/test-frexpl.c (exp): Likewise.
57320
57321 2008-04-13  Bruno Haible  <bruno@clisp.org>
57322
57323         Work around a HP-UX stdio bug.
57324         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57325         * tests/test-ftello.c (main): Likewise.
57326         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57327         * doc/posix-functions/ftello.texi: Likewise.
57328
57329 2008-04-13  Bruno Haible  <bruno@clisp.org>
57330
57331         Make test-signbit pass on HP-UX/hppa.
57332         * tests/test-signbit.c (minus_zerol): New variable.
57333         (test_signbitl): Use it.
57334
57335 2008-04-13  Bruno Haible  <bruno@clisp.org>
57336
57337         Make truncl work on OSF/1 4.0.
57338         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57339         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57340         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57342         HAVE_DECL_TRUNCL.
57343         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57344         HAVE_DECL_TRUNCL.
57345         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57346
57347 2008-04-13  Bruno Haible  <bruno@clisp.org>
57348
57349         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57350
57351 2008-04-13  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57354         expression, so as to avoid HP-UX 11 cc compiler bug.
57355
57356 2008-04-13  Bruno Haible  <bruno@clisp.org>
57357
57358         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57359
57360 2008-04-13  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/git-merge-changelog.c: Remove empty declaration outside of
57363         functions.
57364
57365 2008-04-13  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57368
57369 2008-04-13  Bruno Haible  <bruno@clisp.org>
57370
57371         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57372         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57373         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57374         also if it exists but lacks definitions of the SHUT_* macros.
57375         * modules/sys_socket (Description): Update.
57376         Reported by Elbert Pol <e.pol@chello.nl>.
57377
57378 2008-04-13  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/localcharset.c (OS2): Don't redefine if already defined.
57381         Reported by Elbert Pol <e.pol@chello.nl>.
57382
57383 2008-04-13  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/binary-io.h [__EMX__]: Include <io.h>.
57386         Reported by Elbert Pol <e.pol@chello.nl>.
57387
57388 2008-04-12  Bruno Haible  <bruno@clisp.org>
57389
57390         * lib/fpucw.h: Enable the definitions also for x86_64.
57391         Needed for NetBSD/x86_64.
57392         Reported by Thomas Klausner <tk@giga.or.at>.
57393
57394 2008-04-12  Bruno Haible  <bruno@clisp.org>
57395
57396         * tests/test-strtod.c: Include isnand.h.
57397         (main): Use isnand instead of isnan.
57398         Reported by Jim Meyering.
57399
57400 2008-04-12  Bruno Haible  <bruno@clisp.org>
57401
57402         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57403         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57404
57405 2008-04-12  Jim Meyering  <meyering@redhat.com>
57406
57407         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57408
57409 2008-04-12  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57412         Reported by Elbert Pol <e.pol@chello.nl>.
57413
57414 2008-04-12  Eric Blake  <ebb9@byu.net>
57415
57416         Work around Solaris 10 math.h bug.
57417         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57418         (gl_MATH_H_DEFAULTS): Set up default.
57419         * modules/math (Makefile.am): Replace new indicators.
57420         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57421         * tests/test-math.c (main): Test this.
57422         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57423         * doc/posix-headers/math.texi (math.h): Mention bug.
57424         Reported by Nelson H. F. Beebe and Jim Meyering.
57425
57426 2008-04-11  Bruno Haible  <bruno@clisp.org>
57427
57428         Adapt to future versions of Apple GCC.
57429         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57430         Reported by Peter O'Gorman <peter@pogma.com>.
57431
57432 2008-04-11  Bruno Haible  <bruno@clisp.org>
57433
57434         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57435
57436 2008-04-11  Bruno Haible  <bruno@clisp.org>
57437
57438         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57439
57440         * modules/getaddrinfo-tests (Makefile.am): Define
57441         test_getaddrinfo_LDADD.
57442
57443 2008-04-11  Bruno Haible  <bruno@clisp.org>
57444
57445         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57446         (init): Fix syntax error.
57447         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57448         is declared.
57449
57450 2008-04-11  Bruno Haible  <bruno@clisp.org>
57451
57452         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57453         * modules/glob (Depends-on): Add stdbool.
57454
57455 2008-04-11  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/trim.c: Include <string.h>.
57458
57459 2008-04-11  Eric Blake  <ebb9@byu.net>
57460
57461         Avoid compile failure on OS/2.
57462         * lib/regex_internal.h (internal_function): Disable optimization
57463         on OS/2 (__EMX__), where it caused compiler error.
57464         Reported by Elbert Pol.
57465
57466 2008-04-11  Bruno Haible  <bruno@clisp.org>
57467
57468         Flush the standard error stream before aborting. Needed on mingw.
57469         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57470         * tests/test-array_list.c (ASSERT): Likewise.
57471         * tests/test-array_oset.c (ASSERT): Likewise.
57472         * tests/test-avltree_list.c (ASSERT): Likewise.
57473         * tests/test-avltree_oset.c (ASSERT): Likewise.
57474         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57475         * tests/test-binary-io.c (ASSERT): Likewise.
57476         * tests/test-byteswap.c (ASSERT): Likewise.
57477         * tests/test-c-ctype.c (ASSERT): Likewise.
57478         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57479         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57480         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57481         * tests/test-c-strstr.c (ASSERT): Likewise.
57482         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57483         * tests/test-canonicalize.c (ASSERT): Likewise.
57484         * tests/test-carray_list.c (ASSERT): Likewise.
57485         * tests/test-ceilf1.c (ASSERT): Likewise.
57486         * tests/test-ceilf2.c (ASSERT): Likewise.
57487         * tests/test-ceill.c (ASSERT): Likewise.
57488         * tests/test-count-one-bits.c (ASSERT): Likewise.
57489         * tests/test-fbufmode.c (ASSERT): Likewise.
57490         * tests/test-fflush2.c (ASSERT): Likewise.
57491         * tests/test-floorf1.c (ASSERT): Likewise.
57492         * tests/test-floorf2.c (ASSERT): Likewise.
57493         * tests/test-floorl.c (ASSERT): Likewise.
57494         * tests/test-fopen.c (ASSERT): Likewise.
57495         * tests/test-fpending.c (ASSERT): Likewise.
57496         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57497         * tests/test-fpurge.c (ASSERT): Likewise.
57498         * tests/test-freadable.c (ASSERT): Likewise.
57499         * tests/test-freadahead.c (ASSERT): Likewise.
57500         * tests/test-freading.c (ASSERT): Likewise.
57501         * tests/test-freadptr.c (ASSERT): Likewise.
57502         * tests/test-freadptr2.c (ASSERT): Likewise.
57503         * tests/test-freadseek.c (ASSERT): Likewise.
57504         * tests/test-freopen.c (ASSERT): Likewise.
57505         * tests/test-frexp.c (ASSERT): Likewise.
57506         * tests/test-frexpl.c (ASSERT): Likewise.
57507         * tests/test-fseek.c (ASSERT): Likewise.
57508         * tests/test-fseeko.c (ASSERT): Likewise.
57509         * tests/test-fstrcmp.c (ASSERT): Likewise.
57510         * tests/test-ftell.c (ASSERT): Likewise.
57511         * tests/test-ftello.c (ASSERT): Likewise.
57512         * tests/test-func.c (ASSERT): Likewise.
57513         * tests/test-fwritable.c (ASSERT): Likewise.
57514         * tests/test-fwriting.c (ASSERT): Likewise.
57515         * tests/test-getdelim.c (ASSERT): Likewise.
57516         * tests/test-getline.c (ASSERT): Likewise.
57517         * tests/test-i-ring.c (ASSERT): Likewise.
57518         * tests/test-iconv-utf.c (ASSERT): Likewise.
57519         * tests/test-iconv.c (ASSERT): Likewise.
57520         * tests/test-isfinite.c (ASSERT): Likewise.
57521         * tests/test-isnand.c (ASSERT): Likewise.
57522         * tests/test-isnanf.c (ASSERT): Likewise.
57523         * tests/test-isnanl.h (ASSERT): Likewise.
57524         * tests/test-ldexpl.c (ASSERT): Likewise.
57525         * tests/test-linked_list.c (ASSERT): Likewise.
57526         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57527         * tests/test-localename.c (ASSERT): Likewise.
57528         * tests/test-lseek.c (ASSERT): Likewise.
57529         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57530         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57531         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57532         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57533         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57534         * tests/test-mbschr.c (ASSERT): Likewise.
57535         * tests/test-mbscspn.c (ASSERT): Likewise.
57536         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57537         * tests/test-mbspbrk.c (ASSERT): Likewise.
57538         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57539         * tests/test-mbsrchr.c (ASSERT): Likewise.
57540         * tests/test-mbsspn.c (ASSERT): Likewise.
57541         * tests/test-mbsstr1.c (ASSERT): Likewise.
57542         * tests/test-mbsstr2.c (ASSERT): Likewise.
57543         * tests/test-mbsstr3.c (ASSERT): Likewise.
57544         * tests/test-memchr2.c (ASSERT): Likewise.
57545         * tests/test-memmem.c (ASSERT): Likewise.
57546         * tests/test-open.c (ASSERT): Likewise.
57547         * tests/test-printf-frexp.c (ASSERT): Likewise.
57548         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57549         * tests/test-printf-posix.c (ASSERT): Likewise.
57550         * tests/test-quotearg.c (ASSERT): Likewise.
57551         * tests/test-rbtree_list.c (ASSERT): Likewise.
57552         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57553         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57554         * tests/test-round1.c (ASSERT): Likewise.
57555         * tests/test-roundf1.c (ASSERT): Likewise.
57556         * tests/test-roundl.c (ASSERT): Likewise.
57557         * tests/test-signbit.c (ASSERT): Likewise.
57558         * tests/test-sleep.c (ASSERT): Likewise.
57559         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57560         * tests/test-snprintf.c (ASSERT): Likewise.
57561         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57562         * tests/test-stat-time.c (ASSERT): Likewise.
57563         * tests/test-strcasestr.c (ASSERT): Likewise.
57564         * tests/test-strerror.c (ASSERT): Likewise.
57565         * tests/test-striconv.c (ASSERT): Likewise.
57566         * tests/test-striconveh.c (ASSERT): Likewise.
57567         * tests/test-striconveha.c (ASSERT): Likewise.
57568         * tests/test-strsignal.c (ASSERT): Likewise.
57569         * tests/test-strstr.c (ASSERT): Likewise.
57570         * tests/test-strtod.c (ASSERT): Likewise.
57571         * tests/test-trunc1.c (ASSERT): Likewise.
57572         * tests/test-trunc2.c (ASSERT): Likewise.
57573         * tests/test-truncf1.c (ASSERT): Likewise.
57574         * tests/test-truncf2.c (ASSERT): Likewise.
57575         * tests/test-truncl.c (ASSERT): Likewise.
57576         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57577         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57578         * tests/test-vasnprintf.c (ASSERT): Likewise.
57579         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57580         * tests/test-vasprintf.c (ASSERT): Likewise.
57581         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57582         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57583         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57584         * tests/test-vsnprintf.c (ASSERT): Likewise.
57585         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57586         * tests/test-wcwidth.c (ASSERT): Likewise.
57587         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57588         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57589         * tests/test-xvasprintf.c (ASSERT): Likewise.
57590         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57591         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57592         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57593         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57594         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57595         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57596         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57597         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57598         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57599         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57600         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57601         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57602         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57603         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57604         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57605         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57606         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57607         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57608         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57609         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57610         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57611         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57612         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57613         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57614         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57615         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57616         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57617         * tests/unictype/test-combining.c (ASSERT): Likewise.
57618         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57619         * tests/unictype/test-digit.c (ASSERT): Likewise.
57620         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57621         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57622         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57623         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57624         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57625         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57626         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57627         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57628         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57629         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57630         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57631         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57632         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57633         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57634         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57635         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57636         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57637         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57638         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57639         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57640         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57641         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57642         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57643         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57644         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57645         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57646         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57647         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57648         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57649         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57650         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57651         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57652         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57653         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57654         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57655         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57656         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57657         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57658         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57659         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57660         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57661         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57662         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57663         Reported by Eric Blake.
57664
57665 2008-04-11  Bruno Haible  <bruno@clisp.org>
57666
57667         * lib/wchar.in.h: Tweak comment.
57668
57669 2008-04-11  Bruno Haible  <bruno@clisp.org>
57670
57671         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57672         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57673         gl_COMMON.
57674         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57675
57676 2008-04-11  Bruno Haible  <bruno@clisp.org>
57677
57678         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57679
57680 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57681
57682         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57683         of attempting to use non-existing /dev/*random.  Based on patch
57684         from Adam Strzelecki <ono@java.pl> in
57685         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57686
57687 2008-04-08  Bruno Haible  <bruno@clisp.org>
57688
57689         Add tentative support for emx+gcc.
57690         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57691         * lib/fpurge.c (fpurge): Likewise.
57692         * lib/freadable.c (freadable): Likewise.
57693         * lib/freadahead.c (freadahead): Likewise.
57694         * lib/freading.c (freading): Likewise.
57695         * lib/freadptr.c (freadptr): Likewise.
57696         * lib/freadseek.c (freadptrinc): Likewise.
57697         * lib/fseeko.c (rpl_fseeko): Likewise.
57698         * lib/fseterr.c (fseterr): Likewise.
57699         * lib/fwritable.c (fwritable): Likewise.
57700         * lib/fwriting.c (fwriting): Likewise.
57701         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57702
57703 2008-04-09  Eric Blake  <ebb9@byu.net>
57704
57705         Avoid some autoconf warnings.
57706         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57707         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57708         * m4/afs.m4 (gl_AFS): Likewise.
57709         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57710         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57711         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57712         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57713         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57714         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57715         (AC_CHECK_DECLS_ONCE): Likewise.
57716         Rename file...
57717         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57718         gnulib-tool requires autoconf 2.59 or better.
57719         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57720
57721 2008-04-08  Eric Blake  <ebb9@byu.net>
57722
57723         Use 'git describe --match' if present (added in git 1.5.5).
57724         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57725         if possible.
57726
57727 2008-04-08  Bruno Haible  <bruno@clisp.org>
57728
57729         Add tentative support for OpenServer.
57730         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57731         _ptr, _cnt.
57732         * lib/fpurge.c (fpurge): Likewise.
57733         * lib/freadable.c (freadable): Likewise.
57734         * lib/freadahead.c (freadahead): Likewise.
57735         * lib/freading.c (freading): Likewise.
57736         * lib/freadptr.c (freadptr): Likewise.
57737         * lib/freadseek.c (freadptrinc): Likewise.
57738         * lib/fseeko.c (rpl_fseeko): Likewise.
57739         * lib/fseterr.c (fseterr): Likewise.
57740         * lib/fwritable.c (fwritable): Likewise.
57741         * lib/fwriting.c (fwriting): Likewise.
57742         Reported by Roger Cornelius <rac@tenzing.org> and
57743         Brian K. White <brian@aljex.com>.
57744
57745 2008-04-06  Jim Meyering  <meyering@redhat.com>
57746
57747         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57748
57749 2008-04-06  Bruno Haible  <bruno@clisp.org>
57750
57751         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57752         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57753         * tests/test-printf-posix.sh: Likewise.
57754         * tests/test-vfprintf-posix.sh: Likewise.
57755         * tests/test-vprintf-posix.sh: Likewise.
57756         * tests/test-xprintf-posix.sh: Likewise.
57757
57758 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57759
57760         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57761         hide error from 'ls', needed on OS/2.
57762         Report by Elbert Pol <elbert.pol@gmail.com>.
57763
57764 2008-04-04  Eric Blake  <ebb9@byu.net>
57765
57766         Make test-fseeko.c failures meaningful.
57767         * tests/test-fseeko.c: Print line number on failure.
57768         * tests/test-fseek.c: Likewise.
57769         Reported by Nelson H. F. Beebe.
57770
57771         Improve strtod bug detection check.
57772         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57773         required for Solaris 10.
57774         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57775
57776 2008-04-04  Bruno Haible  <bruno@clisp.org>
57777
57778         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57779         by m4/setenv.m4.
57780
57781 2008-04-03  Eric Blake  <ebb9@byu.net>
57782
57783         Ensure sane .version contents.
57784         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57785         version string.
57786         * build-aux/git-version-gen: Improve documentation.
57787
57788         Make GNU make output nicer.
57789         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57790         MAKECMDGOALS to enforce message for all command line targets.  Set
57791         srcdir for use in maint.mk.
57792
57793         Another maintainer tweak.
57794         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57795         a target that regenerates version.
57796
57797 2008-04-03  Jim Meyering  <meyering@redhat.com>
57798
57799         vc-list-files: don't cause coreutils "make po-check" failure
57800         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57801
57802 2008-04-03  Eric Blake  <ebb9@byu.net>
57803
57804         Allow VPATH usage of vc-list-files.
57805         * build-aux/vc-list-files (scriptversion): Add timestamp.
57806         (options): Add --help, --version, -C.
57807         (CVS): Support installed cvsu.
57808
57809 2008-04-02  Bruno Haible  <bruno@clisp.org>
57810
57811         Avoid some "statement with no effect" warnings from gcc.
57812         * tests/test-wctype.c (main): Explicitly ignore unused values.
57813         Reported by Jim Meyering.
57814
57815 2008-04-02  Jim Meyering  <meyering@redhat.com>
57816
57817         Avoid some warnings from "gcc -Wshadow".
57818         * tests/test-frexp.c (exp): Define to a different identifier.
57819         * tests/test-frexpl.c (exp): Likewise.
57820
57821 2008-04-03  Jim Meyering  <meyering@redhat.com>
57822
57823         bootstrap: remove dangling *.[ch] symlinks from lib
57824         * build-aux/bootstrap [dangling symlink removal]: Move find's
57825         -depth option to precede all others, to avoid a warning.
57826         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57827
57828 2008-04-02  Bruno Haible  <bruno@clisp.org>
57829
57830         Avoid some warnings from "gcc -Wshadow".
57831         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57832         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57833         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57834         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57835         Reported by Jim Meyering.
57836
57837 2008-04-01  Bruno Haible  <bruno@clisp.org>
57838
57839         Fix test to work on IRIX 6.5 with cc.
57840         * tests/test-math.c (numeric_equal): New function.
57841         (main): Use it.
57842
57843 2008-04-01  Bruno Haible  <bruno@clisp.org>
57844
57845         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57846
57847 2008-04-01  Bruno Haible  <bruno@clisp.org>
57848
57849         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57850         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57851         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57852         (Depends-on): Remove math.
57853
57854         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57855         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57856         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57857         (Depends-on): Remove math.
57858
57859         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57860         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57861         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57862         (Depends-on): Remove math.
57863         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57864         (Depends-on): Remove math.
57865
57866         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57867         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57868         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57869         (Depends-on): Remove math.
57870         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57871         (Depends-on): Remove math.
57872
57873         * tests/test-round1.c: Include nan.h.
57874         (main): Use NaNd instead of NAN.
57875         * modules/round-tests (Files): Add tests/nan.h.
57876
57877         * tests/test-trunc1.c: Include nan.h.
57878         (main): Use NaNd instead of NAN.
57879         * modules/trunc-tests (Files): Add tests/nan.h.
57880
57881         * tests/test-roundf1.c: Include nan.h.
57882         (main): Use NaNf instead of NAN.
57883         * modules/roundf-tests (Files): Add tests/nan.h.
57884
57885         * tests/test-truncf1.c: Include nan.h.
57886         (main): Use NaNf instead of NAN.
57887         * modules/truncf-tests (Files): Add tests/nan.h.
57888
57889         * tests/test-ceilf1.c: Include nan.h.
57890         (main): Use NaNf instead of NAN.
57891         * modules/ceilf-tests (Files): Add tests/nan.h.
57892
57893         * tests/test-floorf1.c: Include nan.h.
57894         (main): Use NaNf instead of NAN.
57895         * modules/floorf-tests (Files): Add tests/nan.h.
57896
57897         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57898         (main): Use NaNf instead of NAN.
57899         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57900
57901         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57902         (main): Use NaNd instead of NAN.
57903         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57904
57905         * tests/test-frexp.c: Include nan.h.
57906         (main): Use NaNd instead of NAN.
57907         * modules/frexp-tests (Files): Add tests/nan.h.
57908
57909         * lib/isnan.c: Don't include <math.h>.
57910         (FUNC): Don't use NAN macro.
57911         * modules/isnand-nolibm (Depends-on): Remove math.
57912         * modules/isnanf-nolibm (Depends-on): Remove math.
57913         * modules/isnanl (Depends-on): Remove math.
57914         * modules/isnanl-nolibm (Depends-on): Remove math.
57915
57916         * tests/nan.h: New file.
57917
57918 2008-04-01  Eric Blake  <ebb9@byu.net>
57919
57920         Fix typos.
57921         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57922         values to be the right type.
57923
57924         For now, cater to gnulib strtod inaccuracies.
57925         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57926         fractional results.  While not as nice from a QoI perspective, it
57927         is a quicker patch than correctly implementing decimal to binary
57928         rounding.
57929
57930 2008-03-31  Eric Blake  <ebb9@byu.net>
57931
57932         Guarantee a definition of NAN.
57933         * lib/math.in.h (NAN): Define if missing.
57934         * tests/test-math.c (main): Test it.
57935         * doc/posix-headers/math.texi (math.h): Document this.
57936         * lib/isnan.c (rpl_isnand): Use it.
57937         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57938         * tests/test-floorf1.c (NaN): Likewise.
57939         * tests/test-frexp.c (NaN): Likewise.
57940         * tests/test-isnand.c (NaN): Likewise.
57941         * tests/test-isnanf.c (NaN): Likewise.
57942         * tests/test-round1.c (NaN): Likewise.
57943         * tests/test-roundf1.c (NaN): Likewise.
57944         * tests/test-snprintf-posix.h (NaN): Likewise.
57945         * tests/test-sprintf-posix.h (NaN): Likewise.
57946         * tests/test-trunc1.c (NaN): Likewise.
57947         * tests/test-truncf1.c (NaN): Likewise.
57948         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57949         * tests/test-vasprintf-posix.c (NaN): Likewise.
57950         * modules/isnand-nolibm (Depends-on): Add math.
57951         * modules/isnanf-nolibm (Depends-on): Likewise.
57952         * modules/isnanl (Depends-on): Likewise.
57953         * modules/isnanl-nolibm (Depends-on): Likewise.
57954         * modules/snprintf-posix-tests (Depends-on): Likewise.
57955         * modules/sprintf-posix-tests (Depends-on): Likewise.
57956         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57957         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57958         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57959         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57960
57961 2008-03-31  Bruno Haible  <bruno@clisp.org>
57962
57963         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57964         * doc/posix-functions/strtod.texi: Likewise.
57965
57966 2008-03-31  Bruno Haible  <bruno@clisp.org>
57967
57968         * tests/test-strtod.c (main): Don't use C99 syntax.
57969
57970 2008-03-31  Bruno Haible  <bruno@clisp.org>
57971
57972         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57973         Reported by Eric Blake.
57974
57975 2008-03-31  Jim Meyering  <meyering@redhat.com>
57976
57977         Don't compare actual signbit return values.
57978         * tests/test-strtod.c (main): Rather, compare only their
57979         zero/non-zero nature.
57980
57981 2008-03-31  Eric Blake  <ebb9@byu.net>
57982
57983         More strtod documentation.
57984         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57985         failures as distinct bugs.
57986
57987 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57990         Problem reported by Erik Benada in
57991         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57992
57993 2008-03-30  Bruno Haible  <bruno@clisp.org>
57994
57995         * tests/test-strtod.c: Add comments about which assertion fails on which
57996         platform.
57997         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57998
57999 2008-03-30  Eric Blake  <ebb9@byu.net>
58000
58001         Test signbit behavior on zeros.
58002         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58003         (test_signbitd, test_signbitl): Likewise.
58004
58005         More strtod touchups.
58006         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58007         sign of negative underflow, for now.  Use .5, not .1.
58008         * doc/posix-functions/strtod.texi (strtod): Mention these
58009         limitations.
58010         Reported by Jim Meyering.
58011
58012 2008-03-30  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58015         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58016
58017 2008-03-30  Bruno Haible  <bruno@clisp.org>
58018
58019         Avoid failure when attempting to return empty iconv results on some
58020         platforms.
58021         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58022         allocation, don't report ENOMEM when the resulting string is empty.
58023
58024 2008-03-30  Bruno Haible  <bruno@clisp.org>
58025
58026         Fix buffer overrun.
58027         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58028         Don't consider the width for tmp_length. Check count against tmp_length
58029         before doing the padding. Ensure enough allocation during padding.
58030
58031 2008-03-30  Eric Blake  <ebb9@byu.net>
58032
58033         strtod touchups.
58034         * lib/strtod.c (strtod): Avoid compiler warnings.
58035         Reported by Jim Meyering.
58036
58037 2008-03-30  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58040         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58041         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58042         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58043         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58044         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58045         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58046         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58047
58048         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58049         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58050         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58051         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58052         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58053         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58054         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58055         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58056
58057         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58058         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58059         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58060         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58061         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58062         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58063         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58064         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58065
58066         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58067         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58068
58069         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58070         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58071
58072         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58073         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58074
58075         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58077         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58078
58079         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58081         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58082
58083         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58085         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58086
58087         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58089         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58090
58091         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58092         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58093         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58094         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58095         (Depends-on): Add EOVERFLOW.
58096         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58097         (Depends-on): Add EOVERFLOW.
58098         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58099         (Depends-on): Add EOVERFLOW.
58100         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58101         (Depends-on): Add EOVERFLOW.
58102         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58103         (Depends-on): Add EOVERFLOW.
58104         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58105         (Depends-on): Add EOVERFLOW.
58106         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58107         (Depends-on): Add EOVERFLOW.
58108         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58109         (Depends-on): Add EOVERFLOW.
58110
58111         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58112         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58113         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58114
58115         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58117         * modules/snprintf (Depends-on): Add EOVERFLOW.
58118
58119         * lib/poll.c (EOVERFLOW): Remove fallback.
58120         * modules/poll (Depends-on): Add EOVERFLOW.
58121
58122         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58123         * modules/getugroups (Depends-on): Add EOVERFLOW.
58124
58125         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58126         * modules/getdelim (Depends-on): Add EOVERFLOW.
58127
58128         * lib/ftell.c (EOVERFLOW): Remove fallback.
58129         * modules/ftell (Depends-on): Add EOVERFLOW.
58130
58131         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58132         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58133         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58134
58135         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58136
58137         * modules/EOVERFLOW-tests: New file.
58138         * tests/test-EOVERFLOW.c: New file.
58139
58140         * modules/EOVERFLOW: New file.
58141         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58142
58143 2008-03-30  Bruno Haible  <bruno@clisp.org>
58144
58145         Fix bug introduced on 2007-06-10.
58146         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58147         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58148
58149 2008-03-30  Bruno Haible  <bruno@clisp.org>
58150
58151         Improve freadseek's efficiency after ungetc.
58152         * lib/freadseek.c: Include freadahead.h.
58153         (freadptrinc): New function, extracted from freadseek.
58154         (freadseek): Use it in a loop. Use freadahead to determine the number
58155         of loop iterations.
58156         * modules/freadseek (Depends-on): Add freadahead.
58157         (configure.ac): Require AC_C_INLINE.
58158
58159 2008-03-30  Bruno Haible  <bruno@clisp.org>
58160
58161         * lib/freadseek.c (freadseek): Don't ignore the return value of
58162         freadptr.
58163
58164 2008-03-29  Eric Blake  <ebb9@byu.net>
58165
58166         Add hex float support.
58167         * modules/strtod (Depends-on): Add c-ctype.
58168         (Link): Mention POW_LIB.
58169         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58170         whitespace between 'e' and exponent.
58171         * tests/test-strtod.c (main): Enable hex float tests.
58172         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58173         now provides.
58174
58175         Document various strtod bugs, with some fixes.
58176         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58177         "-0x", "inf", "nan", and hex constants.
58178         * doc/posix-functions/atof.texi (atof): Likewise.
58179         * modules/stdlib (Makefile.am): Support strtod.
58180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58181         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58182         detect additional strtod bugs.
58183         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58184         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58185         bool where appropriate.  Parse 'inf' and 'nan'.
58186         * tests/test-strtod.c: New file.
58187         * modules/strtod (Depends-on): Add stdbool, stdlib.
58188         (configure.ac): Turn on module indicator.
58189         * modules/strtod-tests: New module.
58190
58191 2008-03-29  Eric Blake  <ebb9@byu.net>
58192
58193         Fix ftell on mingw.
58194         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58195         * modules/ftell-tests (Depends-on): Add binary-io.
58196         * modules/ftello-tests (Depends-on): Likewise.
58197         * tests/test-ftell.c (main): Enhance test to cover behavior after
58198         ungetc.  Enforce binary mode.
58199         * tests/test-ftello.c (main): Likewise.
58200
58201         Pass test-freadseek on cygwin.
58202         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58203         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58204         ungetc buffer.
58205
58206         * tests/test-fflush2.c (main): Fix typo.
58207
58208 2008-03-29  Bruno Haible  <bruno@clisp.org>
58209
58210         * tests/test-fflush2.c (main): Temporarily disable the contents of
58211         this test.
58212         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58213         Reported by Eric Blake.
58214
58215 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58216
58217         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58218         (GC_SHA224_DIGEST_SIZE): Add.
58219
58220         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58221         (gc_hash_digest_length): Likewise.
58222         (gc_hash_buffer): Likewise.
58223
58224 2008-03-25  Bruno Haible  <bruno@clisp.org>
58225
58226         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58227         detail which gettext release to use.
58228         Reported by Simon Josefsson.
58229
58230 2008-03-26  Jim Meyering  <meyering@redhat.com>
58231
58232         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58233         * modules/gnumakefile (clean-GNUmakefile): Also, use
58234         test ... && ... || : syntax rather than if-then ... fi.
58235
58236         gnumakefile: Don't double-quote-expand $(VPATH) value.
58237         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58238
58239 2008-03-24  Eric Blake  <ebb9@byu.net>
58240
58241         Alter GNUmakefile to install into top directory.
58242         * modules/maintainer-makefile: Split, and add dependency...
58243         * modules/gnumakefile: to this new module.
58244         * build-aux/GNUmakefile: Move...
58245         * top/GNUmakefile: ...here.
58246         * build-aux/maint.mk: Move...
58247         * top/maint.mk: ...here.
58248         * MODULES.html.sh (Support for maintaining...): Document new
58249         module.
58250
58251 2008-03-23  Bruno Haible  <bruno@clisp.org>
58252
58253         * gnulib-tool: New options --vc-files, --no-vc-files.
58254         (func_usage): Document them.
58255         (vc_files): New variable.
58256         (func_import): Consider vc_files.
58257         (func_create_testdir): Set vc_files to empty.
58258         Suggested by Jim Meyering and Karl Berry.
58259
58260 2008-03-23  Bruno Haible  <bruno@clisp.org>
58261
58262         Fix regex compilation error on HP-UX 11.
58263         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58264         * modules/regex (Files): Add m4/mbstate_t.m4.
58265         Reported by Ton Voon <ton.voon@altinity.com>.
58266
58267 2008-03-23  Bruno Haible  <bruno@clisp.org>
58268
58269         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58270
58271 2008-03-23  Eric Blake  <ebb9@byu.net>
58272             Bruno Haible  <bruno@clisp.org>
58273
58274         Install files from top/ in the destination directory.
58275         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58276         augmentation also for the files from top/.
58277         (func_import, func_create_testdir): Rewrite file names:
58278         top/filename -> filename.
58279
58280 2008-03-23  Bruno Haible  <bruno@clisp.org>
58281
58282         Tweak "gnulib --version" output.
58283         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58284
58285 2008-03-23  Bruno Haible  <bruno@clisp.org>
58286
58287         Tweak "gnulib --version" output.
58288         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58289         rather than contents of ChangeLog, when possible.
58290
58291 2008-03-21  Eric Blake  <ebb9@byu.net>
58292
58293         More --version tweaks.
58294         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58295         date of last ChangeLog entry.
58296
58297 2008-03-21  Jim Meyering  <meyering@redhat.com>
58298
58299         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58300
58301 2008-03-20  Eric Blake  <ebb9@byu.net>
58302
58303         VPATH fix.
58304         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58305
58306 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58307
58308         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58309         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58310
58311 2008-03-20  Eric Blake  <ebb9@byu.net>
58312
58313         Sync GNUmakefile with coreutils.
58314         * build-aux/GNUmakefile (have-Makefile): Rename...
58315         (_have-Makefile): ...to this, for namespace consideration.
58316         (GNUmakefile.cfg): Include, if present.
58317         (_autoreconf): Define a default.
58318         (_is-dist-target): New rule for rebuilds to pick up intra-release
58319         version.
58320         (maint-cfg.mk): Rename...
58321         (cfg.mk): ...to this.
58322
58323 2008-03-18  Jim Meyering  <meyering@redhat.com>
58324
58325         New script and module: mktempd
58326         * MODULES.html.sh (maint+release support): Add mktempd.
58327         * build-aux/mktempd: New file.
58328         * modules/mktempd: New file.
58329
58330 2008-03-15  Jim Meyering  <meyering@redhat.com>
58331
58332         Undo last change.
58333         * lib/sha1.c, lib/md5.c: 63 != ~63.
58334         Reported by Andreas Schwab.
58335
58336         sha1.c, md5.c: Hoist a redundant expression.
58337         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58338         "ctx->buflen" only once, before calling *_process_block.
58339         * lib/md5.c (md5_process_bytes): Likewise.
58340
58341 2008-03-14  Eric Blake  <ebb9@byu.net>
58342
58343         Bump copyright year in files generated by gnulib-tool.
58344         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58345         gnulib-tool, rather than hard-coding it.
58346
58347         Fix 'gnulib-tool --version' output to work with git.
58348         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58349         (startup): ...here.
58350         (func_version): Use it to invoke git-version-gen, rather than
58351         relying on CVS keyword expansion.  Modernize wording.
58352         (cvsdatestamp, last_checkin_date, version): Kill unused
58353         variables.
58354
58355 2008-03-12  Jim Meyering  <meyering@redhat.com>
58356
58357         Recognize optional cast of the argument to free.
58358         * build-aux/useless-if-before-free: Update regexps.
58359
58360         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58361
58362 2008-03-11  Bruno Haible  <bruno@clisp.org>
58363
58364         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58365         by a single package.
58366         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58367         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58368         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58369         Reported by Sam Steingold <sds@gnu.org>.
58370
58371 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58372
58373         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58374         repositories.
58375
58376 2008-03-11  Bruno Haible  <bruno@clisp.org>
58377
58378         Avoid conflicts between local macro definitions.
58379         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58380         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58381
58382 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58383             Bruno Haible  <bruno@clisp.org>
58384
58385         Make va_copy work with some version of xlc on AIX 5.1.
58386         * lib/stdarg.in.h: New file.
58387         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58388         On AIX, use a <stdarg.h> file substitute.
58389         * modules/stdarg (Files): Add lib/stdarg.in.h.
58390         (Depends-on): Add include_next.
58391         (Makefile.am): Build a stdarg.h substitute if requested.
58392         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58393
58394 2008-03-10  Bruno Haible  <bruno@clisp.org>
58395
58396         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58398         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58399
58400 2008-03-10  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/stdlib (Depends-on): Add include_next, remove
58403         absolute-header.
58404
58405 2008-03-09  Bruno Haible  <bruno@clisp.org>
58406
58407         * lib/freadahead.h (freadahead): Document more precisely.
58408         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58409         the sum of both buffer sizes.
58410         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58411         * NEWS: Document the change.
58412
58413 2008-03-09  Bruno Haible  <bruno@clisp.org>
58414
58415         Extend freadptr to return also the buffer size.
58416         * lib/freadptr.h (freadptr): Add sizep argument.
58417         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58418         (freadptr): Add sizep argument. Determine buffer size like freadahead
58419         does.
58420         * tests/test-freadptr.c: Don't include freadahead.h.
58421         (main): Adapt for new calling convention of freadptr.
58422         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58423         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58424         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58425         tests/test-freadptr2.sh.
58426         (Depends): Remove freadahead.
58427         (TESTS): Add test-freadptr2.sh.
58428         (check_PROGRAMS): Add test-freadptr2.
58429
58430 2008-03-09  Bruno Haible  <bruno@clisp.org>
58431
58432         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58433         Report and solution by Simon Josefsson.
58434
58435 2008-03-06  Bruno Haible  <bruno@clisp.org>
58436
58437         Make fflush after ungetc work on BSD platforms.
58438         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58439         * tests/test-fflush2.c: New file.
58440         * tests/test-fflush2.sh: New file.
58441         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58442         tests/test-fflush2.c.
58443         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58444         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58445
58446 2008-03-06  Eric Blake  <ebb9@byu.net>
58447
58448         Likewise for ftello.
58449         * modules/ftello (Dependencies): Add extensions.
58450         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58451
58452 2008-03-06  Bruno Haible  <bruno@clisp.org>
58453
58454         * modules/fseeko (Dependencies): Add extensions.
58455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58456         Needed on glibc systems.
58457
58458 2008-03-06  Bruno Haible  <bruno@clisp.org>
58459
58460         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58461         email address.
58462         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58463
58464 2008-03-06  Bruno Haible  <bruno@clisp.org>
58465
58466         * users.txt: Add libgnupdf.
58467
58468 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58469
58470         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58471         (Header File Substitutes, Function Substitutes,
58472         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58473         (Build robot for gnulib): Fix typo.
58474
58475 2008-03-06  Bruno Haible  <bruno@clisp.org>
58476
58477         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58478         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58479
58480 2008-03-06  Bruno Haible  <bruno@clisp.org>
58481
58482         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58483         * doc/gnulib.texi: Include it.
58484
58485 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58486
58487         * modules/func (License): Change license to unlimited; there was
58488         no LGPL parts in the module anyway.
58489
58490 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58491
58492         * modules/__func__: Renamed to modules/func.
58493         * modules/__func__-tests: Renamed to modules/func-tests.
58494         * tests/test-__func__.c: Renamed to tests/test-func.c.
58495         * m4/__func__.m4: Renamed to m4/func.m4.
58496         * doc/gnulib.texi (__func__): Section renamed to func.
58497         Suggested by Eric Blake <ebb9@byu.net>.
58498
58499 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58500
58501         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58502         about __func__.  Make example self-contained.  Suggested by Eric
58503         Blake <ebb9@byu.net>.
58504
58505         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58506         Suggested by Eric Blake <ebb9@byu.net>.
58507
58508 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58509
58510         * modules/__func__: New file.
58511         * modules/__func__-tests: New file.
58512         * tests/test-__func__.c: New file.
58513         * m4/__func__.m4: New file.
58514         * doc/gnulib.texi (__func__): Document __func__ module.
58515
58516 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58517
58518         * modules/byteswap (License): Re-license as LGPLv2+.
58519
58520 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58521
58522         * doc/Makefile: Add pdf target.
58523
58524 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58525
58526         * modules/inline (License): Use 'unlimited', since there are only
58527         *.m4 files in this module.
58528
58529 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58530             Bruno Haible  <bruno@clisp.org>
58531
58532         Add support for HP C 7.1 on OpenVMS 8.3.
58533         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58534
58535 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58536
58537         Update VMS specifics.
58538         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58539
58540 2008-03-02  Jim Meyering  <meyering@redhat.com>
58541
58542         Remove the last dependency on the "free" module.
58543         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58544         Reported by Bob Proulx.
58545
58546         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58547
58548         Remove useless "if" tests before free.  Deprecate "free" module.
58549         * doc/posix-functions/free.texi: Mention that this
58550         module is no longer useful.
58551         * modules/free (Notice): Say this module is obsolete.
58552         * modules/readutmp (Depends-on): Remove free.
58553         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58554         * lib/putenv.c (putenv): Likewise.
58555         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58556         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58557         * tests/test-c-strcasestr.c (main): Likewise.
58558         * tests/test-c-strstr.c (main): Likewise.
58559         * tests/test-mbscasestr1.c (main): Likewise.
58560         * tests/test-mbscasestr2.c (main): Likewise.
58561         * tests/test-mbsstr1.c (main): Likewise.
58562         * tests/test-mbsstr2.c (main): Likewise.
58563         * tests/test-memmem.c (main): Likewise.
58564         * tests/test-strcasestr.c (main): Likewise.
58565         * tests/test-striconv.c (main): Likewise.
58566         * tests/test-striconveh.c (main): Likewise.
58567         * tests/test-striconveha.c (main): Likewise.
58568         * tests/test-strstr.c (main): Likewise.
58569
58570         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58571
58572         bootstrap: sync from coreutils again
58573         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58574
58575 2008-03-01  Jim Meyering  <meyering@redhat.com>
58576
58577         bootstrap: sync from coreutils
58578         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58579         also when the target doesn't exist.
58580
58581 2008-03-01  Eric Blake  <ebb9@byu.net>
58582
58583         Fix bugs in last patch.
58584         * lib/memchr2.c (memchr2): Fix typo.
58585         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58586         extension.
58587         Reported by Bruce Korb.
58588
58589         New module 'memchr2'.
58590         * modules/memchr2: New file.
58591         * modules/memchr2-tests: Likewise.
58592         * lib/memchr2.h: Likewise.
58593         * lib/memchr2.c: Likewise, based on memchr.c.
58594         * tests/test-memchr2.c: New test.
58595         * MODULES.html.sh (String handling): Add memchr2.
58596
58597 2008-02-29  Bruno Haible  <bruno@clisp.org>
58598
58599         * modules/freadseek-tests: New file.
58600         * tests/test-freadseek.sh: New file.
58601         * tests/test-freadseek.c: New file.
58602
58603         New module 'freadseek'.
58604         * modules/freadseek: New file.
58605         * lib/freadseek.h: New file.
58606         * lib/freadseek.c: New file.
58607         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58608
58609 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58610
58611         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58612         wydawca.
58613
58614         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58615         program_invocation_name and program_invocation_short_name are
58616         present.
58617
58618 2008-02-28  Bruno Haible  <bruno@clisp.org>
58619
58620         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58621         * tests/test-freadptr.sh: Also test non-seekable stdin.
58622
58623 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58624
58625         * build-aux/bootstrap (source_base, m4_base)
58626         (doc_base, tests_base): New variables.
58627         (gnulib_tool_options): Do not hardcode base directories, use
58628         the above variables instead.
58629
58630 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58631
58632         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58633
58634 2008-02-28  Bruno Haible  <bruno@clisp.org>
58635
58636         * modules/freadptr-tests: New file.
58637         * tests/test-freadptr.sh: New file.
58638         * tests/test-freadptr.c: New file.
58639
58640         New module 'freadptr'.
58641         * modules/freadptr: New file.
58642         * lib/freadptr.h: New file.
58643         * lib/freadptr.c: New file.
58644         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58645
58646 2008-02-26  Karl Berry  <karl@freefriends.org>
58647
58648         Sync from Libtool:
58649         * libltdl/argz.c (argz_add, argz_count): New functions.
58650         * libltdl/argz.in.h: Declare them.
58651         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58652
58653 2008-02-22  Bruno Haible  <bruno@clisp.org>
58654
58655         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58656         is a pointer type.  Needed for HP-UX 10.
58657         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58658         * doc/posix-functions/gmtime_r.texi: Likewise.
58659         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58660
58661 2008-02-24  Bruno Haible  <bruno@clisp.org>
58662
58663         * modules/environ-tests: New file.
58664         * tests/test-environ.c: New file.
58665
58666         New module 'environ'.
58667         * modules/environ: New file.
58668         * lib/unistd.in.h (environ): New declaration.
58669         * m4/environ.m4: New file.
58670         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58671         after use.
58672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58673         HAVE_DECL_ENVIRON.
58674         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58675         HAVE_DECL_ENVIRON.
58676         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58677         wrong claim that 'environ' is missing on some systems.
58678         * modules/execute (Depends-on): Add environ.
58679         * lib/execute.c (environ): Remove fallback declaration.
58680         * modules/pipe (Depends-on): Add environ.
58681         * lib/pipe.c (environ): Remove fallback declaration.
58682         * modules/setenv (Depends-on): Add environ.
58683         * lib/setenv.c (environ): Remove fallback declaration.
58684         * modules/unsetenv (Depends-on): Add environ.
58685         * lib/unsetenv.c (environ): Remove fallback declaration.
58686         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58687         m4/environ.m4.
58688         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58689         (gl_PREREQ_UNSETENV): Likewise.
58690
58691 2008-02-24  Bruno Haible  <bruno@clisp.org>
58692
58693         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58694
58695 2008-02-20  Bob Proulx  <bob@proulx.com>
58696
58697         Enable use of older two part flavor 'git describe'.
58698         * build-aux/git-version-gen: If using the older two part flavor of
58699         git version then recreate the third part now present in the
58700         newer three part flavor of git describe.
58701
58702 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58703
58704         * lib/fts.c (fts_build): Typo correction to comment.
58705
58706 2008-02-17  Bruno Haible  <bruno@clisp.org>
58707
58708         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58709         generating no-op conflicts.
58710
58711 2008-02-17  Bruno Haible  <bruno@clisp.org>
58712
58713         Speed up by 10%.
58714         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58715         result_entries, rather than an index-based loop.
58716
58717 2008-02-17  Bruno Haible  <bruno@clisp.org>
58718
58719         Speed up by 25%.
58720         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58721         'hashcode_cached'.
58722         (entry_create): New function.
58723         (entry_hashcode): Use the cached hashcode if possible.
58724         (read_changelog_file, try_split_merged_entry): Use entry_create.
58725
58726 2008-02-17  Bruno Haible  <bruno@clisp.org>
58727
58728         Speed up from O(n^2) to O(n) for long ChangeLog files.
58729         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58730         (read_changelog_file): Change implementation of entries_reversed list
58731         to rbtreehash.
58732         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58733
58734 2008-02-17  Bruno Haible  <bruno@clisp.org>
58735
58736         New option --split-merged-entry.
58737         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58738         (find_paragraph_end, try_split_merged_entry): New functions.
58739         (long_options): Add option --split-merged-entry.
58740         (usage): Document option --split-merged-entry.
58741         (main): Implement option --split-merged-entry.
58742         Reported by Eric Blake.
58743
58744 2008-02-17  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/git-merge-changelog.c: Include c-strstr.h.
58747         (main): Support the "git pull --rebase" situation.
58748         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58749         Reported by Eric Blake.
58750
58751 2008-02-16  Eric Blake  <ebb9@byu.net>
58752
58753         Avoid doubling \ in common case of "c-maybe" quoting style.
58754         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58755         eliding outer quotes.
58756         * lib/quotearg.h: Document this.
58757         * tests/test-quotearg.c (result_strings, inputs, results_g)
58758         (flag_results, locale_results): Test it by adding a new string to
58759         each test group.
58760         (compare_strings): Test new string.
58761
58762 2008-02-13  Eric Blake  <ebb9@byu.net>
58763
58764         Avoid trigraph quoting in default output.
58765         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58766         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58767         unless explicitly requested.
58768         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58769
58770 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58771
58772         Don't rely on signed integer overflowing to negative value.
58773         * lib/getugroups.c (getugroups): Include <limits.h>.
58774         Instead, compare against INT_MAX, and increment only if the test passes.
58775
58776 2008-02-13  Jim Meyering  <meyering@redhat.com>
58777         and Eric Blake  <ebb9@byu.net>
58778
58779         Avoid shadowing warning and compile errors on Linux.
58780         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58781         forwarding macros on Linux.
58782         (dcgettext): Define a stub, for Linux.
58783         (results_g, main): Avoid warnings.
58784
58785 2008-02-12  Eric Blake  <ebb9@byu.net>
58786
58787         Silence warning in last patch.
58788         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58789
58790         Quotearg part 4: add tests, fix c-maybe colon quoting.
58791         * lib/quotearg.h: Improve documentation.
58792         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58793         escapes when adding outer quotes.  When quoting trigraphs, use
58794         valid C notation.  When quoting NUL, omit extra characters if next
58795         character is not digit.  Alter prototype.
58796         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58797         callers.
58798         * modules/quotearg-tests: New module.
58799         * tests/test-quotearg.c: New test.
58800
58801 2008-02-07  Eric Blake  <ebb9@byu.net>
58802
58803         Quotearg part 3: add flag to control outer quote elision.
58804         * lib/quotearg.h (c_maybe_quoting_style): New style.
58805         (enum quoting_flags): Better documentation of flags.
58806         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58807         c-maybe style.
58808         (quotearg_buffer_restyled): Handle new flag to elide outer
58809         quotes.
58810
58811         Quotearg part 2: add flag that can control NUL elision.
58812         * lib/quotearg.h (set_quoting_flags): New prototype.
58813         * lib/quotearg.c (struct quoting_options): Add flag field.
58814         (set_quoting_flags): New function.
58815         (quotearg_buffer_restyled): Add flags parameter.
58816         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58817         (quotearg_n_options): Set the flag, since length cannot be
58818         returned.
58819         (quoting_options_from_style): Default flags correctly.
58820
58821         Quotearg part 1: more wrappers, restore quotearg_char state.
58822         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58823         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58824         (quotearg_colon_mem): New wrappers.
58825         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58826         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58827         functions.
58828         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58829         (quotearg_colon_mem): New functions.
58830
58831 2008-02-11  Bruno Haible  <bruno@clisp.org>
58832
58833         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58834         library in the current directory: it does not work with parallel make.
58835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58836
58837 2008-02-11  Bruno Haible  <bruno@clisp.org>
58838
58839         * .gitattributes: New file.
58840
58841 2008-02-11  Jim Meyering  <meyering@redhat.com>
58842
58843         useless-if-before-free: Fix reversed exit values.
58844         * build-aux/useless-if-before-free: Use correct values
58845         for EXIT_MATCH and EXIT_NO_MATCH.
58846
58847         * build-aux/useless-if-before-free: Close stdout carefully.
58848
58849 2008-02-10  Bruno Haible  <bruno@clisp.org>
58850
58851         New module 'git-merge-changelog'.
58852         * modules/git-merge-changelog: New file.
58853         * lib/git-merge-changelog.c: New file.
58854
58855 2008-02-10  Jim Meyering  <meyering@redhat.com>
58856
58857         useless-if-before-free: New option: --list (-l).
58858
58859         useless-if-before-free: Don't exit immediately upon open failure.
58860         * build-aux/useless-if-before-free: Exit 2 for errors.
58861         Upon failure to open a file, don't exit immediately.
58862         Rather, just warn and continue with any remaining files.
58863
58864 2008-02-10  Bruno Haible  <bruno@clisp.org>
58865
58866         New abstract list operation 'node_set_value'.
58867         * lib/gl_list.h (gl_list_node_set_value): New function.
58868         (struct gl_list_implementation): New field node_set_value.
58869         * lib/gl_list.c (gl_list_node_set_value): New function.
58870         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58871         (gl_array_list_implementation): Update.
58872         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58873         (gl_carray_list_implementation): Update.
58874         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58875         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58876         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58877         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58878         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58879         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58880         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58881         Update.
58882         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58883         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58884         (gl_sublist_list_implementation): Update.
58885
58886 2008-02-10  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58889         Needed when ELEMENT is #defined to 'some_type *'.
58890
58891 2008-02-10  Jim Meyering  <meyering@redhat.com>
58892
58893         New script and module: useless-if-before-free
58894         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58895         * build-aux/useless-if-before-free: New file.
58896         * modules/useless-if-before-free: New file.
58897
58898         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58899
58900         xstrtol_error: Fix typo.
58901         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58902         s/exit_failure/exit_status/.
58903
58904 2008-02-09  Jim Meyering  <meyering@redhat.com>
58905
58906         New script and module: gitlog-to-changelog
58907         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58908         * modules/gitlog-to-changelog: New file.
58909         * build-aux/gitlog-to-changelog: New file.
58910
58911 2008-02-08  Jim Meyering  <meyering@redhat.com>
58912
58913         Avoid two "parameter unused" warnings.
58914         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58915         Mark "st" as used.
58916
58917         Use "git COMMAND", not "git-COMMAND".
58918         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58919         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58920         * build-aux/git-version-gen: Use "git status", not "git-status".
58921
58922 2008-02-07  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58925         Avoids a crash on Windows Vista.
58926         Reported by Adam Strzelecki <ono@java.pl> via
58927         Simon Josefsson <simon@josefsson.org>.
58928
58929 2008-02-06  Bruno Haible  <bruno@clisp.org>
58930
58931         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58932         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58933         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58935         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58937         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58938         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58946         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58947         left-adjust flag.
58948         * tests/test-snprintf-posix.h (test_function): Likewise.
58949         * tests/test-sprintf-posix.h (test_function): Likewise.
58950         * tests/test-vasprintf-posix.c (test_function): Likewise.
58951         * doc/posix-functions/fprintf.texi: Update.
58952         * doc/posix-functions/printf.texi: Update.
58953         * doc/posix-functions/snprintf.texi: Update.
58954         * doc/posix-functions/sprintf.texi: Update.
58955         * doc/posix-functions/vfprintf.texi: Update.
58956         * doc/posix-functions/vprintf.texi: Update.
58957         * doc/posix-functions/vsnprintf.texi: Update.
58958         * doc/posix-functions/vsprintf.texi: Update.
58959         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58960
58961 2008-02-06  Bruno Haible  <bruno@clisp.org>
58962
58963         Fix bug introduced on 2008-01-26.
58964         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58965
58966 2008-02-06  Bruno Haible  <bruno@clisp.org>
58967
58968         Fix bug introduced on 2007-06-10.
58969         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58970         !NEED_PRINTF_FLAG_ZERO.
58971
58972 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58973
58974         getloadavg: use libperfstat on AIX5
58975         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58976
58977 2008-02-03  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/diffseq.h: Add comments about required #includes.
58980         Reported by Michael Biggs <gnulib@doubleplum.net>.
58981
58982 2008-02-01  Bruno Haible  <bruno@clisp.org>
58983
58984         * users.txt: Add gnuit.
58985
58986 2008-01-31  Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/md4.c (set_uint32): Mark as inline.
58989         * lib/md5.c (set_uint32): Likewise.
58990         * lib/sha1.c (set_uint32): Likewise.
58991         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58992         * m4/md5.m4 (gl_MD5): Likewise.
58993         * m4/sha1.m4 (gl_SHA1): Likewise.
58994
58995 2008-01-31  Jim Meyering  <meyering@redhat.com>
58996
58997         Use "sizeof VAR", rather than a literal "4".
58998         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58999         * lib/md4.c (md4_read_ctx): Likewise.
59000         * lib/sha1.c (sha1_read_ctx): Likewise.
59001
59002 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59003
59004         * tests/test-sha1.c: New file, based on test-md5.c.
59005
59006         * modules/crypto/sha1-tests: New file.
59007
59008 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59009
59010         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59011
59012 2008-01-31  Jim Meyering  <meyering@redhat.com>
59013
59014         Prefer "sizeof v" over the equivalent "4".
59015         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59016         * lib/md5.c (set_uint32): Likewise.
59017         * lib/sha1.c (set_uint32): Likewise.
59018
59019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59020
59021         * lib/sha1.c (set_uint32): Mark function as static.
59022
59023 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59024
59025         md2: clarify comments to say that alignment is not required.
59026         * lib/md2.h: Remove warning about alignment in comment.
59027         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59028         never been required.
59029
59030 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59031
59032         md4: adapt alignment constraint fix from sha1.
59033         * lib/md4.c (set_uint32): New function, from sha1.c
59034         (md4_read_ctx): Use it.
59035         (md4_finish_ctx): Doc fix.
59036         * lib/md4.h: Doc fix.
59037
59038 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59039
59040         md5: adapt alignment constraint fix from sha1.
59041         * lib/md5.c (set_uint32): New function, from sha1.c
59042         (md5_read_ctx): Use it.
59043         (md5_finish_ctx): Doc fix.
59044         * lib/md5.h: Doc fix.
59045
59046 2008-01-30  Peter Palfrader  <weasel@debian.org>
59047
59048         sha1: remove the result buffer alignment constraint
59049         * lib/sha1.c (set_uint32): New function.
59050         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59051         constraint.
59052         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59053         * lib/sha1.h: Likewise.
59054
59055 2008-01-30  Andreas Schwab  <schwab@suse.de>
59056             Bruno Haible  <bruno@clisp.org>
59057
59058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59059         correct definition of LDBL_MIN_EXP.
59060
59061 2008-01-30  Karl Berry  <karl@gnu.org>
59062
59063         * config/srclist-update: try to preserve x bit on updates.
59064         * config/srclistvars.sh: update for karl.
59065
59066 2008-01-29  Jim Meyering  <meyering@redhat.com>
59067
59068         vasnprintf.c: Avoid warning about unused label
59069         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59070         "overflow" label definition and associated code with the
59071         same cpp condition that guards the sole use of that label.
59072
59073 2008-01-26  Bruno Haible  <bruno@clisp.org>
59074
59075         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59076         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59077         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59078         * lib/isnanl-nolibm.h (isnanl): Likewise.
59079         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59080
59081 2008-01-26  Bruno Haible  <bruno@clisp.org>
59082
59083         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59084         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59085
59086 2008-01-26  Bruno Haible  <bruno@clisp.org>
59087
59088         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59089         GCC >= 4.0 built-in.
59090         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59091
59092 2008-01-26  Bruno Haible  <bruno@clisp.org>
59093
59094         Rename isnan, applicable to 'double' only, to isnand.
59095         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59096         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59097         (configure.ac): Update.
59098         (Include): Replace "isnan.h" with "isnand.h".
59099         * m4/isnand.m4: Renamed from m4/isnan.m4.
59100         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59101         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59102         instead of isnan.c.
59103         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59104         instead of HAVE_ISNAN_IN_LIBC.
59105         (isnand): Renamed from isnan.
59106         * lib/isnand.c: New file.
59107         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59108         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59109         (Makefile.am): Update.
59110         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59111         Include isnand.h instead of isnan.h.
59112         (main): Test isnand instead of isnan.
59113         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59114         isnan-nolibm.
59115         * modules/frexp (Depends-on): Likewise.
59116         * modules/frexp-tests (Depends-on): Likewise.
59117         * modules/frexp-nolibm (Depends-on): Likewise.
59118         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59119         * modules/isfinite (Depends-on): Likewise.
59120         * modules/round-tests (Depends-on): Likewise.
59121         * modules/signbit (Depends-on): Likewise.
59122         * modules/signbit-tests (Depends-on): Likewise.
59123         * modules/snprintf-posix (Depends-on): Likewise.
59124         * modules/sprintf-posix (Depends-on): Likewise.
59125         * modules/trunc-tests (Depends-on): Likewise.
59126         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59127         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59128         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59129         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59130         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59131         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59132         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59133         * modules/vasnprintf-posix (Depends-on): Likewise.
59134         * modules/vasprintf-posix (Depends-on): Likewise.
59135         * modules/vfprintf-posix (Depends-on): Likewise.
59136         * modules/vsnprintf-posix (Depends-on): Likewise.
59137         * modules/vsprintf-posix (Depends-on): Likewise.
59138         * lib/frexp.c: Include isnand.h instead of isnan.h.
59139         (ISNAN): Set to isnand instead of isnan.
59140         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59141         (gl_isfinited): Use isnand instead of isnan.
59142         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59143         (gl_signbitd): Use isnand instead of isnan.
59144         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59145         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59146         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59147         (main): Use isnand instead of isnan.
59148         * tests/test-round1.c: Include isnand.h.
59149         (main): Use isnand instead of isnan.
59150         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59151         (ISNAN): Set to isnand instead of isnan.
59152         * tests/test-trunc1.c: Include isnand.h.
59153         (main): Use isnand instead of isnan.
59154         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59155         (equal): Use isnand instead of isnan.
59156         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59157         isnand-nolibm.
59158         * NEWS: Mention the change.
59159
59160 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59161             Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59164         the GCC builtins for signbits are present and set
59165         REPLACE_SIGNBIT_USING_GCC if so.
59166         * lib/math.in.h (signbit): Define using GCC builtins if
59167         REPLACE_SIGNBIT_USING_GCC is set.
59168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59169         REPLACE_SIGNBIT_USING_GCC.
59170         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59171
59172 2008-01-25  Jim Meyering  <meyering@redhat.com>
59173
59174         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59175         * lib/poll.c: Include <config.h>, not "config.h".
59176         * tests/test-getaddrinfo.c: Likewise.
59177
59178 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59179
59180         * modules/sockets-tests: New file.
59181
59182 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59183
59184         * modules/sockets: New module, can be used to call WSA_Startup and
59185         WSA_Cleanup when needed.
59186
59187         * lib/sockets.h, lib/sockets.c: New files.
59188
59189         * m4/sockets.m4: New file.
59190
59191         * tests/test-sockets.c: New file.
59192
59193 2008-01-19  Bruno Haible  <bruno@clisp.org>
59194
59195         * doc/posix-headers: Renamed from doc/headers.
59196         * doc/posix-functions: Renamed from doc/functions.
59197         * doc/gnulib.texi: Update.
59198
59199 2008-01-19  Bruno Haible  <bruno@clisp.org>
59200
59201         * doc/glibc-functions/strcasestr.texi: Include contents of
59202         doc/functions/strcasestr.texi, fixing the list of platforms.
59203         * doc/functions/strcasestr.texi: Remove file.
59204
59205 2008-01-19  Bruno Haible  <bruno@clisp.org>
59206
59207         * doc/glibc-functions/memmem.texi: Include contents of
59208         doc/functions/memmem.texi.
59209         * doc/functions/memmem.texi: Remove file.
59210
59211 2008-01-18  Bruno Haible  <bruno@clisp.org>
59212
59213         * doc/glibc-functions/*.texi: New files.
59214         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59215         to use the new files.
59216
59217 2008-01-17  Bruno Haible  <bruno@clisp.org>
59218
59219         * tests/test-gethostname.c (main): Fix printf statement.
59220
59221 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59222
59223         * modules/gethostname-tests: New file.
59224
59225         * tests/test-gethostname.c: New file.
59226
59227 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59228
59229         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59230         used by the UNAME case.  Reported by Bruno Haible
59231         <bruno@clisp.org>.
59232
59233 2008-01-17  Eric Blake  <ebb9@byu.net>
59234
59235         Convert c-strcasestr to be more efficient.
59236         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59237         (Depends-on): Add c-strcase, remove malloca, strnlen.
59238         * tests/test-c-strcasestr.c (main): Enhance test.
59239         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59240
59241 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59242
59243         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59244         Use it in creating po/Makevars.
59245
59246 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59247
59248         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59249         Applications that requires it should initialize libgcrypt
59250         manually.
59251
59252 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59253
59254         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59255
59256 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         Fix problem with getdate on mingw32 reported by Simon Josefsson
59259         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59260         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59261         tzname", when deciding whether to declare tzname.
59262         * lib/strftime.c (tzname): Likewise.
59263
59264 2008-01-15  Bruno Haible  <bruno@clisp.org>
59265
59266         Work around a MacOS X 10.5 bug in frexpl().
59267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59268         * doc/functions/frexpl.texi: Document the bug.
59269         Reported by Elias Pipping <pipping@gentoo.org>.
59270
59271 2008-01-14  Eric Blake  <ebb9@byu.net>
59272
59273         Touch up previous patch.
59274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59275         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59276
59277         Convert strcasestr module to use Two-Way algorithm.
59278         * modules/strcasestr-simple: New module, based on the old
59279         strcasestr, but with Two-Way rather than KMP.
59280         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59281         * lib/string.in.h (rpl_strcasestr): Declare.
59282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59283         performance.
59284         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59285         * modules/string (Makefile.am): Support strcasestr.
59286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59287         * modules/strcasestr-tests (Depends-on): Check for alarm.
59288         * tests/test-strcasestr.c: Augment test.
59289         * lib/str-two-way.h: Clean up stray macro.
59290         * NEWS: Document new module.
59291         * MODULES.html.sh (string handling): Likewise.
59292         * doc/functions/strcasestr.texi: New file.
59293         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59294         here, since it is not a POSIX function.
59295
59296 2008-01-14  Colin Watson  <cjwatson@debian.org>
59297             Bruno Haible  <bruno@clisp.org>
59298
59299         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59300         works fine; if not, set REPLACE_STRSIGNAL.
59301         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59303         REPLACE_STRSIGNAL.
59304         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59305         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59306         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59307
59308 2008-01-14  Bruno Haible  <bruno@clisp.org>
59309
59310         * modules/strsignal (Include): Change to <string.h>.
59311
59312 2008-01-14  Colin Watson  <cjwatson@debian.org>
59313
59314         * modules/argp (Notice): Add a notice recommending to change
59315         XGETTEXT_OPTIONS.
59316         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59317
59318 2008-01-13  Colin Watson  <cjwatson@debian.org>
59319
59320         * modules/strsignal-tests: New file.
59321         * tests/test-strsignal.c: New file.
59322
59323         * lib/strsignal.c: New file, from glibc with modifications.
59324         * lib/siglist.h: New file, from glibc with modifications.
59325         * lib/string.in.h (strsignal): New declaration.
59326         * m4/strsignal.m4: New file.
59327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59328         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59329         * modules/strsignal: New file.
59330         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59331         HAVE_DECL_STRSIGNAL.
59332
59333 2008-01-13  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59336         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59337         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59338         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59339
59340 2008-01-13  Bruno Haible  <bruno@clisp.org>
59341
59342         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59343         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59344         * lib/argp.h (__attribute__): Likewise.
59345         * lib/c-stack.c (__attribute__): Likewise.
59346         * lib/error.h (__attribute__): Likewise.
59347         * lib/fts.c (__attribute__): Likewise.
59348         * lib/openat.h (__attribute__): Likewise.
59349         * lib/stdio.in.h (__attribute__): Likewise.
59350         * lib/string.in.h (__attribute__): Likewise.
59351         * lib/utimens.c (__attribute__): Likewise.
59352         * lib/vasnprintf.h (__attribute__): Likewise.
59353         * lib/xalloc.h (__attribute__): Likewise.
59354         * lib/xprintf.h (__attribute__): Likewise.
59355         * lib/xstrtol.h (__attribute__): Likewise.
59356         * lib/xvasprintf.h (__attribute__): Likewise.
59357
59358 2008-01-12  Bruno Haible  <bruno@clisp.org>
59359
59360         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59361         * doc/glibc-headers/a.out.texi: New file.
59362         * doc/glibc-headers/aliases.texi: New file.
59363         * doc/glibc-headers/alloca.texi: New file.
59364         * doc/glibc-headers/ar.texi: New file.
59365         * doc/glibc-headers/argp.texi: New file.
59366         * doc/glibc-headers/argz.texi: New file.
59367         * doc/glibc-headers/byteswap.texi: New file.
59368         * doc/glibc-headers/crypt.texi: New file.
59369         * doc/glibc-headers/endian.texi: New file.
59370         * doc/glibc-headers/envz.texi: New file.
59371         * doc/glibc-headers/err.texi: New file.
59372         * doc/glibc-headers/error.texi: New file.
59373         * doc/glibc-headers/execinfo.texi: New file.
59374         * doc/glibc-headers/fpu_control.texi: New file.
59375         * doc/glibc-headers/fstab.texi: New file.
59376         * doc/glibc-headers/fts.texi: New file.
59377         * doc/glibc-headers/getopt.texi: New file.
59378         * doc/glibc-headers/ieee754.texi: New file.
59379         * doc/glibc-headers/ifaddrs.texi: New file.
59380         * doc/glibc-headers/libintl.texi: New file.
59381         * doc/glibc-headers/mcheck.texi: New file.
59382         * doc/glibc-headers/mntent.texi: New file.
59383         * doc/glibc-headers/obstack.texi: New file.
59384         * doc/glibc-headers/paths.texi: New file.
59385         * doc/glibc-headers/printf.texi: New file.
59386         * doc/glibc-headers/pty.texi: New file.
59387         * doc/glibc-headers/resolv.texi: New file.
59388         * doc/glibc-headers/shadow.texi: New file.
59389         * doc/glibc-headers/sysexits.texi: New file.
59390         * doc/glibc-headers/ttyent.texi: New file.
59391
59392 2008-01-12  Jim Meyering  <meyering@redhat.com>
59393
59394         announce-gen: emit Gnulib's git-based version string.
59395         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59396         New option --gnulib-version=V, where V is expected to be
59397         the output of running git describe in the gnulib directory.
59398         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59399         not useful, and plan to stop publishing an xdelta file with each
59400         coreutils release.
59401
59402         * build-aux/announce-gen: Also check for lzma-compressed files.
59403
59404 2008-01-11  Bruno Haible  <bruno@clisp.org>
59405
59406         * tests/test-memmem.c (main): Increase maximum allowed time.
59407         * tests/test-strstr.c (main): Likewise.
59408
59409 2008-01-11  Bruno Haible  <bruno@clisp.org>
59410
59411         * doc/functions/memmem.texi: Add more precisions about platforms.
59412         * doc/functions/strstr.texi: Likewise.
59413
59414 2008-01-10  Eric Blake  <ebb9@byu.net>
59415
59416         * m4/strstr.m4: Delete cruft from copy-n-paste.
59417         Reported by Bruno Haible.
59418
59419 2008-01-10  Bruno Haible  <bruno@clisp.org>
59420
59421         Make c-strstr rely on strstr.
59422         * lib/c-strstr.c: Don't include str-kmp.h.
59423         (c_strstr): Define in terms of strstr.
59424         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59425         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59426
59427 2008-01-10  Bruno Haible  <bruno@clisp.org>
59428
59429         * doc/gnulib.texi (String Functions in C Locale): New section.
59430         * doc/c-ctype.texi: New file.
59431         * doc/c-strcase.texi: New file.
59432         * doc/c-strcaseeq.texi: New file.
59433         * doc/c-strcasestr.texi: New file.
59434         * doc/c-strstr.texi: New file.
59435         * doc/c-strtod.texi: New file.
59436         * doc/c-strtold.texi: New file.
59437
59438 2008-01-10  Eric Blake  <ebb9@byu.net>
59439
59440         * lib/relocatable.h: Fix a comment.
59441
59442 2008-01-10  Eric Blake  <ebb9@byu.net>
59443
59444         Share two-way algorithm.
59445         * lib/str-two-way.h: New file, merged from...
59446         * lib/memmem.c: ...here...
59447         * lib/strstr.c: ...and here.
59448         * modules/memmem (Files): Use it.
59449         * modules/strstr (Files): Likewise.
59450
59451         Avoid quadratic strstr implementations.
59452         * lib/strstr.c: New file.
59453         * m4/strstr.m4: Likewise.
59454         * modules/strstr: Likewise.
59455         * modules/strstr-tests: Likewise.
59456         * tests/test-strstr.c: Likewise.
59457         * lib/string.in.h (rpl_strstr): Declare.
59458         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59460         * modules/string (Makefile.am): Likewise.
59461         * MODULES.html.sh (string handling): Mention new module.
59462         * doc/functions/strstr.texi (strstr): Document the bug.
59463
59464 2008-01-10  Bruno Haible  <bruno@clisp.org>
59465
59466         * lib/relocatable.h (relocate): State whether result is freshly
59467         allocated or not.
59468         * lib/relocatable.c (relocate): Return a freshly allocated string
59469         instead of a pointer to a privately held string.
59470         Reported by Sylvain Beucler <beuc@gnu.org>.
59471
59472 2008-01-10  Colin Watson  <cjwatson@debian.org>
59473
59474         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59475         s/S_ISNLK/S_ISLNK/.
59476
59477 2008-01-09  Bruno Haible  <bruno@clisp.org>
59478
59479         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59480         and other files.
59481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59482         if it's only a guess.
59483         * modules/memmem: Simplify by depending on memmem-simple.
59484
59485 2008-01-09  Bruno Haible  <bruno@clisp.org>
59486
59487         Work around OpenBSD 4.0 tdelete() bug.
59488         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59489         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59490         macros and don't redefine the enum values.
59491         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59492         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59493         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59494
59495 2008-01-09  Bruno Haible  <bruno@clisp.org>
59496
59497         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59498         (main): Don't perform the tests if setlocale did not install a UTF-8
59499         locale. Needed on OpenBSD 4.0.
59500         * modules/wcwidth-tests (Depends-on): Add localcharset.
59501
59502 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59505         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59506         * NEWS: announce this.
59507         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59508
59509 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59510         and Eric Blake  <ebb9@byu.net>
59511
59512         Add memmem-simple module.
59513         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59514         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59515         * modules/memmem-simple: New file.
59516         * modules/memmem (Description): Tweak.
59517         * MODULES.html.sh (string handling): Mention new module.
59518         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59519         addressed by memmem-simple.
59520         * NEWS: Document the difference.
59521
59522 2008-01-09  Eric Blake  <ebb9@byu.net>
59523
59524         Give gcc some memmem optimization hints.
59525         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59526         (strcasestr): Declare as pure.
59527         * modules/memmem (Maintainer): Claim my implementation.
59528
59529 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59530
59531         Support AIX 6.1 and higher.
59532         * build-aux/config.libpath: Likewise.
59533         * build-aux/config.rpath: Likewise.
59534
59535 2008-01-08  Jim Meyering  <meyering@redhat.com>
59536             Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59539         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59540         Reported by Peter Fales in
59541         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59542
59543 2008-01-08  Bruno Haible  <bruno@clisp.org>
59544
59545         * modules/unictype/category-of (Depends-on): Add
59546         unictype/category-none.
59547         * modules/unictype/category-and-tests (Depends-on): Add
59548         unictype/category-{L,N,Lu,Nd}.
59549         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59550         * modules/unictype/category-or-tests (Depends-on): Add
59551         unictype/category-{L,N}.
59552         * modules/unictype/category-name-tests (Depends-on): Add
59553         unictype/category-{Z,Nl}.
59554         Reported by Simon Josefsson.
59555
59556 2008-01-08  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59559         convention better.
59560         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59561         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59562         Reported by Peter Miller <millerp@canb.auug.org.au>.
59563
59564 2008-01-08  Eric Blake  <ebb9@byu.net>
59565
59566         Rewrite memmem to guarantee linear complexity without malloc.
59567         * lib/memmem.c (memmem): Use Two-Way rather than
59568         Knuth-Morris-Pratt, to allow O(1) space usage.
59569         (critical_factorization, two_way_short_needle)
59570         (two_way_long_needle): New functions.
59571         (knuth_morris_pratt): Delete.
59572         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59573         Add stdint.
59574         * tests/test-memmem.c (main): Add tests for periodic needle and
59575         sublinear performance.
59576         * doc/functions/memmem.texi (memmem): Document other deficiencies
59577         in cygwin and older glibc.
59578
59579 2008-01-08  Bruno Haible  <bruno@clisp.org>
59580
59581         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59582         augmentation.
59583
59584 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59585
59586         Add a configure time option: --disable-acl.
59587         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59588         AC_ARG_ENABLE(acl).
59589
59590 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59591
59592         * tests/test-localename.c: Don't include obsolete "setenv.h".
59593
59594         * modules/localename-tests (Depends-on): Need unsetenv.
59595
59596 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59597
59598         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59599
59600 2008-01-06  Colin Watson  <cjwatson@debian.org>
59601
59602         * users.txt: Add man-db.
59603
59604 2008-01-07  Bruno Haible  <bruno@clisp.org>
59605
59606         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59607         previous section name.
59608
59609 2008-01-07  Bruno Haible  <bruno@clisp.org>
59610
59611         * lib/progname.c (set_program_name): Don't strip off a leading
59612         "lt-" prefix outside a .libs directory.
59613         Suggested by Paul Eggert.
59614
59615 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59616             Bruno Haible  <bruno@clisp.org>
59617
59618         Improve memory cleanup in 'relocatable' module.
59619         * lib/relocatable.h (compute_curr_prefix): Change return type to
59620         'char *'.
59621         * lib/relocatable.c (compute_curr_prefix): Change return type to
59622         'char *'. Free curr_installdir after use.
59623         (relocate): Free curr_prefix_better after use.
59624         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59625
59626 2008-01-01  Bruno Haible  <bruno@clisp.org>
59627
59628         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59629         failure on older glibc systems.
59630         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59631
59632 2008-01-05  Eric Blake  <ebb9@byu.net>
59633
59634         Avoid quadratic system memmem.
59635         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59636         Reported by Ralf Wildenhues.
59637
59638         Fix memmem test for mingw.
59639         * modules/memmem-tests (configure.ac): Check for alarm.
59640         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59641         it.
59642         * doc/functions/memmem.texi: New file.
59643         * doc/gnulib.texi (Function Substitutes): Add memmem.
59644         Reported by Bruno Haible.
59645
59646 2008-01-04  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59649         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59650         gl_HEADER_STRING_H_DEFAULTS.
59651
59652 2008-01-04  Eric Blake  <ebb9@byu.net>
59653
59654         Shorten duration of memmem test.
59655         * tests/test-memmem.c (main): Use alarm to declare failure if test
59656         is taking too long.
59657         Reported by Ralf Wildenhues.
59658
59659 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59660
59661         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59662         string, needed by strerror.
59663
59664 2008-01-03  Colin Watson  <cjwatson@debian.org>
59665             Bruno Haible  <bruno@clisp.org>
59666
59667         * doc/gnulib-tool.texi (Localization): New section.
59668
59669 2008-01-02  Bruno Haible  <bruno@clisp.org>
59670
59671         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59672         variables to 'unsigned char *' type.
59673         Reported by Paul Eggert.
59674
59675 2008-01-02  Jim Meyering  <jim@meyering.net>
59676
59677         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59678
59679 2007-12-31  Jim Meyering  <jim@meyering.net>
59680
59681         Avoid use of private FTS type name.
59682         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59683
59684 2007-12-30  Karl Berry  <karl@gnu.org>
59685
59686         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59687         work around defect in Texinfo and/or the standalone Info browser.
59688
59689 2007-12-30  Bruno Haible  <bruno@clisp.org>
59690
59691         Unify 5 copies of the KMP code.
59692         * lib/str-kmp.h: New file.
59693         * lib/c-strcasestr.c: Include str-kmp.h.
59694         (knuth_morris_pratt): Remove function.
59695         (c_strcasestr): Update.
59696         * lib/c-strstr.c: Include str-kmp.h.
59697         (knuth_morris_pratt): Remove function.
59698         (c_strcasestr): Update.
59699         * lib/mbscasestr.c: Include str-kmp.h.
59700         (knuth_morris_pratt_unibyte): Remove function.
59701         * lib/mbsstr.c: Include str-kmp.h.
59702         (knuth_morris_pratt_unibyte): Remove function.
59703         * lib/strcasestr.c: Include str-kmp.h.
59704         (knuth_morris_pratt): Remove function.
59705         (strcasestr): Update.
59706         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59707         * modules/c-strstr (Files): Likewise.
59708         * modules/mbscasestr (Files): Likewise.
59709         * modules/mbsstr (Files): Likewise.
59710         * modules/strcasestr (Files): Likewise.
59711         Suggested by Paul Eggert.
59712
59713 2007-12-30  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59716         defined.
59717
59718 2007-12-30  Bruno Haible  <bruno@clisp.org>
59719
59720         * lib/xmalloca.h: Include xalloc.h.
59721         (xnmalloca): New macro.
59722
59723 2007-12-30  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/malloca.h (nmalloca): New macro.
59726         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59727         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59728         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59729         knuth_morris_pratt_multibyte): Likewise.
59730         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59731         knuth_morris_pratt_multibyte): Likewise.
59732         * lib/memmem.c (knuth_morris_pratt): Likewise.
59733         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59734
59735 2007-12-25  Bruno Haible  <bruno@clisp.org>
59736
59737         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59738         * lib/glob.c: Don't include openat.h.
59739         (link_exists2_p): Add back the code that deals with the
59740         !GLOB_ALTDIRFUNC case.
59741         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59742         let it do the filename concatenation.
59743         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59744         * modules/glob (Depends-on): Remove openat.
59745
59746 2007-12-31  Bruno Haible  <bruno@clisp.org>
59747
59748         * modules/dirfd (License): Change to LGPLv2+.
59749         Approved by Jim Meyering.
59750
59751 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59754         when multiplying M by sizeof (size_t).
59755
59756 2007-12-10  Martin Lambers  <marlam@marlam.de>
59757
59758         Override getpagesize on mingw.
59759         * lib/getpagesize.c: New file.
59760         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59761         * modules/getpagesize (Files): Add lib/getpagesize.c.
59762         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59764         REPLACE_GETPAGESIZE.
59765         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59766
59767 2007-12-25  Bruno Haible  <bruno@clisp.org>
59768
59769         * modules/localcharset (Notice): New field.
59770         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59771         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59772
59773 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59774             Bruno Haible  <bruno@clisp.org>
59775
59776         Avoid using the syntax symbol() in formatted documentation.
59777         * MODULES.html.sh (func_module): When replacing symbol() with a
59778         hyperlink, remove the parentheses. Show an error if some remain.
59779         Recognize and render the '...' syntax.
59780         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59781         Rework. Add paragraph about GCC's inlining.
59782         * doc/alloca.texi: Likewise.
59783         * doc/error.texi: Remove parentheses from symbol reference.
59784         * doc/gnulib-intro.texi: Likewise.
59785         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59786         * modules/fnmatch (Description): Reword to say "the ... function".
59787         * modules/full-read (Description): Likewise.
59788         * modules/full-write (Description): Likewise.
59789         * modules/safe-read (Description): Likewise.
59790         * modules/safe-write (Description): Likewise.
59791         * modules/strchrnul (Description): Likewise.
59792         * modules/trim (Description): Likewise.
59793         * modules/error (Description): Remove parentheses from symbol
59794         references.
59795         * modules/verror (Description): Likewise.
59796         Reported by Karl Berry.
59797
59798 2007-12-25  Bruno Haible  <bruno@clisp.org>
59799
59800         Fixup after 2007-10-16 commit.
59801         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59802
59803 2007-12-24  Bruno Haible  <bruno@clisp.org>
59804
59805         Make --enable-relocatable work with DESTDIR.
59806         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59807         to compute installdir from destprog.
59808         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59809         also set the RELOC_DESTDIR variable.
59810         Reported by Левашев Иван <octagram@bluebottle.com>.
59811
59812 2007-12-24  Bruno Haible  <bruno@clisp.org>
59813
59814         Fix link error due to xalloc_die().
59815         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59816         of xreadlink.
59817         * lib/relocwrapper.c: Update comments.
59818         * build-aux/install-reloc: Remove xreadlink.c from file list.
59819         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59820         xreadlink.c.
59821         Reported by Левашев Иван <octagram@bluebottle.com>.
59822
59823 2007-12-24  Bruno Haible  <bruno@clisp.org>
59824
59825         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59826         * lib/setenv.h: Remove file.
59827         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59828         lib/setenv.h.
59829         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59830         (Depends-on): Add stdlib.
59831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59832         gl_FUNC_UNSETENV.
59833         (Include): Replace setenv.h with <stdlib.h>.
59834         * modules/unsetenv: New file.
59835         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59836         * lib/unsetenv.c: Include <stdlib.h> first.
59837         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59838         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59839         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59840         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59841         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59842         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59844         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59845         * doc/functions/unsetenv.texi: Update.
59846         * modules/xsetenv (Depends-on): Add unsetenv.
59847         * modules/getdate (Depends-on): Likewise.
59848         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59849         * lib/xsetenv.c: Don't include setenv.h.
59850         * lib/getdate.y: Likewise.
59851         * lib/relocwrapper.c: Likewise.
59852         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59853         (Depends-on): Add stdlib.
59854         * NEWS: Mention the changes.
59855         Reported by Левашев Иван <octagram@bluebottle.com>.
59856
59857 2007-12-23  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59860         indentation.
59861
59862 2007-12-23  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/c-strcasestr.c: Add more comments.
59865         * lib/c-strstr.c: Likewise.
59866         * lib/mbscasestr.c: Likewise.
59867         * lib/mbsstr.c: Likewise.
59868         * lib/strcasestr.c: Likewise.
59869         * lib/memmem.c: Likewise.
59870
59871 2007-12-23  Bruno Haible  <bruno@clisp.org>
59872
59873         * tests/test-memmem.c: Include <string.h> first.
59874
59875 2007-12-22  Bruno Haible  <bruno@clisp.org>
59876
59877         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59878         the contents of $testsbase.
59879         Reported by Ralf Wildenhues.
59880
59881 2007-12-22  Bruno Haible  <bruno@clisp.org>
59882
59883         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59884         two variables local_ldadd_before, local_ldadd_last.
59885
59886 2007-12-20  Eric Blake  <ebb9@byu.net>
59887
59888         Work around circular library issue when cross-compiling.
59889         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59890         that progname.o does not need to pull in rpl_memcmp.
59891
59892 2007-12-19  Eric Blake  <ebb9@byu.net>
59893
59894         Fix memmem to avoid O(n^2) worst-case complexity.
59895         * lib/memmem.c (knuth_morris_pratt): New function.
59896         (memmem): Use it if first few naive iterations fail.
59897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59898         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59899         * modules/memchr (License): Likewise.
59900         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59901         malloca.
59902         * tests/test-memmem.c: Rewrite, borrowing ideas from
59903         test-mbsstr1.c; the old version wouldn't even compile!
59904         * modules/memmem-tests: New file.
59905         * lib/string.in.h (rpl_memmem): Add declaration.
59906         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59908         REPLACE_MEMMEM.
59909
59910 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59913         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59914         before any system include files, and undef after them all.  This
59915         should fix a problem on VMS reported by John E. Malmberg in
59916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59917
59918 2007-12-17  Eric Blake  <ebb9@byu.net>
59919
59920         Revert addition of verify, for BSD/OS.
59921         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59922         can't handle large files, for the sake of obsolete platforms.
59923         * modules/fseeko (Depends-on): Remove verify.
59924         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59925         * doc/functions/ftello.texi (ftello): Likewise.
59926         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59927         Reported by Larry Jones.
59928
59929 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59930
59931         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59932         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59933
59934 2007-12-17  Jim Meyering  <meyering@redhat.com>
59935
59936         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59937         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59938         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59939         * modules/getcwd (Depends-on): Add openat.
59940         Reported by Petr Salinger.
59941
59942 2007-12-17  Bruno Haible  <bruno@clisp.org>
59943
59944         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59945         avoid a segmentation fault of the configure test on x86_64 systems.
59946
59947 2007-12-15  Jim Meyering  <meyering@redhat.com>
59948
59949         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59950
59951 2007-12-13  Eric Blake  <ebb9@byu.net>
59952
59953         Another fseek test.
59954         * tests/test-fseek.c (main): Also test ungetc handling.
59955         * tests/test-fseeko.c (main): Likewise.
59956         * modules/fseeko (Depends-on): Add verify.
59957         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59958         large.
59959         Reported by Larry Jones.
59960
59961         Fix fseeko on mingw.
59962         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59963         seek.
59964
59965         Beef up fseek tests.
59966         * tests/test-fseek.c (main): Also test eof handling.
59967         * tests/test-fseeko.c (main): Likewise.
59968         Reported by Larry Jones.
59969
59970 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59971
59972         Fix fseeko on BSD-based platforms.
59973         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59974         successful seek.
59975
59976 2007-12-12  Eric Blake  <ebb9@byu.net>
59977
59978         Allow circular dependency of separate libtests.a
59979         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59980         when use_libtests.
59981
59982 2007-12-11  Eric Blake  <ebb9@byu.net>
59983
59984         Fix bug with -0.0L in previous patch.
59985         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59986         * tests/test-isnan.c (main): Also test on zeroes.
59987         * tests/test-isnanf.c (main): Likewise.
59988         * tests/test-isnanl.h (main): Likewise.
59989
59990         Detect pseudo-denormals on x86 even when cross-compiling.
59991         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59992         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59993         invalid bit patterns that happen to satisfy ==.
59994
59995         Avoid link failures with separate libtests.a.
59996         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59997         last, to satisfy circular dependencies.
59998
59999 2007-12-11  Eric Blake  <ebb9@byu.net>
60000         and Bruno Haible  <bruno@clisp.org>
60001
60002         Fix OpenBSD 4.0 <float.h> handling of long double.
60003         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60004         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60005         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60006
60007 2007-12-11  Jim Meyering  <meyering@redhat.com>
60008
60009         * users.txt: Add libvirt.
60010
60011         Support versions of autoconf prior to 2.59c.
60012         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60013         if it is not already defined.
60014
60015 2007-12-09  Bruno Haible  <bruno@clisp.org>
60016
60017         Let 'gnulib-tool --import' collect sources needed for the tests in
60018         tests/ rather than in lib/.
60019         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60020         argument. If true, add rules to generate libtests.a, and put libtests.a
60021         into $(LDADD). Consider source files in subdirectories and set
60022         uses_subdirs.
60023         (func_emit_initmacro_start, func_emit_initmacro_end,
60024         func_emit_initmacro_done): Pass all arguments explicitly.
60025         (func_import): Determine two module lists main_modules,
60026         testsrelated_modules. Determine use_libtests. Determine two variables
60027         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60028         instead of just sed_transform_lib_file. Determine two variables
60029         main_files and testsrelated_files. Compute 'files' as the union of
60030         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60031         func_add_or_update. In the generated gnulib-comp.m4, collect the
60032         object files for tests/ in different variables than those for lib/.
60033         Substitute LIBTESTS_LIBDEPS.
60034         (func_create_testdir): Combine the uses_subdirs results from
60035         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60036
60037 2007-12-09  Bruno Haible  <bruno@clisp.org>
60038
60039         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60040         the build-aux directory.
60041
60042 2007-12-09  Bruno Haible  <bruno@clisp.org>
60043
60044         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60045         introduced on 2006-09-09.
60046
60047 2007-12-07  Jim Meyering  <meyering@redhat.com>
60048
60049         Let these macros work also with autoconf-2.59.
60050         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60051         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60052         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60053
60054 2007-12-06  Jim Meyering  <meyering@redhat.com>
60055
60056         Avoid a configure-time syntax error in gl_FUNC_ACL.
60057         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60058         function in each branch, before testing the cache variable.
60059
60060 2007-12-04  Eric Blake  <ebb9@byu.net>
60061
60062         Make scripts executable.
60063         * build-aux/config.guess: Add execute permissions.
60064         * build-aux/config.sub: Likewise.
60065         * build-aux/gendocs.sh: Likewise.
60066
60067         Fix frexp on mingw.
60068         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60069         cross-compiling.
60070         * doc/functions/frexp.texi (frexp): Document the bug.
60071
60072         Make cygwin fseeko check more reliable.
60073         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60074         version numbers, rather than unrelated feature check.
60075         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60076         * doc/functions/ftello.texi (ftello): Likewise.
60077         Reported by Bruno Haible.
60078
60079         * m4/strerror.m4: Bump version number.
60080
60081 2007-12-03  Bruno Haible  <bruno@clisp.org>
60082
60083         * doc/functions/mprotect.texi: Mention the mingw problem.
60084
60085 2007-12-03  Eric Blake  <ebb9@byu.net>
60086
60087         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60088         REPLACE_STRERROR is initialized before this macro.
60089
60090 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60093         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60094         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60095         put -lsec in even for programs other than 'ls'.  This fixes a problem
60096         for gettext reported by Bruno Haible in
60097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60098         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60099         Add support for Solaris 10.  This isn't efficient, but should get the
60100         job done for now.
60101
60102 2007-12-03  James Youngman  <jay@gnu.org>
60103
60104         * doc/regexprops-generic.texi: change "an close-group" to "a
60105         close-group" and "illegal" to "not allowed".
60106
60107 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60108
60109         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60110         pr_byname.h. Needed for the rare case when the maintainer has done
60111         "make maintainer-clean" in the source directory and then attempts a
60112         build outside the source directory.
60113         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60114         scripts_byname.h.
60115
60116 2007-12-02  Martin Lambers <marlam@marlam.de>
60117             Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/getpagesize.h: Remove file.
60120         * lib/unistd.in.h: Include declaration of getpagesize here.
60121         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60122         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60123         HAVE_SYS_PARAM_H.
60124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60125         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60126         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60127         (Depends-on): Add unistd.
60128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60129         (Include): Use <unistd.h> instead of getpagesize.h.
60130         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60131         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60132         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60133         gl_GETPAGESIZE invocation, already handled by module dependency.
60134         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60135
60136 2007-12-02  Bruno Haible  <bruno@clisp.org>
60137
60138         * modules/strings-tests: New file.
60139         * tests/test-strings.c: New file.
60140
60141         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60142         * lib/strings.in.h: New file.
60143         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60144         * m4/strings_h.m4: New file.
60145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60146         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60147         * modules/strings: New file.
60148         * modules/string (Makefile.am): Update.
60149         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60150         Reported by Karl Berry.
60151
60152 2007-12-01  Eric Blake  <ebb9@byu.net>
60153
60154         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60155         accommodate fix in cygwin 1.5.25.
60156
60157 2007-12-01  Jim Meyering  <meyering@redhat.com>
60158
60159         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60160         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60161         that would inhibit utf8-optimization of a regexp containing line-
60162         or buffer-anchors, e.g., `^', `$'.
60163
60164 2007-11-30  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60167         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60168         glthread_recursive_lock_init.
60169         * lib/lock.c (glthread_recursive_lock_init)
60170         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60171         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60172
60173 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60174
60175         New function qset_acl, like set_acl but with syscall semantics.
60176         * lib/acl.h (qset_acl): New decl.
60177         * lib/acl.c (qset_acl): New function.
60178         (set_acl): Use new function.  Use more-consistent diagnostics.
60179
60180 2007-11-28  Jim Meyering  <meyering@redhat.com>
60181
60182         * modules/physmem (License): Change from GPL to LGPLv2+.
60183
60184 2007-11-26  Bruno Haible  <bruno@clisp.org>
60185
60186         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60187         'long double' type has excess precision.
60188         Reported by Jim Meyering in
60189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60190
60191 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60192
60193         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60194         Sync from <http://gnu.org/licenses>.
60195         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60196         with license text from same location.
60197         * doc/maintain.texi, doc/standards.texi:  Sync from
60198         <http://savannah.gnu.org/projects/gnustandards>.
60199
60200 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60201         and Jim Meyering  <meyering@redhat.com>
60202
60203         Adjust getdate' grammar to accept a slightly more regular language.
60204         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60205         Before, the former was rejected.
60206         * lib/getdate.y (digits_to_date_time): New function, factored
60207         out of ...
60208         (number): ...here.  Just call digits_to_date_time.
60209         (hybrid): New non-terminal to handle an <unsigned number,
60210         signed relative offset> sequence consistently.
60211
60212 2007-11-18  Jim Meyering  <meyering@redhat.com>
60213
60214         Pull my changes from coreutils:
60215         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60216         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60217         use of $gnulib_tool_option_extras, so that it's separated from the
60218         preceding argument.
60219
60220         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60221         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60222         parent destination directories before copying a file into place.
60223
60224 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60225
60226         bootstrap: work also with 4-argument variant of AC_INIT
60227         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60228
60229 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60230
60231         Port test-getaddrinfo to Solaris.
60232         Problem reported by Bruno Haible in
60233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60234         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60235         explanation of setting 'hints'.
60236         Don't reject an implementation merely because it returns EAI_SERVICE.
60237         (EAI_SERVICE): Define to 0 if not defined.
60238
60239 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60240
60241         The license of gnu-make and posix-shell is now "GPLed build tool".
60242         * modules/gnu-make (License): Likewise.
60243         * modules/posix-shell (License): Likewise.
60244
60245         New module posix-shell, for determining a POSIX shell
60246         or perhaps something that is close enough to a POSIX shell.
60247         * m4/posix-shell.m4: New file.
60248         * modules/posix-shell: New file.
60249
60250         * MODULES.html.sh: Mention new module.
60251
60252         New module gnu-make, for determining whether we're using GNU Make.
60253         * m4/gnu-make.m4: New file.
60254         * modules/gnu-make: New file.
60255         * MODULES.html.sh: Mention new module.
60256
60257 2007-11-14  Jim Meyering  <meyering@redhat.com>
60258
60259         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60260         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60261         use this macro to create a function _definition_.
60262         Remove useless "#undef ARGMATCH_DIE".
60263
60264 2007-11-14  Bruno Haible  <bruno@clisp.org>
60265
60266         * lib/config.charset: Update for OpenBSD 4.1.
60267         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60268
60269 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60270
60271         Document 64-bit #if problems in stdint.texi.
60272         * doc/headers/stdint.texi (stdint.h): Mention problems with
60273         64-bit-#if, and how to work around them.
60274
60275         Don't insist on 'long long int' support in the preprocessor.  It
60276         breaks too many things.  For example, PRIdMAX still uses a 'long
60277         long int' format with the latest Sun compiler, even though
60278         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60279         preprocessor problem.  This causes the latest coreutils to dump
60280         core on Solaris 10 sparc with the Sun C compiler.
60281         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60282         the troublesome expressions at configure-time, not at #if-time.
60283         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60284         preprocessor.
60285         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60286         compile-time C checks, done at 'configure'-time.
60287         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60288         * modules/inttypes (Makefile): Substitute the new symbols that
60289         gl_INTTYPES_H now generates.
60290         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60291
60292 2007-11-12  Bruno Haible  <bruno@clisp.org>
60293
60294         Tests for Unicode character classification functions.
60295
60296         * modules/unictype/bidicategory-byname-tests: New file.
60297         * modules/unictype/bidicategory-name-tests: New file.
60298         * modules/unictype/bidicategory-of-tests: New file.
60299         * modules/unictype/bidicategory-test-tests: New file.
60300         * modules/unictype/block-list-tests: New file.
60301         * modules/unictype/block-of-tests: New file.
60302         * modules/unictype/block-test-tests: New file.
60303         * modules/unictype/category-C-tests: New file.
60304         * modules/unictype/category-Cc-tests: New file.
60305         * modules/unictype/category-Cf-tests: New file.
60306         * modules/unictype/category-Cn-tests: New file.
60307         * modules/unictype/category-Co-tests: New file.
60308         * modules/unictype/category-Cs-tests: New file.
60309         * modules/unictype/category-L-tests: New file.
60310         * modules/unictype/category-Ll-tests: New file.
60311         * modules/unictype/category-Lm-tests: New file.
60312         * modules/unictype/category-Lo-tests: New file.
60313         * modules/unictype/category-Lt-tests: New file.
60314         * modules/unictype/category-Lu-tests: New file.
60315         * modules/unictype/category-M-tests: New file.
60316         * modules/unictype/category-Mc-tests: New file.
60317         * modules/unictype/category-Me-tests: New file.
60318         * modules/unictype/category-Mn-tests: New file.
60319         * modules/unictype/category-N-tests: New file.
60320         * modules/unictype/category-Nd-tests: New file.
60321         * modules/unictype/category-Nl-tests: New file.
60322         * modules/unictype/category-No-tests: New file.
60323         * modules/unictype/category-P-tests: New file.
60324         * modules/unictype/category-Pc-tests: New file.
60325         * modules/unictype/category-Pd-tests: New file.
60326         * modules/unictype/category-Pe-tests: New file.
60327         * modules/unictype/category-Pf-tests: New file.
60328         * modules/unictype/category-Pi-tests: New file.
60329         * modules/unictype/category-Po-tests: New file.
60330         * modules/unictype/category-Ps-tests: New file.
60331         * modules/unictype/category-S-tests: New file.
60332         * modules/unictype/category-Sc-tests: New file.
60333         * modules/unictype/category-Sk-tests: New file.
60334         * modules/unictype/category-Sm-tests: New file.
60335         * modules/unictype/category-So-tests: New file.
60336         * modules/unictype/category-Z-tests: New file.
60337         * modules/unictype/category-Zl-tests: New file.
60338         * modules/unictype/category-Zp-tests: New file.
60339         * modules/unictype/category-Zs-tests: New file.
60340         * modules/unictype/category-and-not-tests: New file.
60341         * modules/unictype/category-and-tests: New file.
60342         * modules/unictype/category-byname-tests: New file.
60343         * modules/unictype/category-name-tests: New file.
60344         * modules/unictype/category-none-tests: New file.
60345         * modules/unictype/category-of-tests: New file.
60346         * modules/unictype/category-or-tests: New file.
60347         * modules/unictype/category-test-withtable-tests: New file.
60348         * modules/unictype/combining-class-tests: New file.
60349         * modules/unictype/ctype-alnum-tests: New file.
60350         * modules/unictype/ctype-alpha-tests: New file.
60351         * modules/unictype/ctype-blank-tests: New file.
60352         * modules/unictype/ctype-cntrl-tests: New file.
60353         * modules/unictype/ctype-digit-tests: New file.
60354         * modules/unictype/ctype-graph-tests: New file.
60355         * modules/unictype/ctype-lower-tests: New file.
60356         * modules/unictype/ctype-print-tests: New file.
60357         * modules/unictype/ctype-punct-tests: New file.
60358         * modules/unictype/ctype-space-tests: New file.
60359         * modules/unictype/ctype-upper-tests: New file.
60360         * modules/unictype/ctype-xdigit-tests: New file.
60361         * modules/unictype/decimal-digit-tests: New file.
60362         * modules/unictype/digit-tests: New file.
60363         * modules/unictype/mirror-tests: New file.
60364         * modules/unictype/numeric-tests: New file.
60365         * modules/unictype/property-alphabetic-tests: New file.
60366         * modules/unictype/property-ascii-hex-digit-tests: New file.
60367         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60368         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60369         * modules/unictype/property-bidi-block-separator-tests: New file.
60370         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60371         * modules/unictype/property-bidi-common-separator-tests: New file.
60372         * modules/unictype/property-bidi-control-tests: New file.
60373         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60374         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60375         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60376         * modules/unictype/property-bidi-european-digit-tests: New file.
60377         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60378         * modules/unictype/property-bidi-left-to-right-tests: New file.
60379         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60380         * modules/unictype/property-bidi-other-neutral-tests: New file.
60381         * modules/unictype/property-bidi-pdf-tests: New file.
60382         * modules/unictype/property-bidi-segment-separator-tests: New file.
60383         * modules/unictype/property-bidi-whitespace-tests: New file.
60384         * modules/unictype/property-byname-tests: New file.
60385         * modules/unictype/property-combining-tests: New file.
60386         * modules/unictype/property-composite-tests: New file.
60387         * modules/unictype/property-currency-symbol-tests: New file.
60388         * modules/unictype/property-dash-tests: New file.
60389         * modules/unictype/property-decimal-digit-tests: New file.
60390         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60391         * modules/unictype/property-deprecated-tests: New file.
60392         * modules/unictype/property-diacritic-tests: New file.
60393         * modules/unictype/property-extender-tests: New file.
60394         * modules/unictype/property-format-control-tests: New file.
60395         * modules/unictype/property-grapheme-base-tests: New file.
60396         * modules/unictype/property-grapheme-extend-tests: New file.
60397         * modules/unictype/property-grapheme-link-tests: New file.
60398         * modules/unictype/property-hex-digit-tests: New file.
60399         * modules/unictype/property-hyphen-tests: New file.
60400         * modules/unictype/property-id-continue-tests: New file.
60401         * modules/unictype/property-id-start-tests: New file.
60402         * modules/unictype/property-ideographic-tests: New file.
60403         * modules/unictype/property-ids-binary-operator-tests: New file.
60404         * modules/unictype/property-ids-trinary-operator-tests: New file.
60405         * modules/unictype/property-ignorable-control-tests: New file.
60406         * modules/unictype/property-iso-control-tests: New file.
60407         * modules/unictype/property-join-control-tests: New file.
60408         * modules/unictype/property-left-of-pair-tests: New file.
60409         * modules/unictype/property-line-separator-tests: New file.
60410         * modules/unictype/property-logical-order-exception-tests: New file.
60411         * modules/unictype/property-lowercase-tests: New file.
60412         * modules/unictype/property-math-tests: New file.
60413         * modules/unictype/property-non-break-tests: New file.
60414         * modules/unictype/property-not-a-character-tests: New file.
60415         * modules/unictype/property-numeric-tests: New file.
60416         * modules/unictype/property-other-alphabetic-tests: New file.
60417         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60418         * modules/unictype/property-other-grapheme-extend-tests: New file.
60419         * modules/unictype/property-other-id-continue-tests: New file.
60420         * modules/unictype/property-other-id-start-tests: New file.
60421         * modules/unictype/property-other-lowercase-tests: New file.
60422         * modules/unictype/property-other-math-tests: New file.
60423         * modules/unictype/property-other-uppercase-tests: New file.
60424         * modules/unictype/property-paired-punctuation-tests: New file.
60425         * modules/unictype/property-paragraph-separator-tests: New file.
60426         * modules/unictype/property-pattern-syntax-tests: New file.
60427         * modules/unictype/property-pattern-white-space-tests: New file.
60428         * modules/unictype/property-private-use-tests: New file.
60429         * modules/unictype/property-punctuation-tests: New file.
60430         * modules/unictype/property-quotation-mark-tests: New file.
60431         * modules/unictype/property-radical-tests: New file.
60432         * modules/unictype/property-sentence-terminal-tests: New file.
60433         * modules/unictype/property-soft-dotted-tests: New file.
60434         * modules/unictype/property-space-tests: New file.
60435         * modules/unictype/property-terminal-punctuation-tests: New file.
60436         * modules/unictype/property-test-tests: New file.
60437         * modules/unictype/property-titlecase-tests: New file.
60438         * modules/unictype/property-unassigned-code-value-tests: New file.
60439         * modules/unictype/property-unified-ideograph-tests: New file.
60440         * modules/unictype/property-uppercase-tests: New file.
60441         * modules/unictype/property-variation-selector-tests: New file.
60442         * modules/unictype/property-white-space-tests: New file.
60443         * modules/unictype/property-xid-continue-tests: New file.
60444         * modules/unictype/property-xid-start-tests: New file.
60445         * modules/unictype/property-zero-width-tests: New file.
60446         * modules/unictype/scripts-tests: New file.
60447         * modules/unictype/syntax-c-ident-tests: New file.
60448         * modules/unictype/syntax-c-whitespace-tests: New file.
60449         * modules/unictype/syntax-java-ident-tests: New file.
60450         * modules/unictype/syntax-java-whitespace-tests: New file.
60451         * tests/unictype/test-bidi_byname.c: New file.
60452         * tests/unictype/test-bidi_name.c: New file.
60453         * tests/unictype/test-bidi_of.c: New file.
60454         * tests/unictype/test-bidi_test.c: New file.
60455         * tests/unictype/test-block_list.c: New file.
60456         * tests/unictype/test-block_of.c: New file.
60457         * tests/unictype/test-block_test.c: New file.
60458         * tests/unictype/test-categ_and.c: New file.
60459         * tests/unictype/test-categ_and_not.c: New file.
60460         * tests/unictype/test-categ_byname.c: New file.
60461         * tests/unictype/test-categ_name.c: New file.
60462         * tests/unictype/test-categ_none.c: New file.
60463         * tests/unictype/test-categ_of.c: New file.
60464         * tests/unictype/test-categ_or.c: New file.
60465         * tests/unictype/test-categ_test_withtable.c: New file.
60466         * tests/unictype/test-combining.c: New file.
60467         * tests/unictype/test-decdigit.c: New file.
60468         * tests/unictype/test-digit.c: New file.
60469         * tests/unictype/test-mirror.c: New file.
60470         * tests/unictype/test-numeric.c: New file.
60471         * tests/unictype/test-pr_byname.c: New file.
60472         * tests/unictype/test-pr_test.c: New file.
60473         * tests/unictype/test-predicate-part1.h: New file.
60474         * tests/unictype/test-predicate-part2.h: New file.
60475         * tests/unictype/test-scripts.c: New file.
60476         * tests/unictype/test-sy_c_ident.c: New file.
60477         * tests/unictype/test-sy_java_ident.c: New file.
60478
60479         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60480         for Unicode 5.0.0.
60481         * tests/unictype/test-categ_Cc.c: Likewise.
60482         * tests/unictype/test-categ_Cf.c: Likewise.
60483         * tests/unictype/test-categ_Cn.c: Likewise.
60484         * tests/unictype/test-categ_Co.c: Likewise.
60485         * tests/unictype/test-categ_Cs.c: Likewise.
60486         * tests/unictype/test-categ_L.c: Likewise.
60487         * tests/unictype/test-categ_Ll.c: Likewise.
60488         * tests/unictype/test-categ_Lm.c: Likewise.
60489         * tests/unictype/test-categ_Lo.c: Likewise.
60490         * tests/unictype/test-categ_Lt.c: Likewise.
60491         * tests/unictype/test-categ_Lu.c: Likewise.
60492         * tests/unictype/test-categ_M.c: Likewise.
60493         * tests/unictype/test-categ_Mc.c: Likewise.
60494         * tests/unictype/test-categ_Me.c: Likewise.
60495         * tests/unictype/test-categ_Mn.c: Likewise.
60496         * tests/unictype/test-categ_N.c: Likewise.
60497         * tests/unictype/test-categ_Nd.c: Likewise.
60498         * tests/unictype/test-categ_Nl.c: Likewise.
60499         * tests/unictype/test-categ_No.c: Likewise.
60500         * tests/unictype/test-categ_P.c: Likewise.
60501         * tests/unictype/test-categ_Pc.c: Likewise.
60502         * tests/unictype/test-categ_Pd.c: Likewise.
60503         * tests/unictype/test-categ_Pe.c: Likewise.
60504         * tests/unictype/test-categ_Pf.c: Likewise.
60505         * tests/unictype/test-categ_Pi.c: Likewise.
60506         * tests/unictype/test-categ_Po.c: Likewise.
60507         * tests/unictype/test-categ_Ps.c: Likewise.
60508         * tests/unictype/test-categ_S.c: Likewise.
60509         * tests/unictype/test-categ_Sc.c: Likewise.
60510         * tests/unictype/test-categ_Sk.c: Likewise.
60511         * tests/unictype/test-categ_Sm.c: Likewise.
60512         * tests/unictype/test-categ_So.c: Likewise.
60513         * tests/unictype/test-categ_Z.c: Likewise.
60514         * tests/unictype/test-categ_Zl.c: Likewise.
60515         * tests/unictype/test-categ_Zp.c: Likewise.
60516         * tests/unictype/test-categ_Zs.c: Likewise.
60517         * tests/unictype/test-ctype_alnum.c: Likewise.
60518         * tests/unictype/test-ctype_alpha.c: Likewise.
60519         * tests/unictype/test-ctype_blank.c: Likewise.
60520         * tests/unictype/test-ctype_cntrl.c: Likewise.
60521         * tests/unictype/test-ctype_digit.c: Likewise.
60522         * tests/unictype/test-ctype_graph.c: Likewise.
60523         * tests/unictype/test-ctype_lower.c: Likewise.
60524         * tests/unictype/test-ctype_print.c: Likewise.
60525         * tests/unictype/test-ctype_punct.c: Likewise.
60526         * tests/unictype/test-ctype_space.c: Likewise.
60527         * tests/unictype/test-ctype_upper.c: Likewise.
60528         * tests/unictype/test-ctype_xdigit.c: Likewise.
60529         * tests/unictype/test-decdigit.h: Likewise.
60530         * tests/unictype/test-digit.h: Likewise.
60531         * tests/unictype/test-numeric.h: Likewise.
60532         * tests/unictype/test-pr_alphabetic.c: Likewise.
60533         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60534         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60535         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60536         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60537         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60538         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60539         * tests/unictype/test-pr_bidi_control.c: Likewise.
60540         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60541         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60542         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60543         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60544         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60545         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60546         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60547         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60548         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60549         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60550         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60551         * tests/unictype/test-pr_combining.c: Likewise.
60552         * tests/unictype/test-pr_composite.c: Likewise.
60553         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60554         * tests/unictype/test-pr_dash.c: Likewise.
60555         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60556         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60557         * tests/unictype/test-pr_deprecated.c: Likewise.
60558         * tests/unictype/test-pr_diacritic.c: Likewise.
60559         * tests/unictype/test-pr_extender.c: Likewise.
60560         * tests/unictype/test-pr_format_control.c: Likewise.
60561         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60562         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60563         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60564         * tests/unictype/test-pr_hex_digit.c: Likewise.
60565         * tests/unictype/test-pr_hyphen.c: Likewise.
60566         * tests/unictype/test-pr_id_continue.c: Likewise.
60567         * tests/unictype/test-pr_id_start.c: Likewise.
60568         * tests/unictype/test-pr_ideographic.c: Likewise.
60569         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60570         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60571         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60572         * tests/unictype/test-pr_iso_control.c: Likewise.
60573         * tests/unictype/test-pr_join_control.c: Likewise.
60574         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60575         * tests/unictype/test-pr_line_separator.c: Likewise.
60576         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60577         * tests/unictype/test-pr_lowercase.c: Likewise.
60578         * tests/unictype/test-pr_math.c: Likewise.
60579         * tests/unictype/test-pr_non_break.c: Likewise.
60580         * tests/unictype/test-pr_not_a_character.c: Likewise.
60581         * tests/unictype/test-pr_numeric.c: Likewise.
60582         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60583         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60584         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60585         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60586         * tests/unictype/test-pr_other_id_start.c: Likewise.
60587         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60588         * tests/unictype/test-pr_other_math.c: Likewise.
60589         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60590         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60591         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60592         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60593         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60594         * tests/unictype/test-pr_private_use.c: Likewise.
60595         * tests/unictype/test-pr_punctuation.c: Likewise.
60596         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60597         * tests/unictype/test-pr_radical.c: Likewise.
60598         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60599         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60600         * tests/unictype/test-pr_space.c: Likewise.
60601         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60602         * tests/unictype/test-pr_titlecase.c: Likewise.
60603         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60604         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60605         * tests/unictype/test-pr_uppercase.c: Likewise.
60606         * tests/unictype/test-pr_variation_selector.c: Likewise.
60607         * tests/unictype/test-pr_white_space.c: Likewise.
60608         * tests/unictype/test-pr_xid_continue.c: Likewise.
60609         * tests/unictype/test-pr_xid_start.c: Likewise.
60610         * tests/unictype/test-pr_zero_width.c: Likewise.
60611         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60612         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60613
60614 2007-11-12  Bruno Haible  <bruno@clisp.org>
60615
60616         Unicode character classification functions.
60617         * lib/unictype.h: New file.
60618         * modules/unictype/base: New file.
60619         * modules/unictype/category-L: New file.
60620         * modules/unictype/category-Lu: New file.
60621         * modules/unictype/category-Ll: New file.
60622         * modules/unictype/category-Lt: New file.
60623         * modules/unictype/category-Lm: New file.
60624         * modules/unictype/category-Lo: New file.
60625         * modules/unictype/category-M: New file.
60626         * modules/unictype/category-Mn: New file.
60627         * modules/unictype/category-Mc: New file.
60628         * modules/unictype/category-Me: New file.
60629         * modules/unictype/category-N: New file.
60630         * modules/unictype/category-Nd: New file.
60631         * modules/unictype/category-Nl: New file.
60632         * modules/unictype/category-No: New file.
60633         * modules/unictype/category-P: New file.
60634         * modules/unictype/category-Pc: New file.
60635         * modules/unictype/category-Pd: New file.
60636         * modules/unictype/category-Ps: New file.
60637         * modules/unictype/category-Pe: New file.
60638         * modules/unictype/category-Pi: New file.
60639         * modules/unictype/category-Pf: New file.
60640         * modules/unictype/category-Po: New file.
60641         * modules/unictype/category-S: New file.
60642         * modules/unictype/category-Sm: New file.
60643         * modules/unictype/category-Sc: New file.
60644         * modules/unictype/category-Sk: New file.
60645         * modules/unictype/category-So: New file.
60646         * modules/unictype/category-Z: New file.
60647         * modules/unictype/category-Zs: New file.
60648         * modules/unictype/category-Zl: New file.
60649         * modules/unictype/category-Zp: New file.
60650         * modules/unictype/category-C: New file.
60651         * modules/unictype/category-Cc: New file.
60652         * modules/unictype/category-Cf: New file.
60653         * modules/unictype/category-Cs: New file.
60654         * modules/unictype/category-Co: New file.
60655         * modules/unictype/category-Cn: New file.
60656         * modules/unictype/category-or: New file.
60657         * modules/unictype/category-of: New file.
60658         * modules/unictype/category-test: New file.
60659         * modules/unictype/category-test-withtable: New file.
60660         * modules/unictype/category-byname: New file.
60661         * modules/unictype/category-none: New file.
60662         * modules/unictype/category-and: New file.
60663         * modules/unictype/category-and-not: New file.
60664         * modules/unictype/category-name: New file.
60665         * modules/unictype/combining-class: New file.
60666         * modules/unictype/category-all: New file.
60667         * modules/unictype/bidicategory-all: New file.
60668         * modules/unictype/bidicategory-byname: New file.
60669         * modules/unictype/bidicategory-name: New file.
60670         * modules/unictype/bidicategory-of: New file.
60671         * modules/unictype/bidicategory-test: New file.
60672         * modules/unictype/decimal-digit: New file.
60673         * modules/unictype/digit: New file.
60674         * modules/unictype/numeric: New file.
60675         * modules/unictype/mirror: New file.
60676         * modules/unictype/property-white-space: New file.
60677         * modules/unictype/property-alphabetic: New file.
60678         * modules/unictype/property-other-alphabetic: New file.
60679         * modules/unictype/property-not-a-character: New file.
60680         * modules/unictype/property-default-ignorable-code-point: New file.
60681         * modules/unictype/property-other-default-ignorable-code-point: New
60682         file.
60683         * modules/unictype/property-deprecated: New file.
60684         * modules/unictype/property-logical-order-exception: New file.
60685         * modules/unictype/property-variation-selector: New file.
60686         * modules/unictype/property-private-use: New file.
60687         * modules/unictype/property-unassigned-code-value: New file.
60688         * modules/unictype/property-uppercase: New file.
60689         * modules/unictype/property-other-uppercase: New file.
60690         * modules/unictype/property-lowercase: New file.
60691         * modules/unictype/property-other-lowercase: New file.
60692         * modules/unictype/property-titlecase: New file.
60693         * modules/unictype/property-soft-dotted: New file.
60694         * modules/unictype/property-id-start: New file.
60695         * modules/unictype/property-other-id-start: New file.
60696         * modules/unictype/property-id-continue: New file.
60697         * modules/unictype/property-other-id-continue: New file.
60698         * modules/unictype/property-xid-start: New file.
60699         * modules/unictype/property-xid-continue: New file.
60700         * modules/unictype/property-pattern-white-space: New file.
60701         * modules/unictype/property-pattern-syntax: New file.
60702         * modules/unictype/property-join-control: New file.
60703         * modules/unictype/property-grapheme-base: New file.
60704         * modules/unictype/property-grapheme-extend: New file.
60705         * modules/unictype/property-other-grapheme-extend: New file.
60706         * modules/unictype/property-grapheme-link: New file.
60707         * modules/unictype/property-bidi-control: New file.
60708         * modules/unictype/property-bidi-left-to-right: New file.
60709         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60710         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60711         * modules/unictype/property-bidi-european-digit: New file.
60712         * modules/unictype/property-bidi-eur-num-separator: New file.
60713         * modules/unictype/property-bidi-eur-num-terminator: New file.
60714         * modules/unictype/property-bidi-arabic-digit: New file.
60715         * modules/unictype/property-bidi-common-separator: New file.
60716         * modules/unictype/property-bidi-block-separator: New file.
60717         * modules/unictype/property-bidi-segment-separator: New file.
60718         * modules/unictype/property-bidi-whitespace: New file.
60719         * modules/unictype/property-bidi-non-spacing-mark: New file.
60720         * modules/unictype/property-bidi-boundary-neutral: New file.
60721         * modules/unictype/property-bidi-pdf: New file.
60722         * modules/unictype/property-bidi-embedding-or-override: New file.
60723         * modules/unictype/property-bidi-other-neutral: New file.
60724         * modules/unictype/property-hex-digit: New file.
60725         * modules/unictype/property-ascii-hex-digit: New file.
60726         * modules/unictype/property-ideographic: New file.
60727         * modules/unictype/property-unified-ideograph: New file.
60728         * modules/unictype/property-radical: New file.
60729         * modules/unictype/property-ids-binary-operator: New file.
60730         * modules/unictype/property-ids-trinary-operator: New file.
60731         * modules/unictype/property-zero-width: New file.
60732         * modules/unictype/property-space: New file.
60733         * modules/unictype/property-non-break: New file.
60734         * modules/unictype/property-iso-control: New file.
60735         * modules/unictype/property-format-control: New file.
60736         * modules/unictype/property-dash: New file.
60737         * modules/unictype/property-hyphen: New file.
60738         * modules/unictype/property-punctuation: New file.
60739         * modules/unictype/property-line-separator: New file.
60740         * modules/unictype/property-paragraph-separator: New file.
60741         * modules/unictype/property-quotation-mark: New file.
60742         * modules/unictype/property-sentence-terminal: New file.
60743         * modules/unictype/property-terminal-punctuation: New file.
60744         * modules/unictype/property-currency-symbol: New file.
60745         * modules/unictype/property-math: New file.
60746         * modules/unictype/property-other-math: New file.
60747         * modules/unictype/property-paired-punctuation: New file.
60748         * modules/unictype/property-left-of-pair: New file.
60749         * modules/unictype/property-combining: New file.
60750         * modules/unictype/property-composite: New file.
60751         * modules/unictype/property-decimal-digit: New file.
60752         * modules/unictype/property-numeric: New file.
60753         * modules/unictype/property-diacritic: New file.
60754         * modules/unictype/property-extender: New file.
60755         * modules/unictype/property-ignorable-control: New file.
60756         * modules/unictype/property-test: New file.
60757         * modules/unictype/property-byname: New file.
60758         * modules/unictype/property-all: New file.
60759         * modules/unictype/scripts: New file.
60760         * modules/unictype/scripts-all: New file.
60761         * modules/unictype/block-of: New file.
60762         * modules/unictype/block-test: New file.
60763         * modules/unictype/block-list: New file.
60764         * modules/unictype/block-all: New file.
60765         * modules/unictype/syntax-c-whitespace: New file.
60766         * modules/unictype/syntax-java-whitespace: New file.
60767         * modules/unictype/syntax-c-ident: New file.
60768         * modules/unictype/syntax-java-ident: New file.
60769         * modules/unictype/ctype-alnum: New file.
60770         * modules/unictype/ctype-alpha: New file.
60771         * modules/unictype/ctype-cntrl: New file.
60772         * modules/unictype/ctype-digit: New file.
60773         * modules/unictype/ctype-graph: New file.
60774         * modules/unictype/ctype-lower: New file.
60775         * modules/unictype/ctype-print: New file.
60776         * modules/unictype/ctype-punct: New file.
60777         * modules/unictype/ctype-space: New file.
60778         * modules/unictype/ctype-upper: New file.
60779         * modules/unictype/ctype-xdigit: New file.
60780         * modules/unictype/ctype-blank: New file.
60781         * lib/unictype/bidi_byname.c: New file.
60782         * lib/unictype/bidi_name.c: New file.
60783         * lib/unictype/bidi_of.c: New file.
60784         * lib/unictype/bidi_test.c: New file.
60785         * lib/unictype/bitmap.h: New file.
60786         * lib/unictype/block_test.c: New file.
60787         * lib/unictype/blocks.c: New file.
60788         * lib/unictype/categ_C.c: New file.
60789         * lib/unictype/categ_Cc.c: New file.
60790         * lib/unictype/categ_Cf.c: New file.
60791         * lib/unictype/categ_Cn.c: New file.
60792         * lib/unictype/categ_Co.c: New file.
60793         * lib/unictype/categ_Cs.c: New file.
60794         * lib/unictype/categ_L.c: New file.
60795         * lib/unictype/categ_Ll.c: New file.
60796         * lib/unictype/categ_Lm.c: New file.
60797         * lib/unictype/categ_Lo.c: New file.
60798         * lib/unictype/categ_Lt.c: New file.
60799         * lib/unictype/categ_Lu.c: New file.
60800         * lib/unictype/categ_M.c: New file.
60801         * lib/unictype/categ_Mc.c: New file.
60802         * lib/unictype/categ_Me.c: New file.
60803         * lib/unictype/categ_Mn.c: New file.
60804         * lib/unictype/categ_N.c: New file.
60805         * lib/unictype/categ_Nd.c: New file.
60806         * lib/unictype/categ_Nl.c: New file.
60807         * lib/unictype/categ_No.c: New file.
60808         * lib/unictype/categ_P.c: New file.
60809         * lib/unictype/categ_Pc.c: New file.
60810         * lib/unictype/categ_Pd.c: New file.
60811         * lib/unictype/categ_Pe.c: New file.
60812         * lib/unictype/categ_Pf.c: New file.
60813         * lib/unictype/categ_Pi.c: New file.
60814         * lib/unictype/categ_Po.c: New file.
60815         * lib/unictype/categ_Ps.c: New file.
60816         * lib/unictype/categ_S.c: New file.
60817         * lib/unictype/categ_Sc.c: New file.
60818         * lib/unictype/categ_Sk.c: New file.
60819         * lib/unictype/categ_Sm.c: New file.
60820         * lib/unictype/categ_So.c: New file.
60821         * lib/unictype/categ_Z.c: New file.
60822         * lib/unictype/categ_Zl.c: New file.
60823         * lib/unictype/categ_Zp.c: New file.
60824         * lib/unictype/categ_Zs.c: New file.
60825         * lib/unictype/categ_and.c: New file.
60826         * lib/unictype/categ_and_not.c: New file.
60827         * lib/unictype/categ_byname.c: New file.
60828         * lib/unictype/categ_name.c: New file.
60829         * lib/unictype/categ_none.c: New file.
60830         * lib/unictype/categ_of.c: New file.
60831         * lib/unictype/categ_or.c: New file.
60832         * lib/unictype/categ_test.c: New file.
60833         * lib/unictype/combining.c: New file.
60834         * lib/unictype/ctype_alnum.c: New file.
60835         * lib/unictype/ctype_alpha.c: New file.
60836         * lib/unictype/ctype_blank.c: New file.
60837         * lib/unictype/ctype_cntrl.c: New file.
60838         * lib/unictype/ctype_digit.c: New file.
60839         * lib/unictype/ctype_graph.c: New file.
60840         * lib/unictype/ctype_lower.c: New file.
60841         * lib/unictype/ctype_print.c: New file.
60842         * lib/unictype/ctype_punct.c: New file.
60843         * lib/unictype/ctype_space.c: New file.
60844         * lib/unictype/ctype_upper.c: New file.
60845         * lib/unictype/ctype_xdigit.c: New file.
60846         * lib/unictype/decdigit.c: New file.
60847         * lib/unictype/digit.c: New file.
60848         * lib/unictype/identsyntaxmap.h: New file.
60849         * lib/unictype/mirror.c: New file.
60850         * lib/unictype/numeric.c: New file.
60851         * lib/unictype/pr_alphabetic.c: New file.
60852         * lib/unictype/pr_ascii_hex_digit.c: New file.
60853         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60854         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60855         * lib/unictype/pr_bidi_block_separator.c: New file.
60856         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60857         * lib/unictype/pr_bidi_common_separator.c: New file.
60858         * lib/unictype/pr_bidi_control.c: New file.
60859         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60860         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60861         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60862         * lib/unictype/pr_bidi_european_digit.c: New file.
60863         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60864         * lib/unictype/pr_bidi_left_to_right.c: New file.
60865         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60866         * lib/unictype/pr_bidi_other_neutral.c: New file.
60867         * lib/unictype/pr_bidi_pdf.c: New file.
60868         * lib/unictype/pr_bidi_segment_separator.c: New file.
60869         * lib/unictype/pr_bidi_whitespace.c: New file.
60870         * lib/unictype/pr_byname.c: New file.
60871         * lib/unictype/pr_byname.gperf: New file.
60872         * lib/unictype/pr_combining.c: New file.
60873         * lib/unictype/pr_composite.c: New file.
60874         * lib/unictype/pr_currency_symbol.c: New file.
60875         * lib/unictype/pr_dash.c: New file.
60876         * lib/unictype/pr_decimal_digit.c: New file.
60877         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60878         * lib/unictype/pr_deprecated.c: New file.
60879         * lib/unictype/pr_diacritic.c: New file.
60880         * lib/unictype/pr_extender.c: New file.
60881         * lib/unictype/pr_format_control.c: New file.
60882         * lib/unictype/pr_grapheme_base.c: New file.
60883         * lib/unictype/pr_grapheme_extend.c: New file.
60884         * lib/unictype/pr_grapheme_link.c: New file.
60885         * lib/unictype/pr_hex_digit.c: New file.
60886         * lib/unictype/pr_hyphen.c: New file.
60887         * lib/unictype/pr_id_continue.c: New file.
60888         * lib/unictype/pr_id_start.c: New file.
60889         * lib/unictype/pr_ideographic.c: New file.
60890         * lib/unictype/pr_ids_binary_operator.c: New file.
60891         * lib/unictype/pr_ids_trinary_operator.c: New file.
60892         * lib/unictype/pr_ignorable_control.c: New file.
60893         * lib/unictype/pr_iso_control.c: New file.
60894         * lib/unictype/pr_join_control.c: New file.
60895         * lib/unictype/pr_left_of_pair.c: New file.
60896         * lib/unictype/pr_line_separator.c: New file.
60897         * lib/unictype/pr_logical_order_exception.c: New file.
60898         * lib/unictype/pr_lowercase.c: New file.
60899         * lib/unictype/pr_math.c: New file.
60900         * lib/unictype/pr_non_break.c: New file.
60901         * lib/unictype/pr_not_a_character.c: New file.
60902         * lib/unictype/pr_numeric.c: New file.
60903         * lib/unictype/pr_other_alphabetic.c: New file.
60904         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60905         * lib/unictype/pr_other_grapheme_extend.c: New file.
60906         * lib/unictype/pr_other_id_continue.c: New file.
60907         * lib/unictype/pr_other_id_start.c: New file.
60908         * lib/unictype/pr_other_lowercase.c: New file.
60909         * lib/unictype/pr_other_math.c: New file.
60910         * lib/unictype/pr_other_uppercase.c: New file.
60911         * lib/unictype/pr_paired_punctuation.c: New file.
60912         * lib/unictype/pr_paragraph_separator.c: New file.
60913         * lib/unictype/pr_pattern_syntax.c: New file.
60914         * lib/unictype/pr_pattern_white_space.c: New file.
60915         * lib/unictype/pr_private_use.c: New file.
60916         * lib/unictype/pr_punctuation.c: New file.
60917         * lib/unictype/pr_quotation_mark.c: New file.
60918         * lib/unictype/pr_radical.c: New file.
60919         * lib/unictype/pr_sentence_terminal.c: New file.
60920         * lib/unictype/pr_soft_dotted.c: New file.
60921         * lib/unictype/pr_space.c: New file.
60922         * lib/unictype/pr_terminal_punctuation.c: New file.
60923         * lib/unictype/pr_test.c: New file.
60924         * lib/unictype/pr_titlecase.c: New file.
60925         * lib/unictype/pr_unassigned_code_value.c: New file.
60926         * lib/unictype/pr_unified_ideograph.c: New file.
60927         * lib/unictype/pr_uppercase.c: New file.
60928         * lib/unictype/pr_variation_selector.c: New file.
60929         * lib/unictype/pr_white_space.c: New file.
60930         * lib/unictype/pr_xid_continue.c: New file.
60931         * lib/unictype/pr_xid_start.c: New file.
60932         * lib/unictype/pr_zero_width.c: New file.
60933         * lib/unictype/scripts.c: New file.
60934         * lib/unictype/sy_c_ident.c: New file.
60935         * lib/unictype/sy_c_whitespace.c: New file.
60936         * lib/unictype/sy_java_ident.c: New file.
60937         * lib/unictype/sy_java_whitespace.c: New file.
60938
60939         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60940         Unicode 5.0.0.
60941         * lib/unictype/blocks.h: Likewise.
60942         * lib/unictype/categ_C.h: Likewise.
60943         * lib/unictype/categ_Cc.h: Likewise.
60944         * lib/unictype/categ_Cf.h: Likewise.
60945         * lib/unictype/categ_Cn.h: Likewise.
60946         * lib/unictype/categ_Co.h: Likewise.
60947         * lib/unictype/categ_Cs.h: Likewise.
60948         * lib/unictype/categ_L.h: Likewise.
60949         * lib/unictype/categ_Ll.h: Likewise.
60950         * lib/unictype/categ_Lm.h: Likewise.
60951         * lib/unictype/categ_Lo.h: Likewise.
60952         * lib/unictype/categ_Lt.h: Likewise.
60953         * lib/unictype/categ_Lu.h: Likewise.
60954         * lib/unictype/categ_M.h: Likewise.
60955         * lib/unictype/categ_Mc.h: Likewise.
60956         * lib/unictype/categ_Me.h: Likewise.
60957         * lib/unictype/categ_Mn.h: Likewise.
60958         * lib/unictype/categ_N.h: Likewise.
60959         * lib/unictype/categ_Nd.h: Likewise.
60960         * lib/unictype/categ_Nl.h: Likewise.
60961         * lib/unictype/categ_No.h: Likewise.
60962         * lib/unictype/categ_P.h: Likewise.
60963         * lib/unictype/categ_Pc.h: Likewise.
60964         * lib/unictype/categ_Pd.h: Likewise.
60965         * lib/unictype/categ_Pe.h: Likewise.
60966         * lib/unictype/categ_Pf.h: Likewise.
60967         * lib/unictype/categ_Pi.h: Likewise.
60968         * lib/unictype/categ_Po.h: Likewise.
60969         * lib/unictype/categ_Ps.h: Likewise.
60970         * lib/unictype/categ_S.h: Likewise.
60971         * lib/unictype/categ_Sc.h: Likewise.
60972         * lib/unictype/categ_Sk.h: Likewise.
60973         * lib/unictype/categ_Sm.h: Likewise.
60974         * lib/unictype/categ_So.h: Likewise.
60975         * lib/unictype/categ_Z.h: Likewise.
60976         * lib/unictype/categ_Zl.h: Likewise.
60977         * lib/unictype/categ_Zp.h: Likewise.
60978         * lib/unictype/categ_Zs.h: Likewise.
60979         * lib/unictype/categ_of.h: Likewise.
60980         * lib/unictype/combining.h: Likewise.
60981         * lib/unictype/ctype_alnum.h: Likewise.
60982         * lib/unictype/ctype_alpha.h: Likewise.
60983         * lib/unictype/ctype_blank.h: Likewise.
60984         * lib/unictype/ctype_cntrl.h: Likewise.
60985         * lib/unictype/ctype_digit.h: Likewise.
60986         * lib/unictype/ctype_graph.h: Likewise.
60987         * lib/unictype/ctype_lower.h: Likewise.
60988         * lib/unictype/ctype_print.h: Likewise.
60989         * lib/unictype/ctype_punct.h: Likewise.
60990         * lib/unictype/ctype_space.h: Likewise.
60991         * lib/unictype/ctype_upper.h: Likewise.
60992         * lib/unictype/ctype_xdigit.h: Likewise.
60993         * lib/unictype/decdigit.h: Likewise.
60994         * lib/unictype/digit.h: Likewise.
60995         * lib/unictype/mirror.h: Likewise.
60996         * lib/unictype/numeric.h: Likewise.
60997         * lib/unictype/pr_alphabetic.h: Likewise.
60998         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60999         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61000         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61001         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61002         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61003         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61004         * lib/unictype/pr_bidi_control.h: Likewise.
61005         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61006         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61007         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61008         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61009         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61010         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61011         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61012         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61013         * lib/unictype/pr_bidi_pdf.h: Likewise.
61014         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61015         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61016         * lib/unictype/pr_combining.h: Likewise.
61017         * lib/unictype/pr_composite.h: Likewise.
61018         * lib/unictype/pr_currency_symbol.h: Likewise.
61019         * lib/unictype/pr_dash.h: Likewise.
61020         * lib/unictype/pr_decimal_digit.h: Likewise.
61021         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61022         * lib/unictype/pr_deprecated.h: Likewise.
61023         * lib/unictype/pr_diacritic.h: Likewise.
61024         * lib/unictype/pr_extender.h: Likewise.
61025         * lib/unictype/pr_format_control.h: Likewise.
61026         * lib/unictype/pr_grapheme_base.h: Likewise.
61027         * lib/unictype/pr_grapheme_extend.h: Likewise.
61028         * lib/unictype/pr_grapheme_link.h: Likewise.
61029         * lib/unictype/pr_hex_digit.h: Likewise.
61030         * lib/unictype/pr_hyphen.h: Likewise.
61031         * lib/unictype/pr_id_continue.h: Likewise.
61032         * lib/unictype/pr_id_start.h: Likewise.
61033         * lib/unictype/pr_ideographic.h: Likewise.
61034         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61035         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61036         * lib/unictype/pr_ignorable_control.h: Likewise.
61037         * lib/unictype/pr_iso_control.h: Likewise.
61038         * lib/unictype/pr_join_control.h: Likewise.
61039         * lib/unictype/pr_left_of_pair.h: Likewise.
61040         * lib/unictype/pr_line_separator.h: Likewise.
61041         * lib/unictype/pr_logical_order_exception.h: Likewise.
61042         * lib/unictype/pr_lowercase.h: Likewise.
61043         * lib/unictype/pr_math.h: Likewise.
61044         * lib/unictype/pr_non_break.h: Likewise.
61045         * lib/unictype/pr_not_a_character.h: Likewise.
61046         * lib/unictype/pr_numeric.h: Likewise.
61047         * lib/unictype/pr_other_alphabetic.h: Likewise.
61048         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61049         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61050         * lib/unictype/pr_other_id_continue.h: Likewise.
61051         * lib/unictype/pr_other_id_start.h: Likewise.
61052         * lib/unictype/pr_other_lowercase.h: Likewise.
61053         * lib/unictype/pr_other_math.h: Likewise.
61054         * lib/unictype/pr_other_uppercase.h: Likewise.
61055         * lib/unictype/pr_paired_punctuation.h: Likewise.
61056         * lib/unictype/pr_paragraph_separator.h: Likewise.
61057         * lib/unictype/pr_pattern_syntax.h: Likewise.
61058         * lib/unictype/pr_pattern_white_space.h: Likewise.
61059         * lib/unictype/pr_private_use.h: Likewise.
61060         * lib/unictype/pr_punctuation.h: Likewise.
61061         * lib/unictype/pr_quotation_mark.h: Likewise.
61062         * lib/unictype/pr_radical.h: Likewise.
61063         * lib/unictype/pr_sentence_terminal.h: Likewise.
61064         * lib/unictype/pr_soft_dotted.h: Likewise.
61065         * lib/unictype/pr_space.h: Likewise.
61066         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61067         * lib/unictype/pr_titlecase.h: Likewise.
61068         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61069         * lib/unictype/pr_unified_ideograph.h: Likewise.
61070         * lib/unictype/pr_uppercase.h: Likewise.
61071         * lib/unictype/pr_variation_selector.h: Likewise.
61072         * lib/unictype/pr_white_space.h: Likewise.
61073         * lib/unictype/pr_xid_continue.h: Likewise.
61074         * lib/unictype/pr_xid_start.h: Likewise.
61075         * lib/unictype/pr_zero_width.h: Likewise.
61076         * lib/unictype/scripts.h: Likewise.
61077         * lib/unictype/scripts_byname.gperf: Likewise.
61078         * lib/unictype/sy_c_ident.h: Likewise.
61079         * lib/unictype/sy_c_whitespace.h: Likewise.
61080         * lib/unictype/sy_java_ident.h: Likewise.
61081         * lib/unictype/sy_java_whitespace.h: Likewise.
61082
61083         * lib/unictype/Makefile: New file.
61084         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61085         glibc.
61086         * lib/unictype/3level.h: New file, copied from glibc.
61087         * lib/unictype/3levelbit.h: New file.
61088
61089 2007-11-11  Bruno Haible  <bruno@clisp.org>
61090
61091         * modules/gperf: New file.
61092         * modules/iconv_open (Depends-on): Add it.
61093         (Makefile.am): Remove the GPERF definition.
61094
61095 2007-11-11  Bruno Haible  <bruno@clisp.org>
61096
61097         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61098         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61099
61100 2007-11-11  Bruno Haible  <bruno@clisp.org>
61101
61102         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61103         (usage): Remove function.
61104
61105 2007-11-11  Bruno Haible  <bruno@clisp.org>
61106
61107         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61108         gl_FUNC_CEILF_LIBS.
61109         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61110         gl_FUNC_CEIL_LIBS.
61111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61112         gl_FUNC_CEILL_LIBS.
61113         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61114         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61115         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61116
61117 2007-11-11  Bruno Haible  <bruno@clisp.org>
61118
61119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61120         roundf were declared but do not exist on functions.
61121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61122         roundl were declared but do not exist on functions.
61123         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61124         HAVE_FLOORL_AND_CEILL, respectively.
61125         Needed for Sun C on Solaris 10.
61126
61127 2007-11-11  Bruno Haible  <bruno@clisp.org>
61128
61129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61130         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61131         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61132         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61133         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61134         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61135         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61136         HAVE_DECL_ROUNDF.
61137         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61138         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61140         of HAVE_DECL_ROUND*.
61141         * modules/math (Makefile.am): Update.
61142
61143 2007-11-10  Bruno Haible  <bruno@clisp.org>
61144
61145         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61146         ptrdiff_t as m4/intl.m4.
61147
61148 2007-11-10  Jim Meyering  <meyering@redhat.com>
61149
61150         Avoid link failure for the argmatch test.
61151         * tests/test-argmatch.c (usage): Define function to avoid a link
61152         failure: argmatch_die requires a usage function.
61153
61154 2007-11-09  Bruno Haible  <bruno@clisp.org>
61155
61156         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61157         * doc/functions/vsnprintf.texi: Likewise.
61158         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61159         with a size argument < 2.
61160
61161 2007-11-09  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61164         buffer. Fixes an inefficiency introduced on 2007-11-03.
61165
61166 2007-11-09  Bruno Haible  <bruno@clisp.org>
61167
61168         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61169         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61170
61171 2007-11-08  Jim Meyering  <meyering@redhat.com>
61172
61173         Change cache variable name prefix "jm_" to "gl_" everywhere.
61174         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61175         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61176         * m4/uptime.m4: s/gl_/jm_/
61177
61178 2007-11-07  Bruno Haible  <bruno@clisp.org>
61179
61180         Update to GNU gettext 0.17.
61181         * m4/intl.m4: Update to GNU gettext 0.17.
61182         * m4/po.m4: Likewise.
61183         * modules/gettext (Files): Remove m4/ulonglong.m4.
61184         (configure.ac): Require gettext infrastructure from version 0.17.
61185
61186 2007-11-06  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61189         symbolic values are not defined in a public header.
61190         * lib/freadable.c (freadable) [QNX]: Likewise.
61191         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61192         * lib/freading.c (freading) [QNX]: Likewise.
61193         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61194         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61195         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61196         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61197         Reported by Alain Magloire.
61198
61199         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61200
61201 2007-11-05  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61204         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61205         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61206         Reported by Eric Blake.
61207
61208 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61209             Bruno Haible  <bruno@clisp.org>
61210
61211         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61212         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61213         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61214         (malloc): Undefine also before including <stdlib.h>.
61215         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61216         Needed on OSF/1 4.0.
61217
61218 2007-11-05  Jim Meyering  <meyering@redhat.com>
61219
61220         git-version-gen: sync from coreutils.
61221         * build-aux/git-version-gen: Add comments.
61222         Change the first '-' to '.' in the snapshot version string,
61223         e.g., 6.9-377-08144 -> 6.9.377-08144
61224         Remove first parameter.
61225         Don't declare a version "-dirty" merely because a time
61226         stamp has changed.
61227
61228 2007-11-04  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/lock.h: Protect all macro definitions containing an 'if'
61231         statement through a "do { ... } while (0)".
61232         * lib/tls.h: Likewise.
61233
61234 2007-11-04  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61237
61238 2007-11-04  Bruno Haible  <bruno@clisp.org>
61239
61240         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61241         * modules/fprintf-posix (Depends-on): Add nocrash.
61242         * modules/snprintf-posix (Depends-on): Likewise.
61243         * modules/sprintf-posix (Depends-on): Likewise.
61244         * modules/vasnprintf-posix (Depends-on): Likewise.
61245         * modules/vasprintf-posix (Depends-on): Likewise.
61246         * modules/vfprintf-posix (Depends-on): Likewise.
61247         * modules/vsnprintf-posix (Depends-on): Likewise.
61248         * modules/vsprintf-posix (Depends-on): Likewise.
61249         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61250         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61251         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61252         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61253         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61254         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61255         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61256
61257 2007-11-04  Bruno Haible  <bruno@clisp.org>
61258
61259         * modules/nocrash: New file.
61260         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61261         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61262
61263 2007-11-04  Bruno Haible  <bruno@clisp.org>
61264
61265         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61266         precision handling.
61267         * tests/test-vasprintf-posix.c (test_function): Likewise.
61268         * tests/test-snprintf-posix.h (test_function): Likewise.
61269         * tests/test-sprintf-posix.h (test_function): Likewise.
61270
61271         Fix *printf behaviour for large precisions on mingw and BeOS.
61272         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61273         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61275         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61277         gl_PRINTF_PRECISION and test its result. Invoke
61278         gl_PREREQ_VASNPRINTF_PRECISION.
61279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61286         * doc/functions/fprintf.texi: Update.
61287         * doc/functions/printf.texi: Update.
61288         * doc/functions/snprintf.texi: Update.
61289         * doc/functions/sprintf.texi: Update.
61290         * doc/functions/vfprintf.texi: Update.
61291         * doc/functions/vprintf.texi: Update.
61292         * doc/functions/vsnprintf.texi: Update.
61293         * doc/functions/vsprintf.texi: Update.
61294
61295 2007-11-04  Bruno Haible  <bruno@clisp.org>
61296
61297         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61298
61299 2007-11-04  Bruno Haible  <bruno@clisp.org>
61300
61301         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61302         Reported by Sylvain Beucler <beuc@gnu.org>.
61303
61304 2007-11-03  Bruno Haible  <bruno@clisp.org>
61305
61306         * tests/test-fprintf-posix2.sh: New file.
61307         * tests/test-fprintf-posix2.c: New file.
61308         * modules/fprintf-posix-tests (Files): Add them.
61309         (TESTS): Add test-fprintf-posix2.sh.
61310         (configure.ac): Check for getrlimit and setrlimit.
61311         (check_PROGRAMS): Add test-fprintf-posix2.
61312
61313         * tests/test-printf-posix2.sh: New file.
61314         * tests/test-printf-posix2.c: New file.
61315         * modules/printf-posix-tests (Files): Add them.
61316         (TESTS): Add test-printf-posix2.sh.
61317         (configure.ac): Check for getrlimit and setrlimit.
61318         (check_PROGRAMS): Add test-printf-posix2.
61319
61320         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61321         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61322         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61323         (decode_double): New function, copied from decode_long_double.
61324         (scale10_round_decimal_decoded): New function, extracted from
61325         scale10_round_decimal_long_double.
61326         (scale10_round_decimal_long_double): Use it.
61327         (scale10_round_decimal_double): New function.
61328         (floorlog10): New function.
61329         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61331         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61332         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61333         gl_PRINTF_ENOMEM and test its result. Invoke
61334         gl_PREREQ_VASNPRINTF_ENOMEM.
61335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61339         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61341         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61342         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61343         * modules/snprintf-posix (Depends-on): Likewise.
61344         * modules/sprintf-posix (Depends-on): Likewise.
61345         * modules/vasnprintf-posix (Depends-on): Likewise.
61346         * modules/vasprintf-posix (Depends-on): Likewise.
61347         * modules/vfprintf-posix (Depends-on): Likewise.
61348         * modules/vsnprintf-posix (Depends-on): Likewise.
61349         * modules/vsprintf-posix (Depends-on): Likewise.
61350         * doc/functions/fprintf.texi: Update.
61351         * doc/functions/printf.texi: Update.
61352         * doc/functions/snprintf.texi: Update.
61353         * doc/functions/sprintf.texi: Update.
61354         * doc/functions/vfprintf.texi: Update.
61355         * doc/functions/vprintf.texi: Update.
61356         * doc/functions/vsnprintf.texi: Update.
61357         * doc/functions/vsprintf.texi: Update.
61358
61359 2007-11-03  Bruno Haible  <bruno@clisp.org>
61360
61361         * modules/frexp-nolibm-tests: New file.
61362
61363         * modules/frexp-nolibm: New file.
61364         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61365
61366 2007-11-03  Bruno Haible  <bruno@clisp.org>
61367
61368         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61369         value is C99 compliant.
61370         Needed for OSF/1 5.1.
61371
61372 2007-11-03  Bruno Haible  <bruno@clisp.org>
61373
61374         Fix out-of-memory handling of vasnprintf.
61375         * lib/printf-parse.c: Include <errno.h>.
61376         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61377         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61378         is already set.
61379
61380 2007-11-02  Eric Blake  <ebb9@byu.net>
61381
61382         Fix tests on cygwin.
61383         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61384
61385 2007-11-01  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61388         warning.
61389         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61390         needed for POSIX compatibility.
61391
61392 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61395         for compatibility with GNU.
61396
61397 2007-11-01  Bruno Haible  <bruno@clisp.org>
61398
61399         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61400         (putenv): Renamed from rpl_putenv. Change argument type from
61401         'const char *' to 'char *'.
61402         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61403         of defining putenv in config.h, just set REPLACE_PUTENV.
61404         * modules/putenv (Depends-on): Add stdlib.
61405         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61406         (Include): Use <stdlib.h>.
61407         * lib/stdlib.in.h (putenv): New declaration.
61408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61409         REPLACE_PUTENV.
61410         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61411         REPLACE_PUTENV.
61412         Needed for MacOS X 10.5.0.
61413         Reported by Peter O'Gorman <peter@pogma.com>.
61414
61415 2007-11-01  Jim Meyering  <meyering@redhat.com>
61416
61417         Treat an empty date string exactly like "0".
61418         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61419         if the remaining date string (to be parsed) is empty, use "0".
61420         Reported by Mischa Molhoek and discussed in this thread:
61421         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61422
61423 2007-10-31  Bruno Haible  <bruno@clisp.org>
61424
61425         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61426         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61427         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61428         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61429         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61430         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61431
61432 2007-10-31  Bruno Haible  <bruno@clisp.org>
61433
61434         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61435         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61436         (AC_TYPE_LONG_LONG_INT): Use it.
61437         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61438         it as well.
61439         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61440         to m4/longlong.m4.
61441         * modules/stdint (Files): Remove m4/ulonglong.m4.
61442         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61443         m4/ulonglong.m4.
61444         * modules/strtoumax (Files): Likewise.
61445
61446 2007-10-30  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/xvasprintf-posix: New file.
61449         Suggested by Eric Blake.
61450
61451 2007-10-30  Bruno Haible  <bruno@clisp.org>
61452
61453         * modules/xprintf-posix-tests: New file.
61454         * tests/test-xprintf-posix.sh: New file.
61455         * tests/test-xprintf-posix.c: New file.
61456         * tests/test-xfprintf-posix.c: New file.
61457
61458         * modules/xprintf-posix: New file.
61459
61460 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61461
61462         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61463         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61464         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61465
61466 2007-10-29  Bruno Haible  <bruno@clisp.org>
61467
61468         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61469         contain the special marker '_cv_'.
61470         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61471         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61472         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61473         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61474         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61475         Reported by Ralf Wildenhues.
61476
61477 2007-10-29  Bruno Haible  <bruno@clisp.org>
61478
61479         * gnulib-tool (func_import): When --lgpl is not specified, set
61480         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61481         GPLv3.
61482         Reported by Simon Josefsson.
61483
61484 2007-10-28  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61487         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61488         HAVE_DECL_ISFINITE.
61489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61490         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61491         HAVE_DECL_ISFINITE.
61492
61493 2007-10-28  Bruno Haible  <bruno@clisp.org>
61494
61495         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61496         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61497
61498 2007-10-28  Bruno Haible  <bruno@clisp.org>
61499
61500         Fix link errors with Sun C 5.0 on Solaris 10.
61501         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61502         function is declared but not present in the compiler's libm.
61503         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61504         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61505         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61506         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61507         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61508         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61509         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61511         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61512         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61513         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61514         HAVE_DECL_FLOORL.
61515
61516 2007-10-28  Bruno Haible  <bruno@clisp.org>
61517
61518         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61519         gl_FUNC_FLOORL. Cache the result.
61520         (gl_FUNC_FLOORL): Use it.
61521         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61522         gl_FUNC_CEILL. Cache the result.
61523         (gl_FUNC_CEILL): Use it.
61524
61525         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61526         gl_FUNC_FLOOR. Cache the result.
61527         (gl_FUNC_FLOOR): Use it.
61528         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61529         gl_FUNC_CEIL. Cache the result.
61530         (gl_FUNC_CEIL): Use it.
61531
61532         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61533         gl_FUNC_FLOORF. Cache the result.
61534         (gl_FUNC_FLOORF): Use it.
61535         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61536         gl_FUNC_CEILF. Cache the result.
61537         (gl_FUNC_CEILF): Use it.
61538
61539 2007-10-28  Bruno Haible  <bruno@clisp.org>
61540
61541         * gnulib-tool: Allow specifying the LGPL version number through
61542         --lgpl=2 or --lgpl=3.
61543         (func_usage): Document --lgpl with argument.
61544         Handle --lgpl=... arguments.
61545         (func_import): Recognize also gl_LGPL calls with an argument. When
61546         --lgpl=2 is used and the module's license is just LGPL, report an
61547         error. Set sed_transform_lib_file according to the lgpl variable. In
61548         the generated files, use --lgpl or gl_LGPL invocations with argument,
61549         if necessary.
61550         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61551         an LGPv2+ license.
61552         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61553         gl_LGPL macro.
61554
61555 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61556             Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61559         (u16_uctomb_aux): Likewise.
61560         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61561         !HAVE_INLINE.
61562         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61563
61564 2007-10-28  Bruno Haible  <bruno@clisp.org>
61565
61566         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61567         Invoke AM_GETTEXT_OPTION if it exists.
61568         * modules/vasprintf: Likewise.
61569         * modules/verror: Likewise.
61570         * modules/xprintf: Likewise.
61571         * modules/xvasprintf: Likewise.
61572
61573 2007-10-27  Ben Pfaff  <blp@gnu.org>
61574
61575         * lib/math.in.h: Define isfinite macro and prototypes for
61576         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61577         implementations.
61578         * m4/math_h.m4: New substitutions for isfinite module.
61579         * lib/isfinite.c: New file.
61580         * m4/isfinite.m4: New file.
61581         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61582         * modules/isfinite: New file.
61583         * modules/isfinite-tests: New file.
61584         * tests/tests-isfinite.c: New file.
61585         * doc/functions/isfinite.texi: Mention isfinite module.
61586         * MODULES.html.sh: Mention new module.
61587
61588 2007-10-27  Ben Pfaff  <blp@gnu.org>
61589
61590         Ralf Wildenhues reported that Tru64 4.0D declares the round
61591         functions but does not have definitions.
61592         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61593         cannot be found in any library, set the output variable to
61594         "missing" instead of "".
61595         * m4/round.m4: Also use our substitute if we cannot find round in
61596         any library, even if it is declared.
61597         * m4/roundf.m4: Likewise for roundf.
61598         * m4/roundl.m4: Likewise for roundl.
61599         * lib/math.in.h: Undefine roundf, round, roundl before defining
61600         their replacements, to allow for hypothetical systems where these
61601         may be defined as macros but not available in libraries.
61602
61603 2007-10-27  Bruno Haible  <bruno@clisp.org>
61604
61605         * doc/gnulib.texi: Invoke @firstparagraphindent.
61606         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61607         changes in gnulib.
61608         (Source changes): New section.
61609
61610 2007-10-26  Bruno Haible  <bruno@clisp.org>
61611
61612         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61613         borrowed from autoconf.
61614
61615 2007-10-26  Bruno Haible  <bruno@clisp.org>
61616
61617         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61618         strerror returned the empty string. Needed on HP-UX 11.00.
61619
61620 2007-10-24  Micah Cowan  <micah@cowan.name>
61621
61622         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61623         * build-aux/bootstrap: Remove support for now-unnecessary option,
61624         --cvs-user, and envvars CVS_USER, CVS_RSH.
61625
61626 2007-10-24  Jim Meyering  <meyering@redhat.com>
61627
61628         Avoid diagnostics from sha1sum when there is no cached checksum.
61629         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61630         if the po.s1 file hasn't been created yet.
61631
61632         * build-aux/bootstrap: Sync from coreutils:
61633         2007-10-24  Jim Meyering  <meyering@redhat.com>
61634         Get gnulib from the git repository, not from an obsolete cvs one.
61635         * build-aux/bootstrap: Suggestion from Micah Cowan.
61636         2007-10-04  Jim Meyering  <jim@meyering.net>
61637         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61638         (update_po_files): Work also when there are no .po files in po/.
61639
61640 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61641
61642         * README: Append ".git" to git and cg examples.
61643         Problem reported by Benoit Sigoure.
61644
61645 2007-10-23  Micah Cowan  <micah@cowan.name>
61646
61647         * users.txt: Add wget.
61648
61649 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61650
61651         Fix linking of some unistdio tests on FreeBSD.
61652         * modules/unistdio/u16-vsnprintf-tests
61653         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61654         * modules/unistdio/u16-vsprintf-tests
61655         (test_u16_vsnprintf1_LDADD): Likewise.
61656         * modules/unistdio/u32-vsnprintf-tests
61657         (test_u32_vsnprintf1_LDADD): Likewise.
61658         * modules/unistdio/u32-vsprintf-tests
61659         (test_u32_vsprintf1_LDADD): Likewise.
61660         * modules/unistdio/u8-vsnprintf-tests
61661         (test_u8_vsnprintf1_LDADD): Likewise.
61662         * modules/unistdio/u8-vsprintf-tests
61663         (test_u8_vsprintf1_LDADD): Likewise.
61664         * modules/unistdio/ulc-vsnprintf-tests
61665         (test_ulc_vsnprintf1_LDADD): Likewise.
61666         * modules/unistdio/ulc-vsprintf-tests
61667         (test_ulc_vsprintf1_LDADD): Likewise.
61668
61669         Fix linking of some uniconv tests on FreeBSD.
61670         * modules/uniconv/u16-conv-from-enc-tests
61671         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61672         * modules/uniconv/u16-conv-to-enc-tests
61673         (test_u16_conv_to_enc_LDADD): Likewise.
61674         * modules/uniconv/u16-strconv-from-enc-tests
61675         (test_u16_strconv_from_enc_LDADD): Likewise.
61676         * modules/uniconv/u16-strconv-to-enc-tests
61677         (test_u16_strconv_to_enc_LDADD): Likewise.
61678         * modules/uniconv/u32-conv-from-enc-tests
61679         (test_u32_conv_from_enc_LDADD): Likewise.
61680         * modules/uniconv/u32-conv-to-enc-tests
61681         (test_u32_conv_to_enc_LDADD): Likewise.
61682         * modules/uniconv/u32-strconv-from-enc-tests
61683         (test_u32_strconv_from_enc_LDADD): Likewise.
61684         * modules/uniconv/u32-strconv-to-enc-tests
61685         (test_u32_strconv_to_enc_LDADD): Likewise.
61686         * modules/uniconv/u8-conv-from-enc-tests
61687         (test_u8_conv_from_enc_LDADD): Likewise.
61688         * modules/uniconv/u8-conv-to-enc-tests
61689         (test_u8_conv_to_enc_LDADD): Likewise.
61690         * modules/uniconv/u8-strconv-from-enc-tests
61691         (test_u8_strconv_from_enc_LDADD): Likewise.
61692         * modules/uniconv/u8-strconv-to-enc-tests
61693         (test_u8_strconv_to_enc_LDADD): Likewise.
61694
61695 2007-10-22  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61698         size.
61699
61700 2007-10-22  Eric Blake  <ebb9@byu.net>
61701
61702         Tweak x*printf documentation.
61703         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61704         variable name and comments.
61705         Suggested by Bruno Haible.
61706
61707 2007-10-22  Bruno Haible  <bruno@clisp.org>
61708
61709         * lib/acl.c (copy_acl): Fix file name in comment.
61710
61711 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         Fix Tru64 problem with stdbool.h.
61714         * lib/stdbool.in.h (false, true):
61715         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61716         Don't declare as an enum in this situation; it runs afoul of Tru64.
61717         Problem reported by Steven M. Schweda in
61718         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61719
61720 2007-10-22  Eric Blake  <ebb9@byu.net>
61721
61722         Also wrap vf?printf.
61723         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61724         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61725         (xvprintf, xvfprintf): New functions.
61726
61727 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61728
61729         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61730         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61731
61732         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61733         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61734
61735 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61738         by Bruno Haible.
61739
61740 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61741
61742         * lib/getloadavg.c
61743         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61744         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61745
61746         * tests/test-i-ring.c: Work for C89.
61747
61748 2007-10-22  Bruno Haible  <bruno@clisp.org>
61749
61750         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61751         -1u, in preprocessor expression, so that we don't test for the bug
61752         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61754
61755 2007-10-22  Eric Blake  <ebb9@byu.net>
61756
61757         * tests/test-yesno.sh: Silence stderr during test.
61758
61759 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61760
61761         * modules/crypto/gc-camellia: New file.
61762
61763         * m4/gc-camellia.m4: New file.
61764
61765         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61766
61767         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61768
61769 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61770
61771         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61772         --help to stdout.  Reported by sms@antinode.org (Steven
61773         M. Schweda).
61774
61775 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61776
61777         * users.txt: Fix link to libksba.
61778
61779 2007-10-21  Ben Pfaff  <blp@gnu.org>
61780
61781         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61782         round.c roundf implementation that depends on floorf and ceilf to
61783         be tested unconditionally.
61784
61785 2007-10-21  Ben Pfaff  <blp@gnu.org>
61786
61787         * m4/check-libm-func.m4: Removed.
61788         * m4/check-math-lib.m4: New file.
61789         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61790         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61791         definition and lack of AC_LIBOBJ([roundf]).
61792         * m4/roundl.m4: Ditto, and similarly for roundl.
61793         * modules/round: Reference new m4 file.
61794         * modules/roundf: Ditto.
61795         * modules/roundl: Ditto.
61796         * tests/test-round2.c (main): Use ROUND instead of round.
61797         Bug report from Bruno Haible.
61798
61799 2007-10-21  Bruno Haible  <bruno@clisp.org>
61800
61801         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61802         context.
61803
61804 2007-10-21  Bruno Haible  <bruno@clisp.org>
61805
61806         * tests/test-wcwidth.c (main): Allow negative result for some control
61807         characters.
61808
61809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61810         Needed on OSF/1 5.1.
61811
61812 2007-10-21  Bruno Haible  <bruno@clisp.org>
61813
61814         * tests/test-floorf1.c: Include isnanf.h.
61815         (main): Use isnanf() instead of isnan().
61816         * tests/test-ceilf1.c: Include isnanf.h.
61817         (main): Use isnanf() instead of isnan().
61818         * tests/test-truncf1.c: Include isnanf.h.
61819         (main): Use isnanf() instead of isnan().
61820         * tests/test-roundf1.c: Include isnanf.h.
61821         (main): Use isnanf() instead of isnan().
61822
61823 2007-10-21  Eric Blake  <ebb9@byu.net>
61824
61825         * users.txt: Update URL for m4.
61826
61827 2007-10-21  Bruno Haible  <bruno@clisp.org>
61828
61829         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61830
61831 2007-10-21  Bruno Haible  <bruno@clisp.org>
61832
61833         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61834         Git's management files if the CVS files are not present.
61835
61836 2007-10-20  Bruno Haible  <bruno@clisp.org>
61837
61838         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61839         gcc-3.4.x.
61840
61841 2007-10-20  Ben Pfaff  <blp@gnu.org>
61842
61843         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61844         implementations.
61845         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61846         * lib/round.c: New file.
61847         * lib/roundf.c: New file.
61848         * lib/roundl.c: New file.
61849         * m4/round.m4: New file.
61850         * m4/roundf.m4: New file.
61851         * m4/roundl.m4: New file.
61852         * m4/check-libm-func-m4: New file.
61853         * modules/math: Replace round, roundf, roundl related @VARS@ in
61854         math.in.h.
61855         * modules/round: New file.
61856         * modules/round-tests: New file.
61857         * modules/roundf: New file.
61858         * modules/roundf-tests: New file.
61859         * modules/roundl: New file.
61860         * modules/roundl-tests: New file.
61861         * tests/test-round1.c: New file.
61862         * tests/test-round2.c: New file.
61863         * tests/test-roundf1.c: New file.
61864         * tests/test-roundf2.c: New file.
61865         * tests/test-roundl.c: New file.
61866         * doc/functions/round.texi: Mention round module.
61867         * doc/functions/roundf.texi: Mention roundf module.
61868         * doc/functions/roundl.texi: Mention roundl module.
61869         * MODULES.html.sh: Mention new modules.
61870         Thanks to Bruno Haible for suggestions.
61871
61872 2007-10-20  Jim Meyering  <meyering@redhat.com>
61873
61874         * lib/xprintf.c: Include <config.h> unconditionally.
61875
61876         Change xprintf's license to GPL.
61877         * modules/xprintf (License): s/LGPL/GPL/, since this module
61878         depends on modules (exit and exitfail) which are GPL.
61879         Suggestion from Bruno Haible.
61880
61881         xprintf fixes.
61882         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61883         Use a clearer diagnostic.
61884         Patch from Bruno Haible.
61885
61886 2007-10-20  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61889         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61891
61892 2007-10-20  Bruno Haible  <bruno@clisp.org>
61893
61894         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61895         precision in the comparison result > x - 1 or similar.
61896         * tests/test-ceilf2.c (correct_result_p): Likewise.
61897         * tests/test-truncf2.c (correct_result_p): Likewise.
61898         * tests/test-trunc2.c (correct_result_p): Likewise.
61899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61900
61901 2007-10-20  Bruno Haible  <bruno@clisp.org>
61902
61903         * modules/ceil: New file.
61904         * m4/ceil.m4: New file.
61905         * doc/functions/ceil.texi: Mention the 'ceil' module.
61906
61907 2007-10-20  Bruno Haible  <bruno@clisp.org>
61908
61909         * modules/floor: New file.
61910         * m4/floor.m4: New file.
61911         * doc/functions/floor.texi: Mention the 'floor' module.
61912
61913 2007-10-20  Bruno Haible  <bruno@clisp.org>
61914
61915         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61916         of %a.
61917         * modules/floorf-tests (Depends-on): Likewise.
61918         * modules/truncf-tests (Depends-on): Likewise.
61919         * modules/trunc-tests (Depends-on): Likewise.
61920         Reported by Ben Pfaff.
61921
61922 2007-10-19  Jim Meyering  <meyering@redhat.com>
61923
61924         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61925         Don't bother testing specific errno values.  Just test ferror.
61926
61927         New module: xprintf
61928         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61929
61930 2007-10-19  Bruno Haible  <bruno@clisp.org>
61931
61932         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61933         syntax.
61934         * modules/javaexec (Makefile.am): Likewise.
61935         * modules/relocatable-prog (Makefile.am): Likewise.
61936         Suggested by Jim Meyering.
61937
61938 2007-10-18  Bruno Haible  <bruno@clisp.org>
61939
61940         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61941         Reported by Jim Meyering.
61942
61943 2007-10-18  Eric Blake  <ebb9@byu.net>
61944
61945         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61946
61947 2007-10-18  Bruno Haible  <bruno@clisp.org>
61948
61949         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61950         the format string into writable memory. Needed in Fortify conditions.
61951
61952 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61953             Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61956         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61957         * modules/trim (Depends-on): Add mbchar.
61958         (configure.ac): Add gl_FUNC_MBRTOWC.
61959         (Makefile.am): Augment lib_SOURCES.
61960
61961 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         Modify glob.c to use fstatat and dirfd, to simplify it.
61964         Suggested by Eric Blake.
61965         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61966         Don't include <stdbool.h>; not used.
61967         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61968         (link_exists_p): Simplify implementation, since we can now assume
61969         dirfd and fstatat.
61970         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61971
61972 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61973
61974         * gnulib-tool (func_get_dependencies): Fix sed script to
61975         match only tests.
61976
61977 2007-10-17  Bruno Haible  <bruno@clisp.org>
61978
61979         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61980         allow locale names without encoding suffix.
61981         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61982         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61983
61984 2007-10-16  Bruno Haible  <bruno@clisp.org>
61985
61986         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61987         * lib/getgroups.c (getgroups): Likewise.
61988         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61989
61990 2007-10-16  Bruno Haible  <bruno@clisp.org>
61991
61992         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61993         * modules/malloc-posix (License): Likewise.
61994         * modules/realloc-posix (License): Likewise.
61995         * modules/calloc-posix (License): Likewise.
61996         * modules/intprops (License): Change from GPL to LGPL, with
61997         Paul Eggert's approval.
61998
61999 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         Merge glibc changes into lib/glob.c.
62002
62003         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62004         2007-10-15 04:59:03 UTC.  Here are the changes:
62005
62006         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62007
62008         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62009
62010         * lib/glob.c: Add some branch prediction throughout.
62011
62012         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62013
62014         [BZ #5103]
62015         * lib/glob.c (glob): Recognize patterns starting \/.
62016
62017         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62018
62019         [BZ #3996]
62020         * lib/glob.c (attribute_hidden): Define if not defined.
62021         (glob): Unescape dirname, filename or username when needed and not
62022         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62023         is NULL.  Handle unescaped [ in pattern without closing ].
62024         Don't pass GLOB_CHECK down to recursive glob for directories.
62025         (__glob_pattern_type): New function.
62026         (__glob_pattern_p): Implement using __glob_pattern_type.
62027         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62028         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62029         Remove unreachable code.
62030
62031         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62032
62033         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62034         explain why there are no leaks.
62035
62036         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62037
62038         [BZ #3253]
62039         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62040         time, rather allocate increasingly bigger arrays of pointers, if
62041         possible with alloca, if too large with malloc.
62042
62043 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62044
62045         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62046         Problem reported by H.Merijn Brand in
62047         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62048         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62049         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62050
62051 2007-10-15  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62054         with explicit rpl_ prefix.
62055         * lib/fopen.c (fopen): Likewise.
62056         * lib/freopen.c (freopen): Likewise.
62057         * lib/iconv.c (iconv): Likewise.
62058         * lib/iconv_close.c (iconv_close): Likewise.
62059
62060 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62061
62062         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62063
62064 2007-10-15  Bruno Haible  <bruno@clisp.org>
62065
62066         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62067         <stddef.h> instead of <stdlib.h> since we only need NULL.
62068         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62069
62070 2007-10-15  Bruno Haible  <bruno@clisp.org>
62071
62072         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62073         Replace paragraph talking about LIBOBJS.
62074         Reported by Colin Watson <cjwatson@debian.org>.
62075
62076 2007-10-15  Bruno Haible  <bruno@clisp.org>
62077
62078         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62079         <stdlib.h> before using NULL.
62080
62081 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62082
62083         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62084         Reported by Albert Chin <china@thewrittenword.com>.
62085
62086 2007-10-14  Bruno Haible  <bruno@clisp.org>
62087
62088         * modules/iconv_open-utf-tests: New file.
62089         * tests/test-iconv-utf.c: New file.
62090
62091         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62092         * modules/iconv_open-utf: New file.
62093         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62094         (iconv, iconv_close): New declarations.
62095         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62096         be defined.
62097         (iconv_open): Add special handling of conversion between UTF-8 and
62098         UTF-{16,32}{BE,LE}.
62099         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62100         * lib/iconv_close.c: New file.
62101         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62102         gl_FUNC_ICONV_OPEN.
62103         (gl_FUNC_ICONV_OPEN): Use it.
62104         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62105         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62106         and REPLACE_ICONV_UTF.
62107         * modules/iconv_open (Depends-on): Add c-strcase.
62108         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62109         ICONV_CONST.
62110         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62111
62112 2007-10-13  Albert Chin  <china@thewrittenword.com>
62113             Bruno Haible  <bruno@clisp.org>
62114
62115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62116         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62117
62118 2007-10-13  Bruno Haible  <bruno@clisp.org>
62119
62120         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62121         defined, use the ISO C99 inline semantics.
62122         * lib/argp.h (ARGP_EI): Likewise.
62123
62124 2007-10-13  Bruno Haible  <bruno@clisp.org>
62125
62126         Handle 'inline' change in gcc 4.3.0.
62127         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62128         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62129         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62130         argp_fmtstream_point): Disable 'extern' declaration if the function
62131         definition is going to be provided inline.
62132         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62133         semantics, not the ISO C99 inline semantics.
62134         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62135         'extern' declaration if the function definition is going to be provided
62136         inline.
62137         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62138         the GNU C inline semantics, not the ISO C99 inline semantics. With
62139         GCC 4.2, avoid a warning.
62140
62141 2007-10-13  Bruno Haible  <bruno@clisp.org>
62142
62143         * lib/freading.h (freading): Enable the use of __freading for
62144         glibc >= 2.7.
62145         * lib/freading.c (freading): Likewise.
62146
62147 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62148
62149         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62150         "warning: C99 inline functions are not supported; using GNU89".
62151
62152 2007-10-12  Bruno Haible  <bruno@clisp.org>
62153
62154         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62155         of 2.
62156         * tests/test-ceilf2.c: New file.
62157         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62158
62159         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62160         * modules/ceilf-tests: Update.
62161
62162 2007-10-12  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62165         of 2.
62166         * tests/test-floorf2.c: New file.
62167         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62168
62169         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62170         * modules/floorf-tests: Update.
62171
62172 2007-10-12  Bruno Haible  <bruno@clisp.org>
62173
62174         * tests/test-trunc2.c: New file.
62175         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62176
62177         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62178         * modules/trunc-tests: Update.
62179
62180 2007-10-12  Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62183         of 2.
62184         * tests/test-truncf2.c: New file.
62185         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62186
62187         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62188         * modules/truncf-tests: Update.
62189
62190 2007-10-11  Eric Blake  <ebb9@byu.net>
62191
62192         Don't claim strerror is broken on Interix.
62193         * doc/functions/strerror.texi (strerror): Known broken systems are
62194         now Solaris 8, and not Interix.
62195         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62196         Interix on cross-compile.
62197         Reported by Martin Koeppe in
62198         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62199
62200 2007-10-11  Bruno Haible  <bruno@clisp.org>
62201
62202         * modules/i-ring-tests: New file.
62203         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62204         instead of assert.
62205
62206 2007-10-11  Bruno Haible  <bruno@clisp.org>
62207
62208         * modules/filenamecat-tests: New file.
62209         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62210         * lib/filenamecat.c: Remove test code.
62211
62212 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62215
62216         * lib/strerror.c: Include <string.h> always, to test interface,
62217         and to remove the need for the dummy.
62218         Include intprops.h to compute width instead of doing it ourselves
62219         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62220         (strerror): Define it to return NULL if there's no system strerror.
62221         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62222         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62223         ancient pre-strerror Unix systems well any more.  Saying "unknown
62224         system error" is enough.
62225         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62226         simpler strerror.c implementation.
62227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62228         Simplify the tests to reflect the simpler strerror implementation.
62229         * modules/strerror (Depends-on): Add intprops.
62230
62231 2007-10-09  Eric Blake  <ebb9@byu.net>
62232
62233         Silence test-fpending.
62234         * modules/fpending-tests (Files): Add wrapper script.
62235         * tests/test-fpending.sh: New file.
62236
62237 2007-10-09  Bruno Haible  <bruno@clisp.org>
62238
62239         * MODULES.html.sh (func_module): Don't create a hyperlink for
62240         function names like 'printf_frexp'.
62241         (Misc): Add crc, memxor.
62242         (Characteristics of floating types): New section.
62243         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62244         isnanf-nolibm, signbit, trunc, truncf, truncl.
62245         (Enhancements for ISO C 99 functions): New subsection Input/output.
62246         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62247         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62248         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62249         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62250         (Enhancements for POSIX:2001 functions): Add chdir-long.
62251         (File system functions): Add areadlink, chdir-safer, read-file.
62252         Remove cycle-check.
62253         (File system as inode set): New section.
62254         (Date and time): Add gethrxtime.
62255         (Multithreading): Add openmp.
62256         (Internationalization functions): Add localename.
62257         (Unicode string functions): Add unistr/u*-mbsnlen.
62258         (Support for maintaining and releasing projects): Add git-version-gen.
62259         (Lone files): Remove directories.
62260
62261 2007-10-08  Ben Pfaff  <blp@gnu.org>
62262
62263         * lib/xmalloca.h: Fix typo in comment.
62264
62265 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62268         when avoiding problems with integer overflow.  Use a portable test
62269         instead.
62270
62271 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62272
62273         * modules/dummy (License): Change to LGPLv2+.
62274         * modules/float (License): Likewise
62275         * modules/realloc (License): Likewise
62276         * modules/stdlib (License): Likewise
62277
62278 2007-10-07  Bruno Haible  <bruno@clisp.org>
62279
62280         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62281         * floor.c (TWO_MANT_DIG): Likewise.
62282         * ceil.c (TWO_MANT_DIG): Likewise.
62283         Reported by Ben Pfaff.
62284
62285 2007-10-07  Bruno Haible  <bruno@clisp.org>
62286
62287         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62288         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62289         * lib/frexp.c (FUNC): Likewise.
62290         * lib/printf-frexp.h (printf_frexp): Likewise.
62291         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62292         * lib/printf-frexp.c (FUNC): Likewise.
62293         Suggested by Jim Meyering.
62294
62295 2007-10-07  Jim Meyering  <meyering@redhat.com>
62296
62297         Make xnanosleep's integer overflow test more robust.
62298         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62299         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62300
62301 2007-10-07  Bruno Haible  <bruno@clisp.org>
62302
62303         * NEWS: Mention the license change.
62304
62305         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62306         abbreviations in the modules files.
62307
62308         Change copyright notice from GPLv2+ to GPLv3+.
62309         * README: Change copyright notice.
62310         * MODULES.html.sh: Likewise.
62311         * build-aux/bootstrap.conf: Likewise.
62312         * build-aux/config.libpath: Likewise.
62313         * build-aux/csharpcomp.sh.in: Likewise.
62314         * build-aux/csharpexec.sh.in: Likewise.
62315         * build-aux/install-reloc: Likewise.
62316         * build-aux/javacomp.sh.in: Likewise.
62317         * build-aux/javaexec.sh.in: Likewise.
62318         * build-aux/ldd.sh.in: Likewise.
62319         * build-aux/reloc-ldflags: Likewise.
62320         * build-aux/relocatable.sh.in: Likewise.
62321         * build-aux/x-to-1.in: Likewise.
62322         * check-module: Likewise.
62323         * config/srclistvars.sh: Likewise.
62324         * gnulib-tool: Likewise.
62325         * lib/acl-internal.h: Likewise.
62326         * lib/acl.c: Likewise.
62327         * lib/acl.h: Likewise.
62328         * lib/acl_entries.c: Likewise.
62329         * lib/areadlink-with-size.c: Likewise.
62330         * lib/areadlink.c: Likewise.
62331         * lib/areadlink.h: Likewise.
62332         * lib/argmatch.c: Likewise.
62333         * lib/argmatch.h: Likewise.
62334         * lib/argp-ba.c: Likewise.
62335         * lib/argp-eexst.c: Likewise.
62336         * lib/argp-fmtstream.c: Likewise.
62337         * lib/argp-fmtstream.h: Likewise.
62338         * lib/argp-fs-xinl.c: Likewise.
62339         * lib/argp-help.c: Likewise.
62340         * lib/argp-namefrob.h: Likewise.
62341         * lib/argp-parse.c: Likewise.
62342         * lib/argp-pin.c: Likewise.
62343         * lib/argp-pv.c: Likewise.
62344         * lib/argp-pvh.c: Likewise.
62345         * lib/argp-xinl.c: Likewise.
62346         * lib/argp.h: Likewise.
62347         * lib/at-func.c: Likewise.
62348         * lib/atanl.c: Likewise.
62349         * lib/backupfile.c: Likewise.
62350         * lib/backupfile.h: Likewise.
62351         * lib/basename.c: Likewise.
62352         * lib/binary-io.h: Likewise.
62353         * lib/byteswap.in.h: Likewise.
62354         * lib/c-stack.c: Likewise.
62355         * lib/c-stack.h: Likewise.
62356         * lib/c-strcasestr.c: Likewise.
62357         * lib/c-strcasestr.h: Likewise.
62358         * lib/c-strstr.c: Likewise.
62359         * lib/c-strstr.h: Likewise.
62360         * lib/c-strtod.c: Likewise.
62361         * lib/calloc.c: Likewise.
62362         * lib/canon-host.c: Likewise.
62363         * lib/canon-host.h: Likewise.
62364         * lib/canonicalize-lgpl.c: Likewise.
62365         * lib/canonicalize.c: Likewise.
62366         * lib/canonicalize.h: Likewise.
62367         * lib/ceil.c: Likewise.
62368         * lib/ceilf.c: Likewise.
62369         * lib/ceill.c: Likewise.
62370         * lib/chdir-long.c: Likewise.
62371         * lib/chdir-long.h: Likewise.
62372         * lib/chdir-safer.c: Likewise.
62373         * lib/chdir-safer.h: Likewise.
62374         * lib/chown.c: Likewise.
62375         * lib/classpath.c: Likewise.
62376         * lib/classpath.h: Likewise.
62377         * lib/clean-temp.c: Likewise.
62378         * lib/clean-temp.h: Likewise.
62379         * lib/cloexec.c: Likewise.
62380         * lib/close-stream.c: Likewise.
62381         * lib/closein.c: Likewise.
62382         * lib/closein.h: Likewise.
62383         * lib/closeout.c: Likewise.
62384         * lib/closeout.h: Likewise.
62385         * lib/concat-filename.c: Likewise.
62386         * lib/copy-file.c: Likewise.
62387         * lib/copy-file.h: Likewise.
62388         * lib/count-one-bits.h: Likewise.
62389         * lib/crc.c: Likewise.
62390         * lib/crc.h: Likewise.
62391         * lib/creat-safer.c: Likewise.
62392         * lib/csharpcomp.c: Likewise.
62393         * lib/csharpcomp.h: Likewise.
62394         * lib/csharpexec.c: Likewise.
62395         * lib/csharpexec.h: Likewise.
62396         * lib/cycle-check.c: Likewise.
62397         * lib/cycle-check.h: Likewise.
62398         * lib/diacrit.c: Likewise.
62399         * lib/diacrit.h: Likewise.
62400         * lib/diffseq.h: Likewise.
62401         * lib/dirchownmod.c: Likewise.
62402         * lib/dirent.in.h: Likewise.
62403         * lib/dirfd.c: Likewise.
62404         * lib/dirfd.h: Likewise.
62405         * lib/dirname.c: Likewise.
62406         * lib/dirname.h: Likewise.
62407         * lib/dummy.c: Likewise.
62408         * lib/dup-safer.c: Likewise.
62409         * lib/dup2.c: Likewise.
62410         * lib/eealloc.h: Likewise.
62411         * lib/error.c: Likewise.
62412         * lib/error.h: Likewise.
62413         * lib/euidaccess.c: Likewise.
62414         * lib/exclude.c: Likewise.
62415         * lib/exclude.h: Likewise.
62416         * lib/execute.c: Likewise.
62417         * lib/execute.h: Likewise.
62418         * lib/exitfail.c: Likewise.
62419         * lib/exitfail.h: Likewise.
62420         * lib/expl.c: Likewise.
62421         * lib/fatal-signal.c: Likewise.
62422         * lib/fatal-signal.h: Likewise.
62423         * lib/fbufmode.c: Likewise.
62424         * lib/fbufmode.h: Likewise.
62425         * lib/fchdir.c: Likewise.
62426         * lib/fchmodat.c: Likewise.
62427         * lib/fchownat.c: Likewise.
62428         * lib/fcntl--.h: Likewise.
62429         * lib/fcntl-safer.h: Likewise.
62430         * lib/fcntl.in.h: Likewise.
62431         * lib/fd-safer.c: Likewise.
62432         * lib/fflush.c: Likewise.
62433         * lib/file-has-acl.c: Likewise.
62434         * lib/file-set.c: Likewise.
62435         * lib/file-type.c: Likewise.
62436         * lib/file-type.h: Likewise.
62437         * lib/fileblocks.c: Likewise.
62438         * lib/filemode.c: Likewise.
62439         * lib/filemode.h: Likewise.
62440         * lib/filename.h: Likewise.
62441         * lib/filenamecat.c: Likewise.
62442         * lib/filenamecat.h: Likewise.
62443         * lib/findprog.c: Likewise.
62444         * lib/findprog.h: Likewise.
62445         * lib/float.in.h: Likewise.
62446         * lib/floor.c: Likewise.
62447         * lib/floorf.c: Likewise.
62448         * lib/floorl.c: Likewise.
62449         * lib/fopen-safer.c: Likewise.
62450         * lib/fopen.c: Likewise.
62451         * lib/fpending.c: Likewise.
62452         * lib/fpending.h: Likewise.
62453         * lib/fprintf.c: Likewise.
62454         * lib/fprintftime.h: Likewise.
62455         * lib/fpucw.h: Likewise.
62456         * lib/fpurge.c: Likewise.
62457         * lib/fpurge.h: Likewise.
62458         * lib/freadable.c: Likewise.
62459         * lib/freadable.h: Likewise.
62460         * lib/freadahead.c: Likewise.
62461         * lib/freadahead.h: Likewise.
62462         * lib/freading.c: Likewise.
62463         * lib/freading.h: Likewise.
62464         * lib/free.c: Likewise.
62465         * lib/freopen.c: Likewise.
62466         * lib/frexp.c: Likewise.
62467         * lib/frexpl.c: Likewise.
62468         * lib/fseek.c: Likewise.
62469         * lib/fseterr.c: Likewise.
62470         * lib/fseterr.h: Likewise.
62471         * lib/fstatat.c: Likewise.
62472         * lib/fstrcmp.c: Likewise.
62473         * lib/fstrcmp.h: Likewise.
62474         * lib/fsusage.c: Likewise.
62475         * lib/fsusage.h: Likewise.
62476         * lib/ftell.c: Likewise.
62477         * lib/ftello.c: Likewise.
62478         * lib/fts-cycle.c: Likewise.
62479         * lib/fts.c: Likewise.
62480         * lib/fts_.h: Likewise.
62481         * lib/full-read.c: Likewise.
62482         * lib/full-read.h: Likewise.
62483         * lib/full-write.c: Likewise.
62484         * lib/full-write.h: Likewise.
62485         * lib/fwritable.c: Likewise.
62486         * lib/fwritable.h: Likewise.
62487         * lib/fwriteerror.c: Likewise.
62488         * lib/fwriteerror.h: Likewise.
62489         * lib/fwriting.c: Likewise.
62490         * lib/fwriting.h: Likewise.
62491         * lib/gcd.c: Likewise.
62492         * lib/gcd.h: Likewise.
62493         * lib/getcwd.c: Likewise.
62494         * lib/getdate.h: Likewise.
62495         * lib/getdate.y: Likewise.
62496         * lib/getdomainname.c: Likewise.
62497         * lib/getdomainname.h: Likewise.
62498         * lib/getgroups.c: Likewise.
62499         * lib/gethostname.c: Likewise.
62500         * lib/gethrxtime.c: Likewise.
62501         * lib/gethrxtime.h: Likewise.
62502         * lib/getloadavg.c: Likewise.
62503         * lib/getndelim2.c: Likewise.
62504         * lib/getndelim2.h: Likewise.
62505         * lib/getnline.c: Likewise.
62506         * lib/getnline.h: Likewise.
62507         * lib/getopt.c: Likewise.
62508         * lib/getopt.in.h: Likewise.
62509         * lib/getopt1.c: Likewise.
62510         * lib/getopt_int.h: Likewise.
62511         * lib/getpagesize.h: Likewise.
62512         * lib/getsubopt.c: Likewise.
62513         * lib/gettime.c: Likewise.
62514         * lib/getugroups.c: Likewise.
62515         * lib/getugroups.h: Likewise.
62516         * lib/getusershell.c: Likewise.
62517         * lib/gl_anyavltree_list1.h: Likewise.
62518         * lib/gl_anyavltree_list2.h: Likewise.
62519         * lib/gl_anyhash_list1.h: Likewise.
62520         * lib/gl_anyhash_list2.h: Likewise.
62521         * lib/gl_anylinked_list1.h: Likewise.
62522         * lib/gl_anylinked_list2.h: Likewise.
62523         * lib/gl_anyrbtree_list1.h: Likewise.
62524         * lib/gl_anyrbtree_list2.h: Likewise.
62525         * lib/gl_anytree_list1.h: Likewise.
62526         * lib/gl_anytree_list2.h: Likewise.
62527         * lib/gl_anytree_oset.h: Likewise.
62528         * lib/gl_anytreehash_list1.h: Likewise.
62529         * lib/gl_anytreehash_list2.h: Likewise.
62530         * lib/gl_array_list.c: Likewise.
62531         * lib/gl_array_list.h: Likewise.
62532         * lib/gl_array_oset.c: Likewise.
62533         * lib/gl_array_oset.h: Likewise.
62534         * lib/gl_avltree_list.c: Likewise.
62535         * lib/gl_avltree_list.h: Likewise.
62536         * lib/gl_avltree_oset.c: Likewise.
62537         * lib/gl_avltree_oset.h: Likewise.
62538         * lib/gl_avltreehash_list.c: Likewise.
62539         * lib/gl_avltreehash_list.h: Likewise.
62540         * lib/gl_carray_list.c: Likewise.
62541         * lib/gl_carray_list.h: Likewise.
62542         * lib/gl_linked_list.c: Likewise.
62543         * lib/gl_linked_list.h: Likewise.
62544         * lib/gl_linkedhash_list.c: Likewise.
62545         * lib/gl_linkedhash_list.h: Likewise.
62546         * lib/gl_list.c: Likewise.
62547         * lib/gl_list.h: Likewise.
62548         * lib/gl_oset.c: Likewise.
62549         * lib/gl_oset.h: Likewise.
62550         * lib/gl_rbtree_list.c: Likewise.
62551         * lib/gl_rbtree_list.h: Likewise.
62552         * lib/gl_rbtree_oset.c: Likewise.
62553         * lib/gl_rbtree_oset.h: Likewise.
62554         * lib/gl_rbtreehash_list.c: Likewise.
62555         * lib/gl_rbtreehash_list.h: Likewise.
62556         * lib/gl_sublist.c: Likewise.
62557         * lib/gl_sublist.h: Likewise.
62558         * lib/group-member.c: Likewise.
62559         * lib/group-member.h: Likewise.
62560         * lib/hard-locale.c: Likewise.
62561         * lib/hard-locale.h: Likewise.
62562         * lib/hash-pjw.c: Likewise.
62563         * lib/hash-pjw.h: Likewise.
62564         * lib/hash-triple.c: Likewise.
62565         * lib/hash.c: Likewise.
62566         * lib/hash.h: Likewise.
62567         * lib/human.c: Likewise.
62568         * lib/human.h: Likewise.
62569         * lib/i-ring.c: Likewise.
62570         * lib/i-ring.h: Likewise.
62571         * lib/idcache.c: Likewise.
62572         * lib/imaxabs.c: Likewise.
62573         * lib/imaxdiv.c: Likewise.
62574         * lib/inet_pton.c: Likewise.
62575         * lib/inet_pton.h: Likewise.
62576         * lib/intprops.h: Likewise.
62577         * lib/inttostr.c: Likewise.
62578         * lib/inttostr.h: Likewise.
62579         * lib/inttypes.in.h: Likewise.
62580         * lib/isapipe.c: Likewise.
62581         * lib/isdir.c: Likewise.
62582         * lib/isnan.c: Likewise.
62583         * lib/isnan.h: Likewise.
62584         * lib/isnanf.c: Likewise.
62585         * lib/isnanf.h: Likewise.
62586         * lib/isnanl-nolibm.h: Likewise.
62587         * lib/isnanl.c: Likewise.
62588         * lib/isnanl.h: Likewise.
62589         * lib/javacomp.c: Likewise.
62590         * lib/javacomp.h: Likewise.
62591         * lib/javaexec.c: Likewise.
62592         * lib/javaexec.h: Likewise.
62593         * lib/javaversion.c: Likewise.
62594         * lib/javaversion.h: Likewise.
62595         * lib/javaversion.java: Likewise.
62596         * lib/lbrkprop.h: Likewise.
62597         * lib/lchmod.h: Likewise.
62598         * lib/lchown.c: Likewise.
62599         * lib/ldexpl.c: Likewise.
62600         * lib/linebreak.c: Likewise.
62601         * lib/linebreak.h: Likewise.
62602         * lib/linebuffer.c: Likewise.
62603         * lib/linebuffer.h: Likewise.
62604         * lib/locale.in.h: Likewise.
62605         * lib/logl.c: Likewise.
62606         * lib/long-options.c: Likewise.
62607         * lib/long-options.h: Likewise.
62608         * lib/lstat.c: Likewise.
62609         * lib/lstat.h: Likewise.
62610         * lib/math.in.h: Likewise.
62611         * lib/mbchar.c: Likewise.
62612         * lib/mbchar.h: Likewise.
62613         * lib/mbfile.h: Likewise.
62614         * lib/mbiter.h: Likewise.
62615         * lib/mbscasecmp.c: Likewise.
62616         * lib/mbscasestr.c: Likewise.
62617         * lib/mbschr.c: Likewise.
62618         * lib/mbscspn.c: Likewise.
62619         * lib/mbslen.c: Likewise.
62620         * lib/mbsncasecmp.c: Likewise.
62621         * lib/mbsnlen.c: Likewise.
62622         * lib/mbspbrk.c: Likewise.
62623         * lib/mbspcasecmp.c: Likewise.
62624         * lib/mbsrchr.c: Likewise.
62625         * lib/mbssep.c: Likewise.
62626         * lib/mbsspn.c: Likewise.
62627         * lib/mbsstr.c: Likewise.
62628         * lib/mbstok_r.c: Likewise.
62629         * lib/mbswidth.c: Likewise.
62630         * lib/mbswidth.h: Likewise.
62631         * lib/mbuiter.h: Likewise.
62632         * lib/memcasecmp.c: Likewise.
62633         * lib/memcasecmp.h: Likewise.
62634         * lib/memchr.c: Likewise.
62635         * lib/memcmp.c: Likewise.
62636         * lib/memcoll.c: Likewise.
62637         * lib/memcoll.h: Likewise.
62638         * lib/memcpy.c: Likewise.
62639         * lib/memrchr.c: Likewise.
62640         * lib/mkancesdirs.c: Likewise.
62641         * lib/mkdir-p.c: Likewise.
62642         * lib/mkdir-p.h: Likewise.
62643         * lib/mkdir.c: Likewise.
62644         * lib/mkdirat.c: Likewise.
62645         * lib/mkdtemp.c: Likewise.
62646         * lib/mkstemp-safer.c: Likewise.
62647         * lib/mkstemp.c: Likewise.
62648         * lib/modechange.c: Likewise.
62649         * lib/modechange.h: Likewise.
62650         * lib/mountlist.c: Likewise.
62651         * lib/mountlist.h: Likewise.
62652         * lib/mpsort.c: Likewise.
62653         * lib/nanosleep.c: Likewise.
62654         * lib/obstack.c: Likewise.
62655         * lib/obstack.h: Likewise.
62656         * lib/open-safer.c: Likewise.
62657         * lib/open.c: Likewise.
62658         * lib/openat-die.c: Likewise.
62659         * lib/openat-priv.h: Likewise.
62660         * lib/openat-proc.c: Likewise.
62661         * lib/openat.c: Likewise.
62662         * lib/openat.h: Likewise.
62663         * lib/pagealign_alloc.c: Likewise.
62664         * lib/pagealign_alloc.h: Likewise.
62665         * lib/physmem.c: Likewise.
62666         * lib/physmem.h: Likewise.
62667         * lib/pipe-safer.c: Likewise.
62668         * lib/pipe.c: Likewise.
62669         * lib/pipe.h: Likewise.
62670         * lib/posixtm.c: Likewise.
62671         * lib/posixtm.h: Likewise.
62672         * lib/posixver.c: Likewise.
62673         * lib/printf-frexp.c: Likewise.
62674         * lib/printf-frexp.h: Likewise.
62675         * lib/printf-frexpl.c: Likewise.
62676         * lib/printf-frexpl.h: Likewise.
62677         * lib/printf.c: Likewise.
62678         * lib/progname.c: Likewise.
62679         * lib/progname.h: Likewise.
62680         * lib/progreloc.c: Likewise.
62681         * lib/putenv.c: Likewise.
62682         * lib/quote.c: Likewise.
62683         * lib/quote.h: Likewise.
62684         * lib/quotearg.c: Likewise.
62685         * lib/quotearg.h: Likewise.
62686         * lib/raise.c: Likewise.
62687         * lib/readline.c: Likewise.
62688         * lib/readline.h: Likewise.
62689         * lib/readlink.c: Likewise.
62690         * lib/readtokens.c: Likewise.
62691         * lib/readtokens.h: Likewise.
62692         * lib/readtokens0.c: Likewise.
62693         * lib/readtokens0.h: Likewise.
62694         * lib/readutmp.c: Likewise.
62695         * lib/readutmp.h: Likewise.
62696         * lib/realloc.c: Likewise.
62697         * lib/relocwrapper.c: Likewise.
62698         * lib/rename-dest-slash.c: Likewise.
62699         * lib/rename.c: Likewise.
62700         * lib/rmdir.c: Likewise.
62701         * lib/rpmatch.c: Likewise.
62702         * lib/safe-read.c: Likewise.
62703         * lib/safe-read.h: Likewise.
62704         * lib/safe-write.c: Likewise.
62705         * lib/safe-write.h: Likewise.
62706         * lib/same-inode.h: Likewise.
62707         * lib/same.c: Likewise.
62708         * lib/same.h: Likewise.
62709         * lib/save-cwd.c: Likewise.
62710         * lib/save-cwd.h: Likewise.
62711         * lib/savedir.c: Likewise.
62712         * lib/savedir.h: Likewise.
62713         * lib/savewd.c: Likewise.
62714         * lib/savewd.h: Likewise.
62715         * lib/search.in.h: Likewise.
62716         * lib/setenv.c: Likewise.
62717         * lib/setenv.h: Likewise.
62718         * lib/settime.c: Likewise.
62719         * lib/sh-quote.c: Likewise.
62720         * lib/sh-quote.h: Likewise.
62721         * lib/sig2str.c: Likewise.
62722         * lib/sig2str.h: Likewise.
62723         * lib/signal.in.h: Likewise.
62724         * lib/signbitd.c: Likewise.
62725         * lib/signbitf.c: Likewise.
62726         * lib/signbitl.c: Likewise.
62727         * lib/sigprocmask.c: Likewise.
62728         * lib/sincosl.c: Likewise.
62729         * lib/sleep.c: Likewise.
62730         * lib/sprintf.c: Likewise.
62731         * lib/sqrtl.c: Likewise.
62732         * lib/stat-time.h: Likewise.
62733         * lib/stdio--.h: Likewise.
62734         * lib/stdio-safer.h: Likewise.
62735         * lib/stdlib--.h: Likewise.
62736         * lib/stdlib-safer.h: Likewise.
62737         * lib/stdlib.in.h: Likewise.
62738         * lib/stpcpy.c: Likewise.
62739         * lib/stpncpy.c: Likewise.
62740         * lib/strchrnul.c: Likewise.
62741         * lib/strcspn.c: Likewise.
62742         * lib/strerror.c: Likewise.
62743         * lib/strftime.c: Likewise.
62744         * lib/strftime.h: Likewise.
62745         * lib/striconveh.c: Likewise.
62746         * lib/striconveh.h: Likewise.
62747         * lib/striconveha.c: Likewise.
62748         * lib/striconveha.h: Likewise.
62749         * lib/stripslash.c: Likewise.
62750         * lib/strnlen1.c: Likewise.
62751         * lib/strnlen1.h: Likewise.
62752         * lib/strtod.c: Likewise.
62753         * lib/strtoimax.c: Likewise.
62754         * lib/strtok_r.c: Likewise.
62755         * lib/strtol.c: Likewise.
62756         * lib/strtoll.c: Likewise.
62757         * lib/strtoul.c: Likewise.
62758         * lib/strtoull.c: Likewise.
62759         * lib/sysexits.in.h: Likewise.
62760         * lib/tempname.c: Likewise.
62761         * lib/tempname.h: Likewise.
62762         * lib/timespec.h: Likewise.
62763         * lib/tls.c: Likewise.
62764         * lib/tls.h: Likewise.
62765         * lib/tmpdir.c: Likewise.
62766         * lib/tmpdir.h: Likewise.
62767         * lib/tmpfile-safer.c: Likewise.
62768         * lib/tmpfile.c: Likewise.
62769         * lib/trigl.c: Likewise.
62770         * lib/trigl.h: Likewise.
62771         * lib/trim.c: Likewise.
62772         * lib/trim.h: Likewise.
62773         * lib/trunc.c: Likewise.
62774         * lib/truncf.c: Likewise.
62775         * lib/truncl.c: Likewise.
62776         * lib/tsearch.c: Likewise.
62777         * lib/unicodeio.c: Likewise.
62778         * lib/unicodeio.h: Likewise.
62779         * lib/unistd--.h: Likewise.
62780         * lib/unistd-safer.h: Likewise.
62781         * lib/unistdio/ulc-fprintf.c: Likewise.
62782         * lib/unistdio/ulc-vfprintf.c: Likewise.
62783         * lib/unlinkdir.c: Likewise.
62784         * lib/unlinkdir.h: Likewise.
62785         * lib/unlocked-io.h: Likewise.
62786         * lib/unsetenv.c: Likewise.
62787         * lib/userspec.c: Likewise.
62788         * lib/utime.c: Likewise.
62789         * lib/utimecmp.c: Likewise.
62790         * lib/utimecmp.h: Likewise.
62791         * lib/utimens.c: Likewise.
62792         * lib/verify.h: Likewise.
62793         * lib/verror.c: Likewise.
62794         * lib/verror.h: Likewise.
62795         * lib/version-etc-fsf.c: Likewise.
62796         * lib/version-etc.c: Likewise.
62797         * lib/version-etc.h: Likewise.
62798         * lib/vfprintf.c: Likewise.
62799         * lib/vprintf.c: Likewise.
62800         * lib/vsprintf.c: Likewise.
62801         * lib/w32spawn.h: Likewise.
62802         * lib/wait-process.c: Likewise.
62803         * lib/wait-process.h: Likewise.
62804         * lib/wcwidth.c: Likewise.
62805         * lib/write-any-file.c: Likewise.
62806         * lib/xalloc-die.c: Likewise.
62807         * lib/xalloc.h: Likewise.
62808         * lib/xasprintf.c: Likewise.
62809         * lib/xgetcwd.c: Likewise.
62810         * lib/xgetcwd.h: Likewise.
62811         * lib/xgetdomainname.c: Likewise.
62812         * lib/xgetdomainname.h: Likewise.
62813         * lib/xgethostname.c: Likewise.
62814         * lib/xmalloc.c: Likewise.
62815         * lib/xmalloca.c: Likewise.
62816         * lib/xmalloca.h: Likewise.
62817         * lib/xmemcoll.c: Likewise.
62818         * lib/xnanosleep.c: Likewise.
62819         * lib/xreadlink.c: Likewise.
62820         * lib/xreadlink.h: Likewise.
62821         * lib/xsetenv.c: Likewise.
62822         * lib/xsetenv.h: Likewise.
62823         * lib/xstriconv.c: Likewise.
62824         * lib/xstriconv.h: Likewise.
62825         * lib/xstrndup.c: Likewise.
62826         * lib/xstrndup.h: Likewise.
62827         * lib/xstrtod.c: Likewise.
62828         * lib/xstrtod.h: Likewise.
62829         * lib/xstrtol-error.c: Likewise.
62830         * lib/xstrtol.c: Likewise.
62831         * lib/xstrtol.h: Likewise.
62832         * lib/xtime.h: Likewise.
62833         * lib/xvasprintf.c: Likewise.
62834         * lib/xvasprintf.h: Likewise.
62835         * lib/yesno.c: Likewise.
62836         * lib/yesno.h: Likewise.
62837         * posix-modules: Likewise.
62838         * tests/test-alloca-opt.c: Likewise.
62839         * tests/test-arcfour.c: Likewise.
62840         * tests/test-arctwo.c: Likewise.
62841         * tests/test-argmatch.c: Likewise.
62842         * tests/test-argp-2.sh: Likewise.
62843         * tests/test-argp.c: Likewise.
62844         * tests/test-arpa_inet.c: Likewise.
62845         * tests/test-array_list.c: Likewise.
62846         * tests/test-array_oset.c: Likewise.
62847         * tests/test-atexit.c: Likewise.
62848         * tests/test-avltree_list.c: Likewise.
62849         * tests/test-avltree_oset.c: Likewise.
62850         * tests/test-avltreehash_list.c: Likewise.
62851         * tests/test-base64.c: Likewise.
62852         * tests/test-binary-io.c: Likewise.
62853         * tests/test-byteswap.c: Likewise.
62854         * tests/test-c-ctype.c: Likewise.
62855         * tests/test-c-strcasecmp.c: Likewise.
62856         * tests/test-c-strcasestr.c: Likewise.
62857         * tests/test-c-strncasecmp.c: Likewise.
62858         * tests/test-c-strstr.c: Likewise.
62859         * tests/test-canonicalize-lgpl.c: Likewise.
62860         * tests/test-canonicalize.c: Likewise.
62861         * tests/test-carray_list.c: Likewise.
62862         * tests/test-ceilf.c: Likewise.
62863         * tests/test-ceill.c: Likewise.
62864         * tests/test-count-one-bits.c: Likewise.
62865         * tests/test-crc.c: Likewise.
62866         * tests/test-dirname.c: Likewise.
62867         * tests/test-fbufmode.c: Likewise.
62868         * tests/test-fcntl.c: Likewise.
62869         * tests/test-fflush.c: Likewise.
62870         * tests/test-floorf.c: Likewise.
62871         * tests/test-floorl.c: Likewise.
62872         * tests/test-fopen.c: Likewise.
62873         * tests/test-fprintf-posix.c: Likewise.
62874         * tests/test-fprintf-posix.h: Likewise.
62875         * tests/test-fpurge.c: Likewise.
62876         * tests/test-freadable.c: Likewise.
62877         * tests/test-freadahead.c: Likewise.
62878         * tests/test-freading.c: Likewise.
62879         * tests/test-freopen.c: Likewise.
62880         * tests/test-frexp.c: Likewise.
62881         * tests/test-frexpl.c: Likewise.
62882         * tests/test-fseek.c: Likewise.
62883         * tests/test-fseeko.c: Likewise.
62884         * tests/test-fseterr.c: Likewise.
62885         * tests/test-fstrcmp.c: Likewise.
62886         * tests/test-ftell.c: Likewise.
62887         * tests/test-ftello.c: Likewise.
62888         * tests/test-fwritable.c: Likewise.
62889         * tests/test-fwriting.c: Likewise.
62890         * tests/test-getaddrinfo.c: Likewise.
62891         * tests/test-getpass.c: Likewise.
62892         * tests/test-gettimeofday.c: Likewise.
62893         * tests/test-hmac-md5.c: Likewise.
62894         * tests/test-hmac-sha1.c: Likewise.
62895         * tests/test-iconv.c: Likewise.
62896         * tests/test-iconvme.c: Likewise.
62897         * tests/test-inttypes.c: Likewise.
62898         * tests/test-isnan.c: Likewise.
62899         * tests/test-isnanf.c: Likewise.
62900         * tests/test-isnanl-nolibm.c: Likewise.
62901         * tests/test-isnanl.c: Likewise.
62902         * tests/test-isnanl.h: Likewise.
62903         * tests/test-ldexpl.c: Likewise.
62904         * tests/test-linked_list.c: Likewise.
62905         * tests/test-linkedhash_list.c: Likewise.
62906         * tests/test-locale.c: Likewise.
62907         * tests/test-localename.c: Likewise.
62908         * tests/test-lock.c: Likewise.
62909         * tests/test-lseek.c: Likewise.
62910         * tests/test-malloca.c: Likewise.
62911         * tests/test-math.c: Likewise.
62912         * tests/test-mbscasecmp.c: Likewise.
62913         * tests/test-mbscasestr1.c: Likewise.
62914         * tests/test-mbscasestr2.c: Likewise.
62915         * tests/test-mbscasestr3.c: Likewise.
62916         * tests/test-mbscasestr4.c: Likewise.
62917         * tests/test-mbschr.c: Likewise.
62918         * tests/test-mbscspn.c: Likewise.
62919         * tests/test-mbsncasecmp.c: Likewise.
62920         * tests/test-mbspbrk.c: Likewise.
62921         * tests/test-mbspcasecmp.c: Likewise.
62922         * tests/test-mbsrchr.c: Likewise.
62923         * tests/test-mbsspn.c: Likewise.
62924         * tests/test-mbsstr1.c: Likewise.
62925         * tests/test-mbsstr2.c: Likewise.
62926         * tests/test-mbsstr3.c: Likewise.
62927         * tests/test-md5.c: Likewise.
62928         * tests/test-memmem.c: Likewise.
62929         * tests/test-netinet_in.c: Likewise.
62930         * tests/test-open.c: Likewise.
62931         * tests/test-printf-frexp.c: Likewise.
62932         * tests/test-printf-frexpl.c: Likewise.
62933         * tests/test-printf-posix.c: Likewise.
62934         * tests/test-printf-posix.h: Likewise.
62935         * tests/test-rbtree_list.c: Likewise.
62936         * tests/test-rbtree_oset.c: Likewise.
62937         * tests/test-rbtreehash_list.c: Likewise.
62938         * tests/test-read-file.c: Likewise.
62939         * tests/test-rijndael.c: Likewise.
62940         * tests/test-search.c: Likewise.
62941         * tests/test-signbit.c: Likewise.
62942         * tests/test-sleep.c: Likewise.
62943         * tests/test-snprintf-posix.c: Likewise.
62944         * tests/test-snprintf-posix.h: Likewise.
62945         * tests/test-snprintf.c: Likewise.
62946         * tests/test-sprintf-posix.c: Likewise.
62947         * tests/test-sprintf-posix.h: Likewise.
62948         * tests/test-stat-time.c: Likewise.
62949         * tests/test-stdbool.c: Likewise.
62950         * tests/test-stdint.c: Likewise.
62951         * tests/test-stdio.c: Likewise.
62952         * tests/test-stdlib.c: Likewise.
62953         * tests/test-stpncpy.c: Likewise.
62954         * tests/test-strcasestr.c: Likewise.
62955         * tests/test-striconv.c: Likewise.
62956         * tests/test-striconveh.c: Likewise.
62957         * tests/test-striconveha.c: Likewise.
62958         * tests/test-string.c: Likewise.
62959         * tests/test-sys_select.c: Likewise.
62960         * tests/test-sys_socket.c: Likewise.
62961         * tests/test-sys_stat.c: Likewise.
62962         * tests/test-sys_time.c: Likewise.
62963         * tests/test-sysexits.c: Likewise.
62964         * tests/test-time.c: Likewise.
62965         * tests/test-tls.c: Likewise.
62966         * tests/test-trunc.c: Likewise.
62967         * tests/test-truncf.c: Likewise.
62968         * tests/test-truncl.c: Likewise.
62969         * tests/test-unistd.c: Likewise.
62970         * tests/test-vasnprintf-posix.c: Likewise.
62971         * tests/test-vasnprintf-posix2.c: Likewise.
62972         * tests/test-vasnprintf.c: Likewise.
62973         * tests/test-vasprintf-posix.c: Likewise.
62974         * tests/test-vasprintf.c: Likewise.
62975         * tests/test-verify.c: Likewise.
62976         * tests/test-vfprintf-posix.c: Likewise.
62977         * tests/test-vprintf-posix.c: Likewise.
62978         * tests/test-vsnprintf-posix.c: Likewise.
62979         * tests/test-vsnprintf.c: Likewise.
62980         * tests/test-vsprintf-posix.c: Likewise.
62981         * tests/test-wchar.c: Likewise.
62982         * tests/test-wctype.c: Likewise.
62983         * tests/test-wcwidth.c: Likewise.
62984         * tests/test-xstrtol.c: Likewise.
62985         * tests/test-xvasprintf.c: Likewise.
62986         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62987         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62988         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62989         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62990         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62991         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62992         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62993         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62994         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62995         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62996         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62997         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62998         * tests/uniname/test-uninames.c: Likewise.
62999         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63000         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63001         * tests/unistdio/test-u16-printf1.h: Likewise.
63002         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63003         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63004         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63005         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63006         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63007         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63008         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63009         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63010         * tests/unistdio/test-u32-printf1.h: Likewise.
63011         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63012         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63013         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63014         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63015         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63016         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63017         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63018         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63019         * tests/unistdio/test-u8-printf1.h: Likewise.
63020         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63021         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63022         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63023         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63024         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63025         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63026         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63027         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63028         * tests/unistdio/test-ulc-printf1.h: Likewise.
63029         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63030         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63031         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63032         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63033         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63034         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63035         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63036         * tests/uniwidth/test-u16-width.c: Likewise.
63037         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63038         * tests/uniwidth/test-u32-width.c: Likewise.
63039         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63040         * tests/uniwidth/test-u8-width.c: Likewise.
63041         * tests/uniwidth/test-uc_width.c: Likewise.
63042         * config/srclist-update: Likewise.
63043         (fixlicense): Update to GPLv3+.
63044
63045         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63046         * tests/test-tsearch.c: Change copyright notice.
63047
63048         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63049         * lib/c-strcaseeq.h: Change copyright notice.
63050         * lib/streq.h: Likewise.
63051         * lib/uniconv.h: Likewise.
63052         * lib/uniconv/u-conv-from-enc.h: Likewise.
63053         * lib/uniconv/u-conv-to-enc.h: Likewise.
63054         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63055         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63056         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63057         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63058         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63059         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63060         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63061         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63062         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63063         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63064         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63065         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63066         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63067         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63068         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63069         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63070         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63071         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63072         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63073         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63074         * lib/uniname.h: Likewise.
63075         * lib/uniname/uniname.c: Likewise.
63076         * lib/unistdio.h: Likewise.
63077         * lib/unistdio/u-asnprintf.h: Likewise.
63078         * lib/unistdio/u-asprintf.h: Likewise.
63079         * lib/unistdio/u-printf-args.c: Likewise.
63080         * lib/unistdio/u-printf-args.h: Likewise.
63081         * lib/unistdio/u-printf-parse.h: Likewise.
63082         * lib/unistdio/u-snprintf.h: Likewise.
63083         * lib/unistdio/u-sprintf.h: Likewise.
63084         * lib/unistdio/u-vasprintf.h: Likewise.
63085         * lib/unistdio/u-vsnprintf.h: Likewise.
63086         * lib/unistdio/u-vsprintf.h: Likewise.
63087         * lib/unistdio/u16-asnprintf.c: Likewise.
63088         * lib/unistdio/u16-asprintf.c: Likewise.
63089         * lib/unistdio/u16-printf-parse.c: Likewise.
63090         * lib/unistdio/u16-snprintf.c: Likewise.
63091         * lib/unistdio/u16-sprintf.c: Likewise.
63092         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63093         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63094         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63095         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63096         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63097         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63098         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63099         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63100         * lib/unistdio/u16-vasnprintf.c: Likewise.
63101         * lib/unistdio/u16-vasprintf.c: Likewise.
63102         * lib/unistdio/u16-vsnprintf.c: Likewise.
63103         * lib/unistdio/u16-vsprintf.c: Likewise.
63104         * lib/unistdio/u32-asnprintf.c: Likewise.
63105         * lib/unistdio/u32-asprintf.c: Likewise.
63106         * lib/unistdio/u32-printf-parse.c: Likewise.
63107         * lib/unistdio/u32-snprintf.c: Likewise.
63108         * lib/unistdio/u32-sprintf.c: Likewise.
63109         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63110         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63111         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63112         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63113         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63114         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63115         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63116         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63117         * lib/unistdio/u32-vasnprintf.c: Likewise.
63118         * lib/unistdio/u32-vasprintf.c: Likewise.
63119         * lib/unistdio/u32-vsnprintf.c: Likewise.
63120         * lib/unistdio/u32-vsprintf.c: Likewise.
63121         * lib/unistdio/u8-asnprintf.c: Likewise.
63122         * lib/unistdio/u8-asprintf.c: Likewise.
63123         * lib/unistdio/u8-printf-parse.c: Likewise.
63124         * lib/unistdio/u8-snprintf.c: Likewise.
63125         * lib/unistdio/u8-sprintf.c: Likewise.
63126         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63127         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63128         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63129         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63130         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63131         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63132         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63133         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63134         * lib/unistdio/u8-vasnprintf.c: Likewise.
63135         * lib/unistdio/u8-vasprintf.c: Likewise.
63136         * lib/unistdio/u8-vsnprintf.c: Likewise.
63137         * lib/unistdio/u8-vsprintf.c: Likewise.
63138         * lib/unistdio/ulc-asnprintf.c: Likewise.
63139         * lib/unistdio/ulc-asprintf.c: Likewise.
63140         * lib/unistdio/ulc-printf-parse.c: Likewise.
63141         * lib/unistdio/ulc-snprintf.c: Likewise.
63142         * lib/unistdio/ulc-sprintf.c: Likewise.
63143         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63144         * lib/unistdio/ulc-vasprintf.c: Likewise.
63145         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63146         * lib/unistdio/ulc-vsprintf.c: Likewise.
63147         * lib/unistr.h: Likewise.
63148         * lib/unistr/u-cpy-alloc.h: Likewise.
63149         * lib/unistr/u-cpy.h: Likewise.
63150         * lib/unistr/u-endswith.h: Likewise.
63151         * lib/unistr/u-move.h: Likewise.
63152         * lib/unistr/u-set.h: Likewise.
63153         * lib/unistr/u-startswith.h: Likewise.
63154         * lib/unistr/u-stpcpy.h: Likewise.
63155         * lib/unistr/u-stpncpy.h: Likewise.
63156         * lib/unistr/u-strcat.h: Likewise.
63157         * lib/unistr/u-strcpy.h: Likewise.
63158         * lib/unistr/u-strcspn.h: Likewise.
63159         * lib/unistr/u-strdup.h: Likewise.
63160         * lib/unistr/u-strlen.h: Likewise.
63161         * lib/unistr/u-strncat.h: Likewise.
63162         * lib/unistr/u-strncpy.h: Likewise.
63163         * lib/unistr/u-strnlen.h: Likewise.
63164         * lib/unistr/u-strpbrk.h: Likewise.
63165         * lib/unistr/u-strspn.h: Likewise.
63166         * lib/unistr/u-strstr.h: Likewise.
63167         * lib/unistr/u-strtok.h: Likewise.
63168         * lib/unistr/u16-check.c: Likewise.
63169         * lib/unistr/u16-chr.c: Likewise.
63170         * lib/unistr/u16-cmp.c: Likewise.
63171         * lib/unistr/u16-cpy-alloc.c: Likewise.
63172         * lib/unistr/u16-cpy.c: Likewise.
63173         * lib/unistr/u16-endswith.c: Likewise.
63174         * lib/unistr/u16-mblen.c: Likewise.
63175         * lib/unistr/u16-mbsnlen.c: Likewise.
63176         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63177         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63178         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63179         * lib/unistr/u16-mbtouc.c: Likewise.
63180         * lib/unistr/u16-mbtoucr.c: Likewise.
63181         * lib/unistr/u16-move.c: Likewise.
63182         * lib/unistr/u16-next.c: Likewise.
63183         * lib/unistr/u16-prev.c: Likewise.
63184         * lib/unistr/u16-set.c: Likewise.
63185         * lib/unistr/u16-startswith.c: Likewise.
63186         * lib/unistr/u16-stpcpy.c: Likewise.
63187         * lib/unistr/u16-stpncpy.c: Likewise.
63188         * lib/unistr/u16-strcat.c: Likewise.
63189         * lib/unistr/u16-strchr.c: Likewise.
63190         * lib/unistr/u16-strcmp.c: Likewise.
63191         * lib/unistr/u16-strcpy.c: Likewise.
63192         * lib/unistr/u16-strcspn.c: Likewise.
63193         * lib/unistr/u16-strdup.c: Likewise.
63194         * lib/unistr/u16-strlen.c: Likewise.
63195         * lib/unistr/u16-strmblen.c: Likewise.
63196         * lib/unistr/u16-strmbtouc.c: Likewise.
63197         * lib/unistr/u16-strncat.c: Likewise.
63198         * lib/unistr/u16-strncmp.c: Likewise.
63199         * lib/unistr/u16-strncpy.c: Likewise.
63200         * lib/unistr/u16-strnlen.c: Likewise.
63201         * lib/unistr/u16-strpbrk.c: Likewise.
63202         * lib/unistr/u16-strrchr.c: Likewise.
63203         * lib/unistr/u16-strspn.c: Likewise.
63204         * lib/unistr/u16-strstr.c: Likewise.
63205         * lib/unistr/u16-strtok.c: Likewise.
63206         * lib/unistr/u16-to-u32.c: Likewise.
63207         * lib/unistr/u16-to-u8.c: Likewise.
63208         * lib/unistr/u16-uctomb-aux.c: Likewise.
63209         * lib/unistr/u16-uctomb.c: Likewise.
63210         * lib/unistr/u32-check.c: Likewise.
63211         * lib/unistr/u32-chr.c: Likewise.
63212         * lib/unistr/u32-cmp.c: Likewise.
63213         * lib/unistr/u32-cpy-alloc.c: Likewise.
63214         * lib/unistr/u32-cpy.c: Likewise.
63215         * lib/unistr/u32-endswith.c: Likewise.
63216         * lib/unistr/u32-mblen.c: Likewise.
63217         * lib/unistr/u32-mbsnlen.c: Likewise.
63218         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63219         * lib/unistr/u32-mbtouc.c: Likewise.
63220         * lib/unistr/u32-mbtoucr.c: Likewise.
63221         * lib/unistr/u32-move.c: Likewise.
63222         * lib/unistr/u32-next.c: Likewise.
63223         * lib/unistr/u32-prev.c: Likewise.
63224         * lib/unistr/u32-set.c: Likewise.
63225         * lib/unistr/u32-startswith.c: Likewise.
63226         * lib/unistr/u32-stpcpy.c: Likewise.
63227         * lib/unistr/u32-stpncpy.c: Likewise.
63228         * lib/unistr/u32-strcat.c: Likewise.
63229         * lib/unistr/u32-strchr.c: Likewise.
63230         * lib/unistr/u32-strcmp.c: Likewise.
63231         * lib/unistr/u32-strcpy.c: Likewise.
63232         * lib/unistr/u32-strcspn.c: Likewise.
63233         * lib/unistr/u32-strdup.c: Likewise.
63234         * lib/unistr/u32-strlen.c: Likewise.
63235         * lib/unistr/u32-strmblen.c: Likewise.
63236         * lib/unistr/u32-strmbtouc.c: Likewise.
63237         * lib/unistr/u32-strncat.c: Likewise.
63238         * lib/unistr/u32-strncmp.c: Likewise.
63239         * lib/unistr/u32-strncpy.c: Likewise.
63240         * lib/unistr/u32-strnlen.c: Likewise.
63241         * lib/unistr/u32-strpbrk.c: Likewise.
63242         * lib/unistr/u32-strrchr.c: Likewise.
63243         * lib/unistr/u32-strspn.c: Likewise.
63244         * lib/unistr/u32-strstr.c: Likewise.
63245         * lib/unistr/u32-strtok.c: Likewise.
63246         * lib/unistr/u32-to-u16.c: Likewise.
63247         * lib/unistr/u32-to-u8.c: Likewise.
63248         * lib/unistr/u32-uctomb.c: Likewise.
63249         * lib/unistr/u8-check.c: Likewise.
63250         * lib/unistr/u8-chr.c: Likewise.
63251         * lib/unistr/u8-cmp.c: Likewise.
63252         * lib/unistr/u8-cpy-alloc.c: Likewise.
63253         * lib/unistr/u8-cpy.c: Likewise.
63254         * lib/unistr/u8-endswith.c: Likewise.
63255         * lib/unistr/u8-mblen.c: Likewise.
63256         * lib/unistr/u8-mbsnlen.c: Likewise.
63257         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63258         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63259         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63260         * lib/unistr/u8-mbtouc.c: Likewise.
63261         * lib/unistr/u8-mbtoucr.c: Likewise.
63262         * lib/unistr/u8-move.c: Likewise.
63263         * lib/unistr/u8-next.c: Likewise.
63264         * lib/unistr/u8-prev.c: Likewise.
63265         * lib/unistr/u8-set.c: Likewise.
63266         * lib/unistr/u8-startswith.c: Likewise.
63267         * lib/unistr/u8-stpcpy.c: Likewise.
63268         * lib/unistr/u8-stpncpy.c: Likewise.
63269         * lib/unistr/u8-strcat.c: Likewise.
63270         * lib/unistr/u8-strchr.c: Likewise.
63271         * lib/unistr/u8-strcmp.c: Likewise.
63272         * lib/unistr/u8-strcpy.c: Likewise.
63273         * lib/unistr/u8-strcspn.c: Likewise.
63274         * lib/unistr/u8-strdup.c: Likewise.
63275         * lib/unistr/u8-strlen.c: Likewise.
63276         * lib/unistr/u8-strmblen.c: Likewise.
63277         * lib/unistr/u8-strmbtouc.c: Likewise.
63278         * lib/unistr/u8-strncat.c: Likewise.
63279         * lib/unistr/u8-strncmp.c: Likewise.
63280         * lib/unistr/u8-strncpy.c: Likewise.
63281         * lib/unistr/u8-strnlen.c: Likewise.
63282         * lib/unistr/u8-strpbrk.c: Likewise.
63283         * lib/unistr/u8-strrchr.c: Likewise.
63284         * lib/unistr/u8-strspn.c: Likewise.
63285         * lib/unistr/u8-strstr.c: Likewise.
63286         * lib/unistr/u8-strtok.c: Likewise.
63287         * lib/unistr/u8-to-u16.c: Likewise.
63288         * lib/unistr/u8-to-u32.c: Likewise.
63289         * lib/unistr/u8-uctomb-aux.c: Likewise.
63290         * lib/unistr/u8-uctomb.c: Likewise.
63291         * lib/unitypes.h: Likewise.
63292         * lib/uniwidth.h: Likewise.
63293         * lib/uniwidth/cjk.h: Likewise.
63294         * lib/uniwidth/u16-strwidth.c: Likewise.
63295         * lib/uniwidth/u16-width.c: Likewise.
63296         * lib/uniwidth/u32-strwidth.c: Likewise.
63297         * lib/uniwidth/u32-width.c: Likewise.
63298         * lib/uniwidth/u8-strwidth.c: Likewise.
63299         * lib/uniwidth/u8-width.c: Likewise.
63300         * lib/uniwidth/width.c: Likewise.
63301
63302 2007-10-07  Bruno Haible  <bruno@clisp.org>
63303
63304         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63305         The file is still under LGPL (see modules/inttypes).
63306
63307 2007-10-06  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/trunc (Dependencies): Add 'extensions'.
63310         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63311         Reported by Ben Pfaff <blp@gnu.org>.
63312
63313 2007-10-06  Bruno Haible  <bruno@clisp.org>
63314
63315         * modules/freopen-tests: New file.
63316         * tests/test-freopen.c: New file.
63317
63318         * modules/fopen-tests: New file.
63319         * tests/test-fopen.c: New file.
63320
63321         * modules/fopen: New file.
63322         * lib/fopen.c: New file.
63323         * m4/fopen.m4: New file.
63324         * modules/freopen: New file.
63325         * lib/freopen.c: New file.
63326         * m4/freopen.m4: New file.
63327         * lib/stdio.in.h (fopen, freopen): New declarations.
63328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63329         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63330         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63331         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63332         * doc/functions/fopen.texi: Mention the 'fopen' module.
63333         * doc/functions/freopen.texi: Mention the 'freopen' module.
63334
63335 2007-10-06  Bruno Haible  <bruno@clisp.org>
63336
63337         * modules/open-tests: New file.
63338         * tests/test-open.c: New file.
63339
63340         * modules/open: New file.
63341         * lib/open.c: New file.
63342         * m4/open.m4: New file.
63343         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63344         lib/open.c does.
63345         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63346         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63347         macros.
63348         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63349         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63350         REPLACE_OPEN.
63351         * doc/functions/open.texi: Mention the 'open' module.
63352
63353 2007-10-04  Bruno Haible  <bruno@clisp.org>
63354
63355         * modules/ceill-tests: New file.
63356         * tests/test-ceill.c: New file.
63357
63358         * modules/ceill: New file.
63359         * lib/ceill.c: Replace entire file.
63360         * m4/ceill.m4: New file.
63361         * lib/math.in.h (ceill): Replace declaration.
63362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63363         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63364         * doc/functions/ceill.texi: Mention the 'ceill' module.
63365         * modules/mathl (Files): Remove lib/ceill.c.
63366         (Depends-on): Add ceill.
63367
63368 2007-10-04  Bruno Haible  <bruno@clisp.org>
63369
63370         * modules/ceilf-tests: New file.
63371         * tests/test-ceilf.c: New file.
63372
63373         * modules/ceilf: New file.
63374         * lib/ceil.c: New file.
63375         * lib/ceilf.c: New file.
63376         * m4/ceilf.m4: New file.
63377         * lib/math.in.h (ceilf): New declaration.
63378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63379         HAVE_DECL_CEILF.
63380         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63381         HAVE_DECL_CEILF.
63382         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63383
63384 2007-10-04  Bruno Haible  <bruno@clisp.org>
63385
63386         * modules/floorl-tests: New file.
63387         * tests/test-floorl.c: New file.
63388
63389         * modules/floorl: New file.
63390         * lib/floorl.c: Replace entire file.
63391         * m4/floorl.m4: New file.
63392         * lib/math.in.h (floorl): Replace declaration.
63393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63394         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63395         * doc/functions/floorl.texi: Mention the 'floorl' module.
63396         * modules/mathl (Files): Remove lib/floorl.c.
63397         (Depends-on): Add floorl.
63398
63399 2007-10-04  Bruno Haible  <bruno@clisp.org>
63400
63401         * modules/floorf-tests: New file.
63402         * tests/test-floorf.c: New file.
63403
63404         * modules/floorf: New file.
63405         * lib/floor.c: New file.
63406         * lib/floorf.c: New file.
63407         * m4/floorf.m4: New file.
63408         * lib/math.in.h (floorf): New declaration.
63409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63410         HAVE_DECL_FLOORF.
63411         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63412         HAVE_DECL_FLOORF.
63413         * doc/functions/floorf.texi: Mention the 'floorf' module.
63414
63415 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63416             Bruno Haible  <bruno@clisp.org>
63417
63418         Advertise for the Git server instead of the CVS server.
63419         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63420         repository instead of the CVS one.
63421         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63422         about all VCS systems generically.
63423         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63424
63425 2007-10-04  Bruno Haible  <bruno@clisp.org>
63426
63427         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63428         means.
63429         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63430
63431 2007-10-04  Bruno Haible  <bruno@clisp.org>
63432
63433         * modules/truncl-tests: New file.
63434         * tests/test-truncl.c: New file.
63435
63436         * modules/truncl: New file.
63437         * lib/truncl.c: New file.
63438         * m4/truncl.m4: New file.
63439         * lib/math.in.h (truncl): New declaration.
63440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63441         HAVE_DECL_TRUNCL.
63442         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63443         HAVE_DECL_TRUNCL.
63444         * doc/functions/truncl.texi: Mention the 'truncl' module.
63445
63446 2007-10-04  Bruno Haible  <bruno@clisp.org>
63447
63448         * modules/truncf-tests: New file.
63449         * tests/test-truncf.c: New file.
63450
63451         * modules/truncf: New file.
63452         * lib/trunc.c: Make paramerizable through USE_* macros.
63453         * lib/truncf.c: New file.
63454         * m4/truncf.m4: New file.
63455         * lib/math.in.h (truncf): New declaration.
63456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63457         HAVE_DECL_TRUNCF.
63458         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63459         HAVE_DECL_TRUNCF.
63460         * doc/functions/truncf.texi: Mention the 'truncf' module.
63461
63462 2007-10-03  Bruno Haible  <bruno@clisp.org>
63463
63464         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63465         augmentation also for tests modules.
63466         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63467         * modules/atexit-tests (Makefile.am): Likewise.
63468         * modules/binary-io-tests (Makefile.am): Likewise.
63469         * modules/c-strcase-tests (Makefile.am): Likewise.
63470         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63471         * modules/canonicalize-tests (Makefile.am): Likewise.
63472         * modules/closein-tests (Makefile.am): Likewise.
63473         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63474         * modules/freadahead-tests (Makefile.am): Likewise.
63475         * modules/fseek-tests (Makefile.am): Likewise.
63476         * modules/fseeko-tests (Makefile.am): Likewise.
63477         * modules/ftell-tests (Makefile.am): Likewise.
63478         * modules/ftello-tests (Makefile.am): Likewise.
63479         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63480         * modules/isnanl-tests (Makefile.am): Likewise.
63481         * modules/lseek-tests (Makefile.am): Likewise.
63482         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63483         * modules/mbscasestr-tests (Makefile.am): Likewise.
63484         * modules/mbschr-tests (Makefile.am): Likewise.
63485         * modules/mbscspn-tests (Makefile.am): Likewise.
63486         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63487         * modules/mbspbrk-tests (Makefile.am): Likewise.
63488         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63489         * modules/mbsrchr-tests (Makefile.am): Likewise.
63490         * modules/mbsspn-tests (Makefile.am): Likewise.
63491         * modules/mbsstr-tests (Makefile.am): Likewise.
63492         * modules/printf-posix-tests (Makefile.am): Likewise.
63493         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63494         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63495         * modules/tsearch-tests (Makefile.am): Likewise.
63496         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63497         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63498         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63499         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63500         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63501         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63502         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63503         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63504         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63505         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63506         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63507         * modules/xstrtol-tests (Makefile.am): Likewise.
63508         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63509         * modules/yesno-tests (Makefile.am): Likewise.
63510
63511 2007-10-03  Bruno Haible  <bruno@clisp.org>
63512
63513         * modules/trunc-tests: New file.
63514         * tests/test-trunc.c: New file.
63515
63516         * modules/trunc: New file.
63517         * lib/trunc.c: New file.
63518         * m4/trunc.m4: New file.
63519         * lib/math.in.h (trunc): New declaration.
63520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63521         HAVE_DECL_TRUNC.
63522         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63523         HAVE_DECL_TRUNC.
63524         * doc/functions/trunc.texi: Mention the 'trunc' module.
63525
63526 2007-10-03  Bruno Haible  <bruno@clisp.org>
63527
63528         * tests/test-fpending.c: New file, mostly copied
63529         from coreutils/lib/t-fpending.c.
63530         * modules/fpending-tests: New file.
63531
63532 2007-10-03  Bruno Haible  <bruno@clisp.org>
63533
63534         Port the stdio extensions to QNX (untested).
63535         * lib/fseterr.c (fseterr): Add support for QNX.
63536         * lib/fbufmode.c (fbufmode): Likewise.
63537         * lib/freadable.c (freadable): Likewise.
63538         * lib/fwritable.c (fwritable): Likewise.
63539         * lib/freading.c (freading): Likewise.
63540         * lib/fwriting.c (fwriting): Likewise.
63541         * lib/freadahead.c (freadahed): Likewise.
63542         * lib/fpurge.c (fpurge): Likewise.
63543         * lib/fseeko.c (rpl_fseeko): Likewise.
63544
63545 2007-10-03  Bruno Haible  <bruno@clisp.org>
63546             Jim Meyering  <jim@meyering.net>
63547             Eric Blake  <ebb9@byu.net>
63548
63549         * doc/relocatable.texi: Use @command instead of @program.
63550
63551 2007-10-02  Jim Meyering  <jim@meyering.net>
63552
63553         Perform one more "_.h" -> ".in.h" substitution.
63554         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63555         instead of unistd_.h here, too.
63556
63557 2007-10-01  Bruno Haible  <bruno@clisp.org>
63558
63559         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63560         Needed for the alloca-opt module.
63561
63562 2007-09-30  Bruno Haible  <bruno@clisp.org>
63563
63564         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63565         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63566         alloca_.h.
63567         * lib/argz.in.h: Renamed from lib/argz_.h.
63568         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63569         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63570         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63571         byteswap_.h.
63572         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63573         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63574         dirent_.h.
63575         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63576         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63577         fcntl_.h.
63578         * lib/float.in.h: Renamed from lib/float_.h.
63579         * modules/float (Files, Makefile.am): Use float.in.h instead of
63580         float_.h.
63581         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63582         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63583         fnmatch_.h.
63584         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63585         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63586         getopt_.h.
63587         * lib/glob.in.h: Renamed from lib/glob_.h.
63588         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63589         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63590         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63591         iconv_.h.
63592         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63593         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63594         inttypes_.h.
63595         * lib/locale.in.h: Renamed from lib/locale_.h.
63596         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63597         locale_.h.
63598         * lib/math.in.h: Renamed from lib/math_.h.
63599         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63600         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63601         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63602         of netinet_in_.h. Add dependency.
63603         * lib/poll.in.h: Renamed from lib/poll_.h.
63604         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63605         * lib/search.in.h: Renamed from lib/search_.h.
63606         * modules/search (Files, Makefile.am): Use search.in.h instead of
63607         search_.h.
63608         * lib/signal.in.h: Renamed from lib/signal_.h.
63609         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63610         _signal.h.
63611         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63612         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63613         stdbool_.h.
63614         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63615         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63616         stdint_.h.
63617         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63618         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63619         stdio_.h.
63620         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63621         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63622         stdlib_.h.
63623         * lib/string.in.h: Renamed from lib/string_.h.
63624         * modules/string (Files, Makefile.am): Use string.in.h instead of
63625         string_.h.
63626         * doc/gnulib-tool.texi (Initial import): Update.
63627         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63628         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63629         of sys_select_.h. Add dependency.
63630         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63631         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63632         of sys_socket_.h.
63633         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63634         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63635         sys_stat_.h.
63636         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63637         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63638         sys_time_.h.
63639         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63640         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63641         sysexits_.h.
63642         * lib/time.in.h: Renamed from lib/time_.h.
63643         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63644         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63645         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63646         unistd_.h.
63647         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63648         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63649         wchar_.h.
63650         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63651         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63652         wctype_.h.
63653         * build-aux/bootstrap (slurp): Update.
63654         * lib/.cppi-disable: Update.
63655
63656 2007-09-30  Bruno Haible  <bruno@clisp.org>
63657
63658         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63659         Needed on BeOS.
63660
63661 2007-09-30  Bruno Haible  <bruno@clisp.org>
63662
63663         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63664
63665 2007-09-29  Bruno Haible  <bruno@clisp.org>
63666
63667         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63668
63669 2007-09-29  Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63672         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63673         * build-aux/install-reloc: Compile also areadlink.c.
63674         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63675
63676 2007-09-29  Bruno Haible  <bruno@clisp.org>
63677
63678         * gnulib-tool (func_emit_initmacro_done): Indentation.
63679
63680 2007-09-29  Bruno Haible  <bruno@clisp.org>
63681
63682         * README: Add CVS checkout update instructions.
63683         Info from Bob Proulx <bob@proulx.com>.
63684
63685 2007-09-28  Eric Blake  <ebb9@byu.net>
63686
63687         Provide move-if-change.
63688         * build-aux/move-if-change: New file, based on best practice
63689         rather than any canonical upstream location.
63690
63691 2007-09-28  Jim Meyering  <jim@meyering.net>
63692
63693         Fix canonicalize loop-detection corner case.
63694         Do not attempt to stat the symlink values stored via seen_triple.
63695         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63696         on linux-2.6.18, (but not 2.6.22).
63697         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63698         triple_compare.  The former compares dev,ino,filename, while the latter
63699         would actually stat dirname(filename) when dev and ino were equal.
63700         * lib/hash-triple.c: Install <string.h>.
63701         (STREQ): Define.
63702         (triple_compare_ino_str): New function.
63703         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63704
63705 2007-09-28  Eric Blake  <ebb9@byu.net>
63706
63707         Enforce that AC_REPLACE_FUNCS files exist.
63708         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63709         override check for typos.
63710
63711         Fix test-closein on Solaris 10.
63712         * tests/test-closein.c (main): Don't assume stdin can be inherited
63713         closed on all systems.
63714         * tests/test-closein.sh: Likewise.
63715         Reported by Piotr Tarnowski.
63716
63717 2007-09-28  Jim Meyering  <jim@meyering.net>
63718
63719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63720
63721 2007-09-27  Jim Meyering  <jim@meyering.net>
63722
63723         canonicalize: Avoid a false-positive cycle failure.
63724         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63725         Sort.  Remove cycle-check.
63726         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63727         not cycle-check.h.
63728         (seen_triple): New function.
63729         (canonicalize_filename_mode): Use it instead of cycle-check.
63730         * tests/test-canonicalize.c: Add a test for this bug.
63731         * tests/test-canonicalize.sh: Set up and run the test.
63732
63733         New module, file-set, from coreutils.
63734         * modules/file-set: Define it.
63735         * lib/file-set.c, lib/file-set.h: Implement.
63736
63737         New module, hash-triple, from coreutils.
63738         * modules/hash-triple: Define it.
63739         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63740
63741 2007-09-25  Eric Blake  <ebb9@byu.net>
63742
63743         Fix strerror on Interix.
63744         * lib/string_.h (strerror): Declare replacement.
63745         * doc/functions/strerror.texi (strerror): Document the Interix
63746         shortcoming.
63747         * modules/string (Makefile.am): Support new hooks.
63748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63749         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63750         gl_FUNC_STRERROR_SEPARATE.
63751         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63752         * lib/strerror.c (rpl_strerror): Provide replacement.
63753         * modules/strerror (Depends-on): Add string.
63754         (configure.ac): Detect use of module.
63755         * tests/test-strerror.c: New file.
63756         * modules/strerror-tests: New test module.
63757         * modules/argp (Depends-on): Add strerror.
63758         * modules/error (Depends-on): Likewise.
63759         Reported by Martin Koeppe.
63760
63761 2007-09-24  Bruno Haible  <bruno@clisp.org>
63762
63763         * README: Update git instructions.
63764
63765 2007-09-24  Eric Blake  <ebb9@byu.net>
63766
63767         Revert fpending breakage from 2007-09-08.
63768         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63769         __fpending.c.
63770
63771 2007-09-24  Jim Meyering  <jim@meyering.net>
63772
63773         filenamecat.c: Add a test.
63774         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63775         showing how the function works when DIR is the empty string.
63776
63777 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63778
63779         * tests/test-canonicalize.sh: Turn on executable bit.
63780
63781 2007-09-19  Eric Blake  <ebb9@byu.net>
63782
63783         * README: Update CVS instructions.
63784
63785 2007-09-18  Bruno Haible  <bruno@clisp.org>
63786
63787         * modules/areadlink: New file.
63788         * lib/areadlink.h (areadlink): New declaration.
63789         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63790
63791 2007-09-17  Jim Meyering  <jim@meyering.net>
63792
63793         * lib/savewd.c (ESTALE) [!defined]: Define.
63794         Reported to be required on Interix by Martin Koeppe.
63795
63796 2007-09-17  Bruno Haible  <bruno@clisp.org>
63797
63798         * gnulib-tool (func_version): Use $version.
63799
63800 2007-09-16  Bruno Haible  <bruno@clisp.org>
63801
63802         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63803         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63804         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63805         Reported by Greg Schafer <gschafer@zip.com.au>.
63806
63807 2007-09-15  Bruno Haible  <bruno@clisp.org>
63808
63809         * gnulib-tool (sed): Try a little harder to make bash understand the
63810         alias.
63811         Reported by Bruce Korb <bruce.korb@gmail.com>.
63812
63813 2007-09-13  Eric Blake  <ebb9@byu.net>
63814
63815         * ChangeLog: Remove conflict markers.
63816
63817 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63818
63819         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63820         Reported by Bruno Haible <bruno@clisp.org>.
63821
63822 2007-09-12  Bruno Haible  <bruno@clisp.org>
63823
63824         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63825         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63826         is not defined.
63827
63828 2007-09-12  Eric Blake  <ebb9@byu.net>
63829
63830         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63831         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63832         Autoconf definition.
63833         * modules/euidaccess (Depends-on): Add extensions, for
63834         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63835         * modules/fnmatch (Depends-on): Likewise.
63836         * modules/getaddrinfo (Depends-on): Likewise.
63837         * modules/getdelim (Depends-on): Likewise.
63838         * modules/getline (Depends-on): Likewise.
63839         * modules/getsubopt (Depends-on): Likewise.
63840         * modules/gettext (Depends-on): Likewise.
63841         * modules/group-member (Depends-on): Likewise.
63842         * modules/mbchar (Depends-on): Likewise.
63843         * modules/memmem (Depends-on): Likewise.
63844         * modules/mempcpy (Depends-on): Likewise.
63845         * modules/memrchr (Depends-on): Likewise.
63846         * modules/pagealign_alloc (Depends-on): Likewise.
63847         * modules/readutmp (Depends-on): Likewise.
63848         * modules/stpcpy (Depends-on): Likewise.
63849         * modules/stpncpy (Depends-on): Likewise.
63850         * modules/strchrnul (Depends-on): Likewise.
63851         * modules/strndup (Depends-on): Likewise.
63852         * modules/strsep (Depends-on): Likewise.
63853         * modules/strverscmp (Depends-on): Likewise.
63854         * modules/vasprintf (Depends-on): Likewise.
63855         * modules/wcwidth (Depends-on): Likewise.
63856         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63857         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63858         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63860         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63861         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63862         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63863         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63864         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63865         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63866         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63867         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63868         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63869         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63870         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63871         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63872         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63873         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63875         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63877         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63878         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63879         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63880         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63882         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63883         so that lock.m4 can be used in gettext without extensions module.
63884
63885 2007-09-11  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/isc-posix.m4: Remove file.
63888         Suggested by Eric Blake.
63889
63890 2007-09-11  Eric Blake  <ebb9@byu.net>
63891
63892         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63893
63894 2007-09-10  Bruno Haible  <bruno@clisp.org>
63895
63896         * posix-modules: Fix typo in error message.
63897         Reported by Matt <mkraai@beckman.com>.
63898
63899 2007-09-09  Bruno Haible  <bruno@clisp.org>
63900
63901         * doc/functions/getdelim.texi: Update list of platforms lacking the
63902         function.
63903         * doc/functions/getline.texi: Likewise.
63904
63905 2007-09-09  Jim Meyering  <jim@meyering.net>
63906
63907         * lib/hash.c (hash_initialize): Detect calloc failure.
63908         Reported by Bruno Haible.
63909
63910 2007-09-09  Bruno Haible  <bruno@clisp.org>
63911
63912         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63913         malloc or realloc fails.
63914
63915 2007-09-09  Bruno Haible  <bruno@clisp.org>
63916
63917         * modules/getcwd (Depends-on): Add malloc-posix.
63918         * modules/glob (Depends-on): Likewise.
63919         * modules/putenv (Depends-on): Likewise.
63920         * modules/strdup (Depends-on): Likewise.
63921         * modules/getdelim (Depends-on): Add realloc-posix.
63922         * modules/read-file (Depends-on): Likewise.
63923
63924 2007-09-09  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63927         (gl_FUNC_MALLOC_POSIX): Require it.
63928         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63929         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63930         * modules/realloc (Files): Add m4/malloc.m4.
63931         * modules/calloc (Files): Likewise.
63932
63933 2007-09-09  Bruno Haible  <bruno@clisp.org>
63934
63935         * modules/malloc-posix: New file.
63936         * modules/malloc (Depends-on): Add malloc-posix.
63937         * lib/malloc.c: Include errno.h.
63938         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63939         and a POSIX-compatible malloc into a single function. Set ENOMEM
63940         when returning NULL.
63941         * m4/malloc.m4: New file.
63942         * doc/functions/malloc.texi: Mention the malloc-posix module.
63943         * lib/stdlib_.h (malloc): New declaration.
63944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63945         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63946         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63947         and HAVE_MALLOC_POSIX.
63948
63949 2007-09-09  Bruno Haible  <bruno@clisp.org>
63950
63951         * modules/realloc-posix: New file.
63952         * modules/realloc (Depends-on): Add realloc-posix.
63953         * lib/realloc.c: Include errno.h.
63954         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63955         and a POSIX-compatible realloc into a single function. Set ENOMEM
63956         when returning NULL.
63957         * m4/realloc.m4: New file.
63958         * doc/functions/realloc.texi: Mention the realloc-posix module.
63959         * lib/stdlib_.h (realloc): New declaration.
63960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63961         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63962         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63963         and HAVE_REALLOC_POSIX.
63964
63965 2007-09-09  Bruno Haible  <bruno@clisp.org>
63966
63967         * modules/calloc-posix: New file.
63968         * modules/calloc (Depends-on): Add calloc-posix.
63969         * lib/calloc.c: Include errno.h.
63970         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63971         and a POSIX-compatible calloc into a single function. Set ENOMEM
63972         when returning NULL.
63973         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63974         * doc/functions/calloc.texi: Mention the calloc-posix module.
63975         * lib/stdlib_.h (calloc): New declaration.
63976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63977         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63978         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63979         and HAVE_CALLOC_POSIX.
63980
63981 2007-09-09  Bruno Haible  <bruno@clisp.org>
63982
63983         Allow for modules to show an arbitrary notice.
63984         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63985         * gnulib-tool: New option --extract-notice.
63986         (func_usage): Document it.
63987         (sed_extract_prog): Update.
63988         (func_get_notice): New function.
63989         (func_modules_notice): New function.
63990         (func_import, func_create_testdir): Invoke it.
63991         Suggested by Jim Meyering.
63992
63993 2007-09-09  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool: New options --verbose, --quiet.
63996         (func_usage): Document them.
63997         (verbose): New variable.
63998         (func_execute_command): New function.
63999         (func_import): Don't show the module list and the file list if
64000         $verbose < 0.
64001         (func_create_testdir): Likewise. Use func_execute_command.
64002         (func_create_megatestdir): Use func_execute_command.
64003
64004 2007-09-08  Bruno Haible  <bruno@clisp.org>
64005
64006         * gnulib-tool (func_import): Prefer rsync over wget when available,
64007         for fetching the PO files.
64008
64009 2007-09-08  Bruno Haible  <bruno@clisp.org>
64010
64011         * posix-modules: New file. Portions copied from gnulib-tool.
64012         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64013
64014 2007-09-08  Jim Meyering  <jim@meyering.net>
64015
64016         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64017         * lib/fpending.h: Rename from __fpending.h.
64018         * lib/fpending.c: Rename from __fpending.c.
64019         Include "fpending.h", not "__fpending.h".
64020         * lib/__fpending.h, lib/__fpending.c: Remove files.
64021         * modules/fpending (Files): Reflect new file names.
64022         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64023
64024 2007-09-08  Bruno Haible  <bruno@clisp.org>
64025
64026         * m4/inttypes-h.m4: Remove stub file.
64027
64028 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64029
64030         * doc/headers/stdint.texi: Discuss #include_next issue.
64031
64032 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64035
64036 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64037
64038         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64039         in variable name.
64040
64041 2007-09-03  Jim Meyering  <jim@meyering.net>
64042
64043         New module: git-version-gen.
64044         * modules/git-version-gen: New file.
64045
64046         Import changes from coreutils for bootstrap script.
64047
64048         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64049
64050         bootstrap: uses rsync to download the .po files
64051         * build-aux/bootstrap (po_download_command_format): New global.
64052         (download_po_files): Use rsync.
64053         (update_po_files): Don't remove .po files after download,
64054         so future rsync runs can take advantage of the copies.
64055
64056         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64057
64058         Solve the unnecessary-.po-file-regeneration problem once and for all.
64059         * build-aux/bootstrap (download_po_files): New function, renamed from
64060         get_translations.  Now, downloads, but doesn't update LINGUAS.
64061         (update_po_files): New function.
64062
64063         bootstrap: Ignore more.
64064         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64065         uniwidth to e.g., lib/.gitignore.
64066         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64067
64068         * build-aux/bootstrap: New setting: vc_ignore.
64069         (insert_sorted_if_absent): Create $file if absent.
64070         Adapt to new, possibly empty, list: $vc_ignore.
64071
64072         bootstrap: generate more ignorable names
64073         * build-aux/bootstrap (slurp): When generating ignorable names,
64074         also map .sin to .sed, .gperf to .c, and .y to .c.
64075
64076 2007-09-03  Jim Meyering  <jim@meyering.net>
64077
64078         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64079         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64080
64081 2007-09-02  Bruno Haible  <bruno@clisp.org>
64082
64083         Fix mis-recognition of 'mcs' on QNX 6.
64084         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64085         output contains the string "Mono".
64086         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64087         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64088
64089 2007-09-01  Bruno Haible  <bruno@clisp.org>
64090
64091         Fix collision between uniwidth/* and linebreak modules.
64092         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64093         u32_width): Remove declarations.
64094         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64095         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64096         streq3, streq2, streq1, streq0): Remove functions.
64097         (STREQ): Remove macro.
64098         (is_cjk_encoding): Remove function.
64099         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64100         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64101         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64102         * NEWS: Document the change.
64103
64104 2007-09-01  Bruno Haible  <bruno@clisp.org>
64105
64106         * lib/streq.h: Add double-inclusion guard.
64107
64108 2007-09-01  Karl Berry  <karl@gnu.org>
64109
64110         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64111
64112 2007-08-28  Jim Meyering  <jim@meyering.net>
64113
64114         Rename mreadlink_with_size to areadlink_with_size.
64115         * NEWS: Document the change.
64116         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64117         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64118         * lib/mreadlink.h: Rename this to...
64119         * lib/areadlink.h: ...this.
64120         * modules/mreadlink-with-size: Rename this to...
64121         * modules/areadlink-with-size: ...this.
64122         * lib/canonicalize.c: Reflect the renaming.
64123         * modules/canonicalize: Likewise.
64124
64125 2007-08-26  Bruno Haible  <bruno@clisp.org>
64126
64127         * gnulib-tool (func_import): When deciding which files to remove,
64128         consider also dangling symbolic links.
64129         Reported by Eric Blake.
64130
64131 2007-08-26  Bruno Haible  <bruno@clisp.org>
64132
64133         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64134
64135 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64136
64137         * lib/readline.c: Don't include getline.h, the prototype is now
64138         found in stdio.h.
64139
64140 2007-08-23  Jim Meyering  <jim@meyering.net>
64141
64142         Getdelim touchup.
64143         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64144         around the funlockfile call, since funlockfile never sets errno.
64145         Don't set errno upon failed realloc.
64146
64147 2007-08-22  Eric Blake  <ebb9@byu.net>
64148
64149         Getline touchups.
64150         * lib/getdelim.c (getdelim): Revert regression that required *n to
64151         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64152         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64153         getdelim, rather than whether implementation is missing.
64154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64155         * lib/stdio_.h (getline): Also declare if replacement is
64156         required.
64157         * doc/functions/getdelim.texi: New file.
64158         * doc/functions/getline.texi: Likewise.
64159         * doc/gnulib.texi (Function Substitutes): Add new files.
64160         Reported by Bruno Haible.
64161
64162 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64163
64164         * users.txt: Add Guile.
64165
64166 2007-08-22  Eric Blake  <ebb9@byu.net>
64167
64168         * tests/test-getdelim.c (main): Use remove, not unlink.
64169         * tests/test-getline.c (main): Likewise.
64170
64171         Move getline and getdelim into stdio.h, per POSIX 200x.
64172         * modules/getline (Files): Remove getline.h.
64173         (Depends-on): Add stdio.
64174         (configure.ac): Add module indicator.
64175         * modules/getdelim (Files): Remove getdelim.h.
64176         (Depends-on): Add stdio.
64177         (configure.ac): Add module indicator.
64178         * modules/stdio (Makefile.am): Work with new indicators.
64179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64180         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64181         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64182         * lib/getdelim.h: Delete.
64183         * lib/getline.h: Delete.
64184         * lib/stdio_.h (getdelim, getline): Declare.
64185         * modules/getdelim-tests: New module.
64186         * modules/getline-tests: Likewise.
64187         * tests/test-getdelim.c: New file.
64188         * tests/test-getline.c: Likewise.
64189         * NEWS: Document the change.
64190         * lib/getline.c: Update choice of header.
64191         * lib/csharpcomp.c: Likewise.
64192         * lib/getpass.c: Likewise.
64193         * lib/javacomp.c: Likewise.
64194         * lib/javaversion.c: Likewise.
64195         * lib/yesno.c: Likewise.
64196         * lib/getdelim.c: Likewise.
64197         (getdelim): Set errno on failure, and avoid memory leak.
64198
64199 2007-08-19  Bruno Haible  <bruno@clisp.org>
64200
64201         * modules/closein (Depends-on): Add freadahead.
64202         * lib/closein.c: Include freadahead.h.
64203         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64204         is zero.
64205
64206 2007-08-19  Bruno Haible  <bruno@clisp.org>
64207
64208         * modules/freadahead-tests: New file.
64209         * tests/test-freadahead.sh: New file.
64210         * tests/test-freadahead.c: New file.
64211
64212         * modules/freadahead: New file.
64213         * lib/freadahead.h: New file.
64214         * lib/freadahead.c: New file.
64215         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64216         fbufmode, fpurge, freadable, fwritable.
64217
64218 2007-08-19  Eric Blake  <ebb9@byu.net>
64219
64220         Test yesno in combination with closein.
64221         * lib/yesno.c (yesno): Document use of stdin.
64222         * modules/yesno-tests (Files): New module.
64223         * tests/test-yesno.c (main): New file.
64224         * tests/test-yesno.sh: Likewise.
64225
64226 2007-08-19  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64229         * lib/fseeko.c (rpl_fseeko): Likewise.
64230         * lib/fseterr.c (fseterr): Likewise.
64231
64232 2007-08-19  Bruno Haible  <bruno@clisp.org>
64233
64234         * tests/test-lseek.c (main): Disable a test for BeOS.
64235         * doc/functions/lseek.texi: Document the BeOS bug.
64236
64237 2007-08-19  Bruno Haible  <bruno@clisp.org>
64238             Eric Blake  <ebb9@byu.net>
64239
64240         * lib/lseek.c: Include <sys/stat.h>.
64241         (rpl_lseek): Add workaround code also for Unix platforms.
64242         Needed for BeOS.
64243         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64244         * doc/functions/lseek.texi: Document BeOS definiency.
64245
64246 2007-08-18  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/fstrcmp-tests: New file.
64249         * tests/test-fstrcmp.c: New file.
64250
64251 2007-08-18  Bruno Haible  <bruno@clisp.org>
64252
64253         * modules/fstrcmp: New file, from GNU gettext with modifications.
64254         * lib/fstrcmp.h: New file, from GNU gettext.
64255         * lib/fstrcmp.c: New file, from GNU gettext.
64256         * MODULES.html.sh (String handling): Add fstrcmp.
64257
64258 2007-08-18  Bruno Haible  <bruno@clisp.org>
64259
64260         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64261         'bool'.
64262         (diag, compareseq): Remove const from the ctxt argument.
64263         (USE_HEURISTIC): Undefine at the end.
64264
64265 2007-08-18  Jim Meyering  <jim@meyering.net>
64266
64267         New file: lib/idcache.h
64268         * NEWS: Mention the addition.
64269         * modules/idcache (Files): Add lib/idcache.h
64270         * lib/idcache.c: Include "idcache.h".
64271         Don't include <sys/types.h>.
64272         Add a FIXME comment.
64273         Move file-scoped "static" declarations to the top.
64274         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64275
64276 2007-08-17  Bruno Haible  <bruno@clisp.org>
64277         and Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * MODULES.html.sh: Add diffseq.
64280         * modules/diffseq: New file.
64281         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64282         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64283
64284 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64285
64286         Import changes from coreutils for bootstrap script.
64287
64288         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * build-aux/bootstrap (slurp): Work even in environments where
64291         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64292         current code does not slurp files whose names start with ".", and
64293         this looks like it might be a troublesome area.
64294
64295         2007-07-11  Jim Meyering  <jim@meyering.net>
64296
64297         If there's a GPL vN copyright comment, require that N == 3.
64298
64299         2007-07-08  Jim Meyering  <jim@meyering.net>
64300
64301         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64302         * build-aux/bootstrap (mam_template): Move definition out of loop.
64303
64304         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64305
64306         * build-aux/bootstrap (symlink_to_dir): Rename function from
64307         symlink_to_gnulib.  Add a directory parameter.  Update all
64308         callers.
64309         (cp_mark_as_generated): Also check for -- and link to -- files in
64310         gl/.
64311
64312         2007-07-08  Jim Meyering  <jim@meyering.net>
64313
64314         Adapt to deeper hierarchy in gnulib.
64315         * build-aux/bootstrap (symlink_to_dir): If the destination
64316         directory doesn't exist, create it. This is required at least for
64317         "lib/uniwidth/cjk.h".
64318
64319         2007-05-15  Jim Meyering  <jim@meyering.net>
64320
64321         * build-aux/bootstrap: Now that generated Makefile.am files
64322         are no longer under version control, they must be created at
64323         bootstrap time.
64324
64325 2007-08-14  Ben Pfaff  <blp@gnu.org>
64326
64327         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64328
64329 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64330
64331         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64332         given the changes below.
64333         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64334         even on hosts that have padding bits beyond the supported 64.
64335
64336 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64339         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64340         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64341         depends on it.
64342         (xstrtol_error): Remove.
64343         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64344         but with a different signature.
64345         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64346         * lib/xstrtol-error.c: Include exitfail.h.
64347         (xstrtol_fatal): New function, with a different signature from the
64348         old xstrtol_error, so that the caller need not worry about passing
64349         in an exit status, or about storage management of the option argument.
64350         (xstrtol_error): Now a static function.  Redo signature to
64351         implement xstrtol_fatal.  Output the correct number of hyphens in
64352         front of the option so that the caller need not worry about
64353         storage management.
64354         (N_): New macro.
64355         (_): Remove; not used now.
64356         * modules/xstrtol: Depend on getopt.
64357         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64358         of old STRTOL_FATAL_ERROR macro.
64359         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64360         of test program.
64361         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64362         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64363
64364 2007-08-08  Eric Blake  <ebb9@byu.net>
64365
64366         * lib/xstrtol-error.c: Add missing include.
64367
64368         Move xstrtol messages into gnulib domain, when --pobase is used.
64369         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64370         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64371         * modules/xstrtol (Files): Distribute new file.
64372         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64373         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64374         * tests/test-xstrtol.c: ...into new file.
64375         * tests/test-xstrtoul.c: Also test xstrtoul.
64376         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64377         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64378         * tests/test-xstrtol.sh: Drive the tests.
64379         * tests/test-xstrtoimax.sh: Likewise.
64380         * tests/test-xstrtoumax.sh: Likewise.
64381         * modules/xstrtol-tests: New module.
64382         * modules/xstrtoimax-tests: Likewise.
64383         * modules/xstrtoumax-tests: Likewise.
64384
64385 2007-08-08  Jim Meyering  <jim@meyering.net>
64386
64387         New function: mfile_name_concat.
64388         * lib/filenamecat.c (mfile_name_concat): New function, just like
64389         file_name_concat, but return NULL upon failure rather than exiting
64390         with a diagnostic.
64391         * lib/filenamecat.h: Declare it.
64392
64393 2007-08-07  Bruno Haible  <bruno@clisp.org>
64394
64395         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64396         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64397         warning from gcc.
64398         Reported by Eric Blake.
64399
64400 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64401
64402         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64403         * modules/crypto/arcfour (License): Likewise.
64404         * modules/crypto/des-tests (License): Likewise.
64405         * modules/crypto/gc-arctwo-tests (License): Likewise.
64406         * modules/crypto/gc-des-tests (License): Likewise.
64407         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64408         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64409         * modules/crypto/gc-md2-tests (License): Likewise.
64410         * modules/crypto/gc-md4-tests (License): Likewise.
64411         * modules/crypto/gc-md5-tests (License): Likewise.
64412         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64413         * modules/crypto/gc-rijndael-tests (License): Likewise.
64414         * modules/crypto/gc-sha1-tests (License): Likewise.
64415         * modules/crypto/gc-tests (License): Likewise.
64416         * modules/crypto/hmac-md5 (License): Likewise.
64417         * modules/crypto/hmac-sha1 (License): Likewise.
64418         * modules/crypto/md2-tests (License): Likewise.
64419         * modules/crypto/md4-tests (License): Likewise.
64420         * modules/crypto/md5 (License): Likewise.
64421         * modules/crypto/rijndael (License): Likewise.
64422         * modules/crypto/sha1 (License): Likewise.
64423         * modules/memxor (License): Likewise.
64424
64425 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64426         and Bruno Haible  <bruno@clisp.org>
64427
64428         * NEWS: Describe interface changes to human, xstrtol.
64429         * lib/human.h: Include <xstrtol.h>.
64430         (human_options): Return enum strtol_error, not int.  Remove
64431         bool arg; take int * instead.
64432         * lib/human.c: Don't include "gettext.h".
64433         (_): Remove; no longer used.
64434         Don't include <xstrtol.h>, since human.h does it.
64435         (human_options): Adjust to abovementioned interface changes.
64436         Do not report error to stderr; that's now the caller's
64437         responsibility.
64438         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64439         interface change.
64440         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64441         Str, Argument_type_string.  All uses changed.  Put " argument"
64442         in diagnostics to make them clearer.  Change wording of suffix
64443         message for clarity.
64444         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64445         Argument_type_string.
64446         (STRTOL_FATAL_WARN): Remove; no longer used.
64447         * modules/human (Depends-on): Remove gettext-h.
64448
64449 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64450
64451         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64452
64453 2007-07-31  Bruno Haible  <bruno@clisp.org>
64454
64455         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64456         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64457         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64458
64459 2007-07-31  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64462         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64463
64464 2007-07-30  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64467         * modules/c-ctype (License): Likewise.
64468         * modules/c-strcase (License): Likewise.
64469         * modules/check-version (License): Likewise.
64470         * modules/iconv (License): Likewise.
64471         * modules/iconv_open (License): Likewise.
64472         * modules/read-file (License): Likewise.
64473         * modules/striconv (License): Likewise.
64474         * modules/strverscmp (License): Likewise.
64475         * modules/vasprintf (License): Likewise.
64476         * modules/crypto/des (License): Likewise.
64477         * modules/crypto/gc (License): Likewise.
64478         * modules/crypto/gc-arcfour (License): Likewise.
64479         * modules/crypto/gc-arctwo (License): Likewise.
64480         * modules/crypto/gc-des (License): Likewise.
64481         * modules/crypto/gc-hmac-md5 (License): Likewise.
64482         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64483         * modules/crypto/gc-md2 (License): Likewise.
64484         * modules/crypto/gc-md4 (License): Likewise.
64485         * modules/crypto/gc-md5 (License): Likewise.
64486         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64487         * modules/crypto/gc-random (License): Likewise.
64488         * modules/crypto/gc-rijndael (License): Likewise.
64489         * modules/crypto/gc-sha1 (License): Likewise.
64490         * modules/crypto/md2 (License): Likewise.
64491         * modules/crypto/md4 (License): Likewise.
64492
64493 2007-07-30  Jim Meyering  <jim@meyering.net>
64494
64495         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64496         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64497         it has valid stat data.  This bug would cause du not to count the
64498         sizes of inaccessible directories.
64499         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64500         in <http://bugzilla.redhat.com/250077>.
64501
64502 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64503             Bruno Haible  <bruno@clisp.org>
64504
64505         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64506         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64507         #include_next, gives a diagnostic about it, but reports no error in
64508         the exit code.
64509         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64510
64511 2007-07-24  Ben Pfaff  <blp@gnu.org>
64512
64513         Improve name: "count-one-bits" is better than "popcount".
64514         * MODULES.html.sh: Update name.
64515         * lib/popcount.h: Renamed lib/count-one-bits.h.
64516         (popcount): Renamed count_one_bits.
64517         (popcountl): Renamed count_one_bits_l.
64518         (popcountll): Renamed count_one_bits_ll.
64519         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64520         * modules/popcount: Renamed module/count-one-bits.
64521         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64522         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64523
64524 2007-07-23  Ben Pfaff  <blp@gnu.org>
64525
64526         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64527         better code generation, and add U to large constants to avoid
64528         warnings, in non-GCC case.
64529         Suggested by Bruno Haible.
64530
64531 2007-07-23  Ben Pfaff  <blp@gnu.org>
64532
64533         * lib/popcount.h: Use verify_true instead of if...abort.
64534         * modules/popcount: Depend on verify module.
64535         Suggested by Jim Meyering.
64536
64537 2007-07-23  Bruno Haible  <bruno@clisp.org>
64538
64539         * gnulib-tool (func_import): Create a .cvsignore file also when the
64540         directory is not yet in CVS but the toplevel directory is. When
64541         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64542         Reported by Karl Berry.
64543
64544 2007-07-22  Ben Pfaff  <blp@gnu.org>
64545
64546         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64547         case.
64548         Suggested by Eric Blake.
64549
64550 2007-07-22  Ben Pfaff  <blp@gnu.org>
64551
64552         New module: popcount.
64553         * MODULES.html.sh: Add popcount.
64554         * modules/popcount: New file.
64555         * modules/popcount-tests: New file.
64556         * tests/test-popcount.c: New file.
64557         * lib/popcount.h: New file.
64558         * m4/popcount.m4: New file.
64559
64560 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * build-aux/announce-gen: Update to GPLv3.
64563
64564         * build-aux/config.guess: Update from config.
64565
64566 2007-07-21  Bruno Haible  <bruno@clisp.org>
64567
64568         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64569         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64570
64571 2007-07-20  Jim Meyering  <jim@meyering.net>
64572
64573         * check-module: Diagnose a self-dependency.
64574
64575 2007-07-19  Bruno Haible  <bruno@clisp.org>
64576
64577         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64578         empty.
64579         Reported by Eric Blake.
64580
64581 2007-07-18  Bruno Haible  <bruno@clisp.org>
64582
64583         * gnulib-tool: New options --po-base, --po-domain.
64584         (func_usage): Document them.
64585         (pobase, po_domain): New variables.
64586         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64587         DEFAULT_TEXT_DOMAIN.
64588         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64589         (func_import): Consider pobase and po_domain. Create a po/ directory.
64590         (func_create_testdir): Set pobase and po_domain to empty.
64591         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64592         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64593
64594 2007-07-18  Bruno Haible  <bruno@clisp.org>
64595
64596         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64597         EXTRA_DIST augmentation for files in build-aux/.
64598
64599 2007-07-16  Bruno Haible  <bruno@clisp.org>
64600
64601         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64602         * modules/getdelim (License): Likewise.
64603
64604 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64605
64606         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64607         * modules/d-type (License): Likewise.
64608         * modules/extensions (License): Likewise.
64609         * modules/fnmatch (License): Likewise.
64610         * modules/fseeko (License): Likewise.
64611         * modules/getaddrinfo (License): Likewise.
64612         * modules/getline (License): Likewise.
64613         * modules/getlogin_r (License): Likewise.
64614         * modules/getpass (License): Likewise.
64615         * modules/gettimeofday (License): Likewise.
64616         * modules/glob (License): Likewise.
64617         * modules/inet_ntop (License): Likewise.
64618         * modules/malloc (License): Likewise.
64619         * modules/malloca (License): Likewise.
64620         * modules/memmem (License): Likewise.
64621         * modules/mempcpy (License): Likewise.
64622         * modules/memset (License): Likewise.
64623         * modules/minmax (License): Likewise.
64624         * modules/mktime (License): Likewise.
64625         * modules/netinet_in (License): Likewise.
64626         * modules/pathmax (License): Likewise.
64627         * modules/poll (License): Likewise.
64628         * modules/regex (License): Likewise.
64629         * modules/snprintf (License): Likewise.
64630         * modules/stdbool (License): Likewise.
64631         * modules/stdint (License): Likewise.
64632         * modules/stdio (License): Likewise.
64633         * modules/strcase (License): Likewise.
64634         * modules/strcasestr (License): Likewise.
64635         * modules/strdup (License): Likewise.
64636         * modules/string (License): Likewise.
64637         * modules/strndup (License): Likewise.
64638         * modules/strnlen (License): Likewise.
64639         * modules/strpbrk (License): Likewise.
64640         * modules/strptime (License): Likewise.
64641         * modules/strsep (License): Likewise.
64642         * modules/sys_select (License): Likewise.
64643         * modules/sys_socket (License): Likewise.
64644         * modules/sys_stat (License): Likewise.
64645         * modules/sys_time (License): Likewise.
64646         * modules/time (License): Likewise.
64647         * modules/time_r (License): Likewise.
64648         * modules/timegm (License): Likewise.
64649         * modules/unistd (License): Likewise.
64650         * modules/vsnprintf (License): Likewise.
64651         * modules/wctype (License): Likewise.
64652
64653 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64654
64655         * modules/argz (License): LGPLv2+.
64656
64657 2007-07-15  Karl Berry  <karl@gnu.org>
64658
64659         * doc/gnulib.texi: revise node structure per new fdl.texi.
64660
64661 2007-07-14  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64664         the output file.
64665         * lib/uniname/uninames.h: Regenerated.
64666
64667 2007-07-14  Karl Berry  <karl@gnu.org>
64668
64669         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64670         omitting sectioning and index commands.
64671
64672 2007-07-13  Bruno Haible  <bruno@clisp.org>
64673
64674         New gnulib-tool option --more-symlinks.
64675         * gnulib-tool (func_usage): Document --more-symlinks.
64676         (do_copyrights): New variable.
64677         Recognize option --more-symlinks.
64678         (func_import): Don't add a copyright notice transform to
64679         sed_transform_lib_file if do_copyrights is empty.
64680
64681 2007-07-13  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/vasnprintf.c (decimal_point_char): Define also if
64684         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64685         && !NEED_PRINTF_DIRECTIVE_A.
64686         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64687         Gary V. Vaughan <gary@gnu.org>.
64688
64689 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * lib/inttypes_.h: Undo previous change, since it was fixed
64692         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64693
64694 2007-07-13  Bruno Haible  <bruno@clisp.org>
64695
64696         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64697         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64698
64699 2007-07-13  Jim Meyering  <jim@meyering.net>
64700
64701         df: Don't fail for Tru64's "file-on-file mount".
64702         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64703         so we fall through and use statfs instead.  Details here:
64704         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64705         Reported by Albert Chin.
64706
64707 2007-07-13  Bruno Haible  <bruno@clisp.org>
64708
64709         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64710         * modules/configmake (License): Likewise.
64711         * modules/gettext (License): Likewise.
64712         * modules/gettext-h (License): Likewise.
64713         * modules/include_next (License): Likewise.
64714         * modules/link-warning (License): Likewise.
64715         * modules/localcharset (License): Likewise.
64716         * modules/localename (License): Likewise.
64717         * modules/lock (License): Likewise.
64718         * modules/relocatable-lib-lgpl (License): Likewise.
64719         * modules/size_max (License): Likewise.
64720         * modules/vasnprintf (License): Likewise.
64721         * modules/wchar (License): Likewise.
64722         * modules/xsize (License): Likewise.
64723
64724 2007-07-13  Bruno Haible  <bruno@clisp.org>
64725
64726         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64727         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64728
64729 2007-07-12  Bruno Haible  <bruno@clisp.org>
64730
64731         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64732         in the modules files.
64733
64734 2007-07-11  Karl Berry  <karl@gnu.org>
64735
64736         * MODULES.html.sh (func_module): use
64737          sed -e '\|^'"${includefile}"'$|d'
64738          instead of /.../d, to avoid errors on $includefile's containing /.
64739
64740 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64741
64742         * gnulib-tool (func_import): Avoid duplication of --avoid
64743         statements
64744         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64745         names to `_' in variable names.
64746
64747 2007-07-10  Eric Blake  <ebb9@byu.net>
64748
64749         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64750         * NEWS: Document this change.
64751
64752 2007-07-08  Bruno Haible  <bruno@clisp.org>
64753
64754         Update to Unicode 5.0.
64755         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64756         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64757         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64758         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64759         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64760         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64761         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64762         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64763         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64764         U+10A3F, U+1D242..U+1D244.
64765         (nonspacing_table_ind): Update.
64766         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64767         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64768
64769 2007-07-08  Bruno Haible  <bruno@clisp.org>
64770
64771         Update to Unicode 5.0.
64772         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64773         code transform. Extend the name index field of unicode_name_to_code and
64774         unicode_code_to_name from 16 to 24 bits.
64775         * lib/uniname/uniname.c (unicode_character_name,
64776         unicode_name_character): Add the range 0x12xxx to the code transform.
64777         * lib/uniname/uninames.h: Regenerated.
64778         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64779
64780 2007-07-07  Bruno Haible  <bruno@clisp.org>
64781
64782         * modules/wcwidth-tests: New file.
64783         * tests/test-wcwidth.c: New file.
64784
64785         Work around MacOS X wcwidth() bug.
64786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64787         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64788         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64789         original wcwidth in non-UTF-8 locales.
64790         * modules/wcwidth (Depends-on): Add localcharset, streq,
64791         uniwidth/width.
64792         * doc/functions/wcwidth.texi: Update.
64793
64794 2007-07-07  Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64797         (wcwidth): New declaration.
64798         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64799         macros.
64800         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64801         here. Prepare for creating <wchar.h> unconditionally.
64802         * modules/wchar (Depends-on): Add link-warning.
64803         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64804         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64805         * lib/wcwidth.h: Remove file.
64806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64807         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64808         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64809         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64810         (Include): Replace wcwidth.h with <wchar.h>.
64811         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64812         * lib/mbchar.h: Don't include wcwidth.h.
64813         * lib/mbswidth.c: Likewise.
64814         * NEWS: Mention the change.
64815
64816 2007-07-07  Bruno Haible  <bruno@clisp.org>
64817
64818         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64819         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64820         definition with an external declaration.
64821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64822         defined as a function. Remove AC_C_INLINE requirement.
64823         * modules/wcwidth (Files): Add lib/wcwidth.c.
64824         (Makefile.am): Remove redundant statement.
64825
64826 2007-07-07  Bruno Haible  <bruno@clisp.org>
64827
64828         * MODULES.html.sh (Unicode string functions): Add the new modules.
64829
64830         * tests/uniwidth/test-u32-strwidth.c: New file.
64831         * modules/uniwidth/u32-strwidth-tests: New file.
64832
64833         * lib/uniwidth/u32-strwidth.c: New file.
64834         * modules/uniwidth/u32-strwidth: New file.
64835
64836         * tests/uniwidth/test-u16-strwidth.c: New file.
64837         * modules/uniwidth/u16-strwidth-tests: New file.
64838
64839         * lib/uniwidth/u16-strwidth.c: New file.
64840         * modules/uniwidth/u16-strwidth: New file.
64841
64842         * tests/uniwidth/test-u8-strwidth.c: New file.
64843         * modules/uniwidth/u8-strwidth-tests: New file.
64844
64845         * lib/uniwidth/u8-strwidth.c: New file.
64846         * modules/uniwidth/u8-strwidth: New file.
64847
64848         * tests/uniwidth/test-u32-width.c: New file.
64849         * modules/uniwidth/u32-width-tests: New file.
64850
64851         * lib/uniwidth/u32-width.c: New file.
64852         * modules/uniwidth/u32-width: New file.
64853
64854         * tests/uniwidth/test-u16-width.c: New file.
64855         * modules/uniwidth/u16-width-tests: New file.
64856
64857         * lib/uniwidth/u16-width.c: New file.
64858         * modules/uniwidth/u16-width: New file.
64859
64860         * tests/uniwidth/test-u8-width.c: New file.
64861         * modules/uniwidth/u8-width-tests: New file.
64862
64863         * lib/uniwidth/u8-width.c: New file.
64864         * modules/uniwidth/u8-width: New file.
64865
64866         * tests/uniwidth/test-uc_width.c: New file.
64867         * modules/uniwidth/width-tests: New file.
64868
64869         * lib/uniwidth/width.c: New file, from GNU libiconv.
64870         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64871         * modules/uniwidth/width: New file.
64872
64873         * lib/uniwidth.h: New file, from GNU libiconv.
64874         * modules/uniwidth/base: New file.
64875
64876 2007-07-07  Bruno Haible  <bruno@clisp.org>
64877
64878         * lib/uniname.h: New file, from GNU gettext.
64879         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64880         * lib/uniname/uninames.h: New file, from GNU gettext.
64881         * lib/uniname/uniname.c: New file, from GNU gettext.
64882         * tests/uniname/test-uninames.sh: New file.
64883         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64884         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64885         * modules/uniname/base: New file.
64886         * modules/uniname/uniname: New file.
64887         * modules/uniname/uniname-tests: New file.
64888         * MODULES.html.sh (Unicode string functions): Add the new modules.
64889
64890 2007-07-06  Bruno Haible  <bruno@clisp.org>
64891
64892         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64893
64894 2007-07-06  Bruno Haible  <bruno@clisp.org>
64895
64896         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64897         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64898         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64899         include <sys/time.h>.
64900         Reported by Eric Blake.
64901
64902 2007-07-06  Eric Blake  <ebb9@byu.net>
64903
64904         Fix testing canonicalize on cygwin.
64905         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64906         Revert patch from 2007-06-19.
64907         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64908         canonicalize module is also in use.
64909         * tests/test-canonicalize.c: New file.
64910         * tests/test-canonicalize.sh: Likewise.
64911         * modules/canonicalize-tests: Likewise.
64912
64913 2007-07-06  Jim Meyering  <jim@meyering.net>
64914
64915         * lib/getugroups.c (getugroups): Detect getgrent failure.
64916         Adjust comment to reflect reality: this function may return -1.
64917
64918 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64919
64920         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64921         the new TP address.
64922         (usage): Fix typo
64923         (gnulib_mk): New variable.
64924
64925 2007-07-05  Jim Meyering  <jim@meyering.net>
64926
64927         Don't let endgrent clobber errno, no matter how improbable.
64928         * lib/getugroups.c (getugroups): Save and restore errno around
64929         endgrent call.
64930
64931         Close the group DB even when failing with 2^31 or more members.
64932         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64933
64934 2007-07-04  Jim Meyering  <jim@meyering.net>
64935
64936         * lib/getugroups.h: New file.
64937         * lib/getugroups.c: Include "getugroups.h".
64938         Remove uses of "register" keyword.
64939         Move local variable, "cp", down into scope where used.
64940         Give "username" parameter the "const" attribute.
64941         * modules/getugroups (Files): Add lib/getugroups.h
64942
64943 2007-07-04  Karl Berry  <karl@gnu.org>
64944
64945         * MODULES.html.sh (func_all_modules): Complete rename of
64946         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64947
64948 2007-07-02  Bruno Haible  <bruno@clisp.org>
64949
64950         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64951         mode, when inttypes.h comes from gnulib.
64952         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64953
64954 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64955
64956         * NEWS: Mention lgpl module name change.
64957
64958         * modules/lgpl-2.1: Renamed from lgpl.
64959
64960         * NEWS: Mention gpl module name change.
64961
64962         * modules/gpl-3.0: New file, based on gpl-2.0.
64963
64964         * modules/gpl-2.0: Renamed from gpl.
64965
64966         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64967         doc/gpl-2.0.texi.
64968
64969 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64970
64971         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64972         #define __STDC_LIMIT_MACROS temporarily while including
64973         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64974         Problem reported by Joel E. Denny in
64975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64976
64977 2007-07-01  Bruno Haible  <bruno@clisp.org>
64978
64979         * lib/unistdio.h: New file.
64980         * lib/unistdio/u-asnprintf.h: New file.
64981         * lib/unistdio/u-asprintf.h: New file.
64982         * lib/unistdio/u-printf-args.c: New file.
64983         * lib/unistdio/u-printf-args.h: New file.
64984         * lib/unistdio/u-printf-parse.h: New file.
64985         * lib/unistdio/u-snprintf.h: New file.
64986         * lib/unistdio/u-sprintf.h: New file.
64987         * lib/unistdio/u-vasprintf.h: New file.
64988         * lib/unistdio/u-vsnprintf.h: New file.
64989         * lib/unistdio/u-vsprintf.h: New file.
64990         * lib/unistdio/ulc-asnprintf.c: New file.
64991         * lib/unistdio/ulc-asprintf.c: New file.
64992         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64993         * lib/unistdio/ulc-printf-parse.c: New file.
64994         * lib/unistdio/ulc-snprintf.c: New file.
64995         * lib/unistdio/ulc-sprintf.c: New file.
64996         * lib/unistdio/ulc-vasnprintf.c: New file.
64997         * lib/unistdio/ulc-vasprintf.c: New file.
64998         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64999         * lib/unistdio/ulc-vsnprintf.c: New file.
65000         * lib/unistdio/ulc-vsprintf.c: New file.
65001         * lib/unistdio/u8-asnprintf.c: New file.
65002         * lib/unistdio/u8-asprintf.c: New file.
65003         * lib/unistdio/u8-printf-parse.c: New file.
65004         * lib/unistdio/u8-snprintf.c: New file.
65005         * lib/unistdio/u8-sprintf.c: New file.
65006         * lib/unistdio/u8-vasnprintf.c: New file.
65007         * lib/unistdio/u8-vasprintf.c: New file.
65008         * lib/unistdio/u8-vsnprintf.c: New file.
65009         * lib/unistdio/u8-vsprintf.c: New file.
65010         * lib/unistdio/u8-u8-asnprintf.c: New file.
65011         * lib/unistdio/u8-u8-asprintf.c: New file.
65012         * lib/unistdio/u8-u8-snprintf.c: New file.
65013         * lib/unistdio/u8-u8-sprintf.c: New file.
65014         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65015         * lib/unistdio/u8-u8-vasprintf.c: New file.
65016         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65017         * lib/unistdio/u8-u8-vsprintf.c: New file.
65018         * lib/unistdio/u16-asnprintf.c: New file.
65019         * lib/unistdio/u16-asprintf.c: New file.
65020         * lib/unistdio/u16-printf-parse.c: New file.
65021         * lib/unistdio/u16-snprintf.c: New file.
65022         * lib/unistdio/u16-sprintf.c: New file.
65023         * lib/unistdio/u16-vasnprintf.c: New file.
65024         * lib/unistdio/u16-vasprintf.c: New file.
65025         * lib/unistdio/u16-vsnprintf.c: New file.
65026         * lib/unistdio/u16-vsprintf.c: New file.
65027         * lib/unistdio/u16-u16-asnprintf.c: New file.
65028         * lib/unistdio/u16-u16-asprintf.c: New file.
65029         * lib/unistdio/u16-u16-snprintf.c: New file.
65030         * lib/unistdio/u16-u16-sprintf.c: New file.
65031         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65032         * lib/unistdio/u16-u16-vasprintf.c: New file.
65033         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65034         * lib/unistdio/u16-u16-vsprintf.c: New file.
65035         * lib/unistdio/u32-asnprintf.c: New file.
65036         * lib/unistdio/u32-asprintf.c: New file.
65037         * lib/unistdio/u32-printf-parse.c: New file.
65038         * lib/unistdio/u32-snprintf.c: New file.
65039         * lib/unistdio/u32-sprintf.c: New file.
65040         * lib/unistdio/u32-vasnprintf.c: New file.
65041         * lib/unistdio/u32-vasprintf.c: New file.
65042         * lib/unistdio/u32-vsnprintf.c: New file.
65043         * lib/unistdio/u32-vsprintf.c: New file.
65044         * lib/unistdio/u32-u32-asnprintf.c: New file.
65045         * lib/unistdio/u32-u32-asprintf.c: New file.
65046         * lib/unistdio/u32-u32-snprintf.c: New file.
65047         * lib/unistdio/u32-u32-sprintf.c: New file.
65048         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65049         * lib/unistdio/u32-u32-vasprintf.c: New file.
65050         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65051         * lib/unistdio/u32-u32-vsprintf.c: New file.
65052         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65053         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65054         * tests/unistdio/test-ulc-printf1.h: New file.
65055         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65056         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65057         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65058         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65059         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65060         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65061         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65062         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65063         * tests/unistdio/test-u8-asnprintf1.c: New file.
65064         * tests/unistdio/test-u8-asnprintf1.h: New file.
65065         * tests/unistdio/test-u8-printf1.h: New file.
65066         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65067         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65068         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65069         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65070         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65071         * tests/unistdio/test-u8-vasprintf1.c: New file.
65072         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65073         * tests/unistdio/test-u8-vsprintf1.c: New file.
65074         * tests/unistdio/test-u16-asnprintf1.c: New file.
65075         * tests/unistdio/test-u16-asnprintf1.h: New file.
65076         * tests/unistdio/test-u16-printf1.h: New file.
65077         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65078         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65079         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65080         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65081         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65082         * tests/unistdio/test-u16-vasprintf1.c: New file.
65083         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65084         * tests/unistdio/test-u16-vsprintf1.c: New file.
65085         * tests/unistdio/test-u32-asnprintf1.c: New file.
65086         * tests/unistdio/test-u32-asnprintf1.h: New file.
65087         * tests/unistdio/test-u32-printf1.h: New file.
65088         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65089         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65090         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65091         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65092         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65093         * tests/unistdio/test-u32-vasprintf1.c: New file.
65094         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65095         * tests/unistdio/test-u32-vsprintf1.c: New file.
65096         * modules/unistdio/base: New file.
65097         * modules/unistdio/u-printf-args: New file.
65098         * modules/unistdio/ulc-asnprintf: New file.
65099         * modules/unistdio/ulc-asprintf: New file.
65100         * modules/unistdio/ulc-fprintf: New file.
65101         * modules/unistdio/ulc-printf-parse: New file.
65102         * modules/unistdio/ulc-snprintf: New file.
65103         * modules/unistdio/ulc-sprintf: New file.
65104         * modules/unistdio/ulc-vasnprintf: New file.
65105         * modules/unistdio/ulc-vasprintf: New file.
65106         * modules/unistdio/ulc-vfprintf: New file.
65107         * modules/unistdio/ulc-vsnprintf: New file.
65108         * modules/unistdio/ulc-vsprintf: New file.
65109         * modules/unistdio/u8-asnprintf: New file.
65110         * modules/unistdio/u8-asprintf: New file.
65111         * modules/unistdio/u8-printf-parse: New file.
65112         * modules/unistdio/u8-snprintf: New file.
65113         * modules/unistdio/u8-sprintf: New file.
65114         * modules/unistdio/u8-vasnprintf: New file.
65115         * modules/unistdio/u8-vasprintf: New file.
65116         * modules/unistdio/u8-vsnprintf: New file.
65117         * modules/unistdio/u8-vsprintf: New file.
65118         * modules/unistdio/u8-u8-asnprintf: New file.
65119         * modules/unistdio/u8-u8-asprintf: New file.
65120         * modules/unistdio/u8-u8-snprintf: New file.
65121         * modules/unistdio/u8-u8-sprintf: New file.
65122         * modules/unistdio/u8-u8-vasnprintf: New file.
65123         * modules/unistdio/u8-u8-vasprintf: New file.
65124         * modules/unistdio/u8-u8-vsnprintf: New file.
65125         * modules/unistdio/u8-u8-vsprintf: New file.
65126         * modules/unistdio/u16-asnprintf: New file.
65127         * modules/unistdio/u16-asprintf: New file.
65128         * modules/unistdio/u16-printf-parse: New file.
65129         * modules/unistdio/u16-snprintf: New file.
65130         * modules/unistdio/u16-sprintf: New file.
65131         * modules/unistdio/u16-vasnprintf: New file.
65132         * modules/unistdio/u16-vasprintf: New file.
65133         * modules/unistdio/u16-vsnprintf: New file.
65134         * modules/unistdio/u16-vsprintf: New file.
65135         * modules/unistdio/u16-u16-asnprintf: New file.
65136         * modules/unistdio/u16-u16-asprintf: New file.
65137         * modules/unistdio/u16-u16-snprintf: New file.
65138         * modules/unistdio/u16-u16-sprintf: New file.
65139         * modules/unistdio/u16-u16-vasnprintf: New file.
65140         * modules/unistdio/u16-u16-vasprintf: New file.
65141         * modules/unistdio/u16-u16-vsnprintf: New file.
65142         * modules/unistdio/u16-u16-vsprintf: New file.
65143         * modules/unistdio/u32-asnprintf: New file.
65144         * modules/unistdio/u32-asprintf: New file.
65145         * modules/unistdio/u32-printf-parse: New file.
65146         * modules/unistdio/u32-snprintf: New file.
65147         * modules/unistdio/u32-sprintf: New file.
65148         * modules/unistdio/u32-vasnprintf: New file.
65149         * modules/unistdio/u32-vasprintf: New file.
65150         * modules/unistdio/u32-vsnprintf: New file.
65151         * modules/unistdio/u32-vsprintf: New file.
65152         * modules/unistdio/u32-u32-asnprintf: New file.
65153         * modules/unistdio/u32-u32-asprintf: New file.
65154         * modules/unistdio/u32-u32-snprintf: New file.
65155         * modules/unistdio/u32-u32-sprintf: New file.
65156         * modules/unistdio/u32-u32-vasnprintf: New file.
65157         * modules/unistdio/u32-u32-vasprintf: New file.
65158         * modules/unistdio/u32-u32-vsnprintf: New file.
65159         * modules/unistdio/u32-u32-vsprintf: New file.
65160         * modules/unistdio/ulc-asnprintf-tests: New file.
65161         * modules/unistdio/ulc-vasnprintf-tests: New file.
65162         * modules/unistdio/ulc-vasprintf-tests: New file.
65163         * modules/unistdio/ulc-vsnprintf-tests: New file.
65164         * modules/unistdio/ulc-vsprintf-tests: New file.
65165         * modules/unistdio/u8-asnprintf-tests: New file.
65166         * modules/unistdio/u8-vasnprintf-tests: New file.
65167         * modules/unistdio/u8-vasprintf-tests: New file.
65168         * modules/unistdio/u8-vsnprintf-tests: New file.
65169         * modules/unistdio/u8-vsprintf-tests: New file.
65170         * modules/unistdio/u16-asnprintf-tests: New file.
65171         * modules/unistdio/u16-vasnprintf-tests: New file.
65172         * modules/unistdio/u16-vasprintf-tests: New file.
65173         * modules/unistdio/u16-vsnprintf-tests: New file.
65174         * modules/unistdio/u16-vsprintf-tests: New file.
65175         * modules/unistdio/u32-asnprintf-tests: New file.
65176         * modules/unistdio/u32-vasnprintf-tests: New file.
65177         * modules/unistdio/u32-vasprintf-tests: New file.
65178         * modules/unistdio/u32-vsnprintf-tests: New file.
65179         * modules/unistdio/u32-vsprintf-tests: New file.
65180         * MODULES.html.sh (Unicode string functions): Add the new modules.
65181
65182 2007-07-01  Bruno Haible  <bruno@clisp.org>
65183
65184         * lib/sprintf.c (sprintf): Limit the available length estimation,
65185         to avoid address wraparound.
65186         * lib/vsprintf.c (vsprintf): Likewise.
65187         * modules/sprintf-posix (Dependencies): Add stdint.
65188         * modules/vsprintf-posix (Dependencies): Likewise.
65189
65190 2007-07-01  Bruno Haible  <bruno@clisp.org>
65191
65192         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65193         Windows PATH as well. Conservative double-quoting. Comments.
65194
65195 2007-07-01  Bruno Haible  <bruno@clisp.org>
65196             Eric Blake  <ebb9@byu.net>
65197             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65198
65199         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65200         empty components in $PATH, denoting '.'.
65201
65202 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65203
65204         * gnulib-tool: Fix indentation.
65205         (func_create_megatestdir): Likewise.
65206         Report by Bruno Haible.
65207
65208 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65209
65210         Sync from Automake.
65211         * build-aux/gnupload: Fix shell portability issues with for loops.
65212         Report by Karl Berry.
65213
65214 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65215
65216         * build-aux/maint.mk (POURL): Use translationproject.org.
65217
65218 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65219             Bruno Haible  <bruno@clisp.org>
65220
65221         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65222         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65223         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65224         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65225         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65226
65227 2007-06-27  Bruno Haible  <bruno@clisp.org>
65228
65229         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65230         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65231
65232 2007-06-26  Karl Berry  <karl@gnu.org>
65233
65234         * MODULES.html.sh: remove xreadlink-with-size.
65235
65236 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65239         method that I hope also handles the double-include problem noted
65240         by Bruno Haible in
65241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65242
65243 2007-06-23  Bruno Haible  <bruno@clisp.org>
65244
65245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65246         Don't let the 'mostlyclean' target fail if the last subdirectory could
65247         not be removed.
65248         Reported by Karl Berry.
65249
65250 2007-06-23  Bruno Haible  <bruno@clisp.org>
65251
65252         * gnulib-tool (echo): Add a speedier workaround for ksh.
65253         * tests/test-echo.sh: Likewise.
65254
65255 2007-06-23  Bruno Haible  <bruno@clisp.org>
65256
65257         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65258         * tests/test-echo.sh: Likewise.
65259
65260 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65261
65262         * gnulib-tool (IFS): Initialize early, so we don't set it to
65263         empty later.
65264         (self_abspathname): Rewrite algorithm to set it, reindent.
65265         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65266         (func_create_megatestdir): Merge some sed scripts.
65267
65268 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65271         exposed by Sun Studio 11 cc on Solaris 8.
65272
65273 2007-06-22  Bruno Haible  <bruno@clisp.org>
65274
65275         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65276         backslashes.
65277         * tests/test-echo.sh: New file.
65278
65279 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65280
65281         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65282         simplify `sed_replace_build_aux' scripts, they are portable but
65283         echoing them with `echo' is not.
65284         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65285
65286 2007-06-21  Karl Berry  <karl@gnu.org>
65287
65288         * config/srclist.txt: guess we can't handle the licenses via
65289         srclist at the moment.
65290
65291 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * MODULES.html.sh: Add include_next.
65294         * modules/include_next: New file.
65295
65296 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65299         INCLUDE_NEXT.
65300         (gl_CHECK_NEXT_HEADERS): New macro.
65301         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65302         the obsolescent gl_ABSOLUTE_HEADER.
65303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65304         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65305         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65306         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65307         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65308         * m4/math_h.m4 (gl_MATH_H): Likewise.
65309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65310         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65311         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65312         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65313         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65314         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65315         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65319         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65320         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65321         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65322         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65323         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65324         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65325         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65326         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65327         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65328         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65329         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65330         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65331         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65332         * lib/float_.h: Likewise.
65333         * lib/inttypes_.h: Likewise.
65334         * lib/math_.h: Likewise.
65335         * lib/search_.h: Likewise.
65336         * lib/signal_.h: Likewise.
65337         * lib/stdint_.h: Likewise.
65338         * lib/stdio_.h: Likewise.
65339         * lib/stdlib_.h: Likewise.
65340         * lib/string_.h: Likewise.
65341         * lib/sys_stat_.h: Likewise.
65342         * lib/sys_time_.h: Likewise.
65343         * lib/time_.h: Likewise.
65344         * lib/unistd_.h: Likewise.
65345         * lib/wchar_.h: Likewise.
65346         * lib/wctype_.h: Likewise.
65347         * lib/dirent_.h: Likewise.
65348         * lib/iconv_.h: Likewise.
65349         * lib/locale_.h: Likewise.
65350         * lib/netinet_in_.h: Likewise.
65351         * lib/sys_select_.h: Likewise.
65352         * lib/sys_socket_.h: Likewise.
65353         * lib/sysexits_.h: Likewise.
65354         * modules/fcntl (Depends-on): Depend on include_next, not
65355         absolute_header.
65356         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65357         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65358         * modules/fchdir: Likewise.
65359         * modules/float: Likewise.
65360         * modules/iconv_open: Likewise.
65361         * modules/inttypes: Likewise.
65362         * modules/locale: Likewise.
65363         * modules/math: Likewise.
65364         * modules/netinet_in: Likewise.
65365         * modules/search: Likewise.
65366         * modules/signal: Likewise.
65367         * modules/stdint: Likewise.
65368         * modules/stdio: Likewise.
65369         * modules/stdlib: Likewise.
65370         * modules/string: Likewise.
65371         * modules/sys_select: Likewise.
65372         * modules/sys_socket: Likewise.
65373         * modules/sys_stat: Likewise.
65374         * modules/sys_time: Likewise.
65375         * modules/sysexits: Likewise.
65376         * modules/time: Likewise.
65377         * modules/unistd: Likewise.
65378         * modules/wchar: Likewise.
65379         * modules/wctype: Likewise.
65380         * modules/sys_stat: Change maintainer to "all".
65381         * modules/unistd: Likewise.
65382
65383 2007-06-20  Karl Berry  <karl@gnu.org>
65384
65385         * config/srclist.txt: track www changes in license files.
65386
65387 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65388
65389         * build-aux/bootstrap: Remove stray dot.
65390         Make sure build_aux settings are honored when linking
65391         gnulib_extra_files.
65392
65393 2007-06-19  Eric Blake  <ebb9@byu.net>
65394
65395         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65396         Allow compilation on cygwin.
65397
65398 2007-06-19  Jim Meyering  <jim@meyering.net>
65399
65400         xreadlink-with-size: Remove module.  No longer used.
65401         Ex-callers now use xreadlink or mreadlink-with-size.
65402         * modules/xreadlink-with-size: Remove module.
65403         * lib/xreadlink-with-size.c: Remove file.
65404         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65405         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65406         just before the function definition *is* accurate.
65407
65408         Eliminate one way canonicalize_filename_mode could exit.
65409         * lib/canonicalize.c (canonicalize_filename_mode):
65410         Use mreadlink_with_size, not xreadlink_with_size.
65411
65412 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         Detect porting problems to FreeBSD/arm, which has time_t wider than
65415         long int.  Original problem reported for GNU diff by Xin Li in
65416         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65417         * modules/getdate (Depends-on): Add intprops, verify.
65418         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65419         is an integer type no wider than long int.
65420
65421 2007-06-18  Jim Meyering  <jim@meyering.net>
65422
65423         New module: mreadlink-with-size.
65424         * MODULES.html.sh: Add mreadlink-with-size.
65425         * modules/mreadlink-with-size: New module
65426         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65427         not xreadlink-with-size.
65428         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65429
65430 2007-06-16  Bruno Haible  <bruno@clisp.org>
65431
65432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65433         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65434         Reported by Gary V. Vaughan <gary@gnu.org>.
65435
65436 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65437
65438         Revamp lchown so that it lives in unistd.h where it belongs.
65439         * lib/lchown.h: Remove.
65440         * lib/dirchownmod.c: Don't include lib/lchown.h.
65441         * lib/fchownat.c: Likewise.
65442         * lib/openat.c: Likewise.
65443         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65444         does not follow symlinks.
65445         (EOPNOTSUPP): Define if not defined.
65446         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65447         is defined to 0.
65448         (lchown): New decl.
65449         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65450         Do not check for lchown decl.
65451         Set REPLACE_LCHOWN.
65452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65453         REPLACE_LCHOWN.
65454         * modules/chown: Make it clear it follows symlinks.
65455         * modules/lchown: Make it clear it doesn't follow symlinks.
65456         (Files): Remove lib/lchown.h
65457         (Depends-on): Add unistd.
65458         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65459         (Include): Include <unistd.h>, not "lchown.h".
65460         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65461         REPLACE_LCHOWN.
65462
65463 2007-06-15  Jim Meyering  <jim@meyering.net>
65464
65465         Change license (GPL to LGPL) of fsusage and dependents.
65466         * modules/fsusage (License): Change to LGPL.
65467         * modules/full-read (License): Likewise.
65468         * modules/full-write (License): Likewise.
65469         * modules/safe-read (License): Likewise.
65470         * modules/safe-write (License): Likewise.
65471
65472 2007-06-14  Ben Pfaff  <blp@gnu.org>
65473
65474         Missing part of allocsa -> malloca transition.
65475         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65476         gl_MALLOCA.
65477
65478 2007-06-12  Bruno Haible  <bruno@clisp.org>
65479
65480         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65481         to ia64, x86_64, i386.
65482         Reported by Eric Blake.
65483
65484 2007-06-12  Bruno Haible  <bruno@clisp.org>
65485
65486         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65487         cross-compiling to x86_64.
65488
65489 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65492         glitch reported by Ralf Wildenhues in
65493         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65494
65495         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65496         Vin Shelton.
65497
65498 2007-06-11  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65501         replacement string.
65502         Reported by Eric Blake.
65503
65504 2007-06-10  Bruno Haible  <bruno@clisp.org>
65505
65506         Prepare vasnprintf code for use with Unicode strings.
65507         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65508         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65509         TYPE_U32_STRING.
65510         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65511         a_u32_string variants.
65512         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65513         * lib/printf-args.c: Don't include config.h and the specification
65514         header if PRINTF_FETCHARGS is already defined.
65515         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65516         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65517         TYPE_U16_STRING, TYPE_U32_STRING.
65518         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65519         u16_directive, u16_directives, u32_directive, u32_directives): New
65520         types.
65521         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65522         New declarations.
65523         * lib/printf-parse.c: Don't include config.h and the specification
65524         header if PRINTF_PARSE is already defined. Eliminate the set of
65525         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65526         them now. Include c-ctype.h.
65527         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65528         directive and CHAR_T_ONLY_ASCII.
65529         * lib/vasnprintf.c: Don't include config.h and the specification header
65530         if VASNPRINTF is already defined.
65531         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65532         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65533         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65534         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65535         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65536         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65537         code accordingly.
65538         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65539         pad_ourselves also in this case, with the 'c' and 's' directives, and
65540         with a different notion of "width".
65541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65542
65543 2007-06-10  Bruno Haible  <bruno@clisp.org>
65544
65545         * modules/unistr/u32-mbsnlen: New file.
65546         * lib/unistr/u32-mbsnlen.c: New file.
65547
65548         * modules/unistr/u16-mbsnlen: New file.
65549         * lib/unistr/u16-mbsnlen.c: New file.
65550
65551         * modules/unistr/u8-mbsnlen: New file.
65552         * lib/unistr/u8-mbsnlen.c: New file.
65553
65554         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65555         declarations.
65556
65557 2007-06-10  Bruno Haible  <bruno@clisp.org>
65558
65559         * lib/string_.h (mbsnlen): New declaration.
65560         * lib/mbsnlen.c: New file.
65561         * m4/mbsnlen.m4: New file.
65562         * modules/mbsnlen: New file.
65563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65564         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65565         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65566
65567 2007-06-10  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65570
65571 2007-06-10  Bruno Haible  <bruno@clisp.org>
65572
65573         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65574         * lib/mbuiter.h: Likewise.
65575
65576 2007-06-10  Bruno Haible  <bruno@clisp.org>
65577
65578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65579         declaration.
65580
65581 2007-06-10  Karl Berry  <karl@gnu.org>
65582
65583         * config/srclist.txt: remove gettext entries, Bruno prefers
65584         to update individually.
65585
65586 2007-06-10  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65589         'maxlen'. Ensure only length + width bytes are allocated, not
65590         length + 1 + width.
65591
65592 2007-06-09  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65595         (CHAR_T): Remove macro.
65596         (VASNPRINTF): Update.
65597
65598 2007-06-09  Bruno Haible  <bruno@clisp.org>
65599
65600         * MODULES.html.sh (Unicode string functions): Add the new modules.
65601
65602         * modules/uniconv/u32-conv-to-enc: New file.
65603         * lib/uniconv/u32-conv-to-enc.c: New file.
65604         * modules/uniconv/u32-conv-to-enc-tests: New file.
65605         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65606
65607         * modules/uniconv/u16-conv-to-enc: New file.
65608         * lib/uniconv/u16-conv-to-enc.c: New file.
65609         * lib/uniconv/u-conv-to-enc.h: New file.
65610         * modules/uniconv/u16-conv-to-enc-tests: New file.
65611         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65612
65613         * modules/uniconv/u8-conv-to-enc: New file.
65614         * lib/uniconv/u8-conv-to-enc.c: New file.
65615         * modules/uniconv/u8-conv-to-enc-tests: New file.
65616         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65617
65618         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65619         u32_conv_to_encoding): New declarations.
65620
65621 2007-06-09  Bruno Haible  <bruno@clisp.org>
65622
65623         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65624
65625 2007-06-09  Bruno Haible  <bruno@clisp.org>
65626
65627         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65628         * modules/malloca: Renamed from modules/allocsa, updated.
65629         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65630         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65631         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65632         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65633         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65634         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65635         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65636         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65637         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65638         * modules/c-strcasestr (Depends-on): Update.
65639         * lib/c-strcasestr.c: Update.
65640         * modules/c-strstr (Depends-on): Update.
65641         * lib/c-strstr.c: Update.
65642         * modules/canonicalize-lgpl (Depends-on): Update.
65643         * lib/canonicalize-lgpl.c: Update.
65644         * modules/clean-temp (Depends-on): Update.
65645         * lib/clean-temp.c: Update.
65646         * modules/csharpcomp (Depends-on): Update.
65647         * lib/csharpcomp.c: Update.
65648         * modules/csharpexec (Depends-on): Update.
65649         * lib/csharpexec.c: Update.
65650         * modules/javacomp (Depends-on): Update.
65651         * lib/javacomp.c: Update.
65652         * modules/javaexec (Depends-on): Update.
65653         * lib/javaexec.c: Update.
65654         * modules/mbscasestr (Depends-on): Update.
65655         * lib/mbscasestr.c: Update.
65656         * modules/mbsstr (Depends-on): Update.
65657         * lib/mbsstr.c: Update.
65658         * modules/setenv (Depends-on): Update.
65659         * lib/setenv.c: Update.
65660         * modules/strcasestr (Depends-on): Update.
65661         * lib/strcasestr.c: Update.
65662         * modules/striconveha (Depends-on): Update.
65663         * lib/striconveha.c: Update.
65664         * modules/relocatable-prog-wrapper (Files): Update.
65665         * lib/relocwrapper.c: Update.
65666         * build-aux/install-reloc: Update.
65667         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65668
65669 2007-06-08  Bruno Haible  <bruno@clisp.org>
65670
65671         Port to uClibc.
65672         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65673         * lib/fpurge.c (fpurge): Likewise.
65674         * lib/freading.c (freading): Likewise.
65675         * lib/fseeko.c (rpl_fseeko): Likewise.
65676         * lib/fseterr.c (fseterr): Likewise.
65677         * lib/fwriting.c (fwriting): Likewise.
65678         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65679
65680 2007-06-08  Bruno Haible  <bruno@clisp.org>
65681
65682         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65683         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65684         * modules/gettext (Files): Add m4/intlmacosx.m4.
65685
65686 2007-06-07  Bruno Haible  <bruno@clisp.org>
65687
65688         * modules/localename-tests: New file.
65689         * tests/test-localename.c: New file.
65690
65691         New module 'localename'.
65692         * lib/localename.h: New file.
65693         * lib/localename.c: New file, from GNU gettext.
65694         * m4/localename.m4: New file.
65695         * modules/localename: New file.
65696
65697 2007-06-07  Bruno Haible  <bruno@clisp.org>
65698
65699         Work around the lack of <wchar.h> on some builds of uClibc.
65700         * doc/headers/wchar.texi: Update.
65701         * lib/wchar_.h: Include <wchar.h> only if it exists.
65702         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65703         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65704         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65705         doesn't exist.
65706         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65707         * modules/mbfile (Depends-on): Add wchar.
65708         * modules/mbiter (Depends-on): Likewise.
65709         * modules/mbuiter (Depends-on): Likewise.
65710         Reported by Simon Josefsson.
65711
65712 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         Work around problem reported by Steven M. Schweda in
65715         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65716         Tru64 5.1B with the Compaq compiler environment installed declares
65717         an 'isblank' function but does not define it in the C library.
65718         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65719         * lib/regex_internal.h (isblank): Likewise.
65720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65721         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65722
65723 2007-06-05  Bruno Haible  <bruno@clisp.org>
65724
65725         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65726         ia64.
65727         * modules/printf-safe: New file.
65728         * modules/fprintf-posix (Depends-on): Add printf-safe.
65729         * modules/printf-posix (Depends-on): Likewise.
65730         * modules/snprintf-posix (Depends-on): Likewise.
65731         * modules/sprintf-posix (Depends-on): Likewise.
65732         * modules/vasnprintf-posix (Depends-on): Likewise.
65733         * modules/vasprintf-posix (Depends-on): Likewise.
65734         * modules/vfprintf-posix (Depends-on): Likewise.
65735         * modules/vprintf-posix (Depends-on): Likewise.
65736         * modules/vsnprintf-posix (Depends-on): Likewise.
65737         * modules/vsprintf-posix (Depends-on): Likewise.
65738         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65739         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65740         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65741         "no" on i386, x86_64, ia64.
65742         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65743         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65744         on i386, x86_64, ia64.
65745         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65746         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65747         on i386, x86_64, ia64.
65748         * tests/test-vasnprintf-posix.c: Include float.h.
65749         (LDBL80_WORDS): New macro.
65750         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65751         on i386, x86_64, ia64.
65752         * tests/test-vasprintf-posix.c: Include float.h.
65753         (LDBL80_WORDS): New macro.
65754         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65755         on i386, x86_64, ia64.
65756         * tests/test-snprintf-posix.c: Include float.h.
65757         * tests/test-sprintf-posix.c: Likewise.
65758         * tests/test-vsnprintf-posix.c: Likewise.
65759         * tests/test-vsprintf-posix.c: Likewise.
65760
65761 2007-06-05  Bruno Haible  <bruno@clisp.org>
65762
65763         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65764         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65765         non-IEEE numbers on i386, x86_64, ia64.
65766         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65767         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65768         * tests/test-isnanl.h: Include float.h.
65769         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65770
65771 2007-06-05  Bruno Haible  <bruno@clisp.org>
65772
65773         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65774         also the %a / %A. Handle the %a / %A code before this extra handling.
65775
65776 2007-06-05  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65779         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65780
65781 2007-06-05  Bruno Haible  <bruno@clisp.org>
65782
65783         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65784         typo in variable name.
65785
65786 2007-06-05  Eric Blake  <ebb9@byu.net>
65787
65788         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65789         Reported by Simon Josefsson.
65790
65791 2007-06-04  Bruno Haible  <bruno@clisp.org>
65792
65793         Avoid test failures on some PowerPC platforms.
65794         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65795         Define differently for PowerPC.
65796         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65797         Reported by Gary V. Vaughan <gary@gnu.org>.
65798
65799 2007-06-02  Bruno Haible  <bruno@clisp.org>
65800
65801         Fix test-stdint failure on FreeBSD/ia64.
65802         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65803         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65804         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65805         * doc/headers/stdint.texi: Update.
65806
65807 2007-06-01  Bruno Haible  <bruno@clisp.org>
65808
65809         * tests/test-binary-io.c (main): Pass a third argument to open().
65810         Reported by Gary V. Vaughan <gary@gnu.org>.
65811
65812 2007-06-01  Bruno Haible  <bruno@clisp.org>
65813
65814         * doc/functions/frexpl.texi: Update for mingw.
65815
65816 2007-06-01  Bruno Haible  <bruno@clisp.org>
65817
65818         * tests/test-lseek.c (main): Disable test of errno for invalid third
65819         argument.
65820         * doc/functions/lseek.texi: Update.
65821         Reported by Gary V. Vaughan <gary@gnu.org>.
65822
65823 2007-05-28  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65826
65827 2007-05-31  Eric Blake  <ebb9@byu.net>
65828
65829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65830         cross compiling.
65831
65832 2007-05-30  Eric Blake  <ebb9@byu.net>
65833         and Bruno Haible  <bruno@clisp.org>
65834
65835         Work around mingw test failures exposed by m4-1.4.9b.
65836         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65837         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65838         moment.
65839
65840 2007-05-30  Bruno Haible  <bruno@clisp.org>
65841
65842         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65843         assuming that they are closed. Needed on HP-UX 11.
65844
65845 2007-05-29  Bruno Haible  <bruno@clisp.org>
65846
65847         Fix a problem with #include_next.
65848         * lib/dirent_.h: Split the double-inclusion guard.
65849         * lib/fcntl_.h: Likewise.
65850         * lib/float_.h: Likewise.
65851         * lib/iconv_.h: Likewise.
65852         * lib/inttypes_.h: Likewise.
65853         * lib/locale_.h: Likewise.
65854         * lib/math_.h: Likewise.
65855         * lib/netinet_in_.h: Likewise.
65856         * lib/search_.h: Likewise.
65857         * lib/signal_.h: Likewise.
65858         * lib/stdint_.h: Likewise.
65859         * lib/stdio_.h: Likewise.
65860         * lib/stdlib_.h: Likewise.
65861         * lib/string_.h: Likewise.
65862         * lib/sys_select_.h: Likewise.
65863         * lib/sys_socket_.h: Likewise.
65864         * lib/sys_stat_.h: Likewise.
65865         * lib/sys_time_.h: Likewise.
65866         * lib/sysexits_.h: Likewise.
65867         * lib/time_.h: Likewise.
65868         * lib/unistd_.h: Likewise.
65869         * lib/wchar_.h: Likewise.
65870         * lib/wctype_.h: Likewise.
65871
65872 2007-05-29  Bruno Haible  <bruno@clisp.org>
65873
65874         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65875         for the moment.
65876
65877 2007-05-29  Bruno Haible  <bruno@clisp.org>
65878
65879         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65880         invocation.
65881         Reported by Eric Blake.
65882
65883 2007-05-29  Bruno Haible  <bruno@clisp.org>
65884
65885         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65886         compiling case.
65887
65888 2007-05-29  Eric Blake  <ebb9@byu.net>
65889             Bruno Haible  <bruno@clisp.org>
65890
65891         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65892         cross compiles.
65893
65894 2007-05-28  Eric Blake  <ebb9@byu.net>
65895
65896         * modules/closein-tests (test_closein_LDADD): Support test on
65897         cygwin with libtool.
65898
65899 2007-05-28  Bruno Haible  <bruno@clisp.org>
65900
65901         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65902         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65903         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65904         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65905         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65906         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65907         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65908         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65909         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65910
65911 2007-05-28  Eric Blake  <ebb9@byu.net>
65912
65913         Unconditionally include <config.h> in unit tests.
65914         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65915         * tests/test-allocsa.c, tests/test-arcfour.c,
65916         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65917         tests/test-array_list.c, tests/test-array_oset.c,
65918         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65919         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65920         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65921         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65922         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65923         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65924         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65925         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65926         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65927         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65928         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65929         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65930         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65931         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65932         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65933         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65934         test-md5.c, test-memmem.c, test-printf-posix.c,
65935         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65936         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65937         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65938         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65939         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65940         test-vasnprintf-posix2.c, test-vasnprintf.c,
65941         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65942         test-vfprintf-posix.c, test-vprintf-posix.c,
65943         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65944         test-xvasprintf.c: Likewise.
65945
65946 2007-05-28  Bruno Haible  <bruno@clisp.org>
65947
65948         * gnulib-tool (func_import): Remember the --with-tests command-line
65949         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65950         Reported by Eric Blake.
65951
65952 2007-05-28  Bruno Haible  <bruno@clisp.org>
65953
65954         * modules/ftell-tests: New file.
65955         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65956         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65957
65958         * lib/ftell.c: New file.
65959         * modules/ftell: New file.
65960         * m4/ftell.m4: New file.
65961         * doc/functions/ftell.texi: Update.
65962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65963         REPLACE_FTELL.
65964         * lib/stdio_.h (rpl_ftell): New declaration.
65965         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65966         REPLACE_FTELL.
65967
65968 2007-05-28  Eric Blake  <ebb9@byu.net>
65969
65970         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65971
65972 2007-05-28  Bruno Haible  <bruno@clisp.org>
65973
65974         * modules/fseek-tests: New file.
65975         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65976         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65977
65978         * lib/fseek.c: New file.
65979         * modules/fseek: New file.
65980         * m4/fseek.m4: New file.
65981         * doc/functions/fseek.texi: Update.
65982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65983         REPLACE_FSEEK.
65984         * lib/stdio_.h (rpl_fseek): New declaration.
65985         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65986         REPLACE_FSEEK.
65987
65988 2007-05-28  Bruno Haible  <bruno@clisp.org>
65989
65990         * lib/stdio_.h (fflush): More comments.
65991
65992 2007-05-28  Bruno Haible  <bruno@clisp.org>
65993
65994         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65995         runtime test.
65996
65997 2007-05-28  Eric Blake  <ebb9@byu.net>
65998
65999         Improve lseek module.
66000         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66001         * lib/unistd_.h (lseek): Scale back link warning message.
66002         * tests/test-lseek.c: Beef up test.
66003         * tests/test-lseek.sh: Exercise more facets of lseek.
66004         Reported by Bruno Haible.
66005
66006 2007-05-28  Bruno Haible  <bruno@clisp.org>
66007
66008         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66009         to define.
66010
66011 2007-05-27  Bruno Haible  <bruno@clisp.org>
66012
66013         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66014
66015 2007-05-27  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/openmp: New file.
66018         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66019         Noah Misch.
66020
66021 2007-05-26  Bruno Haible  <bruno@clisp.org>
66022
66023         * modules/chdir-long (Depends-on): Add fchdir.
66024         * modules/chdir-safer (Depends-on): Likewise.
66025         * modules/fts (Depends-on): Likewise.
66026         * modules/fts-lgpl (Depends-on): Likewise.
66027         * modules/openat (Depends-on): Likewise.
66028         * modules/savewd (Depends-on): Likewise.
66029
66030 2007-05-24  Eric Blake  <ebb9@byu.net>
66031
66032         Fix lseek on mingw.
66033         * modules/lseek: New module.
66034         * m4/lseek.m4: New file.
66035         * lib/lseek.c: New file.
66036         * modules/lseek-tests: New file.
66037         * tests/test-lseek.c: New file.
66038         * tests/test-lseek.sh: New file.
66039         * MODULES.html.sh: Document lseek module.
66040         * modules/fflush (Depends-on): Add lseek, fseeko.
66041         * modules/fseeko (Depends-on): Likewise.
66042         * modules/ftello (Depends-on): Likewise.
66043         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66044         broken.
66045         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66046         broken.
66047         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66048         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66049         * lib/ftello.c (rpl_ftello): Likewise.
66050         * tests/test-fseeko.c (main): Test this.
66051         * tests/test-fseeko.sh: Likewise.
66052         * tests/test-ftello.c (main): Likewise.
66053         * tests/test-ftello.sh: Likewise.
66054         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66055         implies replacing fseek.
66056         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66057         HAVE_FTELLO.
66058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66059         * modules/unistd (Makefile.am): Likewise.
66060         * lib/unistd_.h (lseek): Declare a replacement.
66061         * doc/functions/lseek.texi (lseek): Document this fix.
66062         * doc/functions/fseek.texi (fseek): Likewise.
66063         * doc/functions/ftell.texi (ftell): Likewise.
66064
66065 2007-05-24  Bruno Haible  <bruno@clisp.org>
66066
66067         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66068         in the printed representation of a NaN.
66069         * tests/test-vasprintf-posix.c (test_function): Likewise.
66070         * tests/test-snprintf-posix.h (test_function): Likewise.
66071         * tests/test-sprintf-posix.h (test_function): Likewise.
66072         Reported by Eric Blake.
66073
66074 2007-05-23  Eric Blake  <ebb9@byu.net>
66075
66076         Fix fseeko/ftello on cygwin 1.5.24.
66077         * doc/functions/fseeko.texi (fseeko): Document the fix.
66078         * doc/functions/ftello.texi (ftello): Document the fix.
66079         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66080         * doc/functions/stdout.text (stdout): New file.
66081         * doc/functions/stderr.text (stderr): New file.
66082         * doc/gnulib.texi (Function Substitutes): Use new files.
66083         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66084         prior to 1.7.0.
66085         * tests/test-ftello.c (main): Likewise for ftello.
66086         * tests/test-fseeko.sh: New file.
66087         * tests/test-ftello.sh: New file.
66088         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66089         with seekable stdin.
66090         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66091         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66092         (gl_REPLACE_FSEEKO): New macro.
66093         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66094         * modules/fseeko (Files): Distribute fseeko.c.
66095         * modules/ftello (Files): Distribute ftello.c.
66096         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66097         mode.
66098         * lib/ftello.c (rpl_ftello): New file.
66099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66100         fseeko, ftello.
66101         (gl_STDIN_LARGE_OFFSET): New macro.
66102         * modules/stdio (Makefile.am): Perform the replacement.
66103         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66104
66105 2007-05-23  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66108         GNULIB_POSIXCHECK is defined.
66109
66110 2007-05-21  Bruno Haible  <bruno@clisp.org>
66111
66112         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66113         Check also the output for NaN arguments. When cross-compiling, guess
66114         no on IRIX.
66115         * lib/vasnprintf.c: Update comments.
66116         * tests/test-vasnprintf-posix.c (strisnan): New function.
66117         (test_function): Use it.
66118         * tests/test-vasprintf-posix.c (strisnan): New function.
66119         (test_function): Use it.
66120         * tests/test-snprintf-posix.h (strisnan): New function.
66121         (test_function): Use it.
66122         * tests/test-sprintf-posix.h (strisnan): New function.
66123         (test_function): Use it.
66124         Reported by Eric Blake.
66125
66126 2007-05-20  Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66129         numbers that fails on BeOS.
66130         * doc/functions/frexpl.texi: Update.
66131
66132 2007-05-20  Jim Meyering  <jim@meyering.net>
66133
66134         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66135         forced upon us by glibc-2.6.
66136
66137 2007-05-20  Bruno Haible  <bruno@clisp.org>
66138
66139         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66140         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66141         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66142         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66143         NEED_PRINTF_INFINITE.
66144         (is_infinitel): New function.
66145         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66147         gl_PREREQ_VASNPRINTF_INFINITE.
66148         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66150         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66151         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66152         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66153         gl_PREREQ_VASNPRINTF_INFINITE.
66154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66161         * doc/functions/fprintf.texi: Update.
66162         * doc/functions/printf.texi: Update.
66163         * doc/functions/snprintf.texi: Update.
66164         * doc/functions/sprintf.texi: Update.
66165         * doc/functions/vfprintf.texi: Update.
66166         * doc/functions/vprintf.texi: Update.
66167         * doc/functions/vsnprintf.texi: Update.
66168         * doc/functions/vsprintf.texi: Update.
66169
66170 2007-05-20  Bruno Haible  <bruno@clisp.org>
66171
66172         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66173         was not found in libc.
66174         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66175
66176 2007-05-20  Bruno Haible  <bruno@clisp.org>
66177
66178         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66179         printed as "-nan" instead of "nan".
66180         * tests/test-vasprintf-posix.c (test_function): Likewise.
66181         * tests/test-snprintf-posix.h (test_function): Likewise.
66182         * tests/test-sprintf-posix.h (test_function): Likewise.
66183         Needed for HP-UX 11.
66184
66185 2007-05-20  Jim Meyering  <jim@meyering.net>
66186
66187         Fix buggy test for the fchownat-deref bug.
66188         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66189         symlink required for the run-test.  Without it, this test would
66190         always declare that fchownat doesn't work, and client code would
66191         unnecessarily use the replacement function with fixed libc.
66192         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66193         Reported by Greg Schafer.
66194
66195 2007-05-19  Bruno Haible  <bruno@clisp.org>
66196
66197         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66198         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66199         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66200         Needed for IRIX 6.5 and Solaris 2.5.1.
66201
66202 2007-05-19  Bruno Haible  <bruno@clisp.org>
66203
66204         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66205         (test_function): Skip tests involving -0.0 on platforms where
66206         -0.0 = 0.0.
66207         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66208         (test_function): Skip tests involving -0.0 on platforms where
66209         -0.0 = 0.0.
66210         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66211         (test_function): Skip tests involving -0.0 on platforms where
66212         -0.0 = 0.0.
66213         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66214         (test_function): Skip tests involving -0.0 on platforms where
66215         -0.0 = 0.0.
66216         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66217         tests.
66218         * tests/test-printf-posix.h (test_function): Likewise.
66219         * tests/test-printf-posix.output: Remove all -0.0 related results.
66220         Needed for IRIX 6.5.
66221
66222 2007-05-19  Bruno Haible  <bruno@clisp.org>
66223
66224         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66225         printed as "nan0x7fffffff" instead of "nan".
66226         * tests/test-vasprintf-posix.c (test_function): Likewise.
66227         * tests/test-snprintf-posix.h (test_function): Likewise.
66228         * tests/test-sprintf-posix.h (test_function): Likewise.
66229         * tests/test-fprintf-posix.h (NaN): Remove macro.
66230         (test_function): Remove all NaN related tests.
66231         * tests/test-printf-posix.h (NaN): Remove macro.
66232         (test_function): Remove all NaN related tests.
66233         * tests/test-printf-posix.output: Remove all NaN related results.
66234         Needed for IRIX 6.5.
66235
66236 2007-05-19  Bruno Haible  <bruno@clisp.org>
66237
66238         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66240
66241 2007-05-19  Bruno Haible  <bruno@clisp.org>
66242
66243         * lib/float_.h: New file.
66244         * m4/float_h.m4: New file.
66245         * modules/float: New file.
66246         * modules/isnanl (Dependencies): Add float.
66247         * modules/isnanl-nolibm (Dependencies): Likewise.
66248         * modules/mathl (Dependencies): Likewise.
66249         * modules/printf-frexpl (Dependencies): Likewise.
66250         * modules/signbit (Dependencies): Likewise.
66251         * modules/vasnprintf (Dependencies): Likewise.
66252         * doc/headers/float.texi: Update.
66253
66254 2007-05-19  Jim Meyering  <jim@meyering.net>
66255
66256         * lib/utimens.c (gl_futimens): Rename from futimens,
66257         now that glibc-2.6 declares futimens.
66258         * lib/utimens.h: Likewise.
66259
66260 2007-05-19  Bruno Haible  <bruno@clisp.org>
66261
66262         Avoid test failures on mingw.
66263         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66264         * tests/test-printf-posix.sh: Likewise.
66265         * tests/test-vfprintf-posix.sh: Likewise.
66266         * tests/test-vprintf-posix.sh: Likewise.
66267
66268 2007-05-19  Bruno Haible  <bruno@clisp.org>
66269
66270         Fix *printf result for NaN, Inf, -0.0 on mingw.
66271         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66272         * lib/vasnprintf.c: Include math.h and isnan.h.
66273         (is_infinite_or_zero): New function.
66274         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66275         values in the %f, %F, %e, %E, %g, %G directives.
66276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66278         gl_PRINTF_INFINITE and test its result. Invoke
66279         gl_PREREQ_VASNPRINTF_INFINITE.
66280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66287         * doc/functions/fprintf.texi: Update.
66288         * doc/functions/printf.texi: Update.
66289         * doc/functions/snprintf.texi: Update.
66290         * doc/functions/sprintf.texi: Update.
66291         * doc/functions/vfprintf.texi: Update.
66292         * doc/functions/vprintf.texi: Update.
66293         * doc/functions/vsnprintf.texi: Update.
66294         * doc/functions/vsprintf.texi: Update.
66295
66296 2007-05-19  Bruno Haible  <bruno@clisp.org>
66297
66298         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66299         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66300         Instead of multiplying with 10^k, set extra_zeroes to k.
66301         (scale10_round_long_double): Remove function.
66302
66303 2007-05-18  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66306         introduced on 2007-05-06.
66307
66308 2007-05-18  Bruno Haible  <bruno@clisp.org>
66309
66310         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66311         %g directives.
66312         * tests/test-vasprintf-posix.c (test_function): Likewise.
66313         * tests/test-snprintf-posix.h (test_function): Likewise.
66314         * tests/test-sprintf-posix.h (test_function): Likewise.
66315
66316 2007-05-18  Bruno Haible  <bruno@clisp.org>
66317
66318         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66319         (strmatch): New function.
66320         (test_function): Test the %f directive on numbers of various exponents.
66321         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66322         (strmatch): New function.
66323         (test_function): Test the %f directive on numbers of various exponents.
66324         * tests/test-snprintf-posix.h (strmatch): New function.
66325         (test_function): Test the %f directive on numbers of various exponents.
66326         * tests/test-sprintf-posix.h (strmatch): New function.
66327         (test_function): Test the %f directive on numbers of various exponents.
66328         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66329         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66330         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66331         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66332
66333 2007-05-18  Bruno Haible  <bruno@clisp.org>
66334
66335         Add support for 'long double' number output.
66336         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66337         * lib/vasnprintf.c: Include math.h and float+.h.
66338         (mp_limb_t): New type.
66339         (GMP_LIMB_BITS): New macro.
66340         (mp_twolimb_t): New type.
66341         (GMP_TWOLIMB_BITS): New macro.
66342         (mpn_t): New type.
66343         (multiply, divide, convert_to_decimal, decode_long_double,
66344         scale10_round_long_double, scale10_round_decimal_long_double,
66345         floorlog10l): New functions.
66346         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66347         for the %f, %F, %e, %E, %g, %G directives.
66348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66350         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66351         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66359         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66360         * modules/snprintf-posix (Depends-on): Likewise.
66361         * modules/sprintf-posix (Depends-on): Likewise.
66362         * modules/vasnprintf-posix (Depends-on): Likewise.
66363         * modules/vasprintf-posix (Depends-on): Likewise.
66364         * modules/vfprintf-posix (Depends-on): Likewise.
66365         * modules/vsnprintf-posix (Depends-on): Likewise.
66366         * modules/vsprintf-posix (Depends-on): Likewise.
66367         * modules/vasnprintf (Files): Add lib/float+.h.
66368         * doc/functions/fprintf.texi: Update.
66369         * doc/functions/printf.texi: Update.
66370         * doc/functions/snprintf.texi: Update.
66371         * doc/functions/sprintf.texi: Update.
66372         * doc/functions/vfprintf.texi: Update.
66373         * doc/functions/vprintf.texi: Update.
66374         * doc/functions/vsnprintf.texi: Update.
66375         * doc/functions/vsprintf.texi: Update.
66376
66377 2007-05-18  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66380
66381 2007-05-18  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66384         for printing 64-bit integers. Needed for mingw.
66385
66386 2007-05-18  Bruno Haible  <bruno@clisp.org>
66387
66388         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66389         gl_FUNC_FREXPL_WORKS.
66390         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66391
66392 2007-05-18  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/frexpl-nolibm-tests: New file.
66395
66396         * modules/frexpl-nolibm: New file.
66397         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66398
66399 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66402         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66403         GCC 4.2, which otherwise issues a lot of warnings.
66404         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66405         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66406         Likewise.
66407         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66408         * modules/iconv_open (iconv.h): Likewise.
66409         * modules/locale (locale.h): Likewise.
66410         * modules/netinet_in (netinet/in.h): Likewise.
66411         * modules/sys_select (sys_select.h): Likewise.
66412         * modules/sys_socket (sys/socket.h): Likewise.
66413         * modules/sys_stat (sys/stat.h): Likewise.
66414         * modules/sysexits (sysexits.h): Likewise.
66415         * modules/unistd (unistd.h): Likewise.
66416
66417 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66418
66419         * modules/closein-tests (Makefile.am): Distribute
66420         `test-closein.sh'.
66421
66422 2007-05-17  Bruno Haible  <bruno@clisp.org>
66423
66424         * tests/test-printf-posix.output: Renamed from
66425         tests/test-fprintf-posix.out.
66426         * modules/fprintf-posix-tests: Update.
66427         * modules/printf-posix-tests: Update.
66428         * modules/vfprintf-posix-tests: Update.
66429         * modules/vprintf-posix-tests: Update.
66430         * tests/test-fprintf-posix.sh: Update.
66431         * tests/test-printf-posix.sh: Update.
66432         * tests/test-vfprintf-posix.sh: Update.
66433         * tests/test-vprintf-posix.sh: Update.
66434         Reported by Ralf Wildenhues.
66435
66436 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66439         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66440         GCC 4.2, which otherwise issues a lot of warnings.
66441         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66442         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66443         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66444         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66445         it should no longer be needed.
66446         * lib/string_.h: Likewise.
66447         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66448         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66449         * modules/inttypes (inttypes.h): Likewise.
66450         * modules/math (math.h): Likewise.
66451         * modules/search (search.h): Likewise.
66452         * modules/signal (signal.h): Likewise.
66453         * modules/stdint (stdint.h): Likewise.
66454         * modules/stdio (stdio.h): Likewise.
66455         * modules/stdlib (stdlib.h): Likewise.
66456         * modules/string (string.h): Likewise.
66457         * modules/sys_time (sys/time.h): Likewise.
66458         * modules/time (time.h): Likewise.
66459         * modules/wchar (wchar.h): Likewise.
66460         * modules/wctype (wtype.h): Likewise.
66461
66462 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66463
66464         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66465
66466 2007-05-13  Bruno Haible  <bruno@clisp.org>
66467
66468         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66469         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66470         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66471         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66472         (gl_PREREQ_STRTOK_R): Don't require it here.
66473
66474 2007-05-13  Bruno Haible  <bruno@clisp.org>
66475
66476         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66477         when used in C++ mode.
66478
66479 2007-05-12  Bruno Haible  <bruno@clisp.org>
66480
66481         * lib/linebuffer.h: Tweak doc.
66482         * lib/linebuffer.c: Likewise.
66483
66484 2007-05-12  James Youngman  <jay@gnu.org>
66485
66486         * lib/linebuffer.c (readlinebuffer_delim): New function,
66487         like readlinebuffer, but use a caller-specified delimiter.
66488         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66489         as the delimiter.
66490         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66491
66492 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66493
66494         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66495         * modules/openat (Files): Remove openat-die.c.
66496         (Depends-on): Add openat-die.
66497         * modules/openat-die: New module.
66498
66499 2007-05-06  Bruno Haible  <bruno@clisp.org>
66500
66501         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66502         Update with info about Cygwin.
66503         * doc/functions/fprintf.texi: Update.
66504         * doc/functions/printf.texi: Update.
66505         * doc/functions/snprintf.texi: Update.
66506         * doc/functions/sprintf.texi: Update.
66507         * doc/functions/vfprintf.texi: Update.
66508         * doc/functions/vprintf.texi: Update.
66509         * doc/functions/vsnprintf.texi: Update.
66510         * doc/functions/vsprintf.texi: Update.
66511         Reported by Eric Blake.
66512
66513 2007-05-06  Bruno Haible  <bruno@clisp.org>
66514
66515         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66516         padding ourselves for the floating-point directives.
66517         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66520         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66521         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66522         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66524         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66525         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66526         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66527         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66528         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66529         * tests/test-snprintf-posix.h (test_function): Also check the width
66530         and some flags in the %f directive.
66531         * tests/test-sprintf-posix.h (test_function): Likewise.
66532         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66533         * tests/test-vasprintf-posix.c (test_function): Likewise.
66534         * doc/functions/fprintf.texi: Update.
66535         * doc/functions/printf.texi: Update.
66536         * doc/functions/snprintf.texi: Update.
66537         * doc/functions/sprintf.texi: Update.
66538         * doc/functions/vfprintf.texi: Update.
66539         * doc/functions/vprintf.texi: Update.
66540         * doc/functions/vsnprintf.texi: Update.
66541         * doc/functions/vsprintf.texi: Update.
66542
66543 2007-05-06  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66546         pass the ' flag character to sprintf or snprintf.
66547         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66550         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66551         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66554         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66556         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66557         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66558         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66559         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66560         flag.
66561         * tests/test-sprintf-posix.h (test_function): Likewise.
66562         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66563         * tests/test-vasprintf-posix.c (test_function): Likewise.
66564         * doc/functions/fprintf.texi: Update.
66565         * doc/functions/printf.texi: Update.
66566         * doc/functions/snprintf.texi: Update.
66567         * doc/functions/sprintf.texi: Update.
66568         * doc/functions/vfprintf.texi: Update.
66569         * doc/functions/vprintf.texi: Update.
66570         * doc/functions/vsnprintf.texi: Update.
66571         * doc/functions/vsprintf.texi: Update.
66572
66573 2007-05-01  Bruno Haible  <bruno@clisp.org>
66574
66575         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66576
66577 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66580         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66581
66582 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66583
66584         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66585         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66587
66588 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66589
66590         * lib/argp-help.c (struct hol_entry): New member `ord'.
66591         (HOL_ENTRY_PTRCMP): Use ord for comparison
66592         (hol_sort): Initialize ord.
66593
66594 2007-05-01  Bruno Haible  <bruno@clisp.org>
66595
66596         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66597         Reported by Eric Blake.
66598         * doc/gnulib.texi (Function Substitutes): Update.
66599
66600 2007-05-01  Bruno Haible  <bruno@clisp.org>
66601
66602         * doc/functions.texi: Remove file, now redundant through
66603         doc/functions/*.texi.
66604
66605 2007-05-01  Bruno Haible  <bruno@clisp.org>
66606
66607         * modules/argp (Depends-on): Add sleep.
66608
66609 2007-05-01  Bruno Haible  <bruno@clisp.org>
66610
66611         * modules/sleep-tests: New file.
66612         * tests/test-sleep.c: New file.
66613
66614         * modules/sleep: New file.
66615         * lib/sleep.c: New file.
66616         * m4/sleep.m4: New file.
66617         * lib/unistd_.h (sleep): New declaration.
66618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66619         HAVE_SLEEP.
66620         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66621         * doc/functions/sleep.texi: Document the sleep module.
66622
66623 2007-05-01  Bruno Haible  <bruno@clisp.org>
66624
66625         * lib/sigprocmask.h: Remove file.
66626         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66627         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66628         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66629         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66630         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66631         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66632         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66633         HAVE_SIGSET_T as a shell variable.
66634         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66635         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66636         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66637         (Depends-on): Add signal. Remove verify.
66638         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66639         (Include): Mention <signal.h> instead of sigprocmask.h.
66640         * NEWS: Mention the change.
66641         * lib/fatal-signal.c: Don't include sigprocmask.h.
66642
66643 2007-05-01  Bruno Haible  <bruno@clisp.org>
66644
66645         * modules/signal: New file.
66646         * lib/signal_.h: New file.
66647         * m4/signal_h.m4: New file.
66648
66649 2007-05-01  Bruno Haible  <bruno@clisp.org>
66650
66651         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66652         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66653         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66654         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66655
66656 2007-05-01  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66659         configure time.
66660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66661         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66662         * modules/sys_stat (Makefile.am): Substitute their values into
66663         sys/stat.h.
66664
66665 2007-05-01  Bruno Haible  <bruno@clisp.org>
66666
66667         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66668         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66669         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66670
66671 2007-05-01  Bruno Haible  <bruno@clisp.org>
66672
66673         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66674         'assert' module here.
66675
66676 2007-05-01  Bruno Haible  <bruno@clisp.org>
66677
66678         * doc/functions/*.texi: New files.
66679         * doc/functions/google-ranking.txt: New file.
66680         * doc/gnulib.texi (Function Substitutes): New chapter.
66681         (ctime, inet_ntoa): Remove sections.
66682         * doc/ctime.texi: Remove file.
66683         * doc/inet_ntoa.texi: Remove file.
66684         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66685         dependencies.
66686         (%.info): New rule, specifying a --reference-limit.
66687
66688 2007-05-01  Bruno Haible  <bruno@clisp.org>
66689
66690         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66691
66692 2007-05-01  Bruno Haible  <bruno@clisp.org>
66693
66694         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66695         the portability of 'mkdir' to mingw systems.
66696
66697 2007-05-01  Bruno Haible  <bruno@clisp.org>
66698
66699         * doc/headers/google-ranking.txt: New file.
66700
66701 2007-04-30  Eric Blake  <ebb9@byu.net>
66702
66703         Prefer fseeko to fseek.
66704         * modules/getpass (Depends-on): Add fseeko.
66705         * lib/getpass.c (getpass): Use fseeko, not fseek.
66706
66707 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66708
66709         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66710         assumes the sorting is stable, while most qsort implementations
66711         are not.  Use argument addresses to ensure they never compare as
66712         equal.
66713
66714         * tests/test-argp-2.sh (usage-indent test): Fix output
66715         (func_compare): Restore diff options
66716         * tests/test-argp.c: Restore #include "progname.h"
66717
66718 2007-04-29  Bruno Haible  <bruno@clisp.org>
66719
66720         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66722         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66723         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66724         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66725         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66726         (TESTS, check_PROGRAMS): Add test-snprintf.
66727         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66728         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66729         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66730         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66731         assertions that fail on HP-UX, OSF/1, or IRIX.
66732         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66733
66734 2007-04-29  Bruno Haible  <bruno@clisp.org>
66735
66736         * MODULES.html.sh (posix_functions): Remove 'contents'.
66737
66738 2007-04-29  Karl Berry  <karl@gnu.org>
66739
66740         * config/srclist.txt (gendocs_template_min): new entry.
66741
66742 2007-04-29  Bruno Haible  <bruno@clisp.org>
66743
66744         Work around fpurge bug on BSD systems.
66745         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66746         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66747         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66748         fpurge to rpl_fpurge if the system already has this function.
66749         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66750         the case where the system already has this function. Correct invariants
66751         on BSD systems.
66752         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66753         BSD systems.
66754
66755 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66756
66757         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66758         proposed by Sven Verdoolaege.
66759
66760         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66761         options.
66762         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66763         (usage and help tests): Update
66764
66765 2007-04-29  Bruno Haible  <bruno@clisp.org>
66766
66767         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66768         Print more information in case of failure. Disable a test on BeOS.
66769
66770 2007-04-29  Bruno Haible  <bruno@clisp.org>
66771
66772         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66773         This helps debugging on systems on which no gdb is available.
66774
66775 2007-04-29  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/freading.h: Improve comments.
66778         * lib/fwriting.h: Likewise.
66779         * tests/test-freading.c (main): Don't check freading immediately after
66780         repositioning. Needed for glibc.
66781
66782 2007-04-29  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/freading.c (freading): Trivial simplification.
66785
66786 2007-04-28  Bruno Haible  <bruno@clisp.org>
66787
66788         * tests/test-fwriting.c (main): Also test the interaction between
66789         fflush and fwriting.
66790         * modules/fwriting-tests (Depends-on): Add fflush.
66791
66792         * tests/test-freading.c (main): Also test the interaction between
66793         fflush and freading.
66794         * modules/freading-tests (Depends-on): Add fflush.
66795
66796 2007-04-28  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66799         fseeko and ftello.
66800         Suggested by Eric Blake.
66801
66802 2007-04-28  Jim Meyering  <jim@meyering.net>
66803
66804         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66805         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66806         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66807
66808 2007-04-27  Eric Blake  <ebb9@byu.net>
66809
66810         * doc/headers/assert.texi (assert.h): Document assert module use.
66811
66812 2007-04-27  Bruno Haible  <bruno@clisp.org>
66813
66814         * doc/headers/*.texi: New files.
66815         * doc/gnulib.texi (Header File Substitutes): New chapter.
66816         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66817         dependencies.
66818         (standards.info ,standards.html, standards.dvi): Update dependencies.
66819         (mostlyclean, clean): New targets.
66820
66821 2007-04-27  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66824         * modules/sysexits (Files, Makefile.am): Update.
66825
66826         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66827         * modules/sys_socket (Files, Makefile.am): Update.
66828
66829         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66830         * modules/sys_stat (Files, Makefile.am): Update.
66831
66832 2007-04-27  Eric Blake  <ebb9@byu.net>
66833
66834         * lib/freading.h: Improve comments.
66835         * lib/fwriting.h: Likewise.
66836         * lib/fflush.c: Likewise.
66837
66838         Fix closein for mingw.
66839         * modules/closein-tests: Add tests for closein.
66840         * tests/test-closein.c: New file.
66841         * tests/test-closein.sh: Likewise.
66842         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66843         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66844
66845 2007-04-27  Bruno Haible  <bruno@clisp.org>
66846
66847         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66848         version is < 6.
66849         * lib/math_.h [__DECC]: Likewise.
66850         * lib/stdio_.h [__DECC]: Likewise.
66851         * lib/stdlib_.h [__DECC]: Likewise.
66852         * lib/string_.h [__DECC]: Likewise.
66853         * lib/time_.h [__DECC]: Likewise.
66854         * lib/wchar_.h [__DECC]: Likewise.
66855         * lib/wctype_.h [__DECC]: Likewise.
66856
66857 2007-04-27  Bruno Haible  <bruno@clisp.org>
66858
66859         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66860
66861 2007-04-27  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/fflush.c: Add comments.
66864         * modules/fpurge-tests (Depends-on): Add fflush.
66865         * modules/freadable-tests (Depends-on): Likewise.
66866         * modules/fwritable-tests (Depends-on): Likewise.
66867
66868 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66869
66870         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66871         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66872         Report by Bruno Haible <bruno@clisp.org>.
66873
66874 2007-04-26  Eric Blake  <ebb9@byu.net>
66875
66876         Fix fflush on mingw.
66877         * modules/fflush (Depends-on): Add freading.
66878         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66879         but unread data.
66880
66881 2007-04-26  Eric Blake  <ebb9@byu.net>
66882         and Bruno Haible  <bruno@clisp.org>
66883
66884         Implement freading and fwriting.
66885         * lib/freading.c: New file.
66886         * lib/freading.h: Likewise.
66887         * m4/freading.m4: Likewise.
66888         * modules/freading: Likewise.
66889         * modules/freading-tests: Likewise.
66890         * tests/test-freading.c: Likewise.
66891         * lib/fwriting.c: New file.
66892         * lib/fwriting.h: Likewise.
66893         * m4/fwriting.m4: Likewise.
66894         * modules/fwriting: Likewise.
66895         * modules/fwriting-tests: Likewise.
66896         * tests/test-fwriting.c: Likewise.
66897         * MODULES.html.sh (File stream based Input/Output): Mention them.
66898
66899 2007-04-26  Bruno Haible  <bruno@clisp.org>
66900
66901         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66902         'long' when we assume it.
66903         Suggested by Eric Blake.
66904
66905 2007-04-26  Bruno Haible  <bruno@clisp.org>
66906
66907         Ensure fseeko, ftello are declared on glibc systems.
66908         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66909         * modules/fseeko (configure.ac-early): Likewise.
66910         * modules/ftello (configure.ac-early): Likewise.
66911         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66912         AC_FUNC_FSEEKO for this.
66913         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66914         (gl_CHECK_FSEEKO): Remove macro.
66915
66916 2007-04-26  Bruno Haible  <bruno@clisp.org>
66917
66918         * tests/test-fflush.c (main): Also check the ftell result after
66919         fflush and fseek/fseeko.
66920         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66921         file descriptor position cache in the stream.
66922         * lib/fseeko.c (rpl_fseeko): Likewise.
66923
66924 2007-04-26  Bruno Haible  <bruno@clisp.org>
66925
66926         * modules/fflush-tests (Depends-on): Add fseeko.
66927
66928 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66929             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66930
66931         * lib/argz_.h: ensure error_t definition is obtained in same
66932         mechanism system argz.h would have.
66933         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66934         argz facilities are known bad.  Err on the side of caution if
66935         cross-compiling.
66936
66937 2007-04-25  Eric Blake  <ebb9@byu.net>
66938
66939         * lib/fpurge.c (includes): Use stdlib.h for free.
66940         * tests/test-fflush.c (main): Also test fflush-fseeko.
66941
66942 2007-04-25  Bruno Haible  <bruno@clisp.org>
66943
66944         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66945         * lib/fseeko.c: New file.
66946         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66947         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66948         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66949         gl_FUNC_FSEEKO.
66950         (gl_FUNC_FSEEKO): Invoke it.
66951         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66952         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66953         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66954
66955 2007-04-25  Bruno Haible  <bruno@clisp.org>
66956
66957         * modules/fflush (Depends-on): Add ftello.
66958
66959 2007-04-25  Bruno Haible  <bruno@clisp.org>
66960
66961         * modules/ftello-tests: New file.
66962         * tests/test-ftello.c: New file.
66963
66964         * modules/ftello: New file.
66965         * m4/ftello.m4: New file.
66966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66967         HAVE_FTELLO.
66968         * lib/stdio_.h (ftello): New declaration.
66969         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66970         HAVE_FTELLO.
66971
66972 2007-04-25  Bruno Haible  <bruno@clisp.org>
66973
66974         * modules/fseeko-tests: New file.
66975         * tests/test-fseeko.c: New file.
66976
66977         * modules/fseeko: New file.
66978         * m4/fseeko.m4: New file.
66979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66980         HAVE_FSEEKO.
66981         * lib/stdio_.h (fseeko): New declaration.
66982         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66983         HAVE_FSEEKO.
66984
66985 2007-04-25  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66988
66989 2007-04-25  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66992         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66993         * tests/test-unistd.c: Likewise.
66994         * tests/test-fcntl.c: Likewise.
66995
66996 2007-04-23  Eric Blake  <ebb9@byu.net>
66997
66998         * lib/fflush.c: Fix missing include.
66999         Reported by Bruno Haible.
67000
67001 2007-04-23  Bruno Haible  <bruno@clisp.org>
67002
67003         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67004         Reported by Eric Blake.
67005
67006 2007-04-23  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67009
67010 2007-04-23  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67013
67014 2007-04-23  Bruno Haible  <bruno@clisp.org>
67015
67016         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67017         Needed on HP-UX 11.
67018
67019 2007-04-16  Eric Blake  <ebb9@byu.net>
67020
67021         Make fflush rely on fpurge.
67022         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67023         open coding all variants.
67024         * modules/fflush (Depends-on): Add fpurge and unistd.
67025         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67026         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67027
67028         Fix --with-tests compilation on cygwin.
67029         * modules/argmatch-tests (Makefile.am): List gnulib library first
67030         in LDADD.
67031         * modules/argp-tests (Makefile.am): Likewise.
67032         * modules/array-list-tests (Makefile.am): Likewise.
67033         * modules/array-oset-tests (Makefile.am): Likewise.
67034         * modules/avltree-list-tests (Makefile.am): Likewise.
67035         * modules/avltree-oset-tests (Makefile.am): Likewise.
67036         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67037         * modules/carray-list-tests (Makefile.am): Likewise.
67038         * modules/dirname-tests (Makefile.am): Likewise.
67039         * modules/frexp-tests (Makefile.am): Likewise.
67040         * modules/isnanl-tests (Makefile.am): Likewise.
67041         * modules/linked-list-tests (Makefile.am): Likewise.
67042         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67043         * modules/lock-tests (Makefile.am): Likewise.
67044         * modules/rbtree-list-tests (Makefile.am): Likewise.
67045         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67046         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67047         * modules/tls-tests (Makefile.am): Likewise.
67048         * modules/tsearch-tests (Makefile.am): Likewise.
67049         * modules/xvasprintf-tests (Makefile.am): Likewise.
67050
67051         Fix fpurge for cygwin.
67052         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67053         value.
67054         * modules/fpurge-tests (Depends-on): Clean up trash.
67055
67056 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67057
67058         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67059
67060         * m4/autobuild.m4: Re-indent.
67061
67062 2007-04-13  Bruno Haible  <bruno@clisp.org>
67063
67064         * modules/fpurge-tests: New file.
67065         * tests/test-fpurge.c: New file.
67066
67067         * modules/fpurge: New file.
67068         * lib/fpurge.h: New file.
67069         * lib/fpurge.c: New file.
67070         * m4/fpurge.m4: New file.
67071
67072 2007-04-13  Bruno Haible  <bruno@clisp.org>
67073
67074         * modules/fbufmode-tests: New file.
67075         * tests/test-fbufmode.c: New file.
67076
67077         * modules/fbufmode: New file.
67078         * lib/fbufmode.h: New file.
67079         * lib/fbufmode.c: New file.
67080         * m4/fbufmode.m4: New file.
67081
67082 2007-04-13  Bruno Haible  <bruno@clisp.org>
67083
67084         * modules/fwritable-tests: New file.
67085         * tests/test-fwritable.c: New file.
67086
67087         * modules/fwritable: New file.
67088         * lib/fwritable.h: New file.
67089         * lib/fwritable.c: New file.
67090         * m4/fwritable.m4: New file.
67091
67092 2007-04-13  Bruno Haible  <bruno@clisp.org>
67093
67094         * modules/freadable-tests: New file.
67095         * tests/test-freadable.c: New file.
67096
67097         * modules/freadable: New file.
67098         * lib/freadable.h: New file.
67099         * lib/freadable.c: New file.
67100         * m4/freadable.m4: New file.
67101
67102 2007-04-13  Bruno Haible  <bruno@clisp.org>
67103
67104         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67105         MOSTLYCLEANFILES.
67106
67107 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67110         gzip bootstrap.conf to avoid dragging in i18n machinery.
67111         (gnulib_tool_option): Use it.
67112
67113 2007-04-13  Bruno Haible  <bruno@clisp.org>
67114
67115         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67116         %F directives.
67117         * tests/test-vasprintf-posix.c (test_function): Likewise.
67118         * tests/test-snprintf-posix.h (test_function): Likewise.
67119         * tests/test-sprintf-posix.h (test_function): Likewise.
67120         * tests/test-fprintf-posix.h (test_function): Likewise.
67121         * tests/test-printf-posix.h (test_function): Likewise.
67122         * tests/test-fprintf-posix.out: Likewise.
67123
67124 2007-04-13  Bruno Haible  <bruno@clisp.org>
67125
67126         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67127         * modules/tls-tests (configure.ac): Likewise.
67128         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67129
67130 2007-04-13  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/tls.c (glthread_tls_get): Fix return type.
67133         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67134
67135 2007-04-12  Eric Blake  <ebb9@byu.net>
67136
67137         * modules/gettime (Depends-on): Remove gettime.
67138         Reported by Dmitry V. Levin.
67139
67140 2007-04-12  Bruno Haible  <bruno@clisp.org>
67141
67142         * modules/fflush (Include): Mention <stdio.h>.
67143         * modules/strtoimax (Include): Mention <inttypes.h>.
67144         * modules/strtoumax (Include): Likewise.
67145
67146 2007-04-12  Eric Blake  <ebb9@byu.net>
67147
67148         * .cvsignore: New file.
67149         * .gitignore: Likewise.
67150
67151 2007-04-12  Bruno Haible  <bruno@clisp.org>
67152
67153         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67154         not before, since $(LDADD) often contains libgnu.a.
67155         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67156         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67157         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67158         Needed on Cygwin.
67159
67160 2007-04-12  Eric Blake  <ebb9@byu.net>
67161
67162         Work around glibc's failure to flush stdin on fclose.
67163         * lib/closein.c (close_stdin): Flush stdin before closing.
67164
67165         Work around glibc's failure to reset seekable stdin on exit.
67166         * modules/closein: New module.
67167         * lib/closein.c: New file.
67168         * lib/closein.h: Likewise.
67169         * m4/closein.m4: Likewise.
67170         * MODULES.html.sh (File stream based Input/Output): Document it.
67171
67172 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67173
67174         * gnulib-tool: Rename generated 'autobuild' script to
67175         'do-autobuild' in --create-megatestdir output.
67176
67177         * doc/gnulib.texi (Build robot for gnulib): Fix.
67178
67179 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67180
67181         * modules/sysexits (Depends-on): Add absolute-header.
67182
67183 2007-04-12  Eric Blake  <ebb9@byu.net>
67184
67185         No need to preserve errno on success.
67186         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67187         Reported by Bruno Haible.
67188
67189 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67190
67191         * MODULES.html.sh (Support for maintaining and releasing
67192         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67193
67194 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67195
67196         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67197
67198 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67199
67200         * modules/autobuild: New module.
67201
67202         * m4/autobuild.m4: New file.
67203
67204 2007-04-11  Bruno Haible  <bruno@clisp.org>
67205
67206         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67207         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67208         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67211         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67212         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67214         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67215         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67217         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67218         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67220         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67221         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67223         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67224         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67226         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67227         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67229         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67230         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67231         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67232         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67233         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67234         Reported by Eric Blake.
67235
67236 2007-04-11  Bruno Haible  <bruno@clisp.org>
67237
67238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67239
67240 2007-04-10  Bruno Haible  <bruno@clisp.org>
67241
67242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67243         for NaN and Infinity. Needed on FreeBSD 6.1.
67244         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67245         regarding results for "%010a" of Infinity and NaN.
67246         * tests/test-vasprintf-posix.c (test_function): Likewise.
67247         * tests/test-snprintf-posix.h (test_function): Likewise.
67248         * tests/test-sprintf-posix.h (test_function): Likewise.
67249         * tests/test-fprintf-posix.h (test_function): Likewise.
67250         * tests/test-printf-posix.h (test_function): Likewise.
67251         * tests/test-fprintf-posix.out: Likewise.
67252
67253 2007-04-10  Bruno Haible  <bruno@clisp.org>
67254
67255         * modules/locale-tests: New file.
67256         * tests/test-locale.c: New file.
67257
67258         * modules/locale: New file.
67259         * lib/locale_.h: New file.
67260         * m4/locale_h.m4: New file.
67261
67262 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67263             Bruno Haible  <bruno@clisp.org>
67264
67265         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67266         be determined, test for availability of the copysignf, copysign,
67267         copysignl functions.
67268         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67269         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67270         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67271
67272 2007-04-09  Eric Blake  <ebb9@byu.net>
67273
67274         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67275         * modules/stdio (Makefile.am): Support fflush.
67276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67277         * modules/fflush: New file.
67278         * lib/fflush.c: Likewise.
67279         * m4/fflush.m4: Likewise.
67280         * modules/fflush-tests: New test.
67281         * tests/test-fflush.c: Likewise.
67282         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67283
67284 2007-04-06  Bruno Haible  <bruno@clisp.org>
67285
67286         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67287         (VASNPRINTF): Use signbit for faster determination whether to print a
67288         minus sign.
67289         * modules/vasnprintf (Files): Remove lib/float+.h.
67290         * modules/fprintf-posix (Depends-on): Add signbit.
67291         * modules/snprintf-posix (Depends-on): Likewise.
67292         * modules/sprintf-posix (Depends-on): Likewise.
67293         * modules/vasnprintf-posix (Depends-on): Likewise.
67294         * modules/vasprintf-posix (Depends-on): Likewise.
67295         * modules/vfprintf-posix (Depends-on): Likewise.
67296         * modules/vsnprintf-posix (Depends-on): Likewise.
67297         * modules/vsprintf-posix (Depends-on): Likewise.
67298
67299 2007-04-06  Bruno Haible  <bruno@clisp.org>
67300
67301         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67302         * tests/test-frexpl.c (main): Likewise.
67303         * tests/test-ldexpl.c (main): Likewise.
67304         * modules/frexp-tests (Depends-on): Add signbit.
67305         * modules/frexpl-tests (Depdends-on): Likewise.
67306         * modules/ldexpl-tests (Depdends-on): Likewise.
67307
67308 2007-04-06  Bruno Haible  <bruno@clisp.org>
67309
67310         * modules/signbit-tests: New file.
67311         * tests/test-signbit.c: New file.
67312
67313         * modules/signbit: New file.
67314         * lib/signbitf.c: New file.
67315         * lib/signbitd.c: New file.
67316         * lib/signbitl.c: New file.
67317         * m4/signbit.m4: New file.
67318         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67319         (signbit): New macro.
67320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67321         REPLACE_SIGNBIT.
67322         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67323         REPLACE_FREXPL into math.h.
67324
67325 2007-04-06  Bruno Haible  <bruno@clisp.org>
67326
67327         * modules/isnanf-nolibm-tests: New file.
67328         * tests/test-isnanf.c: New file.
67329
67330         * modules/isnanf-nolibm: New file.
67331         * lib/isnanf.h: New file.
67332         * lib/isnanf.c: New file.
67333         * lib/isnan.c: Consider the USE_FLOAT macro.
67334         * m4/isnanf.m4: New file.
67335
67336 2007-04-06  Bruno Haible  <bruno@clisp.org>
67337
67338         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67339         (Link): New section.
67340
67341         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67342
67343 2007-04-06  Bruno Haible  <bruno@clisp.org>
67344
67345         Assume the 'long double' type.
67346         * m4/longdouble.m4: Remove file.
67347         * config/srclist.txt: Don't mention longdouble.m4.
67348         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67349         * lib/float+.h: Likewise.
67350         * lib/frexp.c: Likewise.
67351         * lib/printf-args.h: Likewise.
67352         * lib/printf-args.c: Likewise.
67353         * lib/printf-frexp.c: Likewise.
67354         * lib/printf-parse.c: Likewise.
67355         * lib/vasnprintf.c: Likewise.
67356         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67357         * m4/intl.m4: Likewise.
67358         * m4/isnanl.m4: Likewise.
67359         * m4/printf.m4: Likewise.
67360         * m4/printf-frexpl.m4: Likewise.
67361         * m4/vasnprintf.m4: Likewise.
67362         * modules/allocsa (Files): Remove m4/longdouble.m4.
67363         * modules/gettext (Files): Likewise.
67364         * modules/relocatable-prog-wrapper (Files): Likewise.
67365         * modules/vasnprintf (Files): Likewise.
67366         * modules/isnanl (Files): Likewise.
67367         (Include): Simplify.
67368         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67369         (Include): Simplify.
67370         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67371         (Include): Simplify.
67372         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67374         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67375         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67376         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67377         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67378         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67379         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67380         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67381         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67382         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67383         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67384         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67385         * tests/test-isnanl.c: Likewise.
67386         * tests/test-snprintf-posix.h: Likewise.
67387         * tests/test-sprintf-posix.h: Likewise.
67388         * tests/test-vasnprintf-posix.c: Likewise.
67389         * tests/test-vasnprintf-posix2.c: Likewise.
67390         * tests/test-vasprintf-posix.c: Likewise.
67391
67392 2007-04-06  Bruno Haible  <bruno@clisp.org>
67393
67394         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67395         * lib/math_.h [__DECC]: Include the overridden include file through
67396         #include_next, outside the double-inclusion guard.
67397         * lib/stdio_.h [__DECC]: Likewise.
67398         * lib/stdlib_.h [__DECC]: Likewise.
67399         * lib/string_.h [__DECC]: Likewise.
67400         * lib/time_.h [__DECC]: Likewise.
67401         * lib/wchar_.h [__DECC]: Likewise.
67402         * lib/wctype_.h [__DECC]: Likewise.
67403         * lib/inttypes_.h [__DECC]: Likewise.
67404         Reported by Albert Chin <china@thewrittenword.com> in
67405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67406
67407 2007-04-04  Eric Blake  <ebb9@byu.net>
67408
67409         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67410         1.5.x.
67411
67412 2007-04-04  Bruno Haible  <bruno@clisp.org>
67413
67414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67415         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67416
67417 2007-04-04  Bruno Haible  <bruno@clisp.org>
67418
67419         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67420         results for "%010a" of Infinity and NaN.
67421         * tests/test-vasprintf-posix.c (test_function): Likewise.
67422         * tests/test-snprintf-posix.h (test_function): Likewise.
67423         * tests/test-sprintf-posix.h (test_function): Likewise.
67424         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67425         * tests/test-printf-posix.h (test_function): Likewise.
67426         * tests/test-fprintf-posix.out: Update.
67427         Needed for FreeBSD 6.1.
67428
67429 2007-04-04  Bruno Haible  <bruno@clisp.org>
67430
67431         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67432         directly used by the gnulib modules nor by gnulib-tool.
67433
67434 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67435
67436         * DEPENDENCIES: Give overall description of version dependency
67437         desirability.  Use more-typical names for apps.
67438         Add shell, coreutils, diffutils, grep, tar, gzip.
67439
67440 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67441
67442         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67443
67444 2007-04-04  Karl Berry  <karl@gnu.org>
67445
67446         * MODULES.html.sh (func_module): missing '.
67447
67448 2007-04-03  Bruno Haible  <bruno@clisp.org>
67449
67450         * modules/argmatch-tests (Makefile.am): New variable
67451         test_argmatch_LDADD.
67452         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67453         * modules/array-list-tests (Makefile.am): New variable
67454         test_array_list_LDADD.
67455         * modules/array-oset-tests (Makefile.am): New variable
67456         test_array_oset_LDADD.
67457         * modules/avltree-list-tests (Makefile.am): New variable
67458         test_avltree_list_LDADD.
67459         * modules/avltree-oset-tests (Makefile.am): New variable
67460         test_avltree_oset_LDADD.
67461         * modules/avltreehash-list-tests (Makefile.am): New variable
67462         test_avltreehash_list_LDADD.
67463         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67464         test_canonicalize_lgpl_LDADD.
67465         * modules/carray-list-tests (Makefile.am): New variable
67466         test_carray_list_LDADD.
67467         * modules/dirname-tests (Makefile.am): New variable
67468         test_dirname_LDADD.
67469         * modules/linked-list-tests (Makefile.am): New variable
67470         test_linked_list_LDADD.
67471         * modules/linkedhash-list-tests (Makefile.am): New variable
67472         test_linkedhash_list_LDADD.
67473         * modules/rbtree-list-tests (Makefile.am): New variable
67474         test_rbtree_list_LDADD.
67475         * modules/rbtree-oset-tests (Makefile.am): New variable
67476         test_rbtree_oset_LDADD.
67477         * modules/rbtreehash-list-tests (Makefile.am): New variable
67478         test_rbtreehash_list_LDADD.
67479         * modules/xvasprintf-tests (Makefile.am): New variable
67480         test_xvasprintf_LDADD.
67481         Reported by Eric Blake.
67482
67483 2007-04-03  Eric Blake  <ebb9@byu.net>
67484
67485         * DEPENDENCIES: Weaken m4 requirements.
67486
67487 2007-04-03  Bruno Haible  <bruno@clisp.org>
67488
67489         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67490         * modules/isnanl-tests (configure.ac): Likewise.
67491
67492 2007-04-03  Ben Pfaff  <blp@gnu.org>
67493
67494         * modules/iconv_open: Add $(srcdir)/ to source directory
67495         references in Makefile fragments that call gperf, to fix VPATH
67496         builds.
67497
67498 2007-04-03  Bruno Haible  <bruno@clisp.org>
67499
67500         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67501         * lib/ldexpl.c: Undo last change.
67502
67503 2007-04-03  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/printf-frexpl (Depends-on): Undo last change.
67506         (Files): Add m4/ldexpl.m4.
67507
67508 2007-04-03  Bruno Haible  <bruno@clisp.org>
67509
67510         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67511         * modules/isnanl (Link): New section.
67512
67513         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67514         * modules/frexp (Link): New section.
67515
67516         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67517         * modules/frexpl (Link): New section.
67518
67519         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67520         * modules/ldexpl (Link): New section.
67521
67522 2007-04-03  Bruno Haible  <bruno@clisp.org>
67523
67524         * modules/TEMPLATE-EXTENDED: New file.
67525         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67526
67527 2007-04-03  Bruno Haible  <bruno@clisp.org>
67528
67529         * DEPENDENCIES: New file.
67530         Suggested by Simon Josefsson.
67531
67532 2007-04-03  Bruno Haible  <bruno@clisp.org>
67533
67534         * doc/gnulib.texi: Escape @.
67535
67536 2007-04-03  James Youngman  <jay@gnu.org>
67537         and Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67540         birthtime on all systems that have birthtime, not just those which
67541         use st_birthtimensec rather than st_birthtim.  Putting zero in
67542         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67543         that the birth time is not available for files on an NFS mount.
67544
67545 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67546
67547         * modules/memxor: Move back from crypto/, suggested by Bruno.
67548         * modules/crypto/hmac-sha1: Fix memxor dependency.
67549
67550         * modules/crypto/gc: Moved from ../.
67551
67552 2007-04-02  Eric Blake  <ebb9@byu.net>
67553
67554         * lib/ldexpl.c (includes): Avoid libm.
67555
67556         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67557
67558 2007-04-02  Bruno Haible  <bruno@clisp.org>
67559
67560         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67561         on IRIX.
67562
67563 2007-04-02  Bruno Haible  <bruno@clisp.org>
67564
67565         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67566         x86 or x86_64 platforms running MacOS X.
67567         Reported by Ryan Schmidt <@ryandesign.com>.
67568
67569 2007-04-02  Bruno Haible  <bruno@clisp.org>
67570
67571         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67572         i386.
67573
67574 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67575
67576         * modules/crypto/arcfour: Moved from ../.
67577         * modules/crypto/arcfour-tests: Moved from ../.
67578         * modules/crypto/arctwo: Moved from ../.
67579         * modules/crypto/arctwo-tests: Moved from ../.
67580         * modules/crypto/des: Moved from ../.
67581         * modules/crypto/des-tests: Moved from ../.
67582         * modules/crypto/gc-arcfour: Moved from ../.
67583         * modules/crypto/gc-arcfour-tests: Moved from ../.
67584         * modules/crypto/gc-arctwo: Moved from ../.
67585         * modules/crypto/gc-arctwo-tests: Moved from ../.
67586         * modules/crypto/gc-des: Moved from ../.
67587         * modules/crypto/gc-des-tests: Moved from ../.
67588         * modules/crypto/gc-hmac-md5: Moved from ../.
67589         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67590         * modules/crypto/gc-hmac-sha1: Moved from ../.
67591         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67592         * modules/crypto/gc-md2: Moved from ../.
67593         * modules/crypto/gc-md2-tests: Moved from ../.
67594         * modules/crypto/gc-md4: Moved from ../.
67595         * modules/crypto/gc-md4-tests: Moved from ../.
67596         * modules/crypto/gc-md5: Moved from ../.
67597         * modules/crypto/gc-md5-tests: Moved from ../.
67598         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67599         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67600         * modules/crypto/gc-random: Moved from ../.
67601         * modules/crypto/gc-rijndael: Moved from ../.
67602         * modules/crypto/gc-rijndael-tests: Moved from ../.
67603         * modules/crypto/gc-sha1: Moved from ../.
67604         * modules/crypto/gc-sha1-tests: Moved from ../.
67605         * modules/crypto/gc-tests: Moved from ../.
67606         * modules/crypto/hmac-md5: Moved from ../.
67607         * modules/crypto/hmac-md5-tests: Moved from ../.
67608         * modules/crypto/hmac-sha1: Moved from ../.
67609         * modules/crypto/hmac-sha1-tests: Moved from ../.
67610         * modules/crypto/md2: Moved from ../.
67611         * modules/crypto/md2-tests: Moved from ../.
67612         * modules/crypto/md4: Moved from ../.
67613         * modules/crypto/md4-tests: Moved from ../.
67614         * modules/crypto/md5: Moved from ../.
67615         * modules/crypto/md5-tests: Moved from ../.
67616         * modules/crypto/memxor: Moved from ../.
67617         * modules/crypto/rijndael: Moved from ../.
67618         * modules/crypto/rijndael-tests: Moved from ../.
67619         * modules/crypto/sha1: Moved from ../.
67620
67621 2007-03-30  James Youngman  <jay@gnu.org>
67622
67623         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67624         rename() to change the ctime of a file (because ctime is unaffected
67625         by rename on jfs2 on AIX 5.1).
67626         (main): Start by doing cleanup, in case a previous run failed leaving
67627         test files behind.
67628
67629 2007-03-31  Bruno Haible  <bruno@clisp.org>
67630
67631         Support old proprietary implementations of iconv.
67632         * modules/iconv_open: New file.
67633         * lib/iconv_.h: New file.
67634         * m4/iconv_h.m4: New file.
67635         * lib/iconv_open.c: New file.
67636         * lib/iconv_open-aix.gperf: New file.
67637         * lib/iconv_open-hpux.gperf: New file.
67638         * lib/iconv_open-irix.gperf: New file.
67639         * lib/iconv_open-osf.gperf: New file.
67640         * m4/iconv_open.m4: New file.
67641         * modules/linebreak (Depends-on): Add iconv_open.
67642         * modules/striconv (Depends-on): Likewise.
67643         * modules/striconveh (Depends-on): Likewise.
67644         * modules/unicodeio (Depends-on): Likewise.
67645         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67646         (iconv_t)(-1).
67647         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67648         conversion if cd is (iconv_t)(-1).
67649         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67650         is not possible.
67651
67652 2007-03-31  Bruno Haible  <bruno@clisp.org>
67653
67654         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67655         work on Solaris either. Protect also second use of "autodetect_jp".
67656
67657 2007-03-31  Bruno Haible  <bruno@clisp.org>
67658
67659         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67660         the function is not present.
67661
67662 2007-03-31  Bruno Haible  <bruno@clisp.org>
67663
67664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67665         the function is not present.
67666
67667 2007-03-31  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67670         a bug in HP-UX iconv_open().
67671
67672 2007-03-31  Bruno Haible  <bruno@clisp.org>
67673
67674         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67675         (Mathematics <math.h>): New section, add fpieee.
67676         (Input/output <stdio.h>): Add fseterr.
67677         (Mathematics <math.h>): New section, add printf-frexp.
67678         (Container data structures): Add sublist.
67679         (Core language properties): Add fpucw, inline.
67680         (Functions for greatest-width integer types <inttypes.h>): Add
67681         imaxabs, imaxdiv, inttypes.
67682         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67683         isnanl-nolibm, ldexp.
67684         (Mathematics <math.h>): New section, add printf-frexpl.
67685         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67686         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67687         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67688         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67689         (Unicode string functions): Add unistr/u*-mbtoucr.
67690         (Java): Add javacomp-script, javaexec-script.
67691         (C#): Add csharpcomp-script, csharpexec-script.
67692         (Support for building libraries and executables): Add havelib,
67693         relocatable-*.
67694         (Support for maintaining and releasing projects): Renamed from
67695         'Support for maintaining and release projects'. Add announce-gen.
67696
67697 2007-03-31  Bruno Haible  <bruno@clisp.org>
67698
67699         * README: Talk primarily about git.
67700         (git and CVS): Renamed from CVS.
67701         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67702         gnulib is available through git.
67703         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67704
67705 2007-03-30  Bruno Haible  <bruno@clisp.org>
67706
67707         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67708         * lib/poll_.h: Likewise.
67709         * lib/stat_.h: Likewise.
67710         * lib/sys_time_.h: Likewise.
67711         * lib/sysexit_.h: Likewise.
67712         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67713         * lib/stdbool_.h: Likewise.
67714         * lib/byteswap_.h: Add double-inclusion guard.
67715
67716 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67717
67718         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67719
67720 2007-03-30  Karl Berry  <karl@gnu.org>
67721
67722         * config/srclist-update: double space after USA in the license
67723         substitution, since that's how it's usually (?) written.
67724
67725 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67728         reported by Bruno Haible.
67729
67730 2007-03-29  Bruno Haible  <bruno@clisp.org>
67731
67732         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67733         a bug in AIX iconv().
67734
67735 2007-03-29  Bruno Haible  <bruno@clisp.org>
67736
67737         * modules/ldexpl-tests: New file.
67738         * tests/test-ldexpl.c: New file.
67739
67740 2007-03-29  Bruno Haible  <bruno@clisp.org>
67741
67742         * lib/ldexpl.c: Include fpucw.h.
67743         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67744         multiplication.
67745         * modules/ldexpl (Depends-on): Add fpucw.
67746
67747 2007-03-29  Bruno Haible  <bruno@clisp.org>
67748
67749         * modules/ldexpl: New file.
67750         * m4/ldexpl.m4: New file.
67751         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67752         set.
67753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67754         REPLACE_LDEXPL.
67755         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67756         REPLACE_LDEXPL.
67757         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67758         gl_FUNC_LDEXPL_WORKS.
67759         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67760         * modules/mathl (Files): Remove lib/ldexpl.c.
67761         (Depends-on): Add ldexpl.
67762
67763 2007-03-29  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67766
67767 2007-03-29  Bruno Haible  <bruno@clisp.org>
67768
67769         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67770         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67771         and possibly also HP-UX.
67772         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67773         work on AIX, IRIX, HP-UX, OSF/1.
67774         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67775         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67776         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67777         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67778         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67779         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67780
67781 2007-03-29  Bruno Haible  <bruno@clisp.org>
67782
67783         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67784
67785 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67788         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67789
67790 2007-03-29  Eric Blake  <ebb9@byu.net>
67791
67792         * lib/acl-internal.h: Remove redundant include.
67793         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67794         Cygwin when a file is locked.
67795
67796 2007-03-29  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67799         file.
67800         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67801
67802 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67805         try to remove a parent directory if the child couldn't be removed
67806         (except for the first rmdir, which could fail because the child
67807         doesn't exist).  Problem reported by Jeff Blaine in
67808         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67809
67810 2007-03-28  Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/striconveh.c (utf8conv_carefully): New function.
67813         (mem_cd_iconveh_internal): Invoke it.
67814
67815 2007-03-28  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67818         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67819         input.
67820         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67821         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67822         unistr/u8-uctomb.
67823
67824 2007-03-28  Bruno Haible  <bruno@clisp.org>
67825
67826         * modules/unistr/u8-mbtoucr: New file.
67827         * lib/unistr/u8-mbtoucr.c: New file.
67828         * modules/unistr/u16-mbtoucr: New file.
67829         * lib/unistr/u16-mbtoucr.c: New file.
67830         * modules/unistr/u16-mbtoucr: New file.
67831         * lib/unistr/u16-mbtoucr.c: New file.
67832         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67833
67834 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67835             Bruno Haible  <bruno@clisp.org>
67836
67837         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67838         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67839         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67840
67841         * m4/stdio_h.m4: Add stubs for vasprintf too.
67842
67843         * modules/stdio: Support vasprintf in sed command.
67844
67845         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67846         vasprintf.h.  Add stdio module indicator.
67847
67848         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67849         vasprintf.h.
67850
67851         * lib/vasprintf.h: File removed.
67852
67853         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67854         * lib/vasprintf.c: Ditto.
67855         * lib/xvasprintf.c: Ditto.
67856         * tests/test-vasprintf-posix.c: Ditto.
67857         * tests/test-vasprintf.c: Ditto.
67858
67859 2007-03-27  Bruno Haible  <bruno@clisp.org>
67860
67861         Make vasnprintf multithread-safe.
67862         * lib/vasnprintf.c (decimal_point_char): New function.
67863         (VASNPRINTF): Use it.
67864         Suggested by Simon Josefsson.
67865
67866 2007-03-27  Eric Blake  <ebb9@byu.net>
67867
67868         Support sub-second birthtime on cygwin.
67869         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67870         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67871         (get_stat_birthtime): Also work with st_birthtim.
67872
67873 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67876         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67877         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67878         (get_stat_birthtime_ns): Simplify compile-time tests.
67879         (get_stat_birthtime): Change the API to look like
67880         get_stat_mtime etc., except return a negative tv_nsec on error.
67881         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67882         Don't check for "spare" fields.
67883         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67884         or for struct stat.st_birthtime, as these tests aren't used.
67885         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67886
67887 2007-03-27  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/stat-time.h: Include <sys/stat.h>.
67890
67891 2007-03-27  James Youngman  <jay@gnu.org>
67892
67893         * lib/stat-time.h (get_stat_birthtime): New function for
67894           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67895         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67896           and its variants.
67897         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67898         * modules/stat-time-test: New file.
67899         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67900
67901 2007-03-26  Bruno Haible  <bruno@clisp.org>
67902
67903         Better support of signalling NaNs.
67904         * lib/atanl.c: Include isnanl.h.
67905         (atanl): Perform test for NaN at the beginning of the function and
67906         through a call to isnanl.
67907         * lib/cosl.c: Include isnanl.h.
67908         (cosl): Perform test for NaN at the beginning of the function and
67909         through a call to isnanl.
67910         * lib/ldexpl.c: Include isnanl.h.
67911         (ldexpl): Perform test for NaN through a call to isnanl.
67912         * lib/logl.c: Include isnanl.h.
67913         (logl): Perform test for NaN at the beginning of the function and
67914         through a call to isnanl.
67915         * lib/sinl.c: Include isnanl.h.
67916         (sinl): Perform test for NaN at the beginning of the function and
67917         through a call to isnanl.
67918         * lib/sqrtl.c: Include isnanl.h.
67919         (sqrtl): Perform test for NaN at the beginning of the function and
67920         through a call to isnanl.
67921         * lib/tanl.c: Include isnanl.h.
67922         (tanl): Perform test for NaN at the beginning of the function and
67923         through a call to isnanl.
67924         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67925         * modules/mathl (Depends-on): Add isnanl.
67926
67927 2007-03-26  Eric Blake  <ebb9@byu.net>
67928
67929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67930         regression in logic sense of previous patch.
67931
67932 2007-03-26  Bruno Haible  <bruno@clisp.org>
67933
67934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67935         unportable shell command "if ! ...".
67936         Reported by Ralf Wildenhues.
67937
67938 2007-03-25  Bruno Haible  <bruno@clisp.org>
67939
67940         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67941         <sysexits.h> file, and only add EX_CONFIG.
67942         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67943         absolute file name and whether it is sufficient. Substitute also
67944         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67945         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67946         ABSOLUTE_SYSEXITS_H into sysexits.h.
67947
67948 2007-03-25  Bruno Haible  <bruno@clisp.org>
67949
67950         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67951         hints is NULL.
67952
67953 2007-03-25  Bruno Haible  <bruno@clisp.org>
67954
67955         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67956         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67957
67958 2007-03-25  Bruno Haible  <bruno@clisp.org>
67959
67960         * lib/vasnprintf.c: Include langinfo.h.
67961         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67962         multithread-safe.
67963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67972         Reported by Simon Josefsson.
67973
67974 2007-03-25  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67977         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67978         * modules/vasnprintf (Depends-on): Add stdint.
67979
67980 2007-03-25  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/fpieee: New file.
67983         * m4/fpieee.m4: New file.
67984         * modules/isnan-nolibm (Depends-on): Add fpieee.
67985         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67986         * modules/isnanl (Depends-on): Add fpieee.
67987
67988 2007-03-25  Bruno Haible  <bruno@clisp.org>
67989
67990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67991
67992 2007-03-25  Bruno Haible  <bruno@clisp.org>
67993
67994         Avoid test failures on IRIX 6.5.
67995         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67996         (main): Use it.
67997         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67998         macros.
67999         (main): Use them.
68000
68001 2007-03-25  Bruno Haible  <bruno@clisp.org>
68002
68003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68004         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68005         exists but doesn't work.
68006         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68007         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68009         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68010         math.h.
68011
68012 2007-03-25  Bruno Haible  <bruno@clisp.org>
68013
68014         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68015         returns inf. Needed on IRIX 6.5.
68016
68017 2007-03-25  Bruno Haible  <bruno@clisp.org>
68018
68019         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68020         (main): Use isnanl instead of x != x idiom.
68021         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68022
68023         * tests/test-frexp.c: Include isnan.h.
68024         (main): Use isnan instead of x != x idiom.
68025         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68026
68027 2007-03-25  Bruno Haible  <bruno@clisp.org>
68028
68029         * tests/test-frexp.c (NaN): New function/macro.
68030         (main): Use it instead of 0.0 / 0.0.
68031         * tests/test-isnan.c (NaN): New function/macro.
68032         (main): Use it instead of 0.0 / 0.0.
68033         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68034         (test_function): Use it instead of 0.0 / 0.0.
68035         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68036         (test_function): Use it instead of 0.0 / 0.0.
68037         * tests/test-snprintf-posix.h (NaN): New function/macro.
68038         (test_function): Use it instead of 0.0 / 0.0.
68039         * tests/test-sprintf-posix.h (NaN): New function/macro.
68040         (test_function): Use it instead of 0.0 / 0.0.
68041         * tests/test-fprintf-posix.h (NaN): New function/macro.
68042         (test_function): Use it instead of 0.0 / 0.0.
68043         * tests/test-printf-posix.h (NaN): New function/macro.
68044         (test_function): Use it instead of 0.0 / 0.0.
68045
68046         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68047
68048 2007-03-25  Bruno Haible  <bruno@clisp.org>
68049
68050         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68051
68052 2007-03-25  Bruno Haible  <bruno@clisp.org>
68053
68054         * lib/regexec.c (merge_state_with_log): Make static.
68055
68056 2007-03-25  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/trigl.c (kernel_rem_pio2): Make static.
68059
68060 2007-03-25  Bruno Haible  <bruno@clisp.org>
68061
68062         * lib/sincosl.c (sincosl_table): Make static.
68063
68064 2007-03-25  Bruno Haible  <bruno@clisp.org>
68065
68066         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68067         if the compiler does not support C99.
68068
68069 2007-03-25  Bruno Haible  <bruno@clisp.org>
68070
68071         * modules/time (Makefile.am): Ensure all rule action lines start with a
68072         tab.
68073
68074 2007-03-24  Bruno Haible  <bruno@clisp.org>
68075
68076         * modules/tsearch-tests: New file.
68077         * tests/test-tsearch.sh: New file.
68078         * tests/test-tsearch.c: New file, mostly copied from glibc.
68079
68080         * modules/search-tests: New file.
68081         * tests/test-search.c: New file.
68082
68083         * modules/search: New file.
68084         * lib/search_.h: New file, incorporating lib/tsearch.h.
68085         * m4/search_h.m4: New file.
68086         * lib/tsearch.h: Remove file.
68087         * lib/tsearch.c: Include search.h instead of tsearch.h.
68088         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68089         HAVE_TSEARCH.
68090         * modules/tsearch (Files): Remove lib/tsearch.h.
68091         (Depends-on): Add search.
68092         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68093         (Include): Change tsearch.h into search.h.
68094
68095 2007-03-24  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/fpucw: New file.
68098         * lib/fpucw.h: New file.
68099         * lib/frexp.c: Include fpucw.h.
68100         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68101         (FUNC): Use them.
68102         * lib/printf-frexp.c: Include fpucw.h.
68103         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68104         (FUNC): Use them.
68105         * lib/vasnprintf.c: Include fpucw.h.
68106         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68107         'long double' calculations.
68108         * tests/test-frexpl.c: Include fpucw.h.
68109         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68110         * tests/test-printf-frexpl.c: Include fpucw.h.
68111         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68112         * modules/frexpl (Depends-on): Add fpucw.
68113         * modules/printf-frexpl (Depends-on): Likewise.
68114         * modules/fprintf-posix (Depends-on): Likewise.
68115         * modules/snprintf-posix (Depends-on): Likewise.
68116         * modules/sprintf-posix (Depends-on): Likewise.
68117         * modules/vasnprintf-posix (Depends-on): Likewise.
68118         * modules/vasprintf-posix (Depends-on): Likewise.
68119         * modules/vfprintf-posix (Depends-on): Likewise.
68120         * modules/vsnprintf-posix (Depends-on): Likewise.
68121         * modules/vsprintf-posix (Depends-on): Likewise.
68122         * modules/frexpl-tests (Depends-on): Likewise.
68123         * modules/printf-frexpl-tests (Depends-on): Likewise.
68124
68125 2007-03-24  Bruno Haible  <bruno@clisp.org>
68126
68127         * lib/float+.h: New file.
68128         * lib/isnan.c: Include float+.h.
68129         (SIZE): New macro.
68130         (FUNC): Compare only SIZE bytes of the value.
68131         * lib/vasnprintf.c: Include float+.h.
68132         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68133         SIZEOF_LDBL or SIZEOF_DBL bytes.
68134         * modules/isnan-nolibm (Files): Add lib/float+.h.
68135         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68136         * modules/isnanl (Files): Add lib/float+.h.
68137         * modules/vasnprintf (Files): Add lib/float+.h.
68138
68139 2007-03-24  Bruno Haible  <bruno@clisp.org>
68140
68141         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68142         include isnanl-nolibm.h.
68143
68144 2007-03-24  Bruno Haible  <bruno@clisp.org>
68145
68146         * tests/test-read-file.c (main): Don't produce spurious output for
68147         expected situations. Make the test fail if it encountered unexpected
68148         results.
68149
68150 2007-03-24  Bruno Haible  <bruno@clisp.org>
68151
68152         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68153         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68154
68155 2007-03-24  Bruno Haible  <bruno@clisp.org>
68156
68157         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68158
68159 2007-03-24  Bruno Haible  <bruno@clisp.org>
68160
68161         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68162         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68163
68164         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68165         * modules/utf8-ucs4: Turn into a symbolic link to module
68166         unistr/u8-mbtouc.
68167
68168         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68169         utf8-ucs4-unsafe.
68170         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68171         unistr/u8-mbtouc-unsafe.
68172
68173         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68174         * modules/utf16-ucs4: Turn into a symbolic link to module
68175         unistr/u16-mbtouc.
68176
68177         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68178         utf16-ucs4-unsafe.
68179         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68180         unistr/u16-mbtouc-unsafe.
68181
68182         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68183         * modules/ucs4-utf8: Turn into a symbolic link to module
68184         unistr/u8-ubtomb.
68185
68186         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68187         * modules/ucs4-utf16: Turn into a symbolic link to module
68188         unistr/u16-ubtomb.
68189
68190 2007-03-24  Bruno Haible  <bruno@clisp.org>
68191
68192         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68193         Enable the function only if HAVE_INLINE.
68194         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68195         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68196         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68197         Enable the function only if HAVE_INLINE.
68198         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68199         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68200         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68201         Enable the function only if HAVE_INLINE.
68202         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68203         Enable the function only if HAVE_INLINE.
68204         * modules/utf8-ucs4: Update.
68205         * modules/utf8-ucs4-unsafe: Update.
68206         * modules/utf16-ucs4: Update.
68207         * modules/utf16-ucs4-unsafe: Update.
68208         * modules/ucs4-utf8: Update.
68209         * modules/ucs4-utf16: Update.
68210
68211 2007-03-24  Bruno Haible  <bruno@clisp.org>
68212
68213         * lib/utf8-ucs4.h: Remove file.
68214         * lib/utf8-ucs4-unsafe.h: Remove file.
68215         * lib/utf16-ucs4.h: Remove file.
68216         * lib/utf16-ucs4-unsafe.h: Remove file.
68217         * lib/ucs4-utf8.h: Remove file.
68218         * lib/ucs4-utf16.h: Remove file.
68219         * lib/unistr.h: Include their previous contents.
68220         * m4/utf-ucs4.m4: Remove file.
68221         * m4/ucs4-utf.m4: Remove file.
68222         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68223         (Depends-on): Add unistr/base.
68224         (configure.ac): Remove gl_UTF_UCS4.
68225         (Makefile.am): Update.
68226         (Include): Change to unistr.h.
68227         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68228         (Depends-on): Add unistr/base.
68229         (configure.ac): Remove gl_UTF_UCS4.
68230         (Makefile.am): Update.
68231         (Include): Change to unistr.h.
68232         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68233         (Depends-on): Add unistr/base.
68234         (configure.ac): Remove gl_UTF_UCS4.
68235         (Makefile.am): Update.
68236         (Include): Change to unistr.h.
68237         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68238         (Depends-on): Add unistr/base.
68239         (configure.ac): Remove gl_UTF_UCS4.
68240         (Makefile.am): Update.
68241         (Include): Change to unistr.h.
68242         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68243         (Depends-on): Add unistr/base.
68244         (configure.ac): Remove gl_UCS4_UTF.
68245         (Makefile.am): Update.
68246         (Include): Change to unistr.h.
68247         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68248         (Depends-on): Add unistr/base.
68249         (configure.ac): Remove gl_UCS4_UTF.
68250         (Makefile.am): Update.
68251         (Include): Change to unistr.h.
68252         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68253         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68254         utf8-ucs4-unsafe.h.
68255         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68256         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68257         utf16-ucs4-unsafe.h.
68258         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68259         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68260         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68261         * lib/unistr/u8-strchr.c: Likewise.
68262         * lib/unistr/u8-strrchr.c: Likewise.
68263         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68264         * lib/unistr/u16-strchr.c: Likewise.
68265         * lib/unistr/u16-strrchr.c: Likewise.
68266         * lib/striconveh.c: Update.
68267         * lib/linebreak.c: Update.
68268
68269 2007-03-24  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68272         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68273
68274 2007-03-22  Bruno Haible  <bruno@clisp.org>
68275
68276         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68277
68278 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * MODULES.html.sh (File system functions): New module write-any-file.
68281         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68282         * m4/write-any-file.m4: New files.
68283
68284 2007-03-23  Eric Blake  <ebb9@byu.net>
68285
68286         * gnulib-tool: Rearrange space-tab sequences, since some editors
68287         like to eat them.
68288
68289 2007-03-23  Eric Blake  <ebb9@byu.net>
68290
68291         * lib/version-etc.c (version_etc_va): Update license wording to
68292         be more concise.  Recommended by Richard Stallman.
68293
68294 2007-03-22  Bruno Haible  <bruno@clisp.org>
68295
68296         * lib/poll.c (MSG_PEEK): New fallback definition.
68297
68298 2007-03-22  Bruno Haible  <bruno@clisp.org>
68299
68300         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68301         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68302         (main): Update.
68303         Fixes a compilation error on BeOS.
68304
68305 2007-03-22  Bruno Haible  <bruno@clisp.org>
68306
68307         * modules/frexpl-tests: New file.
68308         * tests/test-frexpl.c: New file.
68309
68310         * modules/frexpl: New file.
68311         * m4/frexpl.m4: New file.
68312         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68313         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68315         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68316         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68317         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68318
68319 2007-03-22  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/frexpl.c: Share code with lib/frexp.c.
68322         * modules/mathl (Files): Add lib/frexp.c.
68323         (Depends-on): Add isnanl-nolibm.
68324
68325 2007-03-22  Bruno Haible  <bruno@clisp.org>
68326
68327         * modules/printf-frexp (Files): Add m4/frexp.m4.
68328         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68329         only if the found frexp function actually works.
68330
68331 2007-03-22  Bruno Haible  <bruno@clisp.org>
68332
68333         * lib/frexp.c: Remove older implementation that uses divisions.
68334
68335 2007-03-21  Bruno Haible  <bruno@clisp.org>
68336
68337         * modules/frexp-tests: New file.
68338         * tests/test-frexp.c: New file.
68339
68340         * modules/frexp: New file.
68341         * lib/frexp.c: New file.
68342         * m4/frexp.m4: New file.
68343         * lib/math_.h (frexp): New declaration.
68344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68345         REPLACE_FREXP.
68346         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68347
68348 2007-03-21  Bruno Haible  <bruno@clisp.org>
68349
68350         * modules/isnanl-tests: New file.
68351         * tests/test-isnanl.c: New file.
68352
68353         * modules/isnanl: New file.
68354         * lib/isnanl.h: New file.
68355         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68356         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68357         gl_FUNC_ISNANL_WORKS.
68358         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68359         New macros.
68360
68361 2007-03-21  Bruno Haible  <bruno@clisp.org>
68362
68363         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68364         lib/isnanl.h.
68365         (Include): Update.
68366         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68367         * lib/vasnprintf.c: Update.
68368         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68369         tests/test-isnanl.h, remove tests/test-isnanl.c.
68370         (Makefile.am): Update.
68371         * tests/test-isnanl-nolibm.c: New file.
68372         * tests/test-isnanl.h: New file.
68373         * tests/test-isnanl.c: Remove file.
68374
68375 2007-03-21  Jim Meyering  <jim@meyering.net>
68376
68377         When trying to open ".", treat ESTALE like EACCES.
68378         * lib/savewd.c (savewd_save): Resort to forking not just upon
68379         failure with EACCES, but also when errno is ESTALE.
68380
68381 2007-03-20  Bruno Haible  <bruno@clisp.org>
68382
68383         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68384         Needed on AIX 5.1. Reported by Matthew Woehlke.
68385
68386 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         Suggestions by Bruno Haible:
68389         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68390         our own.
68391         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68392         * modules/acl (Depends-on): Add gettext.
68393
68394 2007-03-19  Bruno Haible  <bruno@clisp.org>
68395
68396         * modules/iconvme: Remove file.
68397         * lib/iconvme.h: Remove file.
68398         * lib/iconvme.c: Remove file.
68399         * m4/iconvme.m4: Remove file.
68400
68401 2007-03-19  Bruno Haible  <bruno@clisp.org>
68402
68403         * doc/relocatable-maint.texi: Break long shell script line.
68404         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68405
68406 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68409         handle file_has_acl.
68410         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68411         * lib/acl.c: Move header inclusions and related macro defns into
68412         lib/acl-internal.h.
68413         (S_ISLNK): Remove defn, since that's now done for us.
68414         (file_has_acl): Move to lib/file-has-acl.c.
68415         Call acl_trivial if available.  This is the crucial part of the fix.
68416         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68417         shared within the library.  Rewrite a bit, partly to make it compatible
68418         with the GNU coding style.
68419         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68420         Remove unnecessary double-quotes.
68421         Don't test for acl_to_text; the build will catch that.
68422         Replace acl_entries if it doesn't exist and it is needed.
68423         Check for -lsec and acl_trivial (as used on Solaris 10).
68424         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68425         lib/file-has-acl.c.
68426         (Depends-on): Add sys_stat, for S_ISLNK.
68427
68428 2007-03-19  Ben Pfaff  <blp@gnu.org>
68429
68430         * doc/gnulib.texi: Fix typos.
68431         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68432
68433 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68434
68435         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68436         If size is zero here, buf must be zero.
68437
68438 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68439
68440         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68441         <bruno@clisp.org>.
68442
68443 2007-03-18  Bruno Haible  <bruno@clisp.org>
68444
68445         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68446         Suggested by Eric Blake.
68447
68448 2007-03-18  Ben Pfaff  <blp@gnu.org>
68449
68450         * doc/relocatable.texi: Recommend using as prefix a directory
68451         that does not exist and will never be created.  Based on
68452         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68453         and others.
68454
68455 2007-03-17  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/fchownat.c: Include lchown.h.
68458
68459 2007-03-17  Bruno Haible  <bruno@clisp.org>
68460
68461         Fix endless loop when the given allocated size was > INT_MAX.
68462         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68463         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68464         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68465         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68466         * lib/sprintf.c (sprintf): Likewise.
68467
68468 2007-03-17  Bruno Haible  <bruno@clisp.org>
68469
68470         * tests/test-argp-2.sh (func_compare): Output a context diff.
68471
68472 2007-03-17  Bruno Haible  <bruno@clisp.org>
68473
68474         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68475         locale's decimal-point character.
68476
68477 2007-03-17  Bruno Haible  <bruno@clisp.org>
68478
68479         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68480         before comparing it. Needed because on some platforms (e.g. x86) a
68481         'long double' occupies less bytes than sizeof (long double).
68482
68483 2007-03-17  Bruno Haible  <bruno@clisp.org>
68484
68485         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68486         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68487         * tests/test-getaddrinfo.c (simple): Likewise.
68488         * tests/test-read-file.c (main): Likewise.
68489
68490 2007-03-17  Bruno Haible  <bruno@clisp.org>
68491
68492         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68493
68494 2007-03-17  Bruno Haible  <bruno@clisp.org>
68495
68496         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68497         unused variable.
68498
68499 2007-03-17  Bruno Haible  <bruno@clisp.org>
68500
68501         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68502         * tests/test-c-strncasecmp.c: Likewise.
68503
68504 2007-03-17  Bruno Haible  <bruno@clisp.org>
68505
68506         * modules/stdlib (Depends-on): Add unistd.
68507         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68508         Needed for MacOS X 10.3.
68509
68510 2007-03-17  Bruno Haible  <bruno@clisp.org>
68511
68512         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68513
68514 2007-03-17  Bruno Haible  <bruno@clisp.org>
68515
68516         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68517
68518 2007-03-17  Bruno Haible  <bruno@clisp.org>
68519
68520         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68521         to reflect files copied from gnulib (with or without modifications).
68522         Suggested by Jim Meyering.
68523
68524 2007-03-17  Eric Blake  <ebb9@byu.net>
68525
68526         * NEWS: Document stdlib change from 2007-02-18.
68527
68528 2007-03-17  Jim Meyering  <jim@meyering.net>
68529
68530         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68531         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68532         someone uses a name containing shell meta-characters.
68533         Reported by Alfred M. Szmidt.
68534
68535         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68536
68537 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68538
68539         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68540         and copy gettext configuration files only if configure.ac contains
68541         a use of AM_GNU_GETTEXT_VERSION.
68542
68543 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68544
68545         * build-aux/bootstrap (gnulib_name): New variable.
68546         (gnulib_tool_options): Use it.
68547
68548 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68549
68550         * tests/test-des.c: Use new namespace.
68551
68552 2007-03-15  Bruno Haible  <bruno@clisp.org>
68553
68554         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68555         Reported by James Youngman <jay@gnu.org>.
68556
68557 2007-03-15  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68560         declared prototype. Needed with cc on OSF/1 5.1.
68561
68562 2007-03-15  Bruno Haible  <bruno@clisp.org>
68563
68564         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68565         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68566         (struct gl_list_implementation): Add dispose_fn argument to the
68567         'create_empty', 'create' methods.
68568         (struct gl_list_impl_base): Add field 'dispose_fn'.
68569         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68570         argument.
68571         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68572         dispose_fn argument.
68573         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68574         dispose_fn on the dropped values.
68575         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68576         dispose_fn argument.
68577         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68578         dropped values.
68579         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68580         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68581         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68582         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68583         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68584         argument.
68585         (gl_tree_list_free): Call dispose_fn on the dropped values.
68586         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68587         the dropped values.
68588         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68589         Add dispose_fn argument.
68590         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68591         Call dispose_fn on the dropped values.
68592         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68593         Add dispose_fn argument.
68594         (gl_sublist_create): Initialize the 'dispose_fn' field.
68595         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68596         * tests/test-array_list.c (main): Update.
68597         * tests/test-carray_list.c (main): Update.
68598         * tests/test-avltree_list.c (main): Update.
68599         * tests/test-rbtree_list.c (main): Update.
68600         * tests/test-avltreehash_list.c (main): Update.
68601         * tests/test-rbtreehash_list.c (main): Update.
68602         * tests/test-linked_list.c (main): Update.
68603         * tests/test-linkedhash_list.c (main): Update.
68604         * tests/test-array_oset.c (main): Update.
68605
68606 2007-03-15  Bruno Haible  <bruno@clisp.org>
68607
68608         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68609         (gl_oset_create_empty): Add dispose_fn argument.
68610         (struct gl_oset_implementation): Add dispose_fn argument to
68611         'create_empty' method.
68612         (struct gl_oset_impl_base): Add dispose_fn field.
68613         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68614         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68615         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68616         values.
68617         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68618         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68619         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68620         dropped value.
68621         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68622         dropped value.
68623         * tests/test-array_oset.c (main): Update.
68624         * tests/test-avltree_oset.c (main): Update.
68625         * tests/test-rbtree_oset.c (main): Update.
68626         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68627
68628 2007-03-13  Bruno Haible  <bruno@clisp.org>
68629
68630         * tests/test-stdbool.c (i): Update after last patch.
68631
68632 2007-03-12  Bruno Haible  <bruno@clisp.org>
68633
68634         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68635         the iswprint macro. Needed on Solaris 2.5.1.
68636
68637 2007-03-12  Bruno Haible  <bruno@clisp.org>
68638
68639         * tests/test-printf-frexp.c (main): Declare x as volatile.
68640
68641 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68642
68643         * doc/gnulib.texi (Build robot for gnulib): New section.
68644
68645 2007-03-12  Jim Meyering  <jim@meyering.net>
68646
68647         * build-aux/bootstrap: New file.
68648         * build-aux/bootstrap.conf: New file, from coreutils.
68649
68650 2007-03-11  Bruno Haible  <bruno@clisp.org>
68651
68652         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68653
68654 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68655
68656         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68657         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68658         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68659
68660 2007-03-11  Bruno Haible  <bruno@clisp.org>
68661
68662         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68663         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68664
68665 2007-03-11  Bruno Haible  <bruno@clisp.org>
68666
68667         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68668         formula. Needed for SunPRO C 5.0.
68669
68670 2007-03-11  Bruno Haible  <bruno@clisp.org>
68671
68672         * modules/long-options (Depends-on): Add getopt.
68673
68674 2007-03-11  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/modechange (Depends-on): Add stdbool.
68677
68678 2007-03-11  Bruno Haible  <bruno@clisp.org>
68679
68680         * modules/i-ring (Depends-on): Add stdbool.
68681
68682 2007-03-11  Bruno Haible  <bruno@clisp.org>
68683
68684         * modules/gc-des (Depends-on): Add stdbool.
68685
68686 2007-03-11  Bruno Haible  <bruno@clisp.org>
68687
68688         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68689
68690 2007-03-11  Bruno Haible  <bruno@clisp.org>
68691
68692         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68693
68694 2007-03-11  Bruno Haible  <bruno@clisp.org>
68695
68696         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68697
68698 2007-03-11  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/vasnprintf.c (sprintf): Undefine.
68701
68702 2007-03-11  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68705         initializers in SunPRO C and Compaq C compilers.
68706
68707 2007-03-11  Bruno Haible  <bruno@clisp.org>
68708
68709         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68710         decrementing code ANSI C compliant.
68711
68712 2007-03-11  Bruno Haible  <bruno@clisp.org>
68713
68714         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68715         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68716
68717 2007-03-11  Bruno Haible  <bruno@clisp.org>
68718
68719         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68720         <stdbool.h> substitute doesn't pass.
68721
68722 2007-03-11  Bruno Haible  <bruno@clisp.org>
68723
68724         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68725
68726 2007-03-11  Bruno Haible  <bruno@clisp.org>
68727
68728         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68729         script, for submission to autobuild.josefsson.org.
68730
68731 2007-03-10  Bruno Haible  <bruno@clisp.org>
68732
68733         * modules/canonicalize-lgpl-tests: New file.
68734         * tests/test-canonicalize-lgpl.sh: New file.
68735         * tests/test-canonicalize-lgpl.c: New file.
68736
68737         * modules/c-strcase-tests: New file.
68738         * tests/test-c-strcase.sh: New file.
68739         * tests/test-c-strcasecmp.c: New file.
68740         * tests/test-c-strncasecmp.c: New file.
68741
68742         * modules/atexit-tests: New file.
68743         * tests/test-atexit.sh: New file.
68744         * tests/test-atexit.c: New file.
68745
68746 2007-03-10  Bruno Haible  <bruno@clisp.org>
68747
68748         * tests/test-binary-io.sh: Use temporary filenames that are not so
68749         likely to clash with those of other tests (in a parallel make).
68750         * tests/test-binary-io.c: Likewise.
68751
68752 2007-03-10  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68755         fallback; use #error instead.
68756         Suggested by Simon Josefsson.
68757
68758 2007-03-10  Bruno Haible  <bruno@clisp.org>
68759
68760         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68761         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68762         first and the last.
68763
68764 2007-03-10  Bruno Haible  <bruno@clisp.org>
68765
68766         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68767
68768 2007-03-10  Bruno Haible  <bruno@clisp.org>
68769
68770         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68771         "make distcheck".
68772         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68773         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68774         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68775
68776 2007-03-10  Bruno Haible  <bruno@clisp.org>
68777
68778         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68779         variable.
68780         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68781         variable.
68782
68783 2007-03-09  Eric Blake  <ebb9@byu.net>
68784         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68785
68786         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68787         types are not being provided by gnulib.
68788         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68789         types are supported.
68790
68791 2007-03-10  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/stdio_.h (__attribute__): New macro.
68794         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68795         vsprintf): Specify __attribute__ __format__ for GCC.
68796         Suggested by Eric Blake.
68797
68798 2007-03-09  Bruno Haible  <bruno@clisp.org>
68799
68800         * modules/printf-posix-tests: New file.
68801         * tests/test-printf-posix.sh: New file.
68802         * tests/test-printf-posix.c: New file.
68803
68804         * modules/printf-posix: New file.
68805         * lib/printf.c: New file.
68806         * m4/printf-posix-rpl.m4: New file.
68807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68808         REPLACE_PRINTF.
68809         * lib/stdio_.h (printf): New declaration.
68810         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68811         ____strfmon____): New macros.
68812         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68813         REPLACE_PRINTF.
68814
68815 2007-03-09  Bruno Haible  <bruno@clisp.org>
68816
68817         * tests/test-vasnprintf-posix2.sh: New file.
68818         * tests/test-vasnprintf-posix2.c: New file.
68819         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68820         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68821         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68822
68823         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68824         a locale dependent decimal point, rather than always '.'.
68825
68826 2007-03-09  Eric Blake  <ebb9@byu.net>
68827
68828         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68829         spite of platforms like Tandem/NSK that define it to -1.
68830
68831 2007-03-08  Bruno Haible  <bruno@clisp.org>
68832
68833         * modules/vprintf-posix-tests: New file.
68834         * tests/test-vprintf-posix.sh: New file.
68835         * tests/test-vprintf-posix.c: New file.
68836         * tests/test-printf-posix.h: New file.
68837
68838         * modules/vprintf-posix: New file.
68839         * lib/vprintf.c: New file.
68840         * m4/vprintf-posix.m4: New file.
68841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68842         REPLACE_VPRINTF.
68843         * lib/stdio_.h (vprintf): New declaration.
68844         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68845         REPLACE_VPRINTF.
68846
68847 2007-03-08  Bruno Haible  <bruno@clisp.org>
68848
68849         * modules/fprintf-posix-tests: New file.
68850         * tests/test-fprintf-posix.sh: New file.
68851         * tests/test-fprintf-posix.c: New file.
68852
68853         * modules/fprintf-posix: New file.
68854         * lib/fprintf.c: New file.
68855         * m4/fprintf-posix.m4: New file.
68856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68857         REPLACE_FPRINTF.
68858         * lib/stdio_.h (fprintf): New declaration.
68859         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68860         REPLACE_FPRINTF.
68861
68862 2007-03-08  Bruno Haible  <bruno@clisp.org>
68863
68864         * modules/vfprintf-posix-tests: New file.
68865         * tests/test-vfprintf-posix.sh: New file.
68866         * tests/test-vfprintf-posix.c: New file.
68867         * tests/test-fprintf-posix.h: New file.
68868         * tests/test-fprintf-posix.out: New file.
68869
68870         * modules/vfprintf-posix: New file.
68871         * lib/vfprintf.c: New file.
68872         * m4/vfprintf-posix.m4: New file.
68873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68874         REPLACE_VFPRINTF.
68875         * lib/stdio_.h (vfprintf): New declaration.
68876         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68877         REPLACE_VFPRINTF.
68878
68879 2007-03-08  Bruno Haible  <bruno@clisp.org>
68880
68881         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68882
68883 2007-03-08  Bruno Haible  <bruno@clisp.org>
68884
68885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68886         instead of 'expr' invocations.
68887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68890         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68891         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68892         Suggested by Paul Eggert.
68893
68894 2007-03-08  Bruno Haible  <bruno@clisp.org>
68895
68896         * modules/fseterr-tests: New file.
68897         * tests/test-fseterr.c: New file.
68898
68899         * modules/fseterr: New file.
68900         * lib/fseterr.h: New file.
68901         * lib/fseterr.c: New file.
68902
68903 2007-03-08  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68906         * lib/getopt_.h: Likewise.
68907         * lib/mbswidth.h: Likewise.
68908         * lib/setenv.h: Likewise.
68909         * lib/vasnprintf.h: Likewise.
68910         * lib/vasprintf.h: Likewise.
68911         * lib/verror.h: Likewise.
68912         * lib/xsetenv.h: Likewise.
68913         * lib/xvasprintf.h: Likewise.
68914
68915 2007-03-08  Jim Meyering  <jim@meyering.net>
68916
68917         * users.txt: Add parted.
68918
68919         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68920
68921 2007-03-07  Bruno Haible  <bruno@clisp.org>
68922
68923         * m4/printf.m4: Make the shell script snippets copy&pastable.
68924
68925 2007-03-02  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/netinet_in_.h: New file.
68928         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68929         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68930         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68931         (Depends-on): Add absolute-header.
68932         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68933         into netinet/in.h.
68934
68935 2007-03-03  Bruno Haible  <bruno@clisp.org>
68936
68937         * lib/sys_select_.h: New file.
68938         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68939         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68940         * modules/sys_select (Files): Add lib/sys_select_.h.
68941         (Depends-on): Add absolute-header.
68942         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68943         into sys/select.h.
68944
68945 2007-03-02  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68948         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68949         values.
68950         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68951         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68952         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68953         * modules/sys_socket (Depends-on): Add absolute-header.
68954         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68955         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68956         (Include): Remove requirement of inclusion of <sys/types.h>.
68957
68958 2007-03-02  Bruno Haible  <bruno@clisp.org>
68959
68960         * lib/byteswap_.h (bswap_32): Fix formula.
68961
68962 2007-03-06  Bruno Haible  <bruno@clisp.org>
68963
68964         * modules/sprintf-posix-tests: New file.
68965         * tests/test-sprintf-posix.c: New file.
68966
68967         * modules/sprintf-posix: New file.
68968         * lib/sprintf.c: New file.
68969         * m4/sprintf-posix.m4: New file.
68970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68971         REPLACE_SPRINTF.
68972         * lib/stdio_.h (sprintf): New declaration.
68973         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68974         REPLACE_SPRINTF.
68975
68976 2007-03-06  Bruno Haible  <bruno@clisp.org>
68977
68978         * modules/vsprintf-posix-tests: New file.
68979         * tests/test-vsprintf-posix.c: New file.
68980         * tests/test-sprintf-posix.h: New file.
68981
68982         * modules/vsprintf-posix: New file.
68983         * lib/vsprintf.c: New file.
68984         * m4/vsprintf-posix.m4: New file.
68985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68986         REPLACE_VSPRINTF.
68987         * lib/stdio_.h (vsprintf): New declaration.
68988         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68989         REPLACE_VSPRINTF.
68990
68991 2007-03-06  Bruno Haible  <bruno@clisp.org>
68992
68993         * modules/vsnprintf (Depend-on): Remove minmax.
68994
68995 2007-03-06  Bruno Haible  <bruno@clisp.org>
68996
68997         * modules/snprintf-posix-tests: New file.
68998         * tests/test-snprintf-posix.c: New file.
68999
69000         * modules/snprintf-posix: New file.
69001         * m4/snprintf-posix.m4: New file.
69002         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69003         gl_FUNC_SNPRINTF.
69004         (gl_FUNC_SNPRINTF): Invoke it.
69005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69006         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69007         is set.
69008         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69009
69010 2007-03-06  Bruno Haible  <bruno@clisp.org>
69011
69012         * modules/vsnprintf-posix-tests: New file.
69013         * tests/test-vsnprintf-posix.c: New file.
69014         * tests/test-snprintf-posix.h: New file.
69015
69016         * modules/vsnprintf-posix: New file.
69017         * m4/vsnprintf-posix.m4: New file.
69018         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69019         gl_FUNC_VSNPRINTF.
69020         (gl_FUNC_VSNPRINTF): Invoke it.
69021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69022         * lib/stdio_.h (vsnprintf): Define as a replacement if
69023         REPLACE_VSNPRINTF is set.
69024         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69025
69026 2007-03-06  Bruno Haible  <bruno@clisp.org>
69027
69028         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69030
69031 2007-03-06  Bruno Haible  <bruno@clisp.org>
69032
69033         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69034         (asinl): Declare also if HAVE_DECL_ASINL is set.
69035         (atanl): Declare also if HAVE_DECL_ATANL is set.
69036         (ceill): Declare also if HAVE_DECL_CEILL is set.
69037         (cosl): Declare also if HAVE_DECL_COSL is set.
69038         (expl): Declare also if HAVE_DECL_EXPL is set.
69039         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69040         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69041         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69042         (logl): Declare also if HAVE_DECL_LOGL is set.
69043         (sinl): Declare also if HAVE_DECL_SINL is set.
69044         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69045         (tanl): Declare also if HAVE_DECL_TANL is set.
69046         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69048         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69049         declaration of frexpl, ldexpl.
69050         * modules/printf-frexpl (Depends-on): Add math.
69051         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69052
69053 2007-03-05  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69056         frexpl and ldexpl are declared.
69057         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69058
69059 2007-03-05  Bruno Haible  <bruno@clisp.org>
69060
69061         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69062         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69063
69064 2007-03-05  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/stdio_.h: Include <stddef.h>.
69067
69068 2007-03-05  Bruno Haible  <bruno@clisp.org>
69069
69070         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69071
69072 2007-03-05  Bruno Haible  <bruno@clisp.org>
69073
69074         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69075         NetBSD 4, from Ralf Wildenhues.
69076
69077 2007-03-04  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/vasprintf.h: Update #if logic for the case when the functions
69080         exist but are overridden.
69081
69082 2007-03-04  Bruno Haible  <bruno@clisp.org>
69083
69084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69085         implementations: glibc-2.4 and MacOS X 10.3.
69086         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69087         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69088         * tests/test-vasprintf-posix.c (test_function): Likewise.
69089
69090 2007-03-04  Bruno Haible  <bruno@clisp.org>
69091
69092         * modules/vasprintf-posix-tests: New file.
69093         * tests/test-vasprintf-posix.c: New file.
69094
69095         * modules/vasprintf-posix: New file.
69096         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69097         defined.
69098         * m4/vasprintf-posix.m4: New file.
69099         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69100         gl_FUNC_VASPRINTF.
69101         (gl_FUNC_VASPRINTF): Invoke it.
69102         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69103         here.
69104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69105
69106 2007-03-04  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69109         REPLACE_GETTIMEOFDAY.
69110         * modules/sys_time (Makefile.am): Likewise.
69111         * m4/sys_time_h.m4: Likewise.
69112         * m4/gettimeofday.m4: Likewise.
69113
69114 2007-03-04  Bruno Haible  <bruno@clisp.org>
69115
69116         * modules/vasnprintf-posix-tests: New file.
69117         * tests/test-vasnprintf-posix.c: New file.
69118
69119         * modules/vasnprintf-posix: New file.
69120         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69121         printf-frexpl.h.
69122         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69123         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69124         REPLACE_VASNPRINTF is defined.
69125         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69126         gl_FUNC_VASNPRINTF.
69127         (gl_FUNC_VASNPRINTF): Invoke it.
69128         * m4/vasnprintf-posix.m4: New file.
69129         * m4/printf.m4: New file.
69130
69131 2007-03-04  Bruno Haible  <bruno@clisp.org>
69132
69133         Compile progreloc.c only if --enable-relocatable is specified.
69134         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69135         if --enable-relocatable was specified.
69136         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69137         lib_SOURCES.
69138
69139 2007-03-04  Jim Meyering  <jim@meyering.net>
69140
69141         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69142         Use it consistently, rather than enumerating errno constants.
69143
69144 2007-03-04  Bruno Haible  <bruno@clisp.org>
69145
69146         * modules/xvasprintf-tests: New file.
69147         * tests/test-xvasprintf.c: New file.
69148
69149         * modules/vasprintf-tests: New file.
69150         * tests/test-vasprintf.c: New file.
69151
69152         * modules/vasnprintf-tests: New file.
69153         * tests/test-vasnprintf.c: New file.
69154
69155         * modules/vsnprintf-tests: New file.
69156         * tests/test-vsnprintf.c: New file.
69157
69158         * modules/snprintf-tests: New file.
69159         * tests/test-snprintf.c: New file.
69160
69161 2007-03-04  Bruno Haible  <bruno@clisp.org>
69162
69163         Compile relocatable.c only if --enable-relocatable is specified.
69164         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69165         gl_RELOCATABLE_LIBRARY.
69166         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69167         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69168         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69169         gl_RELOCATABLE_LIBRARY.
69170         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69171         (Makefile.am): Remove lib_SOURCES.
69172         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69173         gl_RELOCATABLE_LIBRARY.
69174         (Makefile.am): Remove lib_SOURCES.
69175         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69176         always.
69177         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69178         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69179
69180 2007-03-04  Bruno Haible  <bruno@clisp.org>
69181
69182         * modules/argmatch-tests: New file.
69183         * tests/test-argmatch.c: New file.
69184
69185         * tests/test-allocsa.c (main): Halve the number of loop runs.
69186
69187         * modules/alloca-opt-tests: New file.
69188         * tests/test-alloca-opt.c: New file.
69189
69190 2007-03-04  Jim Meyering  <jim@meyering.net>
69191
69192         Work around difference between Linux ACLs and Solaris 10 ZFS.
69193         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69194         for EINVAL.
69195
69196 2007-03-03  Bruno Haible  <bruno@clisp.org>
69197
69198         * modules/relocatable-prog (Depends-on): Add back progreloc's
69199         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69200
69201 2007-03-03  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69204         * modules/relocatable-lib: New file.
69205
69206 2007-03-03  Bruno Haible  <bruno@clisp.org>
69207
69208         * modules/relocatable-prog: Renamed from modules/relocatable.
69209         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69210
69211 2007-03-03  Bruno Haible  <bruno@clisp.org>
69212
69213         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69214         m4/relocatable-lib.m4.
69215         (Depends-on): Remove 'relocatable'.
69216         (configure.ac): Add gl_RELOCATABLE_NOP.
69217
69218 2007-03-03  Bruno Haible  <bruno@clisp.org>
69219
69220         * modules/relocatable-prog-wrapper: New file.
69221         * modules/relocatable (Depends-on): Add it. Remove all other
69222         dependencies except progname.
69223         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69224
69225         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69226         (gl_FUNC_STRERROR): Nop.
69227         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69228
69229         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69230         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69231
69232         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69233         (gl_FUNC_READLINK): Update.
69234
69235         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69236
69237 2007-03-03  Bruno Haible  <bruno@clisp.org>
69238
69239         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69240         * modules/xreadlink (Depends-on): Add unistd.
69241         * modules/xreadlink-with-size (Depends-on): Likewise.
69242
69243 2007-03-03  Bruno Haible  <bruno@clisp.org>
69244
69245         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69246         extracted from gt_FUNC_SETENV.
69247         (gt_FUNC_SETENV): Remove macro.
69248         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69249         remove gt_FUNC_SETENV.
69250
69251 2007-03-03  Bruno Haible  <bruno@clisp.org>
69252
69253         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69254         ENABLE_RELOCATABLE here.
69255         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69256
69257 2007-03-03  Bruno Haible  <bruno@clisp.org>
69258
69259         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69260         * tests/test-rbtreehash_list.c: Include progname.h.
69261         (main): Call set_program_name.
69262
69263         * modules/rbtree-oset-tests (Depends-on): Add progname.
69264         * tests/test-rbtree_oset.c: Include progname.h.
69265         (main): Call set_program_name.
69266
69267         * modules/rbtree-list-tests (Depends-on): Add progname.
69268         * tests/test-rbtree_list.c: Include progname.h.
69269         (main): Call set_program_name.
69270
69271         * modules/linked-list-tests (Depends-on): Add progname.
69272         * tests/test-linked_list.c: Include progname.h.
69273         (main): Call set_program_name.
69274
69275 2007-03-03  Bruno Haible  <bruno@clisp.org>
69276
69277         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69278         All uses of __restrict changed to _Restrict_.
69279         * lib/glob_.h (__restrict): Remove macro.
69280
69281 2007-03-02  Bruno Haible  <bruno@clisp.org>
69282
69283         * modules/gettext (configure.ac): Require gettext infrastructure
69284         from version 0.16.1.
69285
69286 2007-03-02  Bruno Haible  <bruno@clisp.org>
69287
69288         * modules/linkedhash-list-tests (Depends-on): Add progname.
69289         * tests/test-linkedhash_list.c: Include progname.h.
69290         (main): Call set_program_name.
69291
69292         * modules/carray-list-tests (Depends-on): Add progname.
69293         * tests/test-carray_list.c: Include progname.h.
69294         (main): Call set_program_name.
69295
69296         * modules/avltreehash-list-tests (Depends-on): Add progname.
69297         * tests/test-avltreehash_list.c: Include progname.h.
69298         (main): Call set_program_name.
69299
69300         * modules/avltree-oset-tests (Depends-on): Add progname.
69301         * tests/test-avltree_oset.c: Include progname.h.
69302         (main): Call set_program_name.
69303
69304         * modules/avltree-list-tests (Depends-on): Add progname.
69305         * tests/test-avltree_list.c: Include progname.h.
69306         (main): Call set_program_name.
69307
69308         * modules/array-oset-tests (Depends-on): Add progname.
69309         * tests/test-array_oset.c: Include progname.h.
69310         (main): Call set_program_name.
69311
69312         * modules/array-list-tests (Depends-on): Add progname.
69313         * tests/test-array_list.c: Include progname.h.
69314         (main): Call set_program_name.
69315
69316         * modules/argp-tests (Depends-on): Add progname.
69317         * tests/test-argp.c: Include argp.h first. Include progname.h.
69318         (main): Call set_program_name.
69319
69320 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69321
69322         * doc/gnulib-tool.texi (Initial import): Reword description of
69323         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69324         limited effect even if defined after the first system include.
69325
69326 2007-03-01  Bruno Haible  <bruno@clisp.org>
69327
69328         * build-aux/config.libpath: Update to libtool-1.5.22.
69329         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69330
69331 2007-03-01  Bruno Haible  <bruno@clisp.org>
69332
69333         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69334         foo_CFLAGS.
69335         Reported by Ralf Wildenhues.
69336
69337 2007-03-01  Bruno Haible  <bruno@clisp.org>
69338
69339         * build-aux/install-reloc: Remove object files left over by some
69340         compilers.
69341         Reported by Ralf Wildenhues.
69342
69343 2007-03-01  Bruno Haible  <bruno@clisp.org>
69344
69345         * build-aux/install-reloc: Break long lines.
69346
69347 2007-03-01  Bruno Haible  <bruno@clisp.org>
69348
69349         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69350         Reported by Ralf Wildenhues.
69351
69352 2007-03-01  Bruno Haible  <bruno@clisp.org>
69353
69354         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69355         include ordering constraints.
69356
69357 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69361         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69362         as another example.
69363         * lib/time_.h: Fix misspelling.
69364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69365         Require gl_HEADER_TIME_H_DEFAULTS.
69366         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69367         * m4/time_r.m4 (gl_TIME_R): Likewise.
69368         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69369
69370 2007-03-01  Bruno Haible  <bruno@clisp.org>
69371
69372         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69373         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69374
69375 2007-03-01  Jim Meyering  <jim@meyering.net>
69376
69377         * modules/xreadlink (Maintainer): Add my name.
69378         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69379
69380 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69381             Bruno Haible  <bruno@clisp.org>
69382
69383         * build-aux/install-reloc: Compile also c-ctype.c.
69384         * build-aux/relocatable.sh.in: New file.
69385         * doc/relocatable.texi: New file.
69386         * doc/relocatable-maint.texi: New file.
69387         * doc/gnulib.texi: Include relocatable-maint.texi.
69388         * lib/progreloc.c: Include unistd.h unconditionally.
69389         * lib/relocwrapper.c: Include unistd.h unconditionally.
69390         Include c-ctype.h.
69391         (add_dotbin): Use c_tolower.
69392         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69393         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69394         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69395         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69396         to m4/relocatable-lib.m4.
69397         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69398         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69399         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69400         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69401         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69402         * modules/relocatable: New file.
69403         * modules/relocatable-lib: New file.
69404         * modules/relocatable-script: New file.
69405
69406 2007-02-28  Bruno Haible  <bruno@clisp.org>
69407
69408         Import --enable-relocatable infrastructure.
69409         * build-aux/config.libpath: New file, from GNU gettext.
69410         * build-aux/install-reloc: New file, from GNU gettext.
69411         * build-aux/reloc-ldflags: New file, from GNU gettext.
69412         * lib/relocatable.h: New file, from GNU gettext.
69413         * lib/relocatable.c: New file, from GNU gettext.
69414         * lib/relocwrapper.c: New file, from GNU gettext.
69415         * m4/relocatable.m4: New file, from GNU gettext.
69416
69417 2007-02-28  Bruno Haible  <bruno@clisp.org>
69418
69419         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69420
69421         * modules/xreadlink: New file, from GNU gettext with modifications.
69422         * lib/xreadlink.c: New file, from GNU gettext.
69423         * lib/xreadlink.h: Add comments.
69424         (xreadlink): New declaration.
69425
69426         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69427         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69428         lib/xreadlink-with-size.c.
69429         (configure.ac): Remove gl_XREADLINK invocation.
69430         (Makefile.am): Augment lib_SOURCES.
69431         * m4/xreadlink.m4: Remove file.
69432         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69433         (xreadlink_with_size): Renamed from xreadink.
69434         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69435         * modules/canonicalize (Depends-on): Replace xreadlink with
69436         xreadlink-with-size.
69437         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69438
69439 2007-02-25  Jim Meyering  <jim@meyering.net>
69440
69441         * build-aux/announce-gen: When complaining about excess arguments,
69442         list them.
69443
69444 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * README: Document signed integer overflow situation more
69447         accurately.
69448
69449 2007-02-25  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69452         'a' or 'A' conversion.
69453
69454 2007-02-25  Bruno Haible  <bruno@clisp.org>
69455
69456         * modules/filename: Renamed from modules/pathname.
69457         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69458         lib/concatpath.c with lib/concat-filename.c.
69459         (Makefile.am): Update.
69460         (Include): Replace pathname.h with filename.h.
69461         * lib/filename.h: Renamed from lib/pathname.h.
69462         (concatenated_filename): Renamed from concatenated_pathname.
69463         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69464         (concatenated_filename): Renamed from concatenated_pathname.
69465         * lib/findprog.c: Include filename.h instead of pathname.h.
69466         (find_in_path): Update.
69467         * lib/javacomp.c: Include filename.h instead of pathname.h.
69468         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69469         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69470         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69471         is_oldgcj_14_13_usable, is_javac_usable): Update.
69472         * lib/javaexec.c: Include filename.h instead of pathname.h.
69473         (execute_java_class): Update.
69474         * modules/findprog: Update.
69475         * modules/javacomp: Update.
69476         * modules/javaexec: Update.
69477         * MODULES.html.sh (File system functions): Add 'filename', remove
69478         'pathname'.
69479
69480 2007-02-25  Bruno Haible  <bruno@clisp.org>
69481
69482         * modules/printf-frexpl-tests: New file.
69483         * tests/test-printf-frexpl.c: New file.
69484
69485         * modules/printf-frexpl: New file.
69486         * lib/printf-frexpl.h: New file.
69487         * lib/printf-frexpl.c: New file.
69488         * m4/printf-frexpl.m4: New file.
69489
69490 2007-02-25  Bruno Haible  <bruno@clisp.org>
69491
69492         * modules/printf-frexp-tests: New file.
69493         * tests/test-printf-frexp.c: New file.
69494
69495         * modules/printf-frexp: New file.
69496         * lib/printf-frexp.h: New file.
69497         * lib/printf-frexp.c: New file.
69498         * m4/printf-frexp.m4: New file.
69499
69500 2007-02-25  Bruno Haible  <bruno@clisp.org>
69501
69502         Assume automake >= 1.10 for the tests.
69503         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69504         * modules/arctwo-tests: Likewise.
69505         * modules/argp-tests: Likewise.
69506         * modules/avltree-list-tests: Likewise.
69507         * modules/avltree-oset-tests: Likewise.
69508         * modules/avltreehash-list-tests: Likewise.
69509         * modules/carray-list-tests: Likewise.
69510         * modules/crc-tests: Likewise.
69511         * modules/des-tests: Likewise.
69512         * modules/gc-arcfour-tests: Likewise.
69513         * modules/gc-arctwo-tests: Likewise.
69514         * modules/gc-des-tests: Likewise.
69515         * modules/gc-hmac-md5-tests: Likewise.
69516         * modules/gc-hmac-sha1-tests: Likewise.
69517         * modules/gc-md2-tests: Likewise.
69518         * modules/gc-md4-tests: Likewise.
69519         * modules/gc-md5-tests: Likewise.
69520         * modules/gc-pbkdf2-sha1-tests: Likewise.
69521         * modules/gc-rijndael-tests: Likewise.
69522         * modules/gc-sha1-tests: Likewise.
69523         * modules/gc-tests: Likewise.
69524         * modules/getaddrinfo-tests: Likewise.
69525         * modules/hmac-md5-tests: Likewise.
69526         * modules/hmac-sha1-tests: Likewise.
69527         * modules/linked-list-tests: Likewise.
69528         * modules/linkedhash-list-tests: Likewise.
69529         * modules/lock-tests: Likewise.
69530         * modules/md2-tests: Likewise.
69531         * modules/md4-tests: Likewise.
69532         * modules/md5-tests: Likewise.
69533         * modules/rbtree-list-tests: Likewise.
69534         * modules/rbtree-oset-tests: Likewise.
69535         * modules/rbtreehash-list-tests: Likewise.
69536         * modules/read-file-tests: Likewise.
69537         * modules/rijndael-tests: Likewise.
69538         * modules/stdint-tests: Likewise.
69539         * modules/tls-tests: Likewise.
69540
69541 2007-02-24  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69544         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69545         function; instead check whether isnan with a double argument links.
69546         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69547         function; instead check whether isnan with a 'long double' argument
69548         links.
69549         Reported by Eric Blake <ebb9@byu.net>.
69550
69551 2007-02-24  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69554         defined.
69555         * lib/isnanl.c: Remove all code. Just include isnan.c.
69556         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69557
69558 2007-02-25  Jim Meyering  <jim@meyering.net>
69559
69560         Avoid conflicting types for 'unsetenv' on FreeBSD.
69561         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69562         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69563         in stdlib.h.
69564
69565 2007-02-24  Bruno Haible  <bruno@clisp.org>
69566
69567         * modules/isnanl-nolibm-tests: New file.
69568         * tests/test-isnanl.c: New file.
69569
69570         * modules/isnanl-nolibm: New file.
69571         * lib/isnanl.h: New file.
69572         * lib/isnanl.c: New file.
69573         * m4/isnanl.m4: New file.
69574
69575 2007-02-24  Bruno Haible  <bruno@clisp.org>
69576
69577         * modules/isnan-nolibm-tests: New file.
69578         * tests/test-isnan.c: New file.
69579
69580         * modules/isnan-nolibm: New file.
69581         * lib/isnan.h: New file.
69582         * lib/isnan.c: New file.
69583         * m4/isnan.m4: New file.
69584
69585 2007-02-24  Bruno Haible  <bruno@clisp.org>
69586
69587         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69588         assume that an exponent fits in 20 bits.
69589
69590 2007-02-24  Jim Meyering  <jim@meyering.net>
69591
69592         * m4/regex.m4: Update the description of the configure-time option,
69593         --without-included-regex, to state accurately what the defaults are,
69594         and perhaps to give people an idea why using this option is risky.
69595
69596 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69599         loops on small arguments.  This attempts to avoid the problem
69600         Bruno Haible reported for AIX 4.3.2 in
69601         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69602
69603 2007-02-23  Bruno Haible  <bruno@clisp.org>
69604
69605         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69606         Needed for help2man.
69607
69608 2007-02-23  Karl Berry  <karl@gnu.org>
69609
69610         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69611         exists, foo.h should be cvs-ignored, not committed.
69612
69613 2007-02-23  Eric Blake  <ebb9@byu.net>
69614
69615         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69616         * lib/stat-time.h (includes): Likewise.
69617         * lib/utimecmp.c (includes): Likewise.
69618         * lib/utimens.h (includes): Likewise.
69619         * lib/getdate.y (includes): Also include "timespec.h" for use
69620         internal to the module.
69621         * modules/utimens (Depends-on): Revert yesterday's patch.
69622         * modules/nanosleep (Depends-on): Add missing dependency.
69623
69624 2007-02-22  Bruno Haible  <bruno@clisp.org>
69625
69626         * lib/glob.c: Don't include getlogin_r.h.
69627
69628 2007-02-22  Jim Meyering  <jim@meyering.net>
69629
69630         * modules/utimens (Depends-on): Add timespec, required for
69631         utimens.h's inclusion of timespec.h.
69632
69633 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69636         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69637         Schwab in
69638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69639         I'll try to think of a better way to fix the Solaris problem.
69640
69641         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69642         like glibc; on Solaris 10, it fails with errno == EINVAL.
69643         POSIX says the behavior is unspecified if the first argument is NULL,
69644         so play it safe and never pass NULL to the system getcwd.
69645
69646 2007-02-21  Jim Meyering  <jim@meyering.net>
69647
69648         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69649         of gettimeofday.  It would conflict with the one now always
69650         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69651         an IRIX 6.5 build failure.
69652
69653 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         Minor fixups to port to Solaris 10 with Sun C 5.8.
69656         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69657         * modules/getcwd (Depends-on): Add dirfd.
69658         * lib/putenv.c (putenv): #undef it.
69659         (rpl_putenv): New decl.
69660         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69661
69662 2007-02-20  Bruno Haible  <bruno@clisp.org>
69663
69664         * modules/stdio-tests: New file.
69665         * tests/test-stdio.c: New file.
69666
69667         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69668         (Depends-on): Add stdio.
69669         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69670         (Include): Use <stdio.h> instead of vsnprintf.h.
69671         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69672         HAVE_DECL_VSNPRINTF.
69673         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69674
69675         * modules/snprintf (Files): Remove lib/snprintf.h.
69676         (Depends-on): Add stdio.
69677         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69678         (Include): Use <stdio.h> instead of snprintf.h.
69679         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69680         HAVE_DECL_SNPRINTF.
69681         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69682         * lib/getaddrinfo.c: Likewise.
69683
69684         * modules/stdio: New file.
69685         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69686         * lib/snprintf.h: Remove file.
69687         * lib/vsnprintf.h: Remove file.
69688         * lib/.cppi-disable: Remove snprintf.h.
69689         * m4/stdio_h.m4: New file.
69690         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69691
69692 2007-02-20  Jim Meyering  <jim@meyering.net>
69693
69694         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69695         used by e.g., mingw.  From Bruno Haible.
69696
69697 2007-02-19  Bruno Haible  <bruno@clisp.org>
69698
69699         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69700         warnings.
69701         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69702
69703 2007-02-19  Bruno Haible  <bruno@clisp.org>
69704
69705         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69706         from mingw users.
69707
69708 2007-02-19  Bruno Haible  <bruno@clisp.org>
69709
69710         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69711         warnings.
69712         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69713
69714 2007-02-19  Jim Meyering  <jim@meyering.net>
69715
69716         Don't use FD after a successful "fdopendir (fd)".
69717         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69718         Reset it by calling dirfd on the just-obtained DIR*.
69719
69720         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69721         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69722
69723 2007-02-18  Bruno Haible  <bruno@clisp.org>
69724
69725         * lib/readlink.c: Include <unistd.h>.
69726         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69727         HAVE_READLINK.
69728         * modules/readlink (Depends-on): Add unistd.
69729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69730         (Include): Add <unistd.h>.
69731
69732         * lib/getlogin_r.h: Remove file.
69733         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69734         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69735         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69736         HAVE_DECL_GETLOGIN_R.
69737         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69739         (Include): Use <unistd.h> instead of getlogin_r.h.
69740
69741         * lib/getcwd.h: Remove file.
69742         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69743         * lib/xgetcwd.c: Likewise.
69744         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69745         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69746         * modules/getcwd (Files): Remove lib/getcwd.h.
69747         (Depends-on): Add unistd.
69748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69749         (Include): Use <unistd.h> instad of getcwd.h.
69750
69751         * lib/ftruncate.c: Include <unistd.h> first.
69752         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69753         Set HAVE_FTRUNCATE.
69754         * modules/ftruncate (Depends-on): Add unistd.
69755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69756
69757         * lib/fchdir.c: Include <unistd.h> first.
69758         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69760         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69761         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69762         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69763
69764         * lib/dup2.c: Include <unistd.h> first.
69765         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69766         HAVE_DUP2.
69767         * modules/dup2 (Depends-on): Add unistd.
69768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69769
69770         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69771         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69772         REPLACE_CHOWN. Don't define chown as a macro here.
69773         * modules/chown (Depends-on): Add unistd.
69774         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69775
69776         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69777         Add definition for GL_LINK_WARNING.
69778         (chown, dup2): New declarations.
69779         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69780         link warning.
69781         (ftruncate): New declaration.
69782         (getcwd): New declaration, taken from old getcwd.h.
69783         (getlogin_r): New declaration, taken from old getlogin_r.h.
69784         (readlink): New declaration.
69785         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69786         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69787         (gl_PREREQ_UNISTD): Remove macro.
69788         (gl_UNISTD_MODULE_INDICATOR): New macro.
69789         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69790         many new variables. Don't set UNISTD_H.
69791         * modules/unistd (Description): Change.
69792         (Depends-on): Add link-warning.
69793         (configure.ac): Update.
69794         (Makefile.am): Create unistd.h always. Substitute many new variables
69795         into it.
69796
69797 2007-02-18  Bruno Haible  <bruno@clisp.org>
69798
69799         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69800         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69801         HAVE_GETSUBOPT.
69802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69803         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69804         * lib/getsubopt.h: Remove file.
69805         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69806         (Depends-on): Add stdlib.
69807         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69808         (Includes): Use <stdlib.h> instead of getsubopt.h.
69809         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69810         Set HAVE_GETSUBOPT.
69811         * lib/getsubopt.c: Don't include getsubopt.h.
69812
69813 2007-02-18  Bruno Haible  <bruno@clisp.org>
69814
69815         * modules/fchdir (Depends-on): Add dup2.
69816
69817 2007-02-18  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/stdlib_.h: Handle glibc's special invocation convention
69820         specially.
69821
69822 2007-02-18  Bruno Haible  <bruno@clisp.org>
69823
69824         * modules/stdlib-tests: New file.
69825         * tests/test-stdlib.c: New file.
69826
69827         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69828         (Depends-on): Add stdlib.
69829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69830         (Includes): Use <stdlib.h> instead of mkstemp.h.
69831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69832         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69833         * lib/mkstemp.c: Don't include mkstemp.h.
69834         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69835         * lib/stdlib--.h: Don't include mkstemp.h.
69836
69837         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69838         (Depends-on): Add stdlib.
69839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69840         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69841         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69842         HAVE_MKDTEMP.
69843         * lib/mkdtemp.c: Don't include mkdtemp.h.
69844         * lib/clean-temp.c: Don't include mkdtemp.h.
69845
69846         * modules/exit (Files): Remove lib/exit.h.
69847         (Depends-on): Add stdlib.
69848         (Makefile.am): Remove lib_SOURCES.
69849         (Include): Use <stdlib.h> instead of exit.h.
69850         * lib/argmatch.c: Don't include exit.h.
69851         * lib/execute.c: Likewise.
69852         * lib/pagealign_alloc.c: Likewise.
69853         * lib/pipe.c: Likewise.
69854         * lib/wait-process.c: Likewise.
69855         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69856         * lib/exitfail.c: Likewise.
69857         * lib/savewd.c: Likewise.
69858         * lib/xsetenv.c: Likewise.
69859
69860         * modules/stdlib: New file.
69861         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69862         and extra comments about mkstemp().
69863         * lib/exit.h: Remove file.
69864         * lib/mkdtemp.h: Remove file.
69865         * lib/mkstemp.h: Remove file.
69866         * m4/stdlib_h.m4: New file.
69867         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69868
69869 2007-02-18  Bruno Haible  <bruno@clisp.org>
69870
69871         * modules/math-tests: New file.
69872         * tests/test-math.c: New file.
69873
69874         * modules/math: New file.
69875         * modules/mathl (Files): Remove lib/mathl.h.
69876         (Depends-on): Add math.
69877         (Makefile.am): Don't mention mathl.h.
69878         (Include): Use <math.h> instead of mathl.h.
69879         * lib/math_.h: New file.
69880         * lib/mathl.h: Remove file.
69881         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69882         mathl.h.
69883         * lib/asinl.c: Likewise.
69884         * lib/atanl.c: Likewise.
69885         * lib/ceill.c: Likewise.
69886         * lib/cosl.c: Likewise.
69887         * lib/expl.c: Likewise.
69888         * lib/floorl.c: Likewise.
69889         * lib/frexpl.c: Likewise.
69890         * lib/ldexpl.c: Likewise.
69891         * lib/logl.c: Likewise.
69892         * lib/sincosl.c: Likewise.
69893         * lib/sinl.c: Likewise.
69894         * lib/sqrtl.c: Likewise.
69895         * lib/tanl.c: Likewise.
69896         * lib/trigl.c: Likewise.
69897         * m4/math_h.m4: New file.
69898         * MODULES.html.sh (Mathematics): Add math.
69899
69900 2007-02-17  Bruno Haible  <bruno@clisp.org>
69901
69902         * modules/wctype-tests: New file.
69903         * tests/test-wctype.c: New file.
69904
69905         * modules/wchar-tests: New file.
69906         * tests/test-wchar.c: New file.
69907
69908         * modules/unistd-tests: New file.
69909         * tests/test-unistd.c: New file.
69910
69911         * modules/time-tests: New file.
69912         * tests/test-time.c: New file.
69913
69914         * modules/sysexits-tests: New file.
69915         * tests/test-sysexits.c: New file.
69916
69917         * modules/sys_time-tests: New file.
69918         * tests/test-sys_time.c: New file.
69919
69920         * modules/sys_stat-tests: New file.
69921         * tests/test-sys_stat.c: New file.
69922
69923         * modules/sys_socket-tests: New file.
69924         * tests/test-sys_socket.c: New file.
69925
69926         * modules/sys_select-tests: New file.
69927         * tests/test-sys_select.c: New file.
69928
69929         * modules/string-tests: New file.
69930         * tests/test-string.c: New file.
69931
69932         * modules/stdbool-tests: New file.
69933         * tests/test-stdbool.c: New file.
69934
69935         * modules/netinet_in-tests: New file.
69936         * tests/test-netinet_in.c: New file.
69937
69938         * modules/inttypes-tests: New file.
69939         * tests/test-inttypes.c: New file.
69940
69941         * modules/fcntl-tests: New file.
69942         * tests/test-fcntl.c: New file.
69943
69944         * modules/byteswap-tests: New file.
69945         * tests/test-byteswap.c: New file.
69946
69947         * modules/arpa_inet-tests: New file.
69948         * tests/test-arpa_inet.c: New file.
69949
69950 2007-02-17  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69953         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69954         if the corresponding module is not enabled. Emit link warnings if
69955         the function is used nevertheless.
69956         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69957         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69958         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69959         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69960         * modules/inttypes (Depends-on): Add link-warning.
69961         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69962         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69963         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69964         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69965         * modules/imaxdiv (configure.ac): Likewise.
69966         * modules/strtoimax (configure.ac): Likewise.
69967         * modules/strtoumax (configure.ac): Likewise.
69968
69969 2007-02-17  Bruno Haible  <bruno@clisp.org>
69970
69971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69972         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69973         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69974         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69975
69976 2007-02-17  Bruno Haible  <bruno@clisp.org>
69977
69978         * modules/link-warning: New file.
69979         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69980         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69981         * modules/string (Depends-on): Add link-warning.
69982         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69983         string.h.
69984         * MODULES.html.sh (Support for building libraries and executables): Add
69985         link-warning.
69986
69987 2007-02-17  Bruno Haible  <bruno@clisp.org>
69988
69989         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69990         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69991         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69992         long lines.
69993
69994 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69995             Bruno Haible  <bruno@clisp.org>
69996
69997         * modules/tmpfile: New file.
69998         * lib/tmpfile.c: New file.
69999         * m4/tmpfile.m4: New file.
70000         * MODULES.html.sh (func_all_modules): New section "Input/output".
70001
70002 2007-02-15  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70005         (supports_delete_on_close): New function.
70006         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70007
70008 2007-02-14  Bruno Haible  <bruno@clisp.org>
70009
70010         * modules/mbspcasecmp-tests: New file.
70011         * tests/test-mbspcasecmp.sh: New file.
70012         * tests/test-mbspcasecmp.c: New file.
70013
70014         New module mbspcasecmp.
70015         * modules/mbspcasecmp: New file.
70016         * lib/mbspcasecmp.c: New file.
70017         * lib/string_.h (strncasecmp): Change warning message.
70018         (mbspcasecmp): New declaration.
70019         * m4/mbspcasecmp.m4: New file.
70020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70021         GNULIB_MBSPCASECMP.
70022         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70023         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70024
70025 2007-02-14  Bruno Haible  <bruno@clisp.org>
70026
70027         * modules/mbsncasecmp-tests: New file.
70028         * tests/test-mbsncasecmp.sh: New file.
70029         * tests/test-mbsncasecmp.c: New file.
70030
70031         New module mbsncasecmp.
70032         * modules/mbsncasecmp: New file.
70033         * lib/mbsncasecmp.c: New file.
70034         * lib/string_.h (mbsncasecmp): New declaration.
70035         * m4/mbsncasecmp.m4: New file.
70036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70037         GNULIB_MBSNCASECMP.
70038         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70039         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70040
70041 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70044         Verify that it doesn't overlap with our flags.
70045         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70046         do not have the desired effect in multibyte locales; instead, use
70047         mbscasecmp.
70048         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70049         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70050         we don't require GNU fnmatch ourselves (if our users require it, they
70051         should do so explicitly).
70052
70053         Fix regex code so it doesn't rely on strcasecmp.
70054         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70055         Otherwise, include gnulib's langinfo.h.
70056         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70057         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70058         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70059         * modules/regex (FILES): Remove m4/codeset.m4.
70060         (Depends-on): Add localcharset.  Remove strcase.
70061
70062 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70063
70064         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70065         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70066
70067 2007-02-13  Bruno Haible  <bruno@clisp.org>
70068
70069         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70071
70072 2007-02-12  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70075         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70076         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70077         time warning rather than a link error.
70078
70079 2007-02-12  Bruno Haible  <bruno@clisp.org>
70080
70081         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70082         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70084
70085 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70088         args, not 2.
70089
70090 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         New module 'time', so that apps can include <time.h> as per
70093         POSIX and GNU instead of separate include files like time_r.h
70094         and timegm.h.  This implementation tries out a simpler approach
70095         for replacing decls in standard include files (as compared to
70096         the string module), somewhat as an experiment.
70097
70098         * config/srclist.txt: Comment out mktime.c for now.
70099         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70100         since it doesn't apply any more.  Use generic wording instead.
70101         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70102         'time'.
70103         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70104         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70105         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70106         Don't include <sys/types.h>; no longer needed since we assume C89.
70107         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70108         * lib/strftime.c: Likewise.
70109         * lib/time_r.c: Likewise.
70110         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70111         * lib/nanosleep.c: Include <time.h> first, to check interface.
70112         * lib/strptime.c: Likewise.
70113         * lib/time_r.c: Likewise.
70114         * lib/timegm.c: Likewise.
70115         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70116         needed.
70117         * lib/timegm.c: Don't include timegm.h; no longer needed.
70118         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70119         time.h now handles any problems in that area.
70120         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70121         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70122         that time.h defines struct timespec.
70123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70124         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70125         handles that.
70126         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70127         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70128         needed.  Set REPLACE_LOCALTIME.
70129         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70130         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70131         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70132         nanosleep; time_h.m4 now does that.  Don't require
70133         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70134         module handles this now.
70135         * modules/getdate (Depends-on): Remove timespec.  Add time.
70136         * modules/nanosleep (Depends-on): Likewise.
70137         * modules/stat-time (Depends-on): Likewise.
70138         * modules/nanosleep (Include): Include time.h, not timespec.h.
70139         * modules/strptime (Files): Remove lib/strptime.h.
70140         (Depends-on): Add extensions, time.
70141         (Include): Include time.h, not strptime.h.
70142         * modules/time_r (Files): Remove lib/time_r.h.
70143         (Depends-on): Add time.
70144         (Include): Include time.h, not time_r.h.
70145         * modules/timegm: Likewise.
70146         * modules/timespec (Description): Now does timespec-related decls
70147         of our own, instead of struct timespec itself.
70148         (Depends-on): Add time; remove extensions.
70149         (Maintainer): Add self.
70150         * modules/utimecmp (Depends-on): Add time; remove timespec.
70151         * modules/utimens (Depends-on): Likewise.
70152         * modules/xnanosleep (Depends-on): Likewise.
70153
70154 2007-02-11  Bruno Haible  <bruno@clisp.org>
70155
70156         * lib/c-strstr.c: Include allocsa.h.
70157         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70158         * lib/c-strcasestr.c: Include allocsa.h.
70159         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70160         * lib/strcasestr.c: Include allocsa.h.
70161         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70162         * lib/mbsstr.c: Include allocsa.h.
70163         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70164         allocsa/freesa instead of malloc/free.
70165         * lib/mbscasestr.c: Include allocsa.h.
70166         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70167         allocsa/freesa instead of malloc/free.
70168         * modules/c-strstr (Depends-on): Add allocsa.
70169         * modules/c-strcasestr (Depends-on): Likewise.
70170         * modules/strcasestr (Depends-on): Likewise.
70171         * modules/mbsstr (Depends-on): Likewise.
70172         * modules/mbscasestr (Depends-on): Likewise.
70173
70174 2007-02-11  Bruno Haible  <bruno@clisp.org>
70175
70176         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70177
70178         * modules/mbsspn-tests: New file.
70179         * tests/test-mbsspn.sh: New file.
70180         * tests/test-mbsspn.c: New file.
70181
70182 2007-02-11  Bruno Haible  <bruno@clisp.org>
70183
70184         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70185
70186         * modules/mbspbrk-tests: New file.
70187         * tests/test-mbspbrk.sh: New file.
70188         * tests/test-mbspbrk.c: New file.
70189
70190 2007-02-11  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70193         unneeded cast.
70194
70195         * modules/mbscspn-tests: New file.
70196         * tests/test-mbscspn.sh: New file.
70197         * tests/test-mbscspn.c: New file.
70198
70199 2007-02-11  Bruno Haible  <bruno@clisp.org>
70200
70201         * modules/mbscasecmp-tests: New file.
70202         * tests/test-mbscasecmp.sh: New file.
70203         * tests/test-mbscasecmp.c: New file.
70204
70205 2007-02-11  Bruno Haible  <bruno@clisp.org>
70206
70207         Ensure O(n) worst-case complexity of mbscasestr.
70208         * lib/mbscasestr.c: Include stdbool.h.
70209         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70210         functions.
70211         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70212         the bookkeeping indicates that it's worth it.
70213         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70214
70215         * modules/mbscasestr-tests: New file.
70216         * tests/test-mbscasestr1.c: New file.
70217         * tests/test-mbscasestr2.sh: New file.
70218         * tests/test-mbscasestr2.c: New file.
70219         * tests/test-mbscasestr3.sh: New file.
70220         * tests/test-mbscasestr3.c: New file.
70221         * tests/test-mbscasestr4.sh: New file.
70222         * tests/test-mbscasestr4.c: New file.
70223         * m4/locale-tr.m4: New file.
70224
70225 2007-02-11  Bruno Haible  <bruno@clisp.org>
70226
70227         Ensure O(n) worst-case complexity of mbsstr.
70228         * lib/mbsstr.c: Include stdbool.h.
70229         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70230         functions.
70231         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70232         bookkeeping indicates that it's worth it.
70233         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70234
70235         * modules/mbsstr-tests: New file.
70236         * tests/test-mbsstr1.c: New file.
70237         * tests/test-mbsstr2.sh: New file.
70238         * tests/test-mbsstr2.c: New file.
70239         * tests/test-mbsstr3.sh: New file.
70240         * tests/test-mbsstr3.c: New file.
70241         * m4/locale-fr.m4: New file.
70242
70243 2007-02-11  Bruno Haible  <bruno@clisp.org>
70244
70245         * lib/mbsrchr.c (mbsrchr): Fix bug.
70246
70247         * modules/mbsrchr-tests: New file.
70248         * tests/test-mbsrchr.sh: New file.
70249         * tests/test-mbsrchr.c: New file.
70250
70251 2007-02-11  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/mbschr.c (mbschr): Fix bug.
70254
70255         * modules/mbschr-tests: New file.
70256         * tests/test-mbschr.sh: New file.
70257         * tests/test-mbschr.c: New file.
70258         * m4/locale-zh.m4: New file.
70259
70260 2007-02-11  Bruno Haible  <bruno@clisp.org>
70261
70262         Support for copying multibyte string iterators.
70263         * lib/mbiter.h: Include <string.h>.
70264         (mbiter_multi_copy): New function.
70265         (mbi_copy): New macro.
70266         * lib/mbuiter.h: Include <string.h>.
70267         (mbuiter_multi_copy): New function.
70268         (mbui_copy): New macro.
70269
70270 2007-02-11  Bruno Haible  <bruno@clisp.org>
70271
70272         New module mbslen.
70273         * modules/mbslen: New file.
70274         * lib/mbslen.c: New file.
70275         * lib/string_.h (mbslen): New declaration.
70276         * m4/mbslen.m4: New file.
70277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70278         GNULIB_MBSLEN.
70279         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70280         * MODULES.html.sh (Internationalization functions): Add mbslen.
70281
70282 2007-02-11  Bruno Haible  <bruno@clisp.org>
70283
70284         Ensure O(n) worst-case complexity of strcasestr substitute.
70285         * lib/strcasestr.c: Include stdbool.h.
70286         (knuth_morris_pratt): New function.
70287         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70288         bookkeeping indicates that it's worth it.
70289         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70290
70291         * modules/strcasestr-tests: New file.
70292         * tests/test-strcasestr.c: New file.
70293
70294 2007-02-11  Bruno Haible  <bruno@clisp.org>
70295
70296         Ensure O(n) worst-case complexity of c_strcasestr.
70297         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70298         (knuth_morris_pratt): New function.
70299         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70300         the bookkeeping indicates that it's worth it.
70301         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70302
70303         * modules/c-strcasestr-tests: New file.
70304         * tests/test-c-strcasestr.c: New file.
70305
70306 2007-02-11  Bruno Haible  <bruno@clisp.org>
70307
70308         Ensure O(n) worst-case complexity of c_strstr.
70309         * lib/c-strstr.c: Include stdbool.h, string.h.
70310         (knuth_morris_pratt): New function.
70311         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70312         bookkeeping indicates that it's worth it.
70313         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70314
70315         * lib/c-strstr.c: Complete rewrite for maintainability.
70316
70317         * modules/c-strstr-tests: New file.
70318         * tests/test-c-strstr.c: New file.
70319
70320 2007-02-11  Bruno Haible  <bruno@clisp.org>
70321
70322         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70323         5.2.1 and earlier, whereby \055 was treated just like the range
70324         delimiter '-'.
70325         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70326
70327 2007-02-08  Bruno Haible  <bruno@clisp.org>
70328
70329         * modules/regex (Depends-on): Add stdbool.
70330         Reported by Dalibor Topic <robilad@kaffe.org>.
70331
70332 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70335         Prefer returning from main to exiting from it.
70336         Remove unnecessary parens after sizeof.
70337
70338 2007-02-05  Bruno Haible  <bruno@clisp.org>
70339
70340         New module mbssep.
70341         * modules/mbssep: New file.
70342         * lib/mbssep.c: New file.
70343         * lib/string_.h (strsep): Add a conditional link warning.
70344         (mbssep): New declaration.
70345         * m4/mbssep.m4: New file.
70346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70347         GNULIB_MBSSEP.
70348         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70349         * MODULES.html.sh (Internationalization functions): Add mbssep.
70350
70351 2007-02-05  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70354         Optimize search in case of 1 delimiter.
70355
70356 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70357
70358         * lib/acl.h: Include sys/types.h before sys/acl.h.
70359
70360 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70361
70362         Merge upstream fix for glibc bugzilla #3957:
70363
70364         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70365
70366         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70367         bit for RE_HAT_LISTS_NOT_NEWLINE.
70368         (build_charclass_op): Remove bogus comment.
70369
70370 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70371
70372         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70373
70374 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70375
70376         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70377         * lib/memmem.c [!defined _LIBC]: Include config.h.
70378
70379 2007-02-04  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70382         warning message.
70383
70384 2007-02-04  Bruno Haible  <bruno@clisp.org>
70385
70386         New module mbstok_r.
70387         * modules/mbstok_r: New file.
70388         * lib/mbstok_r.c: New file.
70389         * lib/string_.h (strtok_r): Change argument names to match the
70390         comments. Add a conditional link warning.
70391         (mbstok_r): New declaration.
70392         * m4/mbstok_r.m4: New file.
70393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70394         GNULIB_MBSTOK_R.
70395         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70396         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70397
70398 2007-02-04  Bruno Haible  <bruno@clisp.org>
70399
70400         New module mbsspn.
70401         * modules/mbsspn: New file.
70402         * lib/mbsspn.c: New file.
70403         * lib/string_.h (strspn): Add a conditional link warning.
70404         (mbsspn): New declaration.
70405         * m4/mbsspn.m4: New file.
70406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70407         GNULIB_MBSSPN.
70408         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70409         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70410
70411 2007-02-04  Bruno Haible  <bruno@clisp.org>
70412
70413         New module mbspbrk.
70414         * modules/mbspbrk: New file.
70415         * lib/mbspbrk.c: New file.
70416         * lib/string_.h (strpbrk): Add a conditional link warning.
70417         (mbspbrk): New declaration.
70418         * m4/mbspbrk.m4: New file.
70419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70420         GNULIB_MBSPBRK.
70421         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70422         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70423
70424 2007-02-04  Bruno Haible  <bruno@clisp.org>
70425
70426         New module mbscspn.
70427         * modules/mbscspn: New file.
70428         * lib/mbscspn.c: New file.
70429         * lib/string_.h (strcspn): Add a conditional link warning.
70430         (mbscspn): New declaration.
70431         * m4/mbscspn.m4: New file.
70432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70433         GNULIB_MBSCSPN.
70434         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70435         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70436
70437 2007-02-04  Bruno Haible  <bruno@clisp.org>
70438
70439         New module mbscasestr, reduced goal of strcasestr.
70440         * modules/mbscasestr: New file.
70441         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70442         (mbscasestr): Renamed from strcasestr.
70443         * lib/strcasestr.c: Don't include mbuiter.h.
70444         (strcasestr): Remove support for multibyte locales.
70445         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70446         Change the conditional link warning.
70447         (mbscasestr): New declaration.
70448         * m4/mbscasestr.m4: New file.
70449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70450         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70451         REPLACE_STRCASESTR.
70452         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70454         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70455         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70456         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70457         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70458         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70459         (Depends-on): Remove mbuiter.
70460         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70461
70462 2007-02-04  Bruno Haible  <bruno@clisp.org>
70463
70464         Simplify handling of strncasecmp.
70465         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70466         the conditional link warning.
70467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70468         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70469         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70470         * modules/strcase (configure.ac): Don't invoke
70471         gl_STRING_MODULE_INDICATOR.
70472         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70473
70474 2007-02-04  Bruno Haible  <bruno@clisp.org>
70475
70476         New module mbscasecmp, reduced goal of strcasecmp.
70477         * modules/mbscasecmp: New file.
70478         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70479         (mbscasecmp): Renamed from strcasecmp.
70480         * lib/strcasecmp.c: Don't include mbuiter.h.
70481         (strcasecmp): Remove support for multibyte locales.
70482         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70483         Change the conditional link warning.
70484         (mbscasecmp): New declaration.
70485         * m4/mbscasecmp.m4: New file.
70486         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70487         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70488         REPLACE_STRCASECMP.
70489         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70491         GNULIB_MBSCASECMP.
70492         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70493         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70494         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70495         (Depends-on): Remove mbuiter.
70496         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70497
70498 2007-02-04  Bruno Haible  <bruno@clisp.org>
70499
70500         New module mbsstr. Remove module strstr.
70501         * modules/mbsstr: New file.
70502         * modules/strstr: Remove file.
70503         * lib/mbsstr.c: Renamed from lib/strstr.c.
70504         (mbsstr): Renamed from strstr.
70505         * lib/string_.h (strstr): Remove declaration. Change the conditional
70506         link warning.
70507         (mbsstr): New declaration.
70508         * m4/mbsstr.m4: New file.
70509         * m4/strstr.m4: Remove file.
70510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70511         REPLACE_STRSTR.
70512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70513         Don't initialize GNULIB_STRSTR.
70514         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70515         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70516         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70517         (Support for systems lacking ANSI C 89): Remove strstr.
70518
70519 2007-02-04  Bruno Haible  <bruno@clisp.org>
70520
70521         New module mbsrchr.
70522         * modules/mbsrchr: New file.
70523         * lib/mbsrchr.c: New file.
70524         * lib/string_.h (strrchr): Add a conditional link warning.
70525         (mbsrchr): New declaration.
70526         * m4/mbsrchr.m4: New file.
70527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70528         GNULIB_MBSRCHR.
70529         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70530         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70531
70532 2007-02-04  Bruno Haible  <bruno@clisp.org>
70533
70534         New module mbschr.
70535         * modules/mbschr: New file.
70536         * lib/mbschr.c: New file.
70537         * lib/string_.h (strchr): Add a conditional link warning.
70538         (mbschr): New declaration.
70539         * m4/mbschr.m4: New file.
70540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70541         GNULIB_MBSCHR.
70542         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70543         * MODULES.html.sh (Internationalization functions): Add mbschr.
70544
70545 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70548
70549         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70550
70551 2007-02-04  Bruno Haible  <bruno@clisp.org>
70552
70553         New module description section 'configure.ac-early'.
70554         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70555         (func_get_autoconf_early_snippet): New function.
70556         (func_import, func_create_testdir): Use it. Remove special cases for
70557         modules 'extensions' and 'lock'.
70558         * modules/extensions (configure.ac-early): Require
70559         gl_USE_SYSTEM_EXTENSIONS.
70560         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70561
70562 2007-02-04  Bruno Haible  <bruno@clisp.org>
70563
70564         Make use of gcj-4.3's -fsource and -ftarget option.
70565         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70566         and if so try the options -fsource and -ftarget.
70567         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70568         source_version, ftarget_option, target_version arguments.
70569         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70570         (is_envjavac_oldgcj_14_14_usable): Renamed from
70571         is_envjavac_gcj_14_14_usable.
70572         (is_envjavac_oldgcj_14_13_usable): Renamed from
70573         is_envjavac_gcj_14_13_usable.
70574         (is_gcj_present): Update.
70575         (is_gcj_43, is_gcj43_usable): New functions.
70576         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70577         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70578         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70579         try the options -fsource and -ftarget.
70580
70581 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70584         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70585         larger value.
70586
70587 2007-02-03  Jim Meyering  <jim@meyering.net>
70588
70589         Give tools a better chance to allocate space for very large buffers.
70590         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70591
70592         Make pwd and readlink work also when run with an unreadable parent dir
70593         on systems with openat support.
70594         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70595         provided getcwd function, even when we have openat support.
70596         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70597
70598 2007-02-02  Bruno Haible  <bruno@clisp.org>
70599
70600         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70601         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70602         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70603         portability problems if one of these functions is only used on specific
70604         platforms.
70605         Reported by Paul Eggert.
70606
70607 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70610         is causing more trouble than it's curing.
70611         * lib/regex_internal.h (__mempcpy): Remove.
70612         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70613         (and make the code a tad smaller to boot).
70614         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70615
70616 2007-02-02  Jim Meyering  <jim@meyering.net>
70617
70618         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70619         section, not in the Makefile.am: one.
70620
70621 2007-02-02  Eric Blake  <ebb9@byu.net>
70622
70623         * lib/strchrnul.c: Always include config.h first.
70624
70625         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70626         gnulib strstr is not necessary here.
70627
70628 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70629
70630         * m4/socklen.m4: Fix typo.
70631
70632 2007-02-02  Eric Blake  <ebb9@byu.net>
70633
70634         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70635         * modules/netinet_in (Makefile.am): Likewise.
70636
70637 2007-02-01  Bruno Haible  <bruno@clisp.org>
70638
70639         * lib/string_.h (GL_LINK_WARNING): New macro.
70640         (strcasecmp, strstr, strcasestr): If provided by the system,
70641         conditionally define as a macro that leads to a warning instead of to
70642         an error.
70643         (strncasecmp): Conditionally define as a macro that leads to a warning.
70644
70645 2007-02-01  Karl Berry  <karl@gnu.org>
70646
70647         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70648
70649 2007-02-01  Bruno Haible  <bruno@clisp.org>
70650
70651         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70652         renamings.
70653
70654 2007-02-01  Eric Blake  <ebb9@byu.net>
70655
70656         * modules/regex (Depends-on): Revert dependence on mempcpy.
70657         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70658         module's definition of mempcpy.
70659         Reported by Paul Eggert.
70660
70661 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70662
70663         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70664         the symbol XYZ before redefining it.  This fixes a problem with
70665         programs that don't use XYZ, when compiled on systems that define
70666         XYZ to something else.
70667
70668 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70671         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70672         writeable to group or other and (2) is intended to have a special
70673         mode bit that is set or cleared.  In such a case, the directory
70674         should be neither group- nor other-writeable until the special
70675         mode bits are right.
70676
70677 2007-01-31  Eric Blake  <ebb9@byu.net>
70678
70679         * modules/mountlist (Depends-on): Add strstr.
70680
70681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70682         bug.
70683         * modules/string (Makefile.am): Remove redundant replacement.
70684         * modules/regex (Depends-on): Add mempcpy.
70685
70686 2007-01-31  Bruno Haible  <bruno@clisp.org>
70687
70688         New module description field 'Link'.
70689         * gnulib-tool (func_usage): Document --extract-link-directive.
70690         (sed_extract_prog): Recognize 'Link' directive.
70691         (func_get_link_directive): New function.
70692         (func_import): Show summary of link directives.
70693         Handle --extract-link-directive option.
70694         * modules/acl (Link): New section.
70695         * modules/clock-time (Link): New section.
70696         * modules/euidaccess (Link): New section.
70697         * modules/gettext (Link): New section.
70698         * modules/iconv (Link): New section.
70699         * modules/lock (Link): New section.
70700         * modules/nanosleep (Link): New section.
70701         * modules/readline (Link): New section.
70702
70703 2007-01-27  Bruno Haible  <bruno@clisp.org>
70704
70705         Enforce the use of gnulib modules for unportable <string.h> functions.
70706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70707         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70708         (gl_HEADER_STRING_H_BODY): Require it.
70709         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70710         the symbol XYZ to one that gives a link error.
70711         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70712         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70713         * modules/mempcpy (configure.ac): Likewise.
70714         * modules/memrchr (configure.ac): Likewise.
70715         * modules/stpcpy (configure.ac): Likewise.
70716         * modules/stpncpy (configure.ac): Likewise.
70717         * modules/strcase (configure.ac): Likewise.
70718         * modules/strcasestr (configure.ac): Likewise.
70719         * modules/strchrnul (configure.ac): Likewise.
70720         * modules/strdup (configure.ac): Likewise.
70721         * modules/strndup (configure.ac): Likewise.
70722         * modules/strnlen (configure.ac): Likewise.
70723         * modules/strpbrk (configure.ac): Likewise.
70724         * modules/strsep (configure.ac): Likewise.
70725         * modules/strstr (configure.ac): Likewise.
70726         * modules/strtok_r (configure.ac): Likewise.
70727
70728 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70729
70730         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70731
70732 2007-01-30  Jim Meyering  <jim@meyering.net>
70733
70734         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70735
70736 2007-01-29  Bruno Haible  <bruno@clisp.org>
70737
70738         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70739         * lib/execute.c: Likewise.
70740         * lib/pipe.c: Likewise.
70741         * lib/printf-args.h: Likewise.
70742         * lib/printf-args.c: Likewise.
70743         * lib/printf-parse.c: Likewise.
70744         * lib/vasnprintf.c: Likewise.
70745
70746 2007-01-29  Eric Blake  <ebb9@byu.net>
70747
70748         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70749         declaration.
70750
70751 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * lib/strptime.h (strptime): Use 'restrict' for args where
70754         POSIX requires this.
70755         * lib/strptime.c (strptime): Likewise.
70756         Change license notice from LGPL to GPL, since gnulib-tool will
70757         change this as needed.
70758         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70759         defined.
70760         Include "strptime.h" first, to check interface.
70761         Do not #undef _LIBC and _NL_CURRENT.
70762         Do not include <stdlib.h>; no longer needed.
70763         Include "time_r.h" and declare ptime_locale_status
70764         only if _LIBC is not defined.
70765         (__P): Remove unused macro.
70766         (match_string): Bring back glibc version, but use it only if _LIBC
70767         is defined.
70768         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70769         Remove unnecessary assertion and abort() call.
70770         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70771         * m4/strptime.m4: Fix serial number comment.
70772         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70773         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70774         (Depends-on): Add time_r.
70775
70776 2007-01-29  Bruno Haible  <bruno@clisp.org>
70777
70778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70779         strptime.
70780         * modules/strptime (Depends-on): Add stdbool.
70781         * lib/strptime.h: Include <time.h> always. Add comments.
70782
70783 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70784
70785         * modules/strptime: New file.
70786         * lib/strptime.h: New file.
70787         * lib/strptime.c: New file.
70788         * m4/strptime.m4: New file.
70789
70790 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * MODULES.html.sh: New module mpsort.
70793         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70794
70795         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70796         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70798         All uses changed.
70799         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70800         All uses changed.
70801         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70802         to _Restrict_.
70803         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70804         the parameter matches the prototype.
70805
70806 2007-01-28  Jim Meyering  <jim@meyering.net>
70807
70808         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70809         sys/time.h here, reverting that part of the previous patch:
70810         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70811
70812 2007-01-28  Bruno Haible  <bruno@clisp.org>
70813
70814         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70815         value of $(SYS_TIME_H).
70816         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70817         remove it conditionally, too. [added by Jim Meyering]
70818         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70820         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70821         GETTIMEOFDAY_REPLACEMENT to 1.
70822
70823 2007-01-28  Bruno Haible  <bruno@clisp.org>
70824
70825         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70826         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70828         Set UNISTD_H instead of UNISTD_H2.
70829         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70830
70831 2007-01-28  Bruno Haible  <bruno@clisp.org>
70832
70833         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70834         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70835
70836 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70837
70838         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70839         (func_create_testdir): Ensure C locale for `grep' and `tr'
70840         character ranges.
70841         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70842         ACLOCAL_AMFLAGS parsing state machine.
70843
70844 2007-01-27  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/unistr/base: Update.
70847
70848 2007-01-27  Bruno Haible  <bruno@clisp.org>
70849
70850         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70851         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70852         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70853         modules/unistr/u32-mbtouc.
70854         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70855         * lib/unistr.h: Update.
70856         * lib/linebreak.c: Update.
70857         * modules/unistr/u32-mbtouc: Renamed from
70858         modules/unistr/u32-mbtouc-safe.
70859         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70860         * lib/unistr.h: Update.
70861         * lib/unistr/u32-to-u8.c: Update.
70862         * lib/unistr/u32-to-u16.c: Update.
70863
70864 2007-01-27  Bruno Haible  <bruno@clisp.org>
70865
70866         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70867         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70868         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70869         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70870         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70871         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70872         modules/unistr/u16-mbtouc.
70873         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70874         * lib/unistr.h: Update.
70875         * lib/linebreak.c: Update.
70876         * modules/linebreak: Update.
70877         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70878         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70879         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70880         * modules/unistr/u16-mbtouc: Renamed from
70881         modules/unistr/u16-mbtouc-safe.
70882         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70883         * lib/unistr.h: Update.
70884         * lib/unistr/u16-to-u8.c: Update.
70885         * modules/unistr/u16-to-u8: Update.
70886         * lib/unistr/u16-to-u32.c: Update.
70887         * modules/unistr/u16-to-u32: Update.
70888
70889 2007-01-27  Bruno Haible  <bruno@clisp.org>
70890
70891         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70892         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70893         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70894         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70895         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70896         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70897         modules/unistr/u8-mbtouc.
70898         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70899         * lib/unistr.h: Update.
70900         * lib/striconveh.c: Update.
70901         * modules/striconveh: Update.
70902         * lib/linebreak.c: Update.
70903         * modules/linebreak: Update.
70904         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70905         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70906         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70907         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70908         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70909         * lib/unistr.h: Update.
70910         * lib/striconveh.c: Update.
70911         * modules/striconveh: Update.
70912         * lib/unistr/u8-to-u16.c: Update.
70913         * modules/unistr/u8-to-u16: Update.
70914         * lib/unistr/u8-to-u32.c: Update.
70915         * modules/unistr/u8-to-u32: Update.
70916
70917 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70918
70919         Sync from Libtool.
70920         * lib/argz.c: Do not include strings.h nor memory.h, include
70921         string.h unconditionally.  Patch by Simon Josefsson.
70922
70923 2007-01-27  Bruno Haible  <bruno@clisp.org>
70924
70925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70926         from gl_HEADER_STRING_H_BODY.
70927         (gl_HEADER_STRING_H_BODY): Require it.
70928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70929         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70930         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70931         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70932         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70933         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70935         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70936         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70937         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70938         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70939         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70940         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70941         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70942         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70943
70944 2007-01-27  Bruno Haible  <bruno@clisp.org>
70945
70946         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70947         check_PROGRAMS into noinst_PROGRAMS.
70948         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70949         check_PROGRAMS in this case.
70950         (func_import): Set for_test to false.
70951         (func_create_testdir): Set for_test to true.
70952
70953 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70954             Bruno Haible  <bruno@clisp.org>
70955
70956         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70957         (Depends-on): Add string.
70958         (Includes): Use <string.h> instead of strcasestr.h.
70959         * modules/string (Makefile.am): Also substitute the value of
70960         REPLACE_STRCASESTR.
70961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70962         assume strcasestr is declared in <string.h> not <strings.h>. Also
70963         set REPLACE_STRCASESTR.
70964         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70965         REPLACE_STRCASESTR.
70966         * lib/strcasestr.h: Remove file.
70967         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70968         * lib/string_.h (strcasestr): New declaration.
70969
70970 2007-01-27  Bruno Haible  <bruno@clisp.org>
70971
70972         * lib/string_.h: Use 'extern'.
70973
70974 2007-01-27  Jim Meyering  <jim@meyering.net>
70975
70976         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70977         of set-but-not-used local, "q".
70978
70979         * lib/mempcpy.c: Include <config.h> before <string.h>.
70980         This fixes a compilation error on HP-UX, due to the system's
70981         "restrict"-using mempcpy prototype.
70982
70983 2007-01-26  Bruno Haible  <bruno@clisp.org>
70984
70985         Small optimization.
70986         * lib/javacomp.c: Include c-strstr.h.
70987          (is_envjavac_gcj): Use c_strstr instead of strstr.
70988         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70989
70990 2007-01-26  Bruno Haible  <bruno@clisp.org>
70991
70992         * MODULES.html.sh (Unicode string functions): Add the new modules.
70993
70994         * modules/uniconv/u32-strconv-to-locale: New file.
70995         * lib/uniconv/u32-strconv-to-locale.c: New file.
70996
70997         * modules/uniconv/u16-strconv-to-locale: New file.
70998         * lib/uniconv/u16-strconv-to-locale.c: New file.
70999
71000         * modules/uniconv/u8-strconv-to-locale: New file.
71001         * lib/uniconv/u8-strconv-to-locale.c: New file.
71002
71003         * modules/uniconv/u32-strconv-from-locale: New file.
71004         * lib/uniconv/u32-strconv-from-locale.c: New file.
71005
71006         * modules/uniconv/u16-strconv-from-locale: New file.
71007         * lib/uniconv/u16-strconv-from-locale.c: New file.
71008
71009         * modules/uniconv/u8-strconv-from-locale: New file.
71010         * lib/uniconv/u8-strconv-from-locale.c: New file.
71011
71012         * modules/uniconv/u32-strconv-to-enc: New file.
71013         * lib/uniconv/u32-strconv-to-enc.c: New file.
71014         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71015         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71016
71017         * modules/uniconv/u16-strconv-to-enc: New file.
71018         * lib/uniconv/u16-strconv-to-enc.c: New file.
71019         * lib/uniconv/u-strconv-to-enc.h: New file.
71020         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71021         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71022
71023         * modules/uniconv/u8-strconv-to-enc: New file.
71024         * lib/uniconv/u8-strconv-to-enc.c: New file.
71025         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71026         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71027
71028         * modules/uniconv/u32-strconv-from-enc: New file.
71029         * lib/uniconv/u32-strconv-from-enc.c: New file.
71030         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71031         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71032
71033         * modules/uniconv/u16-strconv-from-enc: New file.
71034         * lib/uniconv/u16-strconv-from-enc.c: New file.
71035         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71036         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71037
71038         * modules/uniconv/u8-strconv-from-enc: New file.
71039         * lib/uniconv/u8-strconv-from-enc.c: New file.
71040         * lib/uniconv/u-strconv-from-enc.h: New file.
71041         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71042         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71043
71044         * modules/uniconv/u32-conv-from-enc: New file.
71045         * lib/uniconv/u32-conv-from-enc.c: New file.
71046         * modules/uniconv/u32-conv-from-enc-tests: New file.
71047         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71048
71049         * modules/uniconv/u16-conv-from-enc: New file.
71050         * lib/uniconv/u16-conv-from-enc.c: New file.
71051         * lib/uniconv/u-conv-from-enc.h: New file.
71052         * modules/uniconv/u16-conv-from-enc-tests: New file.
71053         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71054
71055         * modules/uniconv/u8-conv-from-enc: New file.
71056         * lib/uniconv/u8-conv-from-enc.c: New file.
71057         * modules/uniconv/u8-conv-from-enc-tests: New file.
71058         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71059
71060         * modules/uniconv/base: New file.
71061         * lib/uniconv.h: New file.
71062
71063 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71064
71065         * doc/gnulib-tool.texi (Initial import): Update to match current
71066         behavior with strdup module.
71067         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71068         * lib/memmem.h: Remove; all uses removed.  This is now done
71069         by <string.h>.
71070         * lib/mempcpy.h: Likewise.
71071         * lib/memrchr.h: Likewise.
71072         * lib/stpcpy.h: Likewise.
71073         * lib/stpncpy.h: Likewise.
71074         * lib/strcase.h: Likewise.
71075         * lib/strchrnul.h: Likewise.
71076         * lib/strdup.h: Likewise.
71077         * lib/strndup.h: Likewise.
71078         * lib/strnlen.h: Likewise.
71079         * lib/strpbrk.h: Likewise.
71080         * lib/strsep.h: Likewise.
71081         * lib/strstr.h: Likewise.
71082         * lib/strtok_r.h: Likewise.
71083         * lib/string_.h: New file.
71084         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71085         Rely on <string.h> instead.
71086         * lib/canon-host.c: Likewise.
71087         * lib/chdir-long.c: Likewise.
71088         * lib/concatpath.c: Likewise.
71089         * lib/exclude.c: Likewise.
71090         * lib/fchdir.c: Likewise.
71091         * lib/getaddrinfo.c: Likewise.
71092         * lib/getcwd.c: Likewise.
71093         * lib/getsubopt.c: Likewise.
71094         * lib/glob.c: Likewise.
71095         * lib/hard-locale.c: Likewise.
71096         * lib/iconvme.c: Likewise.
71097         * lib/javacomp.c: Likewise.
71098         * lib/mempcpy.c: Likewise.
71099         * lib/memrchr.c: Likewise.
71100         * lib/regex_internal.h: Likewise.
71101         * lib/stpncpy.c: Likewise.
71102         * lib/strcasecmp.c: Likewise.
71103         * lib/strchrnul.c: Likewise.
71104         * lib/strdup.c: Likewise.
71105         * lib/striconv.c: Likewise.
71106         * lib/striconveh.c: Likewise.
71107         * lib/striconveha.c: Likewise.
71108         * lib/strncasecmp.c: Likewise.
71109         * lib/strndup.c: Likewise.
71110         * lib/strnlen.c: Likewise.
71111         * lib/strsep.c: Likewise.
71112         * lib/strstr.c: Likewise.
71113         * lib/strtok_r.c: Likewise.
71114         * lib/userspec.c: Likewise.
71115         * lib/w32spawn.h: Likewise.
71116         * lib/xstrndup.c: Likewise.
71117         * lib/mountlist.c (strstr): Remove decl.
71118         * m4/string_h.m4: New file.
71119         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71120         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71121         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71122         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71123         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71124         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71125         Set REPLACE_STRCASECMP if necessary.
71126         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71127         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71128         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71129         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71130         HAVE_DECL_STRDUP if necessary.
71131         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71132         since gl_FUNC_STRNDUP does that now.
71133         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71134         Check for decl here...
71135         (gl_PREREQ_STRNLEN): ... not here.
71136         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71137         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71138         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71139         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71140         necessary.
71141         * modules/string: New file.
71142         * modules/memmem (Files): Remove special-purpose include file.
71143         (Depends-on): Add string.
71144         (Include): Include <string.h>, not the removed file.
71145         * modules/mempcpy: Likewise.
71146         * modules/memrchr: Likewise.
71147         * modules/stpcpy: Likewise.
71148         * modules/stpncpy: Likewise.
71149         * modules/strcase: Likewise.
71150         * modules/strchrnul: Likewise.
71151         * modules/strdup: Likewise.
71152         * modules/strndup: Likewise.
71153         * modules/strnlen: Likewise.
71154         * modules/strpbrk: Likewise.
71155         * modules/strsep: Likewise.
71156         * modules/strstr: Likewise.
71157         * modules/strtok_r: Likewise.
71158         * tests/test-dirname.c: Don't include "strdup.h", since
71159         <string.h> now suffices.
71160         * tests/test-memmem.c: Don't include "memmem.h", since
71161         <string.h> now suffices.
71162
71163 2007-01-25  Bruno Haible  <bruno@clisp.org>
71164
71165         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71166         *resultp is 0.
71167
71168         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71169         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71170         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71171         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71172
71173         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71174         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71175         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71176         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71177         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71178         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71179
71180 2007-01-24  Bruno Haible  <bruno@clisp.org>
71181
71182         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71184         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71185         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71186         gl_FUNC_FTS_CORE.
71187         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71188         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71189         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71190         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71191         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71192         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71193         gl_FUNC_FCHOWNAT.
71194         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71195         gl_FUNC_STRFTIME.
71196         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71197         Reported by Ralf Wildenhues.
71198
71199 2007-01-24  Bruno Haible  <bruno@clisp.org>
71200
71201         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71202         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71203         gl_GETADDRINFO.
71204         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71205         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71206         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71207
71208 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71211         Don't use 'exit'; just return from 'main'.
71212         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71213
71214         * lib/fnmatch_.h: Readjust white space and comments to match
71215         glibc, to avoid spurious diffs.
71216
71217 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71220         2004-12-01 change by Jakub Jelinek, since this code won't compile
71221         if !LIBC.  Problem reported by Bob Proulx.
71222
71223 2007-01-23  Bruno Haible  <bruno@clisp.org>
71224
71225         * lib/striconveh.c: Include c-strcaseeq.h.
71226         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71227         * modules/striconveh (Depends-on): Add c-strcaseeq.
71228
71229 2007-01-23  Bruno Haible  <bruno@clisp.org>
71230
71231         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71232
71233         * modules/c-strcaseeq: New file.
71234         * lib/c-strcaseeq.h: New file.
71235
71236         * modules/streq: New file.
71237         * lib/streq.h: New file.
71238
71239 2007-01-23  Bruno Haible  <bruno@clisp.org>
71240
71241         * modules/striconveha-tests: New file.
71242         * tests/test-striconveha.c: New file.
71243
71244         * lib/striconveha.h: Include <stdbool.h>.
71245         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71246         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71247         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71248         (mem_iconveha): New function.
71249         (str_iconveha_notranslit): Renamed from str_iconveha.
71250         (str_iconveha): New function.
71251         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71252         c-strcase.
71253
71254 2007-01-23  Bruno Haible  <bruno@clisp.org>
71255
71256         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71257         encodings without forgiving before trying any encoding with handler.
71258         (str_iconveha): Try all encodings without forgiving before trying any
71259         encoding with handler.
71260
71261 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71262
71263         Import the following changes from libc.
71264
71265         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71266
71267         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71268
71269         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71270
71271         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71272         normal_bracket label.
71273
71274         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71275
71276         [BZ #361]
71277         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71278         to normal_bracket after fetching the next character.
71279
71280 2007-01-22  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71283         argument.
71284         * lib/striconveh.c (iconv_carefully_1): New function.
71285         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71286         argument.
71287         (str_cd_iconveh): Update.
71288         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71289         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71290         * tests/test-striconveh.c (MAGIC): New macro.
71291         (new_offsets): New function.
71292         (main): Test call with and without offsets.
71293
71294 2007-01-22  Bruno Haible  <bruno@clisp.org>
71295
71296         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71297         * modules/sys_select (Makefile.am): Likewise.
71298         * modules/sys_socket (Makefile.am): Likewise.
71299         * modules/sys_time (Makefile.am): Likewise.
71300
71301 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         * modules/gettimeofday (License): Change from GPL to LGPL, since
71304         gettimeofday is a library function.
71305
71306 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71307
71308         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71309
71310 2007-01-21  Bruno Haible  <bruno@clisp.org>
71311
71312         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71313
71314 2007-01-21  Bruno Haible  <bruno@clisp.org>
71315
71316         * modules/striconveha: New file.
71317         * lib/striconveha.h: New file.
71318         * lib/striconveha.c: New file.
71319         * MODULES.html.sh (Internationalization functions): Add striconveha.
71320         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71321         string.
71322         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71323
71324 2007-01-21  Bruno Haible  <bruno@clisp.org>
71325
71326         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71327         * lib/striconveh.c (str_iconveh): Likewise.
71328
71329 2007-01-21  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/striconveh.h (mem_iconveh): New declaration.
71332         * lib/striconveh.c (mem_iconveh): New function.
71333         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71334
71335 2007-01-21  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71338
71339         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71340         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71341         original result buffer.
71342         (str_cd_iconveh): Update.
71343         * tests/test-striconveh.c (main): Update.
71344
71345         * lib/striconv.h (mem_cd_iconv): Change specification.
71346         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71347         result buffer.
71348         (str_cd_iconv): Update.
71349         * tests/test-striconv.c (main): Update.
71350
71351 2007-01-21  Bruno Haible  <bruno@clisp.org>
71352
71353         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71354
71355 2007-01-20  Jim Meyering  <jim@meyering.net>
71356
71357         * lib/userspec.c (parse_with_separator): If a user or group string
71358         starts with "+", skip the corresponding name-to-ID look-up, since
71359         such a look-up must fail: user and group names may not include "+".
71360
71361 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71364         since we now assume the sys_time module.
71365         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71366         check for sys/time.h; no longer needed.
71367         * modules/poll (Depends-on): Depend on sys_time.
71368
71369 2007-01-18  Bruno Haible  <bruno@clisp.org>
71370
71371         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71372         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71373
71374         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71375         gettimeofday.
71376
71377         * tests/test-gettimeofday.c: Include <time.h>.
71378         (dummy): Remove variable.
71379
71380         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71381         gl_HEADER_SYS_TIME_H.
71382         (gl_HEADER_SYS_TIME_H): New macro.
71383
71384         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71385         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71387         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71388         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71389         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71390         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71391         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71392         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71393         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71394         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71395
71396         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71397         last change; it caused a compilation error when cross-compiling to
71398         Cygwin.
71399
71400 2007-01-18  Jim Meyering  <jim@meyering.net>
71401
71402         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71403         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71404         than the race-prone "test -d sys || mkdir sys".
71405         (configure.ac): Use AC_PROG_MKDIR_P.
71406         * modules/sys_select: Likewise.
71407         * modules/sys_socket: Likewise.
71408         * modules/sys_time: Likewise.
71409
71410 2007-01-18  Eric Blake  <ebb9@byu.net>
71411
71412         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71413         replace gettimeofday.
71414         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71415         name, to avoid infinite recursion.
71416
71417 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71420         module sys_time.
71421         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71422         assume timespec.h defines struct timeval.
71423         * lib/settime.c: Likewise.
71424         * lib/utimens.c: Likewise.
71425         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71426         since we now assume the gettimeofday module.
71427         * lib/tempname.c (__gen_tempname): Likewise.
71428         * lib/gettimeofday.h: Remove.
71429         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71430         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71431         Include <time.h>, for 'time()'.
71432         (localtime_buffer_addr): Also use this workaround if
71433         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71434         to simplify the uses.  All uses changed.
71435         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71436         that #undef is inside {}, and 'const' follows type name consistently.
71437         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71438         (gettimeofday): Do not use the maximum possible value for
71439         tv->tv_usec, since that might break usages other than ls.c.
71440         Instead, we'll leave ls.c alone.  This undoes today's patch
71441         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71442         we've never observed the problem but might as well keep the
71443         canary.
71444         * lib/nanosleep.c: Include timespec.h first, for interface check.
71445         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71446         now assume the sys_time module.
71447         * lib/tempname.c: Likewise.
71448         * lib/timespec.h: Likewise.
71449         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71450         needed.
71451         * lib/strftime.c: Likewise.
71452         * lib/timespec.h: Likewise.
71453         * lib/posixtm.c: Include posixtm.h first, for interface check.
71454         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71455         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71456         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71457         * lib/sys_time_.h: New file.
71458         * lib/timespec.h (struct timespec): Use long int, not long.
71459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71460         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71461         Remove obsolescent call to AC_HEADER_TIME.
71462         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71464         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71465         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71466         Likewise.
71467         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71468         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71470         into the sys_time module.  Check for gettimeofday just once.
71471         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71472         for gettimeofday signature to just check the signature.  Merely
71473         compile it, since linking doesn't test signature.  Improve test for
71474         whether gettimeofday.o is actually needed.
71475         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71476         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71477         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71478         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71479         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71480         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71481         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71482         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71483         than worrying about sys/time.h.
71484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71485         Don't bother worrying about TIME_WITH_SYS_TIME.
71486         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71487         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71488         * m4/sys_time_h.m4: New file.
71489         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71490         Don't include sys/time.h.  Return from main rather than exiting.
71491         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71492         all uses changed.
71493         * modules/gethrxtime (Depends-on): Add sys_time.
71494         * modules/gettime (Depends-on): Likewise.
71495         * modules/gettimeofday (Depends-on): Likewise.
71496         * modules/nanosleep (Depends-on): Likewise.
71497         * modules/settime (Depends-on): Likewise.
71498         * modules/tempname (Depends-on): Likewise.
71499         * modules/utimens (Depends-on): Likewise.
71500         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71501         (Include): Change back to <sys/time.h>.
71502         (Maintainer): Add self.
71503         * modules/sys_time: New file.
71504         * modules/tempname (Depends-on): Add gettimeofday.
71505         * tests/test-gettimeofday.c: Include <sys/time.h>
71506         rather than gettimeofday.h.
71507
71508 2007-01-17  Bruno Haible  <bruno@clisp.org>
71509
71510         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71511         the license default to GPL.
71512         (func_create_testdir): Don't complain if a module is LGPL and its
71513         tests module depends on GPLed modules.
71514
71515 2007-01-17  Bruno Haible  <bruno@clisp.org>
71516
71517         * lib/gettimeofday.c (gettimeofday): Add code for the case
71518         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71519         maximum possible value for tv->tv_usec, rather than the minimum one.
71520
71521 2005-10-08  Martin Lambers  <marlam@marlam.de>
71522 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71523 2007-01-16  Bruno Haible  <bruno@clisp.org>
71524
71525         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71526         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71527         gl_FUNC_GETTIMEOFDAY.
71528         (Include): Add gettimeofday.h.
71529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71530         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71531         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71532         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71533         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71534         * lib/gettimeofday.h: New file.
71535         * lib/gettimeofday.c: Include <sys/timeb.h>.
71536         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71537         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71538         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71539         fall back on time().
71540
71541         * tests/test-gettimeofday.c: New file.
71542         * modules/gettimeofday-tests: New file.
71543
71544 2007-01-16  Eric Blake  <ebb9@byu.net>
71545
71546         * modules/fnmatch (Depends-on): Depend on wchar.
71547         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71548         * m4/fnmatch.m4: Likewise.
71549         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71550         * m4/mbchar.m4: Likewise.
71551         * modules/mbswidth (Depends-on): Depend on wchar.
71552         * lib/mbswidth.c: Assume <wchar.h>.
71553         * m4/mbswidth.m4: Likewise.
71554         * modules/quotearg (Depends-on): Depend on wchar.
71555         * lib/quotearg.c: Assume <wchar.h>.
71556         * m4/quotearg.m4: Likewise.
71557         * modules/regex (Depends-on): Depend on wchar.
71558         * lib/regex_internal.h: Assume <wchar.h>.
71559         * m4/regex.m4: Likewise.
71560         * modules/stdint (Depends-on): Depend on wchar.
71561         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71562         * m4/stdint.m4: Likewise.
71563         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71564         * modules/strftime (Depends-on): Depend on wchar.
71565         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71566         * modules/strtol (Depends-on): Depend on wchar.
71567         * lib/strtol.c: Assume <wchar.h>.
71568         * modules/wcwidth (Depends-on): Depend on wchar.
71569         * lib/wcwidth.h: Assume <wchar.h>.
71570         * m4/wcwidth.m4: Likewise.
71571
71572 2007-01-16  Bruno Haible  <bruno@clisp.org>
71573
71574         * modules/csharpexec-script: New, created from...
71575         * modules/csharpexec: ... this.
71576
71577 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71578
71579         * modules/javaexec-script: New, created from...
71580         * modules/javaexec: ... this.
71581
71582 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71583
71584         * modules/poll (Dependencies): Add sys_select.
71585
71586 2007-01-15  Jim Meyering  <jim@meyering.net>
71587
71588         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71589         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71590         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71591         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71592
71593 2007-01-15  Bruno Haible  <bruno@clisp.org>
71594
71595         * modules/striconveh: New file.
71596         * lib/striconveh.h: New file.
71597         * lib/striconveh.c: New file.
71598         * MODULES.html.sh (Internationalization functions): Add striconveh.
71599
71600         * modules/striconveh-tests: New file.
71601         * tests/test-striconveh.c: New file.
71602
71603 2007-01-15  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71606         not from GNU libiconv or GNU libc.
71607
71608 2007-01-15  Bruno Haible  <bruno@clisp.org>
71609
71610         * doc/gnulib-intro.texi (Copyright): Explain the different license
71611         terms for module descriptions, autoconf macros, tests, documentation.
71612
71613 2007-01-14  Bruno Haible  <bruno@clisp.org>
71614
71615         * modules/striconv-tests: New file.
71616         * tests/test-striconv.c: New file.
71617
71618 2007-01-14  Bruno Haible  <bruno@clisp.org>
71619
71620         * modules/iconv-tests: New file.
71621         * tests/test-iconv.c: New file.
71622
71623 2007-01-14  Bruno Haible  <bruno@clisp.org>
71624
71625         * gnulib-tool (func_get_license): For test modules, use the license of
71626         the main module.
71627
71628 2007-01-14  Bruno Haible  <bruno@clisp.org>
71629
71630         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71631         if iconv is found to exist.
71632
71633 2007-01-14  Bruno Haible  <bruno@clisp.org>
71634
71635         * modules/c-ctype-tests: New file.
71636         * tests/test-c-ctype.c: New file.
71637
71638 2007-01-14  Bruno Haible  <bruno@clisp.org>
71639
71640         * modules/binary-io-tests: New file.
71641         * tests/test-binary-io.sh: New file.
71642         * tests/test-binary-io.c: New file.
71643
71644 2007-01-14  Bruno Haible  <bruno@clisp.org>
71645
71646         * modules/array-oset-tests: New file.
71647         * tests/test-array_oset.c: New file.
71648
71649 2007-01-14  Bruno Haible  <bruno@clisp.org>
71650
71651         * modules/array-list-tests: New file.
71652         * tests/test-array_list.c: New file.
71653
71654 2007-01-14  Bruno Haible  <bruno@clisp.org>
71655
71656         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71657         and make.
71658         Reported by Simon Josefsson in
71659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71660
71661 2007-01-14  Bruno Haible  <bruno@clisp.org>
71662
71663         * modules/allocsa-tests: New file.
71664         * tests/test-allocsa.c: New file.
71665
71666 2007-01-14  Bruno Haible  <bruno@clisp.org>
71667
71668         * modules/fchdir (Depends-on): Add absolute-header.
71669         * modules/unistd (Depends-on): Likewise.
71670
71671 2006-12-30  Bruno Haible  <bruno@clisp.org>
71672
71673         * modules/fchdir: New file.
71674         * modules/unistd (Files): Add lib/unistd_.h.
71675         (Makefile.am): Generate unistd.h from unistd_.h.
71676         * lib/fchdir.c: New file.
71677         * lib/dirent_.h: New file.
71678         * lib/unistd_.h: New file.
71679         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71680         * m4/fchdir.m4: New file.
71681         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71682         (gl_HEADER_UNISTD): Invoke it.
71683         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71684         function.
71685         * lib/backupfile.c (opendir, closedir): Undefine.
71686         * lib/chown.c (open, close): Undefine.
71687         * lib/clean-temp.c (open, close): Undefine.
71688         * lib/copy-file.c (open, close): Undefine.
71689         * lib/execute.c (open, close): Undefine.
71690         * lib/fsusage.c (open, close): Undefine.
71691         * lib/gc-gnulib.c (open, close): Undefine.
71692         * lib/getcwd.c (opendir, closedir): Undefine.
71693         * lib/glob.c (opendir, closedir): Undefine.
71694         * lib/javacomp.c (open, close): Undefine.
71695         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71696         * lib/openat-proc.c (open, close): Undefine.
71697         * lib/pagealign_alloc.c (open, close): Undefine.
71698         * lib/pipe.c (open, close): Undefine.
71699         * lib/progreloc.c (open, close): Undefine.
71700         * lib/savedir.c (opendir, closedir): Undefine.
71701         * lib/utime.c (open, close): Undefine.
71702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71703
71704 2007-01-10  Bruno Haible  <bruno@clisp.org>
71705
71706         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71707
71708 2007-01-12  Eric Blake  <ebb9@byu.net>
71709
71710         Provide a robust <wchar.h>.  Further simplifications are now
71711         possible in other modules, but not included here.
71712         * modules/wchar: New module.
71713         * m4/wchar.m4: New file.
71714         * lib/wchar_.h: Likewise.
71715         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71716         of the new module.
71717         * MODULES.html.sh (Extended multibyte and wide character utilities):
71718         New section.
71719
71720 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71723         to a reasonable default for memory allocation.
71724         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71725         file system that reports garbage st_size values for symlinks.
71726         Problem reported by Liyang Hu.
71727
71728 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71729
71730         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71731         Emacs .#* auto-save files).
71732
71733 2007-01-11  Bruno Haible  <bruno@clisp.org>
71734
71735         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71736         directory.
71737
71738 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         Use @...@ consistently in lib/wctype_.h.
71741         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71742         on it being set to 1 or 0.
71743         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71744         go back to AC_SUBSTing it.
71745         * modules/wctype (Makefile.am): Undo previous change.
71746
71747 2007-01-10  Eric Blake  <ebb9@byu.net>
71748
71749         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71750         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71751         * modules/wctype (Makefile.am): Likewise.
71752         Reported by Chris McGuire.
71753
71754 2007-01-10  Jim Meyering  <jim@meyering.net>
71755
71756         fts.c: a small readability/maintainability improvement
71757         * lib/fts.c (fts_read): Make this code slightly more readable and
71758         maintainable by hoisting the "sp->fts_cur = p" assignments to
71759         immediately follow the statements that set P.  Derived from
71760         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71761
71762 2007-01-10  Eric Blake  <ebb9@byu.net>
71763
71764         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71765         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71767         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71768         Reported by Chris McGuire.
71769
71770 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71771
71772         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71773         in sed script.
71774
71775 2007-01-09  Bruno Haible  <bruno@clisp.org>
71776
71777         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71778         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71779         variables.
71780         (func_module): Use them.
71781
71782 2007-01-09  Bruno Haible  <bruno@clisp.org>
71783
71784         * modules/unistr/base: New file.
71785         * lib/unistr.h: New file.
71786
71787         * modules/unistr/u8-to-u16: New file.
71788         * lib/unistr/u8-to-u16.c: New file.
71789
71790         * modules/unistr/u8-to-u32: New file.
71791         * lib/unistr/u8-to-u32.c: New file.
71792
71793         * modules/unistr/u16-to-u8: New file.
71794         * lib/unistr/u16-to-u8.c: New file.
71795
71796         * modules/unistr/u16-to-u32: New file.
71797         * lib/unistr/u16-to-u32.c: New file.
71798
71799         * modules/unistr/u32-to-u8: New file.
71800         * lib/unistr/u32-to-u8.c: New file.
71801
71802         * modules/unistr/u32-to-u16: New file.
71803         * lib/unistr/u32-to-u16.c: New file.
71804
71805         * modules/unistr/u8-check: New file.
71806         * modules/unistr/u16-check: New file.
71807         * modules/unistr/u32-check: New file.
71808         * lib/unistr/u8-check.c: New file.
71809         * lib/unistr/u16-check.c: New file.
71810         * lib/unistr/u32-check.c: New file.
71811
71812         * modules/unistr/u8-chr: New file.
71813         * modules/unistr/u16-chr: New file.
71814         * modules/unistr/u32-chr: New file.
71815         * lib/unistr/u8-chr.c: New file.
71816         * lib/unistr/u16-chr.c: New file.
71817         * lib/unistr/u32-chr.c: New file.
71818
71819         * modules/unistr/u8-cmp: New file.
71820         * modules/unistr/u16-cmp: New file.
71821         * modules/unistr/u32-cmp: New file.
71822         * lib/unistr/u8-cmp.c: New file.
71823         * lib/unistr/u16-cmp.c: New file.
71824         * lib/unistr/u32-cmp.c: New file.
71825
71826         * modules/unistr/u8-cpy: New file.
71827         * modules/unistr/u16-cpy: New file.
71828         * modules/unistr/u32-cpy: New file.
71829         * lib/unistr/u8-cpy.c: New file.
71830         * lib/unistr/u16-cpy.c: New file.
71831         * lib/unistr/u32-cpy.c: New file.
71832         * lib/unistr/u-cpy.h: New file.
71833
71834         * modules/unistr/u8-cpy-alloc: New file.
71835         * modules/unistr/u16-cpy-alloc: New file.
71836         * modules/unistr/u32-cpy-alloc: New file.
71837         * lib/unistr/u8-cpy-alloc.c: New file.
71838         * lib/unistr/u16-cpy-alloc.c: New file.
71839         * lib/unistr/u32-cpy-alloc.c: New file.
71840         * lib/unistr/u-cpy-alloc.h: New file.
71841
71842         * modules/unistr/u8-endswith: New file.
71843         * modules/unistr/u16-endswith: New file.
71844         * modules/unistr/u32-endswith: New file.
71845         * lib/unistr/u8-endswith.c: New file.
71846         * lib/unistr/u16-endswith.c: New file.
71847         * lib/unistr/u32-endswith.c: New file.
71848         * lib/unistr/u-endswith.h: New file.
71849
71850         * modules/unistr/u8-mblen: New file.
71851         * modules/unistr/u16-mblen: New file.
71852         * modules/unistr/u32-mblen: New file.
71853         * lib/unistr/u8-mblen.c: New file.
71854         * lib/unistr/u16-mblen.c: New file.
71855         * lib/unistr/u32-mblen.c: New file.
71856
71857         * modules/unistr/u8-mbtouc: New file.
71858         * modules/unistr/u16-mbtouc: New file.
71859         * modules/unistr/u32-mbtouc: New file.
71860         * lib/unistr/u8-mbtouc.c: New file.
71861         * lib/unistr/u16-mbtouc.c: New file.
71862         * lib/unistr/u32-mbtouc.c: New file.
71863
71864         * modules/unistr/u8-mbtouc-safe: New file.
71865         * modules/unistr/u16-mbtouc-safe: New file.
71866         * modules/unistr/u32-mbtouc-safe: New file.
71867         * lib/unistr/u8-mbtouc-safe.c: New file.
71868         * lib/unistr/u16-mbtouc-safe.c: New file.
71869         * lib/unistr/u32-mbtouc-safe.c: New file.
71870
71871         * modules/unistr/u8-move: New file.
71872         * modules/unistr/u16-move: New file.
71873         * modules/unistr/u32-move: New file.
71874         * lib/unistr/u8-move.c: New file.
71875         * lib/unistr/u16-move.c: New file.
71876         * lib/unistr/u32-move.c: New file.
71877         * lib/unistr/u-move.h: New file.
71878
71879         * modules/unistr/u8-next: New file.
71880         * modules/unistr/u16-next: New file.
71881         * modules/unistr/u32-next: New file.
71882         * lib/unistr/u8-next.c: New file.
71883         * lib/unistr/u16-next.c: New file.
71884         * lib/unistr/u32-next.c: New file.
71885
71886         * modules/unistr/u8-prev: New file.
71887         * modules/unistr/u16-prev: New file.
71888         * modules/unistr/u32-prev: New file.
71889         * lib/unistr/u8-prev.c: New file.
71890         * lib/unistr/u16-prev.c: New file.
71891         * lib/unistr/u32-prev.c: New file.
71892
71893         * modules/unistr/u8-set: New file.
71894         * modules/unistr/u16-set: New file.
71895         * modules/unistr/u32-set: New file.
71896         * lib/unistr/u8-set.c: New file.
71897         * lib/unistr/u16-set.c: New file.
71898         * lib/unistr/u32-set.c: New file.
71899         * lib/unistr/u-set.h: New file.
71900
71901         * modules/unistr/u8-startswith: New file.
71902         * modules/unistr/u16-startswith: New file.
71903         * modules/unistr/u32-startswith: New file.
71904         * lib/unistr/u8-startswith.c: New file.
71905         * lib/unistr/u16-startswith.c: New file.
71906         * lib/unistr/u32-startswith.c: New file.
71907         * lib/unistr/u-startswith.h: New file.
71908
71909         * modules/unistr/u8-stpcpy: New file.
71910         * modules/unistr/u16-stpcpy: New file.
71911         * modules/unistr/u32-stpcpy: New file.
71912         * lib/unistr/u8-stpcpy.c: New file.
71913         * lib/unistr/u16-stpcpy.c: New file.
71914         * lib/unistr/u32-stpcpy.c: New file.
71915         * lib/unistr/u-stpcpy.h: New file.
71916
71917         * modules/unistr/u8-stpncpy: New file.
71918         * modules/unistr/u16-stpncpy: New file.
71919         * modules/unistr/u32-stpncpy: New file.
71920         * lib/unistr/u8-stpncpy.c: New file.
71921         * lib/unistr/u16-stpncpy.c: New file.
71922         * lib/unistr/u32-stpncpy.c: New file.
71923         * lib/unistr/u-stpncpy.h: New file.
71924
71925         * modules/unistr/u8-strcat: New file.
71926         * modules/unistr/u16-strcat: New file.
71927         * modules/unistr/u32-strcat: New file.
71928         * lib/unistr/u8-strcat.c: New file.
71929         * lib/unistr/u16-strcat.c: New file.
71930         * lib/unistr/u32-strcat.c: New file.
71931         * lib/unistr/u-strcat.h: New file.
71932
71933         * modules/unistr/u8-strchr: New file.
71934         * modules/unistr/u16-strchr: New file.
71935         * modules/unistr/u32-strchr: New file.
71936         * lib/unistr/u8-strchr.c: New file.
71937         * lib/unistr/u16-strchr.c: New file.
71938         * lib/unistr/u32-strchr.c: New file.
71939
71940         * modules/unistr/u8-strcmp: New file.
71941         * modules/unistr/u16-strcmp: New file.
71942         * modules/unistr/u32-strcmp: New file.
71943         * lib/unistr/u8-strcmp.c: New file.
71944         * lib/unistr/u16-strcmp.c: New file.
71945         * lib/unistr/u32-strcmp.c: New file.
71946
71947         * modules/unistr/u8-strcpy: New file.
71948         * modules/unistr/u16-strcpy: New file.
71949         * modules/unistr/u32-strcpy: New file.
71950         * lib/unistr/u8-strcpy.c: New file.
71951         * lib/unistr/u16-strcpy.c: New file.
71952         * lib/unistr/u32-strcpy.c: New file.
71953         * lib/unistr/u-strcpy.h: New file.
71954
71955         * modules/unistr/u8-strcspn: New file.
71956         * modules/unistr/u16-strcspn: New file.
71957         * modules/unistr/u32-strcspn: New file.
71958         * lib/unistr/u8-strcspn.c: New file.
71959         * lib/unistr/u16-strcspn.c: New file.
71960         * lib/unistr/u32-strcspn.c: New file.
71961         * lib/unistr/u-strcspn.h: New file.
71962
71963         * modules/unistr/u8-strdup: New file.
71964         * modules/unistr/u16-strdup: New file.
71965         * modules/unistr/u32-strdup: New file.
71966         * lib/unistr/u8-strdup.c: New file.
71967         * lib/unistr/u16-strdup.c: New file.
71968         * lib/unistr/u32-strdup.c: New file.
71969         * lib/unistr/u-strdup.h: New file.
71970
71971         * modules/unistr/u8-strlen: New file.
71972         * modules/unistr/u16-strlen: New file.
71973         * modules/unistr/u32-strlen: New file.
71974         * lib/unistr/u8-strlen.c: New file.
71975         * lib/unistr/u16-strlen.c: New file.
71976         * lib/unistr/u32-strlen.c: New file.
71977         * lib/unistr/u-strlen.h: New file.
71978
71979         * modules/unistr/u8-strmblen: New file.
71980         * modules/unistr/u16-strmblen: New file.
71981         * modules/unistr/u32-strmblen: New file.
71982         * lib/unistr/u8-strmblen.c: New file.
71983         * lib/unistr/u16-strmblen.c: New file.
71984         * lib/unistr/u32-strmblen.c: New file.
71985
71986         * modules/unistr/u8-strmbtouc: New file.
71987         * modules/unistr/u16-strmbtouc: New file.
71988         * modules/unistr/u32-strmbtouc: New file.
71989         * lib/unistr/u8-strmbtouc.c: New file.
71990         * lib/unistr/u16-strmbtouc.c: New file.
71991         * lib/unistr/u32-strmbtouc.c: New file.
71992
71993         * modules/unistr/u8-strncat: New file.
71994         * modules/unistr/u16-strncat: New file.
71995         * modules/unistr/u32-strncat: New file.
71996         * lib/unistr/u8-strncat.c: New file.
71997         * lib/unistr/u16-strncat.c: New file.
71998         * lib/unistr/u32-strncat.c: New file.
71999         * lib/unistr/u-strncat.h: New file.
72000
72001         * modules/unistr/u8-strncmp: New file.
72002         * modules/unistr/u16-strncmp: New file.
72003         * modules/unistr/u32-strncmp: New file.
72004         * lib/unistr/u8-strncmp.c: New file.
72005         * lib/unistr/u16-strncmp.c: New file.
72006         * lib/unistr/u32-strncmp.c: New file.
72007
72008         * modules/unistr/u8-strncpy: New file.
72009         * modules/unistr/u16-strncpy: New file.
72010         * modules/unistr/u32-strncpy: New file.
72011         * lib/unistr/u8-strncpy.c: New file.
72012         * lib/unistr/u16-strncpy.c: New file.
72013         * lib/unistr/u32-strncpy.c: New file.
72014         * lib/unistr/u-strncpy.h: New file.
72015
72016         * modules/unistr/u8-strnlen: New file.
72017         * modules/unistr/u16-strnlen: New file.
72018         * modules/unistr/u32-strnlen: New file.
72019         * lib/unistr/u8-strnlen.c: New file.
72020         * lib/unistr/u16-strnlen.c: New file.
72021         * lib/unistr/u32-strnlen.c: New file.
72022         * lib/unistr/u-strnlen.h: New file.
72023
72024         * modules/unistr/u8-strpbrk: New file.
72025         * modules/unistr/u16-strpbrk: New file.
72026         * modules/unistr/u32-strpbrk: New file.
72027         * lib/unistr/u8-strpbrk.c: New file.
72028         * lib/unistr/u16-strpbrk.c: New file.
72029         * lib/unistr/u32-strpbrk.c: New file.
72030         * lib/unistr/u-strpbrk.h: New file.
72031
72032         * modules/unistr/u8-strrchr: New file.
72033         * modules/unistr/u16-strrchr: New file.
72034         * modules/unistr/u32-strrchr: New file.
72035         * lib/unistr/u8-strrchr.c: New file.
72036         * lib/unistr/u16-strrchr.c: New file.
72037         * lib/unistr/u32-strrchr.c: New file.
72038
72039         * modules/unistr/u8-strspn: New file.
72040         * modules/unistr/u16-strspn: New file.
72041         * modules/unistr/u32-strspn: New file.
72042         * lib/unistr/u8-strspn.c: New file.
72043         * lib/unistr/u16-strspn.c: New file.
72044         * lib/unistr/u32-strspn.c: New file.
72045         * lib/unistr/u-strspn.h: New file.
72046
72047         * modules/unistr/u8-strstr: New file.
72048         * modules/unistr/u16-strstr: New file.
72049         * modules/unistr/u32-strstr: New file.
72050         * lib/unistr/u8-strstr.c: New file.
72051         * lib/unistr/u16-strstr.c: New file.
72052         * lib/unistr/u32-strstr.c: New file.
72053         * lib/unistr/u-strstr.h: New file.
72054
72055         * modules/unistr/u8-strtok: New file.
72056         * modules/unistr/u16-strtok: New file.
72057         * modules/unistr/u32-strtok: New file.
72058         * lib/unistr/u8-strtok.c: New file.
72059         * lib/unistr/u16-strtok.c: New file.
72060         * lib/unistr/u32-strtok.c: New file.
72061         * lib/unistr/u-strtok.h: New file.
72062
72063         * modules/unistr/u8-uctomb: New file.
72064         * modules/unistr/u16-uctomb: New file.
72065         * modules/unistr/u32-uctomb: New file.
72066         * lib/unistr/u8-uctomb.c: New file.
72067         * lib/unistr/u16-uctomb.c: New file.
72068         * lib/unistr/u32-uctomb.c: New file.
72069
72070         * MODULES.html.sh (Unicode string functions): Add the new modules.
72071
72072 2007-01-08  Bruno Haible  <bruno@clisp.org>
72073
72074         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72075         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72076         subdirectories.
72077
72078 2007-01-08  Karl Berry  <karl@gnu.org>
72079
72080         * doc/error.texi: mention that main() fns must set program_name
72081         when progname is used.
72082
72083 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72086         WCTYPE_H is empty, for the benefit of builds from non-distclean
72087         directories.  Problem reported by Eric Blake in
72088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72089
72090 2007-01-08  Bruno Haible  <bruno@clisp.org>
72091
72092         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72093         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72094         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72095         PROVIDE_CANONICALIZE_FILENAME_MODE.
72096         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72097
72098 2007-01-08  Bruno Haible  <bruno@clisp.org>
72099
72100         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72101         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72102         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72103         * lib/fts.c: Likewise.
72104         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72105
72106 2006-12-25  Bruno Haible  <bruno@clisp.org>
72107
72108         * modules/utf8-ucs4-safe: New file.
72109         * lib/utf8-ucs4-safe.h: New file.
72110         * lib/unistr/utf8-ucs4-safe.c: New file.
72111
72112         * modules/utf16-ucs4-safe: New file.
72113         * lib/utf16-ucs4-safe.h: New file.
72114         * lib/unistr/utf16-ucs4-safe.c: New file.
72115
72116         * MODULES.html.sh (Unicode string functions): Add the new modules.
72117
72118 2007-01-08  Bruno Haible  <bruno@clisp.org>
72119
72120         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72121         (Depends-on): Add unitypes.
72122         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72123         (u8_mbtouc_aux): Move out to separate file.
72124         (u8_mbtouc): Use ucs4_t, uint8_t types.
72125         * lib/unistr/utf8-ucs4.c: New file.
72126
72127         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72128         (Depends-on): Add unitypes.
72129         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72130         (u16_mbtouc_aux): Move out to separate file.
72131         (u16_mbtouc): Use ucs4_t, uint16_t types.
72132         * lib/unistr/utf16-ucs4.c: New file.
72133
72134         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72135         (Depends-on): Add unitypes.
72136         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72137         (u8_uctomb_aux): Move out to separate file.
72138         (u8_uctomb): Use ucs4_t, uint8_t types.
72139         * lib/unistr/ucs4-utf8.c: New file.
72140
72141         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72142         (Depends-on): Add unitypes.
72143         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72144         (u16_uctomb_aux): Move out to separate file.
72145         (u16_uctomb): Use ucs4_t, uint16_t types.
72146         * lib/unistr/ucs4-utf16.c: New file.
72147
72148 2006-12-25  Bruno Haible  <bruno@clisp.org>
72149
72150         * modules/unitypes: New file.
72151         * lib/unitypes.h: New file.
72152         * MODULES.html.sh (func_all_modules): New section "Unicode string
72153         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72154         this section. Add unitypes.
72155
72156 2007-01-08  Bruno Haible  <bruno@clisp.org>
72157
72158         Avoid variable names that conflict with those from libtool.
72159         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72160         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72161         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72162         library_names_spec to acl_library_names_spec, hardcode_* to
72163         acl_hardcode_*.
72164         Reported by Ralf Wildenhues.
72165
72166 2007-01-08  Bruno Haible  <bruno@clisp.org>
72167
72168         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72169         definition.
72170         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72171         definition.
72172         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72173         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72174         definition.
72175         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72176         definition.
72177         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72178         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72179         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72180         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72181         definition.
72182         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72183         definition.
72184         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72185         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72186         GC_USE_<algorithm>.
72187         * lib/gc-libgcrypt.c: Likewise.
72188         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72189         * modules/gc-arctwo (configure.ac): Likewise.
72190         * modules/gc-des (configure.ac): Likewise.
72191         * modules/gc-hmac-md5 (configure.ac): Likewise.
72192         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72193         * modules/gc-md2 (configure.ac): Likewise.
72194         * modules/gc-md4 (configure.ac): Likewise.
72195         * modules/gc-md5 (configure.ac): Likewise.
72196         * modules/gc-random (configure.ac): Likewise.
72197         * modules/gc-rijndael (configure.ac): Likewise.
72198         * modules/gc-sha1 (configure.ac): Likewise.
72199
72200 2007-01-08  Bruno Haible  <bruno@clisp.org>
72201
72202         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72203         macro definition.
72204         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72205         definition.
72206         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72207         definition.
72208         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72209         * modules/fcntl-safer (configure.ac): Likewise.
72210         * modules/fopen-safer (configure.ac): Likewise.
72211         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72212         GNULIB_FWRITEERROR macro definition.
72213
72214 2007-01-08  Bruno Haible  <bruno@clisp.org>
72215
72216         * m4/gnulib-common.m4: New file.
72217         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72218         (func_get_filelist): Add m4/gnulib-common.m4.
72219
72220 2007-01-08  Bruno Haible  <bruno@clisp.org>
72221
72222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72223         command.
72224
72225 2007-01-08  Jim Meyering  <jim@meyering.net>
72226
72227         Use a more robust test for a "can't happen" condition.
72228         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72229         narrowed the st_size value.  Presuming the "can't happen" condition
72230         is true, that narrowing could conceivably convert an invalid st_size
72231         value into a valid one.  Instead, use a change based on Matthew
72232         Woehlke's original patch.
72233
72234         Slight readability improvement: use an assert-like macro
72235         in place of literal "abort ()" uses.
72236         * lib/fts.c (fts_assert): Define.
72237         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72238         Use this macro instead of a bare 'abort'.
72239
72240 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72241
72242         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72243         simply work around them.
72244         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72245         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72246         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72247         declaring.
72248         Don't bother to define as macros, since the standard doesn't require it.
72249         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72250         longer worry about IRIX 5.3.
72251         (HAVE_WCTYPE_CTMP_BUG): Remove.
72252
72253 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72254
72255         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72256         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72257         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72258         Problems reported by Georg Schwarz for IRIX 5.3.
72259
72260         * gnulib-tool (autoconf_minversion): Take the maximum version number
72261         found, not the minimum.  Problem reported by James Youngman.
72262
72263 2007-01-03  Karl Berry  <karl@gnu.org>
72264
72265         * doc/error.texi: new file, explaining interaction with progname.
72266         * doc/gnulib.texi: include it.  Update copyright.
72267
72268 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72269
72270         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72271         AC_CANONICAL_HOST, to improve autobuild outputs.
72272
72273 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72274             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72275
72276         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72277         sockets, server sockets, and other file descriptors.  Count errors
72278         to compute the return value.  Reorder the code a bit to be easier
72279         to follow.  Don't set event bits that were not requested (except
72280         POLLERR and POLLHUP).
72281
72282 2007-01-01  Bruno Haible  <bruno@clisp.org>
72283
72284         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72285
72286 2007-01-03  Jim Meyering  <jim@meyering.net>
72287
72288         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72289
72290 2007-01-02  Bruno Haible  <bruno@clisp.org>
72291
72292         * modules/settime (Include): Require timespec.h.
72293         * modules/nanosleep (Include): Likewise.
72294
72295 2007-01-01  Bruno Haible  <bruno@clisp.org>
72296
72297         * gnulib-tool (func_emit_copyright_notice): Bump year.
72298         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72299
72300 2007-01-01  Bruno Haible  <bruno@clisp.org>
72301
72302         Improve support for OpenBSD.
72303         * build-aux/config.rpath (libname_spec): Export.
72304         (library_names_spec): New variable. Export.
72305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72306         library_names_spec from the config.rpath output. Locate shared library
72307         through the name pattern in library_names_spec.
72308
72309 2007-01-01  Eric Blake  <ebb9@byu.net>
72310
72311         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72312
72313 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72314
72315         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72316         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72317         assume the C locale, and avoid an "eval" that could cause trouble.
72318         Problem with SORT reported by Bob Proulx.
72319
72320         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72321         Define.  Trivial patch from Henning Nielsen Lund, originally
72322         sent to bug-grep@gnu.org today.
72323
72324 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72325
72326         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72327         struct stat.  Problem reported by Henning Nielsen Lund.
72328         * lib/acl.c: Include acl.h first, to check interface.  Don't
72329         bother to include sys/types.h and sys/stat.h again.
72330
72331 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         Import the following change from libc; problem reported by
72334         Sven Verdoolaege.
72335
72336         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72337
72338         [BZ #1373]
72339         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72340
72341 2006-12-28  Jim Meyering  <jim@meyering.net>
72342
72343         * build-aux/announce-gen: Do not assume that the package
72344         builds any of tar.gz, tar.bz2, and .xdelta files.
72345         Suggestion from Simon Josefsson.
72346
72347 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72348
72349         * modules/announce-gen: New file.
72350
72351 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72354         handles its gotchas now.
72355         * lib/mbswidth.c: Likewise.
72356         * lib/wcwidth.h: Likewise.
72357         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72358         and iswcntrl; the wctype module does this stuff now.
72359         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72361         * modules/mbchar (Depends-on): Add wctype.
72362         * modules/mbswidth (Depends-on): Likewise.
72363         * modules/wcwidth (Depends-on): Likewise.
72364
72365 2006-12-27  Eric Blake  <ebb9@byu.net>
72366
72367         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72368         module uses more than what <wctype.h> is required to provide.
72369
72370 2006-12-26  Eric Blake  <ebb9@byu.net>
72371
72372         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72373
72374 2006-12-26  Eric Blake  <ebb9@byu.net>
72375
72376         * modules/absolute-header: New module.
72377         * modules/fcntl (Depends-on): Depend on it.
72378         * modules/inttypes (Depends-on): Likewise.
72379         * modules/stdint (Depends-on): Likewise.
72380         * modules/sys_stat (Depends-on): Likewise.
72381         * modules/wctype (Depends-on): Likewise.
72382         * MODULES.html.sh (Support for building libraries and
72383         executables): Document it.
72384
72385 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * gnulib-tool (SED): Remove, undoing previous change.
72388         The problem was that it broke coreutils on Solaris, because
72389         "sed --posix" leaked into a makefile.
72390         (sed): New alias, if 'alias' and GNU sed.
72391
72392 2006-12-24  Jim Meyering  <jim@meyering.net>
72393
72394         Work around an fchownat bug in glibc-2.4:
72395         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72396         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72397         in spite of the -P option.
72398         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72399         New macros.
72400         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72401         * modules/openat (Files): Add lib/fchownat.c.
72402         * lib/openat.c (fchownat): Don't define here.  Move to...
72403         * lib/fchownat.c: ...this new file.
72404
72405 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72406
72407         Fix bug reported by Bruno Haible in
72408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72409         where quotearg.c didn't compile on Mac OS X 10.2 because it
72410         lacks <wchar.h> and wint_t.
72411         * lib/wctype_.h (__wctype_wint_t): New type.
72412         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72413         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72414         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72415         Arg is now of type __wctype_wint_t, not wint_t.
72416         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72417         substitute HAVE_WINT_T.
72418         * modules/wctype (Files): Add m4/wint_t.m4.
72419         (wctype.h): Substitute HAVE_WINT_T.
72420
72421 2006-12-23  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72424
72425 2006-12-23  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72428         S_ISLNK.
72429         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72430         mingw.
72431
72432 2006-12-22  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/copy-file.c: Include acl.h.
72435         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72436         Close the file descriptors only after being done with copy_acl.
72437         * modules/copy-file (Depends-on): Add acl.
72438
72439 2006-12-22  Bruno Haible  <bruno@clisp.org>
72440
72441         * gnulib-tool (SED): New variable.
72442         Use $SED instead of sed everywhere.
72443
72444 2006-12-22  Bruno Haible  <bruno@clisp.org>
72445
72446         * modules/no-c++: New file.
72447         * m4/no-c++.m4: New file.
72448         * MODULES.html.sh (Support for building libraries and executables):
72449         Add no-c++.
72450
72451 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72454         Include <limits.h>, and use its INT_MAX to rewrite the
72455         j loop so that it does not overflow 'int'.  Problem reported by
72456         Ralf Wildenhues in
72457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72458         Play it safe by shifting left by 1 rather than multiplying by 2,
72459         as GCC is less likely to optimize this away when the value
72460         is signed (when it assumes overflow leads to undefined behavior).
72461         Also, don't assume time_t uses two's complement.
72462
72463 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * MODULES.html.sh: New module wctype.
72466         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72467         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72468         <wctype.h>, since the new wctype module should fix this.
72469         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72470         the wctype module should arrange for it.
72471         * lib/regex_internal.h: Likewise.
72472         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72473         since the wctype module should handle this now.
72474         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72475         * modules/fnmatch (Depends-on): Add wctype.
72476         * modules/quotearg (Depends-on): Likewise.
72477         * modules/regex (Depends-on): Likewise.
72478
72479 2006-12-19  Bruno Haible  <bruno@clisp.org>
72480
72481         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72482         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72483
72484 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72485
72486         * modules/savewd (Depends-on): Fix dependency on fcntl.
72487
72488 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72491         conforms to C99, rather than relying on the user's environment
72492         setting of STDINT_H.
72493
72494 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72495         and Eric Blake  <ebb9@byu.net>
72496
72497         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72498         This is more consistent with the other defines here.
72499         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72500         Port to z/OS.  Problem reported by Paul Gilmartin.
72501         Change local vars to use gl_ prefix rather than ac_.
72502         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72503         with other defines.
72504         * modules/double-slash-root: New module.
72505         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72506         (Depends-on): Add double-slash-root.
72507         * MODULES.html.sh (File system functions): Mention new module.
72508
72509 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72512         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72513         This is for the benefit of gzip, which doesn't do i18n.
72514
72515 2006-12-12  Jim Meyering  <jim@meyering.net>
72516
72517         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72518         Reported by Andreas Schwab <schwab@suse.de>.
72519
72520 2006-12-12  Bruno Haible  <bruno@clisp.org>
72521
72522         Merge these changes.
72523         2006-09-05  Bruno Haible  <bruno@clisp.org>
72524         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72525         iconv_alloc succeeded.
72526         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72527         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72528         test for " && dest " at the end - dest is always != NULL there. Call
72529         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72530         with 2xNULL arguments, also to flush the state storage. Handle the
72531         IRIX iconv behaviour. Realloc the final result, to throw away unused
72532         memory.
72533
72534 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72537         and fchmodat unconditionally, since glibc 2.4 has them.
72538         Problem reported by Arkadiusz Miskiewicz.
72539
72540 2006-12-10  Bruno Haible  <bruno@clisp.org>
72541
72542         * gnulib-tool (func_import): Show the include files only for those
72543         modules that are copied and specified.
72544         Reported by Karl Berry.
72545
72546 2006-12-08  Jim Meyering  <jim@meyering.net>
72547
72548         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72549         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72550
72551         * build-aux/announce-gen: Add two new options, both optional:
72552         --bootstrap-tools=TOOL_LIST
72553               a comma-separated list of tools, e.g.,
72554               autoconf,automake,bison,gnulib
72555         --gnulib-snapshot-date=DATE
72556               if gnulib is in the bootstrap tool list,
72557               then report this as the snapshot date.
72558               If not specified, use the current date/time.
72559               If you specify a date here, be sure it's UTC.
72560
72561 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72562
72563         * tests/test-argp-2.sh: Fix test to match actual output.
72564         (func_compare): Fix sed script to be portable.
72565
72566 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72569         workaround for this case.  It is not autoconfigured now; offhand
72570         it's hard to see how to autoconfigure it.
72571
72572 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72575         a directory that is about to be chowned.  Such a directory's
72576         initial file permissions should permit the owner only and this
72577         should not be changed until after the chown, since the group and
72578         other bits would be incorrect if they granted permission before
72579         the chown.
72580
72581         Fix porting problem for iswctype reported by Georg Schwarz in:
72582         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72583         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72584         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72585         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72586         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72587
72588 2006-12-03  Jim Meyering  <jim@meyering.net>
72589
72590         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72591         p->fts_statp may not yet be defined.
72592         (fts_read): Instead, set it in the caller, once p->fts_statp is
72593         sure to be defined, and corresponds to a top-level directory.
72594         This bug made du -x fail.  Here's the coreutils test case:
72595         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72596         Reported by Mike Frysinger.
72597
72598 2006-12-01  Jim Meyering  <jim@meyering.net>
72599
72600         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72601         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72602         Reported by Simon Josefsson.
72603
72604 2006-11-30  Jim Meyering  <jim@meyering.net>
72605
72606         * m4/warning.m4: Use the all-permissive copyright notice
72607         recommended by RMS (rather than LGPL).
72608         * m4/vararrays.m4: Likewise.
72609         * m4/flexmember.m4: Likewise.
72610
72611 2006-11-29  Bruno Haible  <bruno@clisp.org>
72612
72613         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72614         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72615         using +=.
72616         Reported by Simon Josefsson <simon@josefsson.org>.
72617
72618 2006-11-28  James Youngman <jay@gnu.org>
72619
72620         * README: Advise users that they might find the bug-gnulib@gnu.org
72621         and autotools-announce@gnu.org mailing lists useful.
72622
72623 2006-11-28  Bruno Haible  <bruno@clisp.org>
72624
72625         * m4/ptrdiff_max.m4: Remove file.
72626
72627 2006-11-21  Bruno Haible  <bruno@clisp.org>
72628
72629         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72630         _AC_COMPUTE_INT.
72631         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72632         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72633         _AC_COMPUTE_INT.
72634         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72635         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72636         _AC_COMPUTE_INT.
72637         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72638
72639 2006-11-28  Jim Meyering  <jim@meyering.net>
72640
72641         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72642         warning from "gcc -Wshadow" about shadowing the builtin.
72643
72644 2006-11-27  Bruno Haible  <bruno@clisp.org>
72645
72646         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72647         _AC_COMPUTE_INT.
72648         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72649
72650 2006-11-27  Bruno Haible  <bruno@clisp.org>
72651             Paul Eggert  <eggert@cs.ucla.edu>
72652
72653         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72654
72655 2006-11-26  Bruno Haible  <bruno@clisp.org>
72656
72657         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72658         noinst_LTLIBRARIES.
72659
72660 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72661             Bruno Haible  <bruno@clisp.org>
72662
72663         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72664         if compiling with "gcc -ansi".
72665
72666 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         Fix some incompatibilities with gcc -ansi -pedantic.
72669         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72670         if compiling pedantically with GCC, unless it's C99 or later.
72671         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72672         it mishandles gcc -ansi -pedantic as well.
72673         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72674         if gcc -pedantic.
72675         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72676         initializers for struct if -pedantic, unless it's C99 or later.
72677
72678 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72679
72680         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72681         Don't close an fd more than once. Identical atimes indicate
72682         success, not failure.
72683
72684 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72685
72686         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72687
72688 2006-11-23  Jim Meyering  <jim@meyering.net>
72689
72690         * build-aux/announce-gen: New file.  From coreutils.
72691
72692 2006-11-22  Jim Meyering  <jim@meyering.net>
72693
72694         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72695         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72696         (fts_read): Use a temporary to narrow the overused st_size member
72697         before using it in a switch statement.  Reported by Matthew Woehlke.
72698
72699         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72700         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72701
72702 2006-11-20  Bruno Haible  <bruno@clisp.org>
72703
72704         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72705         changequote instead of pairs of brackets.
72706         Reported by Andreas Schwab <schwab@suse.de>.
72707
72708 2006-11-21  Jim Meyering  <jim@meyering.net>
72709
72710         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72711         so as to remain compatible with older compilers.
72712         Patch from Michael Deutschmann.
72713
72714 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * MODULES.html.sh (File system functions): Add openat.
72717
72718         * lib/openat.h (rpl_fstatat): New macro, if
72719         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72720         (fstatat): Define to rpl_fstatat under the same conditions,
72721         unless COMPILING_FSTATAT.
72722         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72723         seems to have the bug.
72724         * lib/fstatat.c: New file.
72725         * modules/openat (Files): Add it.
72726
72727 2006-11-20  Bruno Haible  <bruno@clisp.org>
72728
72729         * Makefile: New file.
72730
72731 2006-11-20  Jim Meyering  <jim@meyering.net>
72732
72733         The beginnings of syntax-related checks for gnulib.
72734         * lib/Makefile: New file.
72735         * lib/t-idcache: New script.  Ensure that the two halves of
72736         idcache.c stay in sync.
72737
72738         * lib/idcache.c: Adjust comments in user- and group- portions to
72739         be more accurate, and to be consistent with one another.
72740
72741 2006-11-20  Jim Meyering  <jim@meyering.net>
72742
72743         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72744         continue using the flexible array member (thus, this module performs
72745         half as many malloc calls), with the addition that...
72746         (getgroup, getuser): Consistently record a non-match via an empty
72747         "name" string, and map an empty string match to a NULL return value.
72748         * modules/idcache (Depends-on): Re-add flexmember.
72749
72750         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72751         (getuidbyname, getgroup, getgidbyname): Likewise.
72752
72753         Use cleaner syntax: NULL rather than 0.
72754         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72755
72756 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72757
72758         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72759         It mishandled the case where the group was missing.
72760         Problem reported by Greg Schafer.
72761         * modules/idcache: Likewise.
72762
72763 2006-11-18  Jim Meyering  <jim@meyering.net>
72764
72765         * check-module (%exempt_header): Add exception for some
72766         conditionally-included headers.
72767
72768         * modules/i-ring (Depends-on): Add verify.
72769         (License): Change to LGPL.
72770
72771 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72774         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72775         and inttostr.h.  Use snprintf rather than uinttostr, so that
72776         LGPLed code doesn't depend on GPLed.
72777
72778 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72779
72780         * modules/inline (License): Change from GPL to LGPL.
72781
72782 2006-11-17  Jim Meyering  <jim@meyering.net>
72783
72784         * modules/d-type (License): Switch to LGPL.
72785
72786 2006-11-15  Bruno Haible  <bruno@clisp.org>
72787
72788         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72789
72790 2006-11-15  Eric Blake  <ebb9@byu.net>
72791
72792         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72793         the module dependency.
72794
72795 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72796             Bruno Haible  <bruno@clisp.org>
72797
72798         * gnulib-tool (func_create_testdir): Add license consistency check.
72799
72800 2006-11-15  Eric Blake  <ebb9@byu.net>
72801
72802         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72803         random "(cached)" in configure output.
72804
72805 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72806
72807         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72808         test for conforming inttypes.h is both announced and cached.
72809
72810         * MODULES.html.sh (seen_modules, seen_files): New variables.
72811         (func_module): Rewrite to use a few less gnulib-tool and sed
72812         invocations.  Avoid a couple of quadratic algorithms for ...
72813         (missed_modules, missed_files): ... these, with ...
72814         (func_append, func_tmpdir): ... these new functions, from
72815         gnulib-tool.  Analogously, install traps for cleanup.
72816
72817         * tests/test-gc.c (main): Remove unused variables.
72818         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72819
72820 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72821
72822         * modules/inttostr (License): Change to LGPL.
72823
72824 2006-11-14  Eric Blake  <ebb9@byu.net>
72825
72826         * modules/tempname (License): Change to LGPL.
72827
72828 2006-11-14  Eric Blake  <ebb9@byu.net>
72829
72830         * doc/functions.texi (Function Portability): *printf functions on
72831         Cygwin now understand all POSIX size specifiers.
72832
72833 2006-11-14  Bruno Haible  <bruno@clisp.org>
72834
72835         * modules/c-ctype (License): Change to LGPL.
72836
72837 2006-11-12  Bruno Haible  <bruno@clisp.org>
72838
72839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72840         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72841         for GNOME libraries, for which the include files are installed in
72842         subdirectories of $prefix/include.
72843
72844 2006-11-12  Bruno Haible  <bruno@clisp.org>
72845
72846         * m4/lib-link.m4: Require at least autoconf-2.54.
72847         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72848         name to underscores for the --with option.
72849
72850 2006-11-13  Bruno Haible  <bruno@clisp.org>
72851
72852         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72853         the tests directory.
72854         Reported by Ralf Wildenhues.
72855
72856 2006-11-13  Bruno Haible  <bruno@clisp.org>
72857
72858         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72859         (func_emit_initmacro_end): Undo the override here.
72860         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72861         Works around the famous automake error in coreutils.
72862
72863 2006-11-13  Eric Blake  <ebb9@byu.net>
72864
72865         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72866         element, not its node.
72867
72868 2006-11-12  Bruno Haible  <bruno@clisp.org>
72869
72870         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72871         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72872
72873 2006-11-12  Bruno Haible  <bruno@clisp.org>
72874
72875         * gnulib-tool: New option --local-symlink.
72876         (func_usage): Document it.
72877         (lsymbolic): New variable.
72878         (func_import, func_create_testdir): If --symlink was not specified,
72879         test whether --local-symlink was specified and the file comes from
72880         the local_gnulib_dir.
72881
72882 2006-11-12  Bruno Haible  <bruno@clisp.org>
72883
72884         * gnulib-tool (func_ln): New function.
72885         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72886
72887 2006-11-12  Bruno Haible  <bruno@clisp.org>
72888
72889         Finish support for source files in subdirectories.
72890         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72891         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72892         AUTOMAKE_OPTIONS.
72893         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72894
72895 2006-11-12  Bruno Haible  <bruno@clisp.org>
72896
72897         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72898         EXTRA_lib_SOURCES augmentation.
72899         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72900
72901 2006-11-12  Jim Meyering  <jim@meyering.net>
72902
72903         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72904         file descriptors.  This also averts a failure on systems with
72905         native openat support when a traversed directory lacks "x" access.
72906         * lib/fts_.h: Include "i-ring.h"
72907         (struct FTS) [fts_fd_ring]: New member.
72908         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72909         (FCHDIR): Add parentheses.
72910         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72911         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72912         When descending, rather than simply closing the previous
72913         fts_cwd_fd value, push that file descriptor onto the ring.
72914         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72915         (fts_open): Initialize the new fd_ring member.
72916         (fts_close): Clear the ring.
72917         (fts_safe_changedir): When possible, use our new fd_ring to skip
72918         the diropen and fstat and dev/ino comparison that would normally
72919         accompany a virtual `chdir ("..")'.
72920
72921         * modules/fts (Depends-on): Add i-ring.
72922         * modules/i-ring: New module.
72923         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72924         * m4/i-ring.m4: New file.
72925
72926 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72927
72928         * gnulib-tool (func_create_testdir): Fix replacement of
72929         `build-aux' in configure.ac.  Run autotools in gltests
72930         subdirectory.
72931         (func_create_testdir, func_create_megatestdir, test): There is
72932         no need for '--force' in most autotool invocations in a new
72933         tree.  Actually fail the whole test if any of the tools, or the
72934         configure or make stages fail.
72935
72936         Sync from Automake.
72937         * build-aux/gnupload: Revert last change.  Add pointer to upload
72938         instructions of the GNU Maintenance Instructions.
72939         Suggestion by Karl Berry.
72940
72941 2006-11-10  Jim Meyering  <jim@meyering.net>
72942
72943         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72944
72945 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72948         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72949         (bind_textdomain_codeset) [! ENABLE_NLS]:
72950         Evaluate all the arguments.  That way, callers get compatible behavior
72951         if the arguments have side effects.  Also, it avoids some GCC
72952         diagnostics in some cases; Joel E. Denny reported problems when Bison
72953         was configured with --enable-gcc-warnigs.
72954
72955 2006-11-10  Jim Meyering  <jim@meyering.net>
72956
72957         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72958         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72959         account.
72960
72961 2006-11-10  Jim Meyering  <jim@meyering.net>
72962
72963         * modules/inline: New file/module.
72964         * modules/xalloc (Files): Remove m4/inline.m4.
72965         (Depends-on): Add inline, instead.
72966         * modules/oset: Likewise.
72967         * modules/list: Likewise.
72968
72969 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72972         Problem reported by Matthew Woehlke.
72973
72974 2006-11-09  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/tempname.c (gen_tempname): Remove variant that invokes
72977         __gen_tempname.
72978         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72979         __gen_tempname.
72980
72981 2006-11-08  Bruno Haible  <bruno@clisp.org>
72982
72983         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72984         to 'yes' instead of 'cross-compiling'.
72985
72986 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72987
72988         * lib/quotearg.h (quotearg_free): New decl.
72989         * lib/quotearg.c (quotearg_free): New function.
72990         (slot0, nslots, slotvec0, slotvec):
72991         Now file-scope so that quotearg_free can get at them.
72992
72993 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72994
72995         Sync from Automake.
72996         * build-aux/gnupload: Add missing 'gnu' to example URL.
72997         Report by Karl Berry.
72998
72999 2006-11-08  Bruno Haible  <bruno@clisp.org>
73000
73001         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73002         Suggested by Paul Eggert.
73003
73004 2006-11-08  Jim Meyering  <jim@meyering.net>
73005
73006         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73007         It's already included if !_LIBC.
73008         (fts_safe_changedir): Add a comment.
73009
73010 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73013         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73014         Matthew Woehlke.
73015
73016         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73017         definitions up, to avoid colliding with change below.
73018         (static_inline) [HAVE_INLINE]: New macro.
73019         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73020         Provide extern decls when !HAVE_INLINE.  Do not define unless
73021         static_inline is defined, either by us or by xmalloc.c.  Use
73022         static_inline rather than static inline.
73023         (XCALLOC): Optimize sizeof(T) = 1 case.
73024         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73025
73026 2006-11-07  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73029         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73030         AC_C_INLINE.
73031         * modules/xalloc (Files): Add m4/inline.m4.
73032
73033 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73034
73035         * README: Fix typo.
73036         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73037         (Miscellanous Notes): ...from this.
73038
73039 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73040
73041         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73042         Mention that offsetof should be used instead of sizeof.
73043         From Bruno Haible.
73044
73045 2006-11-07  Bruno Haible  <bruno@clisp.org>
73046
73047         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73048
73049 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73052         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73053         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73054         (gl_tree_add_before, gl_tree_add_after):
73055         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73056         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73057         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73058         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73059         (gl_linked_add_after, gl_linked_add_at): Likewise.
73060         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73061         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73062         (gl_tree_add_before, gl_tree_add_after): Likewise.
73063         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73064         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73065         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73066
73067 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73068
73069         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73070
73071 2006-11-06  Bruno Haible  <bruno@clisp.org>
73072
73073         * m4/inline.m4: New file.
73074         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73075         * modules/list (Files): Add m4/inline.m4.
73076         * modules/oset (Files): Likewise.
73077
73078 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         * lib/idcache.c: Include <stddef.h>, for offsetof.
73081         (struct userid.name): Change from char * to a flexible array member.
73082         All uses changed.
73083         * modules/idcache (Depends-on): Add flexmember.
73084
73085         * MODULES.html.sh (Core language properties): New module flexmember.
73086         * modules/flexmember, m4/flexmember.m4: New files.
73087
73088         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73089         inline functions that are identical with the old xnmalloc_inline,
73090         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73091         that we can avoid some unnecessary integer multiplications and
73092         divisions in the common case where the element size is known at
73093         compile time.
73094         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73095         needed.
73096         (xnboundedmalloc): Remove.
73097         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73098         arguments, for consistency with rest of this header.
73099         (xcharalloc): Rewrite using XNMALLOC.
73100         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73101         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73102         versions have been moved to lib/xalloc.h and renamed to be the
73103         non-*_inline versions.
73104         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73105         and xnrealloc functions, since those functions are now inline and
73106         now call us.
73107         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73108         renaming described above.
73109         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73110         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73111         captures the dependency in AC_C_INLINE.
73112
73113         New module canonicalize-lgpl, proposed by Charles Wilson in
73114         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73115         with a few small changes afterwards.
73116         * MODULES.html.sh (File system functions): New module
73117         canonicalize-lgpl.
73118         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73119         and canonicalize_file_name.
73120         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73121         * modules/canonicalize-lgpl: New files.
73122
73123 2006-11-05  Bruno Haible  <bruno@clisp.org>
73124
73125         * gnulib-tool (func_import, func_create_testdir): Create directories
73126         also for files in subdirectories of lib/.
73127
73128 2006-11-05  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73131         ANSI C compliant.
73132
73133 2006-11-03  Bruno Haible  <bruno@clisp.org>
73134
73135         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73136         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73137         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73138         (xnboundedmalloc): New inline function.
73139         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73140         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73141         xmalloc.
73142         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73143         xmalloc.
73144         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73145         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73146         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73147         xmalloc.
73148         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73149         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73150         xmalloc.
73151         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73152         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73153         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73154         xmalloc.
73155         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73156         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73157         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73158         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73159         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73160         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73161         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73162
73163 2006-11-03  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/c-ctype.h [C++]: Define functions without name mangling.
73166         * lib/fwriteerror.h [C++]: Likewise.
73167         * lib/gcd.h [C++]: Likewise.
73168         * lib/linebreak.h [C++]: Likewise.
73169
73170 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73173         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73174         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73175         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73176         Check for functions and headers just once.
73177         Check for declaration of canonicalize_file_name.
73178         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73179
73180 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73181
73182         * gnulib-tool (func_import): Fix typo in actioncmd.
73183
73184 2006-11-02  Bruno Haible  <bruno@clisp.org>
73185
73186         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73187         newline sequence in the Makefile.am snippet as a space, like "make"
73188         does.
73189         Reported by Roger Persson <perrog@gmail.com>.
73190
73191 2006-11-01  Bruno Haible  <bruno@clisp.org>
73192
73193         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73194         already declared in <string.h>.
73195         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73196
73197 2006-11-01  Bruno Haible  <bruno@clisp.org>
73198
73199         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73200         * lib/strcase.h: Include <string.h>.
73201         (strcasecmp): Define to rpl_strcasecmp here.
73202
73203 2006-11-01  Bruno Haible  <bruno@clisp.org>
73204
73205         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73206
73207 2006-11-01  Eric Blake  <ebb9@byu.net>
73208
73209         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73210
73211         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73212
73213 2006-10-29  Bruno Haible  <bruno@clisp.org>
73214
73215         Make it compile in C++ mode.
73216         * lib/full-write.c (full_rw): Add a cast.
73217
73218 2006-11-01  Bruno Haible  <bruno@clisp.org>
73219
73220         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73221         be POSIX compliant.
73222         Reported by Roger Persson <perrog@gmail.com>.
73223
73224 2006-11-01  Eric Blake  <ebb9@byu.net>
73225
73226         * lib/getopt_.h: Fix comments.
73227
73228 2006-10-31  Eric Blake  <ebb9@byu.net>
73229
73230         * modules/tmpdir (Depends-on): Add sys_stat.
73231         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73232         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73233         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73234         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73235         tempname.
73236
73237 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         Avoid some C++ diagnostics reported by Bruno Haible.
73240         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73241         xmalloc.
73242         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73243         (struct slotvec): Move to top level.
73244         (quotearg_n_options): Rewrite to avoid xmalloc.
73245         * lib/xalloc.h (xcharalloc): New function.
73246         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73247         [defined __cplusplus]: Add function template that provides result
73248         type propagation.  This part of the change is from Bruno Haible.
73249
73250 2006-10-29  Bruno Haible  <bruno@clisp.org>
73251
73252         Make it compile in C++ mode.
73253         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73254         * lib/strnlen1.c (strnlen1): Cast memchr result.
73255         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73256         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73257         (create_temp_dir): Rename local variable 'template'.
73258         (compile_csharp_using_sscli): Add cast.
73259         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73260         * lib/findprog.c (find_in_path): Likewise.
73261         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73262         * lib/wait-process.c (register_slave_subprocess): Likewise.
73263
73264 2006-10-22  Bruno Haible  <bruno@clisp.org>
73265
73266         * modules/tsearch: New file.
73267         * lib/tsearch.h: New file.
73268         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73269         * m4/tsearch.m4: New file.
73270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73271
73272 2006-10-29  Eric Blake  <ebb9@byu.net>
73273
73274         * lib/arcfour.c: Assume config.h.
73275         * lib/arctwo.c: Likewise.
73276         * lib/base64.c: Likewise.
73277         * lib/check-version.c: Likewise.
73278         * lib/crc.c: Likewise.
73279         * lib/des.c: Likewise.
73280         * lib/gc-gnulib.c: Likewise.
73281         * lib/gc-libgcrypt.c: Likewise.
73282         * lib/gc-pbkdf2-sha1.c: Likewise.
73283         * lib/getaddrinfo.c: Likewise.
73284         * lib/getdelim.c: Likewise.
73285         * lib/getline.c: Likewise.
73286         * lib/hmac-md5.c: Likewise.
73287         * lib/hmac-sha1.c: Likewise.
73288         * lib/iconvme.c: Likewise.
73289         * lib/md2.c: Likewise.
73290         * lib/md4.c: Likewise.
73291         * lib/memxor.c: Likewise.
73292         * lib/read-file.c: Likewise.
73293         * lib/readline.c: Likewise.
73294         * lib/rijndael-alg-fst.c: Likewise.
73295         * lib/rijndael-api-fst.c: Likewise.
73296         * lib/xgetdomainname.c: Likewise.
73297
73298 2006-10-28  Eric Blake  <ebb9@byu.net>
73299
73300         * lib/xstrndup.c: Assume config.h.
73301
73302 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73305         stat-macros.h is now for our own macros, whereas stat_h is for
73306         macros in the <sys/stat.h> name space.
73307         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73308         (STAT_MACROS_H): Remove.
73309         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73310         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73311         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73312         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73313         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73314         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73315         Move these macros to ...
73316         * lib/stat_.h: here.  Don't include stat-macros.h.
73317         * lib/canonicalize.c: Don't include stat-macros.h.
73318         * lib/chown.c: Likewise.
73319         * lib/euidaccess.c: Likewise.
73320         * lib/file-type.c: Likewise.
73321         * lib/filemode.c: Likewise.
73322         * lib/glob.c: Likewise.
73323         * lib/isapipe.c: Likewise.
73324         * lib/lchown.c: Likewise.
73325         * lib/lstat.c: Likewise.
73326         * lib/mkdir-p.c: Likewise.
73327         * lib/rmdir.c: Likewise.
73328         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73330         unless mkdir isn't declared, to speed up 'configure'.
73331         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73332         would define all the S_* symbols.
73333         * modules/canonicalize (Depends-on):
73334         Depend on sys_stat, not stat-macros.
73335         * modules/chown: Likewise.
73336         * modules/euidaccess: Likewise.
73337         * modules/filemode: Likewise.
73338         * modules/file-type: Likewise.
73339         * modules/glob: Likewise.
73340         * modules/isapipe: Likewise.
73341         * modules/lchown: Likewise.
73342         * modules/lstat: Likewise.
73343         * modules/mkancesdirs: Likewise.
73344         * modules/rmdir: Likewise.
73345         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73346         * modules/modechange: Likewise.
73347         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73348         (configure.ac): Remove gl_STAT_MACROS.
73349         * modules/sys_stat (Depends-on): Remove stat-macros.
73350
73351 2006-10-27  Bruno Haible  <bruno@clisp.org>
73352
73353         * m4/signed.m4: Remove file.
73354         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73355         invocation.
73356         * modules/vasnprintf (Files): Remove m4/signed.m4.
73357
73358 2006-10-27  Bruno Haible  <bruno@clisp.org>
73359
73360         Update to GNU gettext 0.16.
73361         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73362         m4/inttypes-h.m4, m4/signed.m4.
73363         * m4/gettext.m4: Update to GNU gettext 0.16.
73364         * m4/intl.m4: New file, from GNU gettext.
73365         * m4/intldir.m4: New file, from GNU gettext.
73366         * config/srclist.txt: Update
73367
73368 2006-10-27  Eric Blake  <ebb9@byu.net>
73369
73370         * MODULES.html.sh: Document tempname.
73371         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73372         dependencies.
73373         (Files): Move lib/tempname.c...
73374         * modules/tempname: ...to this new module.
73375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73376         (gl_PREREQ_TEMPNAME): Move...
73377         * m4/tempname.m4: ...to this new file.
73378         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73379         * modules/sys_stat (Depends-on): Add stat-macros.
73380         * lib/stat_.h (includes): Pick up stat macros.
73381         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73382         if stat macros are broken.
73383         * lib/tempname.c (includes): No need to include "stat-macros.h".
73384         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73385         (direxists, __path_search) [!_LIBC]: Don't compile these in
73386         gnulib; the tmpdir module covers that.
73387         * lib/tempname.h: New file.
73388
73389 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73390
73391         * COPYING: Explain how gnulib-tool converts licence headers.
73392         Almost all wording by Eric Blake.
73393
73394 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/mbchar.h (is_basic_table): Make read-only.
73397         * lib/mbchar.c (is_basic_table): Likewise.
73398         Reported by John Darrington.
73399
73400 2006-10-25  Bruno Haible  <bruno@clisp.org>
73401
73402         * lib/progname.h (set_program_name): Undefine before defining.
73403
73404 2006-10-25  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73407         false for non-gcc C++ compilers.
73408         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73409
73410 2006-10-24  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73413         iconv implementations like Irix iconv.
73414
73415 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * modules/vararrays: New file.
73418         * m4/vararrays.m4: New file, taken from diffutils.
73419         * MODULES.html.sh: New module vararrays.
73420
73421 2006-10-24  Karl Berry  <karl@gnu.org>
73422
73423         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73424         Don't call GNU Unix.
73425
73426 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73427
73428         * users.txt: Add Libtool.
73429
73430         Sync from Libtool:
73431
73432         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73435         to gnulib's policy of including config.h unconditionally.
73436
73437 2006-10-24  Bruno Haible  <bruno@clisp.org>
73438
73439         * modules/wcwidth (Files): Add m4/wint_t.m4.
73440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73441         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73442
73443 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73444
73445         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73446         to pacify GCC with some -W flags enabled.  Problem reported by
73447         Bruno Haible.
73448
73449 2006-10-24  Jim Meyering  <jim@meyering.net>
73450
73451         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73452         Reported by Karl Berry.
73453
73454 2006-10-23  Bruno Haible  <bruno@clisp.org>
73455
73456         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73457
73458 2006-10-24  Bruno Haible  <bruno@clisp.org>
73459
73460         * lib/gl_list.h: Use C comment style, not C++ comment style.
73461
73462 2006-10-23  Eric Blake  <ebb9@byu.net>
73463
73464         * lib/getaddrinfo.c (includes): Add missing include.
73465
73466 2006-10-23  Bruno Haible  <bruno@clisp.org>
73467             Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         Ability to rename obstack_free.
73470         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73471         obstack_free.
73472         (obstack_free): Invoke the __obstack_free macro.
73473         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73474
73475 2006-10-23  Bruno Haible  <bruno@clisp.org>
73476             Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73479         __argc, __argv from the declaration. (They are defined as macros on
73480         mingw.)
73481
73482 2006-10-22  Bruno Haible  <bruno@clisp.org>
73483
73484         * doc/gnulib-intro.texi: New file.
73485         * doc/gnulib.texi: Include it.
73486
73487 2006-10-21  Bruno Haible  <bruno@clisp.org>
73488
73489         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73490         "Introduction", "Miscellanous Notes", "Particular Modules".
73491
73492 2006-10-21  Bruno Haible  <bruno@clisp.org>
73493
73494         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73495         Change mostlyclean-local rule to avoid sh syntax error from bash
73496         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73497
73498 2006-10-23  Jim Meyering  <jim@meyering.net>
73499
73500         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73501         in place of snprintf.
73502
73503         * modules/inttostr (Files): Add lib/uinttostr.c.
73504         * lib/uinttostr.c (inttostr): New file/function.
73505         * lib/inttostr.h (uinttostr): Declare.
73506         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73507         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73508         Add uinttostr.
73509         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73510
73511 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73512
73513         * lib/canonicalize.c (ELOOP): Define if not already defined.
73514         Problem reported by Bruno Haible in
73515         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73516
73517 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73520         Problem reported by Perry Smith and Ville Laurikari.
73521
73522         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73523         uses.
73524
73525 2006-10-19  Bruno Haible  <bruno@clisp.org>
73526
73527         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73528         for mingw.
73529
73530 2006-10-19  Bruno Haible  <bruno@clisp.org>
73531
73532         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73533         Needed for mingw.
73534
73535 2006-10-19  Bruno Haible  <bruno@clisp.org>
73536
73537         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73538
73539 2006-10-19  Bruno Haible  <bruno@clisp.org>
73540
73541         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73542         it.
73543
73544 2006-10-19  Bruno Haible  <bruno@clisp.org>
73545
73546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73547         invocation.
73548
73549 2006-10-19  Bruno Haible  <bruno@clisp.org>
73550
73551         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73552         mountlist by default.
73553
73554 2006-10-16  Bruno Haible  <bruno@clisp.org>
73555
73556         * lib/c-strstr.c: Include c-strstr.h.
73557
73558 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73559
73560         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73561         in a slash.
73562
73563 2006-10-18  Bruno Haible  <bruno@clisp.org>
73564
73565         * lib/lock.h [C++]: Wrap definitions in extern "C".
73566
73567 2006-10-18  Bruno Haible  <bruno@clisp.org>
73568
73569         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73570         gl_LIBOBJS list.
73571
73572 2006-10-18  Bruno Haible  <bruno@clisp.org>
73573
73574         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73575
73576 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * lib/xstrtol.h: Include gettext.h.
73579         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73580         Problem reported by Eric Blake.
73581         * modules/xstrtol (Depends-on): Add gettext-h.
73582
73583 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73584
73585         * lib/strftime.c (advance): New macro.
73586         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73587         incomplete type, so you can't add 0 to it.  Problem and patch
73588         reported by Eelco Dolstra for dietlibc.
73589
73590 2006-10-18  Jim Meyering  <jim@meyering.net>
73591
73592         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73593         type for a local, and rename it: s/up/user_proc/.
73594
73595 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73596
73597         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73598         READ_UTMP_USER_PROCESS.
73599         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73600
73601 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73602
73603         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73604         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73605
73606 2006-10-17  Eric Blake  <ebb9@byu.net>
73607
73608         * lib/sigprocmask.c (sigprocmask): Fix typo.
73609
73610         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73611
73612         * modules/clean-temp (Makefile.am): Don't add to make output...
73613         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73614         config.h.
73615
73616 2006-10-17  Bruno Haible  <bruno@clisp.org>
73617
73618         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73619         differently if DEFAULT_TEXT_DOMAIN is set.
73620
73621 2006-10-16  Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/clean-temp.c: Include fwriteerror.h.
73624
73625 2006-10-16  Bruno Haible  <bruno@clisp.org>
73626
73627         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73628
73629 2006-10-16  Bruno Haible  <bruno@clisp.org>
73630
73631         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73632         * lib/sigprocmask.h: Include <sys/types.h>.
73633         (sigset_t): Use the system's definition if present.
73634
73635 2006-10-17  Eric Blake  <ebb9@byu.net>
73636
73637         * lib/xvasprintf.c (includes): Assume config.h.
73638         * lib/xasprintf.c (includes): Likewise.
73639
73640 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73643         at least as wide as intmax_t.
73644
73645 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73646
73647         (Imported from Automake.)
73648         * build-aux/gnupload: Update to version 1.1 of directive file.
73649
73650 2006-10-16  Eric Blake  <ebb9@byu.net>
73651
73652         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73653         match Automake 1.10a.
73654
73655 2006-10-14  Bruno Haible  <bruno@clisp.org>
73656
73657         * modules/sigprocmask: New file.
73658         * lib/sigprocmask.h: New file.
73659         * lib/sigprocmask.c: New file.
73660         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73661         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73662         request sigprocmask.o.
73663         (gl_PREREQ_SIGPROCMASK): New macro.
73664         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73665         (Depends-on): Add sigprocmask.
73666         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73667         gt_SIGNALBLOCKING. Test for 'raise' only once.
73668         * lib/fatal-signal.c: Include sigprocmask.h.
73669         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73670         unblock_fatal_signals): Define always.
73671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73672         sigprocmask.
73673
73674 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         Sync from Automake.
73677         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73678         which incorrectly sets the mode of an existing destination
73679         directory.  In some cases the unpatched install-sh could do the
73680         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73681         system.  We hope this is rare in practice, but it's clearly worth
73682         fixing.  Problem reported by Alex Unleashed in
73683         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73684         Also, don't bother to check for -m bugs unless we're using -m;
73685         suggested by Stepan Kasal.
73686
73687 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73688
73689         Sync from Automake.
73690         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73691         `-c' flag, so they appear at the same position as in %FASTDEP%
73692         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73693         which ignores unknown options only after the first non-option.
73694         Bug report against M4 by Nelson H. F. Beebe.
73695
73696 2006-10-13  Jim Meyering  <jim@meyering.net>
73697
73698         Fix a bug in yesterday's change.
73699         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73700         p->fts_statp->st_dev would be used uninitialized.
73701         Ensures that we always call fts_stat on the very first entry.
73702         Miklos Szeredi reported that find -xdev stopped working.
73703
73704 2006-10-12  Bruno Haible  <bruno@clisp.org>
73705
73706         * gnulib-tool (func_get_automake_snippet): Append an automatically
73707         computed EXTRA_DIST augmentation.
73708         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73709         * modules/alloca-opt (Makefile.am): Likewise.
73710         * modules/allocsa (Makefile.am): Likewise.
73711         * modules/arcfour (Makefile.am): Likewise.
73712         * modules/arctwo (Makefile.am): Likewise.
73713         * modules/argmatch (Makefile.am): Likewise.
73714         * modules/argz (Makefile.am): Likewise.
73715         * modules/atexit (Makefile.am): Likewise.
73716         * modules/backupfile (Makefile.am): Likewise.
73717         * modules/byteswap (Makefile.am): Likewise.
73718         * modules/c-strtod (Makefile.am): Likewise.
73719         * modules/c-strtold (Makefile.am): Likewise.
73720         * modules/calloc (Makefile.am): Likewise.
73721         * modules/canon-host (Makefile.am): Likewise.
73722         * modules/canonicalize (Makefile.am): Likewise.
73723         * modules/chdir-long (Makefile.am): Likewise.
73724         * modules/chdir-safer (Makefile.am): Likewise.
73725         * modules/check-version (Makefile.am): Likewise.
73726         * modules/chown (Makefile.am): Likewise.
73727         * modules/cloexec (Makefile.am): Likewise.
73728         * modules/close-stream (Makefile.am): Likewise.
73729         * modules/closeout (Makefile.am): Likewise.
73730         * modules/crc (Makefile.am): Likewise.
73731         * modules/csharpexec (Makefile.am): Likewise.
73732         * modules/cycle-check (Makefile.am): Likewise.
73733         * modules/des (Makefile.am): Likewise.
73734         * modules/dev-ino (Makefile.am): Likewise.
73735         * modules/dirfd (Makefile.am): Likewise.
73736         * modules/dirname (Makefile.am): Likewise.
73737         * modules/dup2 (Makefile.am): Likewise.
73738         * modules/eealloc (Makefile.am): Likewise.
73739         * modules/error (Makefile.am): Likewise.
73740         * modules/euidaccess (Makefile.am): Likewise.
73741         * modules/exclude (Makefile.am): Likewise.
73742         * modules/exitfail (Makefile.am): Likewise.
73743         * modules/fcntl-safer (Makefile.am): Likewise.
73744         * modules/fcntl (Makefile.am): Likewise.
73745         * modules/file-type (Makefile.am): Likewise.
73746         * modules/fileblocks (Makefile.am): Likewise.
73747         * modules/filemode (Makefile.am): Likewise.
73748         * modules/filenamecat (Makefile.am): Likewise.
73749         * modules/fnmatch (Makefile.am): Likewise.
73750         * modules/fopen-safer (Makefile.am): Likewise.
73751         * modules/fpending (Makefile.am): Likewise.
73752         * modules/fprintftime (Makefile.am): Likewise.
73753         * modules/free (Makefile.am): Likewise.
73754         * modules/fsusage (Makefile.am): Likewise.
73755         * modules/ftruncate (Makefile.am): Likewise.
73756         * modules/fts (Makefile.am): Likewise.
73757         * modules/gc-arcfour (Makefile.am): Likewise.
73758         * modules/gc-des (Makefile.am): Likewise.
73759         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73760         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73761         * modules/gc-md4 (Makefile.am): Likewise.
73762         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73763         * modules/gc-sha1 (Makefile.am): Likewise.
73764         * modules/gc (Makefile.am): Likewise.
73765         * modules/getaddrinfo (Makefile.am): Likewise.
73766         * modules/getcwd (Makefile.am): Likewise.
73767         * modules/getdelim (Makefile.am): Likewise.
73768         * modules/getdomainname (Makefile.am): Likewise.
73769         * modules/getgroups (Makefile.am): Likewise.
73770         * modules/gethostname (Makefile.am): Likewise.
73771         * modules/gethrxtime (Makefile.am): Likewise.
73772         * modules/getline (Makefile.am): Likewise.
73773         * modules/getloadavg (Makefile.am): Likewise.
73774         * modules/getlogin_r (Makefile.am): Likewise.
73775         * modules/getndelim2 (Makefile.am): Likewise.
73776         * modules/getopt (Makefile.am): Likewise.
73777         * modules/getpagesize (Makefile.am): Likewise.
73778         * modules/getpass-gnu (Makefile.am): Likewise.
73779         * modules/getpass (Makefile.am): Likewise.
73780         * modules/getsubopt (Makefile.am): Likewise.
73781         * modules/gettime (Makefile.am): Likewise.
73782         * modules/gettimeofday (Makefile.am): Likewise.
73783         * modules/getugroups (Makefile.am): Likewise.
73784         * modules/getusershell (Makefile.am): Likewise.
73785         * modules/glob (Makefile.am): Likewise.
73786         * modules/group-member (Makefile.am): Likewise.
73787         * modules/hard-locale (Makefile.am): Likewise.
73788         * modules/hash (Makefile.am): Likewise.
73789         * modules/hmac-md5 (Makefile.am): Likewise.
73790         * modules/hmac-sha1 (Makefile.am): Likewise.
73791         * modules/human (Makefile.am): Likewise.
73792         * modules/idcache (Makefile.am): Likewise.
73793         * modules/imaxabs (Makefile.am): Likewise.
73794         * modules/imaxdiv (Makefile.am): Likewise.
73795         * modules/inet_ntop (Makefile.am): Likewise.
73796         * modules/inet_pton (Makefile.am): Likewise.
73797         * modules/intprops (Makefile.am): Likewise.
73798         * modules/inttostr (Makefile.am): Likewise.
73799         * modules/inttypes (Makefile.am): Likewise.
73800         * modules/isapipe (Makefile.am): Likewise.
73801         * modules/javaversion (Makefile.am): Likewise.
73802         * modules/lchmod (Makefile.am): Likewise.
73803         * modules/lchown (Makefile.am): Likewise.
73804         * modules/localcharset (Makefile.am): Likewise.
73805         * modules/long-options (Makefile.am): Likewise.
73806         * modules/lstat (Makefile.am): Likewise.
73807         * modules/malloc (Makefile.am): Likewise.
73808         * modules/mathl (Makefile.am): Likewise.
73809         * modules/mbchar (Makefile.am): Likewise.
73810         * modules/md2 (Makefile.am): Likewise.
73811         * modules/md4 (Makefile.am): Likewise.
73812         * modules/md5 (Makefile.am): Likewise.
73813         * modules/memcasecmp (Makefile.am): Likewise.
73814         * modules/memchr (Makefile.am): Likewise.
73815         * modules/memcmp (Makefile.am): Likewise.
73816         * modules/memcoll (Makefile.am): Likewise.
73817         * modules/memcpy (Makefile.am): Likewise.
73818         * modules/memmem (Makefile.am): Likewise.
73819         * modules/memmove (Makefile.am): Likewise.
73820         * modules/mempcpy (Makefile.am): Likewise.
73821         * modules/memrchr (Makefile.am): Likewise.
73822         * modules/memset (Makefile.am): Likewise.
73823         * modules/memxor (Makefile.am): Likewise.
73824         * modules/mkancesdirs (Makefile.am): Likewise.
73825         * modules/mkdir-p (Makefile.am): Likewise.
73826         * modules/mkdir (Makefile.am): Likewise.
73827         * modules/mkdtemp (Makefile.am): Likewise.
73828         * modules/mkstemp (Makefile.am): Likewise.
73829         * modules/mktime (Makefile.am): Likewise.
73830         * modules/modechange (Makefile.am): Likewise.
73831         * modules/mountlist (Makefile.am): Likewise.
73832         * modules/nanosleep (Makefile.am): Likewise.
73833         * modules/obstack (Makefile.am): Likewise.
73834         * modules/openat (Makefile.am): Likewise.
73835         * modules/pagealign_alloc (Makefile.am): Likewise.
73836         * modules/pathmax (Makefile.am): Likewise.
73837         * modules/physmem (Makefile.am): Likewise.
73838         * modules/poll (Makefile.am): Likewise.
73839         * modules/posixtm (Makefile.am): Likewise.
73840         * modules/posixver (Makefile.am): Likewise.
73841         * modules/putenv (Makefile.am): Likewise.
73842         * modules/quote (Makefile.am): Likewise.
73843         * modules/quotearg (Makefile.am): Likewise.
73844         * modules/raise (Makefile.am): Likewise.
73845         * modules/read-file (Makefile.am): Likewise.
73846         * modules/readline (Makefile.am): Likewise.
73847         * modules/readlink (Makefile.am): Likewise.
73848         * modules/readtokens (Makefile.am): Likewise.
73849         * modules/readutmp (Makefile.am): Likewise.
73850         * modules/realloc (Makefile.am): Likewise.
73851         * modules/regex (Makefile.am): Likewise.
73852         * modules/rename-dest-slash (Makefile.am): Likewise.
73853         * modules/rename (Makefile.am): Likewise.
73854         * modules/rijndael (Makefile.am): Likewise.
73855         * modules/rmdir (Makefile.am): Likewise.
73856         * modules/rpmatch (Makefile.am): Likewise.
73857         * modules/safe-read (Makefile.am): Likewise.
73858         * modules/safe-write (Makefile.am): Likewise.
73859         * modules/same-inode (Makefile.am): Likewise.
73860         * modules/same (Makefile.am): Likewise.
73861         * modules/save-cwd (Makefile.am): Likewise.
73862         * modules/savedir (Makefile.am): Likewise.
73863         * modules/setenv (Makefile.am): Likewise.
73864         * modules/settime (Makefile.am): Likewise.
73865         * modules/sha1 (Makefile.am): Likewise.
73866         * modules/sig2str (Makefile.am): Likewise.
73867         * modules/snprintf (Makefile.am): Likewise.
73868         * modules/stat-macros (Makefile.am): Likewise.
73869         * modules/stat-time (Makefile.am): Likewise.
73870         * modules/stdbool (Makefile.am): Likewise.
73871         * modules/stdint (Makefile.am): Likewise.
73872         * modules/stdlib-safer (Makefile.am): Likewise.
73873         * modules/stpcpy (Makefile.am): Likewise.
73874         * modules/stpncpy (Makefile.am): Likewise.
73875         * modules/strcase (Makefile.am): Likewise.
73876         * modules/strcasestr (Makefile.am): Likewise.
73877         * modules/strchrnul (Makefile.am): Likewise.
73878         * modules/strcspn (Makefile.am): Likewise.
73879         * modules/strdup (Makefile.am): Likewise.
73880         * modules/strerror (Makefile.am): Likewise.
73881         * modules/strftime (Makefile.am): Likewise.
73882         * modules/strndup (Makefile.am): Likewise.
73883         * modules/strnlen (Makefile.am): Likewise.
73884         * modules/strpbrk (Makefile.am): Likewise.
73885         * modules/strsep (Makefile.am): Likewise.
73886         * modules/strstr (Makefile.am): Likewise.
73887         * modules/strtod (Makefile.am): Likewise.
73888         * modules/strtoimax (Makefile.am): Likewise.
73889         * modules/strtok_r (Makefile.am): Likewise.
73890         * modules/strtol (Makefile.am): Likewise.
73891         * modules/strtoll (Makefile.am): Likewise.
73892         * modules/strtoul (Makefile.am): Likewise.
73893         * modules/strtoull (Makefile.am): Likewise.
73894         * modules/strtoumax (Makefile.am): Likewise.
73895         * modules/strverscmp (Makefile.am): Likewise.
73896         * modules/sys_socket (Makefile.am): Likewise.
73897         * modules/sys_stat (Makefile.am): Likewise.
73898         * modules/sysexits (Makefile.am): Likewise.
73899         * modules/time_r (Makefile.am): Likewise.
73900         * modules/timegm (Makefile.am): Likewise.
73901         * modules/timespec (Makefile.am): Likewise.
73902         * modules/tmpfile-safer (Makefile.am): Likewise.
73903         * modules/trim (Makefile.am): Likewise.
73904         * modules/unistd-safer (Makefile.am): Likewise.
73905         * modules/unlinkdir (Makefile.am): Likewise.
73906         * modules/unlocked-io (Makefile.am): Likewise.
73907         * modules/userspec (Makefile.am): Likewise.
73908         * modules/utime (Makefile.am): Likewise.
73909         * modules/utimecmp (Makefile.am): Likewise.
73910         * modules/utimens (Makefile.am): Likewise.
73911         * modules/vasnprintf (Makefile.am): Likewise.
73912         * modules/vasprintf (Makefile.am): Likewise.
73913         * modules/vsnprintf (Makefile.am): Likewise.
73914         * modules/xalloc (Makefile.am): Likewise.
73915         * modules/xgetcwd (Makefile.am): Likewise.
73916         * modules/xnanosleep (Makefile.am): Likewise.
73917         * modules/xreadlink (Makefile.am): Likewise.
73918         * modules/xstrtod (Makefile.am): Likewise.
73919         * modules/xstrtol (Makefile.am): Likewise.
73920         * modules/xstrtold (Makefile.am): Likewise.
73921         * modules/yesno (Makefile.am): Likewise.
73922         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73923
73924 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * modules/error (Makefile.am): Distribute files through
73927         EXTRA_DIST, not lib_SOURCES.
73928
73929 2006-10-12  Eric Blake  <ebb9@byu.net>
73930
73931         * modules/error (Makefile.am): Distribute files in /lib.
73932         * modules/obstack (Makefile.am): Likewise.
73933
73934 2006-10-12  Bruno Haible  <bruno@clisp.org>
73935
73936         * modules/acl (Makefile.am): Distribute all files in lib/ through
73937         EXTRA_DIST.
73938         * modules/arcfour (Makefile.am): Likewise.
73939         * modules/arctwo (Makefile.am): Likewise.
73940         * modules/argmatch (Makefile.am): Likewise.
73941         * modules/argz (Makefile.am): Likewise.
73942         * modules/atexit (Makefile.am): Likewise.
73943         * modules/backupfile (Makefile.am): Likewise.
73944         * modules/c-strtod (Makefile.am): Likewise.
73945         * modules/c-strtold (Makefile.am): Likewise.
73946         * modules/calloc (Makefile.am): Likewise.
73947         * modules/canon-host (Makefile.am): Likewise.
73948         * modules/canonicalize (Makefile.am): Likewise.
73949         * modules/chdir-long (Makefile.am): Likewise.
73950         * modules/chdir-safer (Makefile.am): Likewise.
73951         * modules/check-version (Makefile.am): Likewise.
73952         * modules/chown (Makefile.am): Likewise.
73953         * modules/cloexec (Makefile.am): Likewise.
73954         * modules/close-stream (Makefile.am): Likewise.
73955         * modules/closeout (Makefile.am): Likewise.
73956         * modules/crc (Makefile.am): Likewise.
73957         * modules/cycle-check (Makefile.am): Likewise.
73958         * modules/des (Makefile.am): Likewise.
73959         * modules/dirfd (Makefile.am): Likewise.
73960         * modules/dirname (Makefile.am): Likewise.
73961         * modules/dup2 (Makefile.am): Likewise.
73962         * modules/euidaccess (Makefile.am): Likewise.
73963         * modules/exclude (Makefile.am): Likewise.
73964         * modules/exitfail (Makefile.am): Likewise.
73965         * modules/fcntl-safer (Makefile.am): Likewise.
73966         * modules/file-type (Makefile.am): Likewise.
73967         * modules/fileblocks (Makefile.am): Likewise.
73968         * modules/filemode (Makefile.am): Likewise.
73969         * modules/filenamecat (Makefile.am): Likewise.
73970         * modules/fnmatch (Makefile.am): Likewise.
73971         * modules/fopen-safer (Makefile.am): Likewise.
73972         * modules/fpending (Makefile.am): Likewise.
73973         * modules/fprintftime (Makefile.am): Likewise.
73974         * modules/free (Makefile.am): Likewise.
73975         * modules/fsusage (Makefile.am): Likewise.
73976         * modules/ftruncate (Makefile.am): Likewise.
73977         * modules/fts (Makefile.am): Likewise.
73978         * modules/gc (Makefile.am): Likewise.
73979         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73980         * modules/getaddrinfo (Makefile.am): Likewise.
73981         * modules/getcwd (Makefile.am): Likewise.
73982         * modules/getdelim (Makefile.am): Likewise.
73983         * modules/getdomainname (Makefile.am): Likewise.
73984         * modules/getgroups (Makefile.am): Likewise.
73985         * modules/gethostname (Makefile.am): Likewise.
73986         * modules/gethrxtime (Makefile.am): Likewise.
73987         * modules/getline (Makefile.am): Likewise.
73988         * modules/getloadavg (Makefile.am): Likewise.
73989         * modules/getlogin_r (Makefile.am): Likewise.
73990         * modules/getopt (Makefile.am): Likewise.
73991         * modules/getpass (Makefile.am): Likewise.
73992         * modules/getpass-gnu (Makefile.am): Likewise.
73993         * modules/getsubopt (Makefile.am): Likewise.
73994         * modules/gettime (Makefile.am): Likewise.
73995         * modules/gettimeofday (Makefile.am): Likewise.
73996         * modules/getugroups (Makefile.am): Likewise.
73997         * modules/getusershell (Makefile.am): Likewise.
73998         * modules/glob (Makefile.am): Likewise.
73999         * modules/group-member (Makefile.am): Likewise.
74000         * modules/hard-locale (Makefile.am): Likewise.
74001         * modules/hash (Makefile.am): Likewise.
74002         * modules/hmac-md5 (Makefile.am): Likewise.
74003         * modules/hmac-sha1 (Makefile.am): Likewise.
74004         * modules/human (Makefile.am): Likewise.
74005         * modules/idcache (Makefile.am): Likewise.
74006         * modules/imaxabs (Makefile.am): Likewise.
74007         * modules/imaxdiv (Makefile.am): Likewise.
74008         * modules/inet_ntop (Makefile.am): Likewise.
74009         * modules/inet_pton (Makefile.am): Likewise.
74010         * modules/inttostr (Makefile.am): Likewise.
74011         * modules/isapipe (Makefile.am): Likewise.
74012         * modules/lchown (Makefile.am): Likewise.
74013         * modules/long-options (Makefile.am): Likewise.
74014         * modules/lstat (Makefile.am): Likewise.
74015         * modules/malloc (Makefile.am): Likewise.
74016         * modules/mathl (Makefile.am): Likewise.
74017         * modules/mbchar (Makefile.am): Likewise.
74018         * modules/md2 (Makefile.am): Likewise.
74019         * modules/md4 (Makefile.am): Likewise.
74020         * modules/md5 (Makefile.am): Likewise.
74021         * modules/memcasecmp (Makefile.am): Likewise.
74022         * modules/memchr (Makefile.am): Likewise.
74023         * modules/memcmp (Makefile.am): Likewise.
74024         * modules/memcoll (Makefile.am): Likewise.
74025         * modules/memcpy (Makefile.am): Likewise.
74026         * modules/memmem (Makefile.am): Likewise.
74027         * modules/memmove (Makefile.am): Likewise.
74028         * modules/mempcpy (Makefile.am): Likewise.
74029         * modules/memrchr (Makefile.am): Likewise.
74030         * modules/memset (Makefile.am): Likewise.
74031         * modules/memxor (Makefile.am): Likewise.
74032         * modules/mkancesdirs (Makefile.am): Likewise.
74033         * modules/mkdir (Makefile.am): Likewise.
74034         * modules/mkdir-p (Makefile.am): Likewise.
74035         * modules/mkdtemp (Makefile.am): Likewise.
74036         * modules/mkstemp (Makefile.am): Likewise.
74037         * modules/mktime (Makefile.am): Likewise.
74038         * modules/modechange (Makefile.am): Likewise.
74039         * modules/mountlist (Makefile.am): Likewise.
74040         * modules/nanosleep (Makefile.am): Likewise.
74041         * modules/openat (Makefile.am): Likewise.
74042         * modules/pagealign_alloc (Makefile.am): Likewise.
74043         * modules/physmem (Makefile.am): Likewise.
74044         * modules/poll (Makefile.am): Likewise.
74045         * modules/posixtm (Makefile.am): Likewise.
74046         * modules/posixver (Makefile.am): Likewise.
74047         * modules/putenv (Makefile.am): Likewise.
74048         * modules/quote (Makefile.am): Likewise.
74049         * modules/quotearg (Makefile.am): Likewise.
74050         * modules/raise (Makefile.am): Likewise.
74051         * modules/read-file (Makefile.am): Likewise.
74052         * modules/readline (Makefile.am): Likewise.
74053         * modules/readlink (Makefile.am): Likewise.
74054         * modules/readtokens (Makefile.am): Likewise.
74055         * modules/readutmp (Makefile.am): Likewise.
74056         * modules/realloc (Makefile.am): Likewise.
74057         * modules/regex (Makefile.am): Likewise.
74058         * modules/rename (Makefile.am): Likewise.
74059         * modules/rename-dest-slash (Makefile.am): Likewise.
74060         * modules/rijndael (Makefile.am): Likewise.
74061         * modules/rmdir (Makefile.am): Likewise.
74062         * modules/rpmatch (Makefile.am): Likewise.
74063         * modules/safe-read (Makefile.am): Likewise.
74064         * modules/safe-write (Makefile.am): Likewise.
74065         * modules/same (Makefile.am): Likewise.
74066         * modules/save-cwd (Makefile.am): Likewise.
74067         * modules/savedir (Makefile.am): Likewise.
74068         * modules/setenv (Makefile.am): Likewise.
74069         * modules/settime (Makefile.am): Likewise.
74070         * modules/sha1 (Makefile.am): Likewise.
74071         * modules/sig2str (Makefile.am): Likewise.
74072         * modules/snprintf (Makefile.am): Likewise.
74073         * modules/stdlib-safer (Makefile.am): Likewise.
74074         * modules/stpcpy (Makefile.am): Likewise.
74075         * modules/stpncpy (Makefile.am): Likewise.
74076         * modules/strcase (Makefile.am): Likewise.
74077         * modules/strcasestr (Makefile.am): Likewise.
74078         * modules/strchrnul (Makefile.am): Likewise.
74079         * modules/strcspn (Makefile.am): Likewise.
74080         * modules/strdup (Makefile.am): Likewise.
74081         * modules/strerror (Makefile.am): Likewise.
74082         * modules/strftime (Makefile.am): Likewise.
74083         * modules/strndup (Makefile.am): Likewise.
74084         * modules/strnlen (Makefile.am): Likewise.
74085         * modules/strpbrk (Makefile.am): Likewise.
74086         * modules/strsep (Makefile.am): Likewise.
74087         * modules/strstr (Makefile.am): Likewise.
74088         * modules/strtod (Makefile.am): Likewise.
74089         * modules/strtoimax (Makefile.am): Likewise.
74090         * modules/strtok_r (Makefile.am): Likewise.
74091         * modules/strtol (Makefile.am): Likewise.
74092         * modules/strtoll (Makefile.am): Likewise.
74093         * modules/strtoul (Makefile.am): Likewise.
74094         * modules/strtoull (Makefile.am): Likewise.
74095         * modules/strtoumax (Makefile.am): Likewise.
74096         * modules/strverscmp (Makefile.am): Likewise.
74097         * modules/time_r (Makefile.am): Likewise.
74098         * modules/timegm (Makefile.am): Likewise.
74099         * modules/tmpfile-safer (Makefile.am): Likewise.
74100         * modules/unistd-safer (Makefile.am): Likewise.
74101         * modules/unlinkdir (Makefile.am): Likewise.
74102         * modules/userspec (Makefile.am): Likewise.
74103         * modules/utime (Makefile.am): Likewise.
74104         * modules/utimecmp (Makefile.am): Likewise.
74105         * modules/utimens (Makefile.am): Likewise.
74106         * modules/vasnprintf (Makefile.am): Likewise.
74107         * modules/vasprintf (Makefile.am): Likewise.
74108         * modules/vsnprintf (Makefile.am): Likewise.
74109         * modules/xalloc (Makefile.am): Likewise.
74110         * modules/xgetcwd (Makefile.am): Likewise.
74111         * modules/xnanosleep (Makefile.am): Likewise.
74112         * modules/xreadlink (Makefile.am): Likewise.
74113         * modules/xstrtod (Makefile.am): Likewise.
74114         * modules/xstrtol (Makefile.am): Likewise.
74115         * modules/xstrtold (Makefile.am): Likewise.
74116         * modules/yesno (Makefile.am): Likewise.
74117
74118 2006-10-12  Jim Meyering  <jim@meyering.net>
74119
74120         * m4/getloadavg.m4: Revert the change below.
74121
74122         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74123         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74124         fail with a symlink, which is what coreutils' ./bootstrap now
74125         creates by default.
74126
74127 2006-10-12  Bruno Haible  <bruno@clisp.org>
74128
74129         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74130         mingw.
74131         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74132         MSVC and mingw explicitly.
74133
74134 2006-10-11  Simon Josefsson  <jas@extundo.com>
74135             Bruno Haible  <bruno@clisp.org>
74136
74137         Add support for multiple gnulib-tool invocations in the scope of a
74138         single configure.ac file.
74139         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74140         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74141         with the same contents as the _LIBADD variable.
74142         (func_emit_initmacro_start, func_emit_initmacro_end,
74143         func_emit_initmacro_done): New functions.
74144         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74145         gl_LIBOBJS and gl_LTLIBOBJS.
74146
74147 2006-10-11  Bruno Haible  <bruno@clisp.org>
74148
74149         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74150         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74151         autoreconf. Instead, invoke autopoint explicitly but move back the
74152         *.m4 files from gnulib.
74153
74154 2006-10-11  Bruno Haible  <bruno@clisp.org>
74155
74156         * gnulib-tool (func_usage): Make module names after --create-testdir
74157         optional.
74158         (func_create_testdir): If no module was specified, use nearly all
74159         modules.
74160
74161 2006-10-12  Jim Meyering  <jim@meyering.net>
74162
74163         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74164         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74165         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74166         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74167         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74168         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74169         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74170         (fts_set_stat_required): New function.
74171         (fts_open): Defer the calls to fts_stat, if possible or requested.
74172         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74173         into fts_stat itself.
74174         (fts_read): Perform any required (deferred) fts_stat call.
74175         (fts_build): Likewise, for the directory we're about to open and read.
74176         In the readdir loop, carefully decide whether each entry will require
74177         an eventual call to fts_stat, using dirent.d_type info if available.
74178         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74179         a command line argument into this function.  Update all callers.
74180         Map a return value of FTS_DOT to FTS_D for a command line argument.
74181         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74182         Thanks to Miklos Szeredi for his tenacity and for the initial
74183         bug report about "find" failing on a FUSE-based file system.
74184
74185         * lib/fts.c (fts_open): Use consistent indentation.
74186
74187 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74190         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74191         reported by Jim Meyering.  All uses of cache variables renamed
74192         to match Autoconf's.
74193         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74194         the other one.
74195
74196         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74197         Fix misspelling in diagnostic.
74198
74199 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74200
74201         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74202         defined.  Problem reported by Matthew Woehlke.
74203
74204         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74205         Add support for Tandem NonStop R series.
74206         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74207         Use new macro.
74208
74209         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74210         (has_trailing_slash): Omit size arg; all callers changed.
74211         Omit 'inline', since it doesn't help performance and we'd
74212         need to configure it.
74213         Don't count //, ///, etc. as having a trailing slash.
74214         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74215         (rpl_rename_dest_slash): On failure, use rename's errno rather
74216         than (in some cases) an incorrect or junk errno.
74217         Simplify code by removing need to compute length; this does
74218         cause it to make two passes instead of one over the file name,
74219         but it's worth it.
74220
74221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74222         change, since Autoconf's version may no longer be appropriate now
74223         that we are using CVS Autoconf's version.  Add support for Tandem.
74224
74225 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74226             Bruno Haible  <bruno@clisp.org>
74227
74228         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74229         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74230         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74231         gl_AC_TYPE_LONG_LONG.
74232
74233         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74234         instead of HAVE_LONG_LONG.
74235         * lib/printf-args.c (printf_fetchargs): Likewise.
74236         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74237         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74238         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74239         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74240         gl_AC_TYPE_LONG_LONG.
74241
74242 2006-10-11  Bruno Haible  <bruno@clisp.org>
74243
74244         * m4/longlong.m4: Add comments.
74245         * m4/ulonglong.m4: Likewise.
74246
74247 2006-10-10  Bruno Haible  <bruno@clisp.org>
74248
74249         Make it possible to #define stpcpy, strdup to aliases.
74250         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74251         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74252
74253 2006-10-10  Bruno Haible  <bruno@clisp.org>
74254
74255         Make it possible to #define gcd to an alias.
74256         * lib/gcd.c: Include config.h.
74257
74258 2006-10-10  Bruno Haible  <bruno@clisp.org>
74259
74260         Make it possible to #define c_isascii to an alias.
74261         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74262         defined. Undefine the macros before defining them, to avoid gcc
74263         warnings.
74264         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74265         define NO_C_CTYPE_MACROS early.
74266
74267 2006-10-10  Bruno Haible  <bruno@clisp.org>
74268
74269         Make it possible to #define set_program_name to an alias.
74270         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74271         ENABLE_RELOCATABLE early.
74272
74273 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74276         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74277         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74278         More generally, don't assume that 64-bit signed int is available
74279         if unsigned int is, and vice versa.
74280         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74281         unsigned symbols, not on their signed counterparts.
74282         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74283         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74284         (UINT64_C, UINTMAX_C):
74285         Likewise.
74286         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74287         unsigned counterparts.
74288         (Have_long_long, Unsigned): New macros.
74289         (Int): Renamed from INT.
74290         (strtoimax): Use the new macros.
74291         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74292         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74293         * modules/inttypes (inttypes.h): Substitute
74294         HAVE_UNSIGNED_LONG_LONG_INT.
74295         * modules/stdint (stdint.h): Likewise.
74296         (Files): Add m4/ulonglong.m4.
74297
74298 2006-10-10  Bruno Haible  <bruno@clisp.org>
74299
74300         Fix a gcc -Wshadow warning.
74301         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74302         to 'bucket'.
74303         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74304         gl_linked_indexof_from_to): Likewise.
74305         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74306         Likewise.
74307         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74308         Likewise.
74309         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74310         Reported by Eric Blake.
74311
74312 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74315         for NetBSD.  Problem reported by Bruno Haible.
74316
74317 2006-10-09  Jim Meyering  <jim@meyering.net>
74318
74319         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74320         Patch from Bruno Haible.
74321
74322 2006-10-09  Jim Meyering  <jim@meyering.net>
74323
74324         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74325         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74326         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74327
74328 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74329
74330         Don't include <config.h> twice; this doesn't work in some cases,
74331         e.g., when config.h has "#define intmax_t long long int" and
74332         we include <config.h>, <inttypes.h>, <config.h> in that order.
74333         Problem reported by Matthew Woehlke in:
74334         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74335         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74336         * lib/fts-cycle.c: Don't include config.h.
74337         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74338         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74339         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74340         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74341         inttypes.h.
74342         * lib/xstrtoumax.c: Likewise.
74343         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74344         __strtol and the like, so that this module is more like its siblings.
74345         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74346         Remove; no longer needed now that we assume gnulib inttypes.h.
74347
74348 2006-10-08  Bruno Haible  <bruno@clisp.org>
74349
74350         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74351         option.
74352
74353 2006-10-07  Jim Meyering  <jim@meyering.net>
74354
74355         * modules/inttypes (inttypes.h): Revert what seems to have been
74356         an inadvertent part of today's change: use "|", not "/" in the
74357         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74358
74359 2006-10-07  Bruno Haible  <bruno@clisp.org>
74360
74361         * modules/sublist: New file.
74362
74363 2006-10-07  Bruno Haible  <bruno@clisp.org>
74364
74365         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74366         * modules/argz (argz.h): Likewise.
74367         * modules/arpa_inet (arpa/inet.h): Likewise.
74368         * modules/byteswap (byteswap.h): Likewise.
74369         * modules/configmake (configmake.h): Likewise.
74370         * modules/fcntl (fcntl.h): Likewise.
74371         * modules/fnmatch (fnmatch.h): Likewise.
74372         * modules/getopt (getopt.h): Likewise.
74373         * modules/glob (glob.h): Likewise.
74374         * modules/inttypes (inttypes.h): Likewise.
74375         * modules/netinet_in (netinet/in.h): Likewise.
74376         * modules/poll (poll.h): Likewise.
74377         * modules/stdbool (stdbool.h): Likewise.
74378         * modules/stdint (stdint.h): Likewise.
74379         * modules/sys_select (sys/select.h): Likewise.
74380         * modules/sys_socket (sys/socket.h): Likewise.
74381         * modules/sys_stat (sys/stat.h): Likewise.
74382         * modules/sysexits (sysexits.h): Likewise.
74383         * modules/unistd (unistd.h): Likewise.
74384         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74385         Add a "DO NOT EDIT" comment to the generated file.
74386         (func_import): Likewise for gnulib-comp.m4.
74387
74388 2006-10-07  Bruno Haible  <bruno@clisp.org>
74389
74390         * lib/gl_sublist.h: New file.
74391         * lib/gl_sublist.c: New file.
74392
74393 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74396         name (relative to the original working directory) and the file
74397         name component (relative to the temporary working directory).  All
74398         callers changed.
74399         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74400         * lib/mkdir-p.c (make_dir_parents): Likewise.
74401         * lib/mkdir-p.h (make_dir_parents): Likewise.
74402
74403 2006-10-06  Eric Blake  <ebb9@byu.net>
74404
74405         Define several macros for use by the clean-temp module.
74406         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74407         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74408         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74409
74410         * lib/clean-temp.h (close_stream_temp): New declaration.
74411         * lib/clean-temp.c (includes): Pull in headers according to what
74412         other modules are in use.
74413         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74414
74415 2006-10-06  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74418         instead of fopen, fwriteerror.
74419
74420 2006-10-06  Bruno Haible  <bruno@clisp.org>
74421
74422         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74423         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74424         int.
74425         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74426         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74427         Return an error indicator.
74428         Suggested by Eric Blake.
74429
74430 2006-10-06  Bruno Haible  <bruno@clisp.org>
74431
74432         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74433         Reported by Eric Blake.
74434
74435 2006-10-06  Bruno Haible  <bruno@clisp.org>
74436
74437         * modules/closeout (Description): Mention stderr too.
74438
74439 2006-10-06  Bruno Haible  <bruno@clisp.org>
74440         and Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * lib/closeout.c (close_stdout): Also close stderr.
74443         * lib/closeout.h: Update comment.
74444
74445 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74448         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74449         * lib/dirchownmod.c: Include lchown.h.
74450         * lib/lchown.c: Don't include files that lchown.h now includes.
74451         Don't declare chown, since lchown.h now does that.
74452         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74453         (lchown): Define to rpl_chown if lchown is declared but
74454         does not exist.  Declare using a prototype if lchown is not
74455         declared.  Add a copyright notice.
74456         * lib/mkstemp.h: Include <unistd.h>.
74457         * lib/openat.c: Include lchown.h.
74458
74459         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74460         we now test for that separately.
74461         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74462         rather than O_NOFOLLOW, when testing whether it's possible to
74463         avoid a race condition reliably.
74464         * lib/savewd.c (savewd_chdir): Likewise.
74465
74466         Remove macros that are no longer needed now that stdint.h is
74467         reliable.
74468         * lib/fsusage.c (UINTMAX_MAX): Remove.
74469         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74470         * lib/utimecmp.c (SIZE_MAX): Remove.
74471
74472         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74473
74474         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74475         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74476         O_NOATIME works.
74477
74478 2006-10-05  Bruno Haible  <bruno@clisp.org>
74479
74480         * lib/gl_list.h (gl_sortedlist_search_from_to,
74481         gl_sortedlist_indexof_from_to): New declarations.
74482         (gl_list_implementation): New fields sortedlist_search_from_to,
74483         sortedlist_indexof_from_to.
74484         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74485         inline functions.
74486         * lib/gl_list.c (gl_sortedlist_search_from_to,
74487         gl_sortedlist_indexof_from_to): New functions.
74488         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74489         function.
74490         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74491         (gl_array_sortedlist_search_from_to): New function.
74492         (gl_array_list_implementation): Update.
74493         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74494         function.
74495         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74496         (gl_carray_sortedlist_search_from_to): New function.
74497         (gl_carray_list_implementation): Update.
74498         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74499         gl_linked_sortedlist_indexof_from_to): New functions.
74500         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74501         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74502         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74503         gl_tree_sortedlist_indexof_from_to): New functions.
74504         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74505         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74506         Update.
74507         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74508         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74509         Update.
74510
74511 2006-10-05  Bruno Haible  <bruno@clisp.org>
74512
74513         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74514         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74515         (struct gl_list_implementation): Add fields search_from_to,
74516         indexof_from_to. Remove fields search, indexof.
74517         (gl_list_search): Use the search_from_to method.
74518         (gl_list_search_from, gl_list_search_from_to): New functions.
74519         (gl_list_indexof): Use the indexof_from_to method.
74520         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74521         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74522         (gl_list_search_from, gl_list_search_from_to): New functions.
74523         (gl_list_indexof): Use the indexof_from_to method.
74524         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74525         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74526         gl_array_indexof. Add start_index, end_index arguments.
74527         (gl_array_search_from_to): Renamed from gl_array_search. Add
74528         start_index, end_index arguments.
74529         (gl_array_remove, gl_array_list_implementation): Update.
74530         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74531         gl_carray_indexof. Add start_index, end_index arguments.
74532         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74533         start_index, end_index arguments.
74534         (gl_carray_remove, gl_carray_list_implementation): Update.
74535         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74536         gl_linked_search. Add start_index, end_index arguments.
74537         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74538         start_index, end_index arguments.
74539         (gl_linked_remove): Update.
74540         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74541         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74542         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74543         field to 'size_t'.
74544         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74545         gl_tree_search. Add start_index, end_index arguments.
74546         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74547         start_index, end_index arguments.
74548         (gl_tree_remove): Update.
74549         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74550         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74551         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74552         function.
74553         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74554         gl_tree_search. Add start_index, end_index arguments.
74555         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74556         start_index, end_index arguments.
74557         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74558         Update.
74559         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74560
74561 2006-10-05  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74564
74565         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74566         fwriteerror_temp): New declarations.
74567         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74568         (descriptors): New variable.
74569         (cleanup): First, close the descriptors.
74570         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74571         fclose_temp, fwriteerror_temp): New functions.
74572
74573 2006-10-04  Jim Meyering  <jim@meyering.net>
74574
74575         * lib/fts.c (fts_open): Tiny comment change.
74576
74577 2006-10-04  Bruno Haible  <bruno@clisp.org>
74578
74579         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74580         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74581         gl_LOCK_BODY.
74582         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74583         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74584         gl_LOCK_EARLY_BODY.
74585         (gl_LOCK): Require gl_LOCK_BODY.
74586
74587 2006-10-04  Bruno Haible  <bruno@clisp.org>
74588
74589         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74590         (gl_oset_search_atleast): New declaration.
74591         (struct gl_oset_implementation): Add field 'search_atleast'.
74592         (gl_oset_search_atleast): New inline function.
74593         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74594         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74595         (gl_array_oset_implementation): Update.
74596         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74597         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74598         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74599
74600 2006-10-04  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74603
74604 2006-10-03  Bruno Haible  <bruno@clisp.org>
74605
74606         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74607         from gl_avltreehash_list_implementation.
74608
74609 2006-10-03  Bruno Haible  <bruno@clisp.org>
74610
74611         * lib/gl_oset.c (gl_oset_add): Fix return type.
74612
74613 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74614
74615         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74616
74617 2006-10-02  Eric Blake  <ebb9@byu.net>
74618
74619         * modules/strnlen (Depends-on): Add extensions.
74620
74621 2006-10-02  Eric Blake  <ebb9@byu.net>
74622
74623         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74624         definition in 2.60+.
74625
74626 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74627
74628         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74629         checks.
74630
74631 2006-10-02  Bruno Haible  <bruno@clisp.org>
74632
74633         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74634         to the AUTOMAKE_OPTIONS.
74635         Reported by Jim Meyering.
74636
74637 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         Work around bug in Solaris 10 /proc file system:
74640         /proc/self/fd/NNN/.. isn't the parent directory of
74641         the directory whose file descriptor is NNN.  This needs to
74642         be worked around at run time, not compile time, since a
74643         program might be built on Solaris 8, where things work, and
74644         run on Solaris 10.
74645         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74646         to use the following interface instead:
74647         (OPENAT_BUFFER_SIZE): New macro.
74648         (openat_proc_name): New function.
74649         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74650         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74651         Likewise.
74652         * lib/openat-proc.c: New file.
74653         * modules/openat (Files): Add lib/openat-proc.c.
74654         (Depends-on): Add same-inode, stdbool.
74655         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74656
74657 2006-09-29  Bruno Haible  <bruno@clisp.org>
74658
74659         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74660         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74661         argument. Set stdout_closed before testing for ferror, not after.
74662         (fwriteerror, fwriteerror_no_ebadf): New functions.
74663
74664 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74665
74666         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74667
74668 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74669
74670         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74671         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74672
74673 2006-09-28  Jim Meyering  <jim@meyering.net>
74674
74675         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74676         Include <unistd.h>.
74677
74678 2006-09-28  Bruno Haible  <bruno@clisp.org>
74679
74680         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74681         * modules/linkedhash-list (Depends-on): Likewise.
74682         * modules/rbtreehash-list (Depends-on): Likewise.
74683
74684 2006-09-28  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/strndup.h: Simplify the redefinition of strndup.
74687         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74688         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74689
74690 2006-09-28  Bruno Haible  <bruno@clisp.org>
74691
74692         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74693         * lib/gl_linkedhash_list.c: Likewise.
74694         * lib/gl_rbtreehash_list.c: Likewise.
74695
74696 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74699         getaddrinfo.
74700
74701         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74702         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74703         it causes <stdio_ext.h> to cause a compile-time error.
74704         Problem reported by Nelson H. F. Beebe.
74705         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74706         of HAVE_DECL___PENDING.
74707
74708         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74709         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74710         declaration.
74711
74712 2006-09-27  Jim Meyering  <jim@meyering.net>
74713
74714         This file could end up with a definition for a function
74715         named __strndup, rather than rpl_strndup on a system with
74716         incomplete weak_alias support.
74717         * lib/strndup.c (strndup): Rename from __strndup.
74718         Remove #defines that used to map __strndup to strndup.
74719         Don't use K&R prototypes.
74720         Remove LIBC-related code, since this file is not sync'd with glibc.
74721         * lib/strndup.h: Revamp, accordingly.
74722         * m4/strndup.m4: Modernize.
74723
74724 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         * modules/savewd (Depends-on): Add 'raise'.
74727         * lib/savewd.c: Include <signal.h>, for 'raise'.
74728
74729 2006-09-26  Jim Meyering  <jim@meyering.net>
74730
74731         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74732         when we detect Darwin 8.7.0's acl_get_file bug.
74733         Rearrange to perform the new (below) run-test while $LIBS
74734         contains any acl-related library.  Set USE_ACL at the end.
74735         (gl_ACL_GET_FILE): New function.
74736
74737 2006-09-26  Eric Blake  <ebb9@byu.net>
74738
74739         * lib/verror.c: Include <config.h> unconditionally.
74740
74741 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74742
74743         * modules/clock-time (Maintainer): Add self.
74744         * modules/getlogin_r (Depends-on): Add extensions.
74745
74746 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74747
74748         * modules/clock-time: New module.
74749         * modules/nanosleep (Depends-on): Add clock-time.
74750         * modules/gethrxtime (Depends-on): Likewise.
74751         * modules/gettime (Depends-on): Likewise.
74752         * modules/settime (Depends-on): Likewise.
74753
74754         * modules/fts-lgpl: Depend on openat.
74755         * modules/mkancesdirs: Depend on savewd.
74756         * modules/mkdir-p: Likewise.
74757
74758 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74759
74760         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74761
74762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74763         `gl_have_arbitrary_file_name_length_limit' to
74764         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74765         actually works between configure runs.
74766
74767 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74768             Bruno Haible  <bruno@clisp.org>
74769
74770         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74771
74772 2006-09-25  Jim Meyering  <jim@meyering.net>
74773
74774         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74775         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74776
74777 2006-09-25  Eric Blake  <ebb9@byu.net>
74778
74779         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74780         exec's in 2006-09-18 patch when shuffling fds.
74781
74782 2006-09-25  Bruno Haible  <bruno@clisp.org>
74783
74784         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74785         Reported by Jim Meyering.
74786
74787 2006-09-24  Jim Meyering  <jim@meyering.net>
74788
74789         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74790         compare a pointer against a literal "0".  That caused failures with
74791         at least HP-UX's hpcc.
74792
74793 2006-09-22  Simon Josefsson  <jas@extundo.com>
74794
74795         * modules/gc-sha1:
74796         * modules/gc-md4:
74797         * modules/gc-hmac-sha1:
74798         * modules/gc-hmac-md5:
74799         * modules/gc-des:
74800         * modules/gc-arcfour: Distribute more files.
74801
74802 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74803
74804         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74805         (gl_linked_iterator_from_to): Initialize struct completely.
74806         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74807         (gl_tree_iterator_from_to): Likewise
74808         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74809         * lib/gl_array_list.c [lint] (gl_array_iterator)
74810         (gl_array_iterator_from_to): Likewise.
74811         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74812         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74813         (gl_carray_iterator_from_to): Likewise.
74814
74815         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74816         * lib/md4.c (md4_process_block): Remove unused variable.
74817         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74818         parentheses for clarity.
74819
74820 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74821
74822         * modules/bison-i18n (Depends-on): Add gettext.
74823
74824 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74825
74826         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74827         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74828         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74829         also add missing comma that caused broken test.
74830         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74831         stdlib.h, for `abort'.
74832         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74833         variables.
74834         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74835         include unistd.h if present, for `rmdir'.
74836         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74837         variables.
74838         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74839         in the process include standard headers for prototypes.
74840         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74841         gets declared on GNU/Linux.
74842         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74843         unistd.h, for `rmdir'.
74844         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74845
74846         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74847         always true.
74848         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74849
74850         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74851
74852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74853
74854         * gnulib-tool (func_version): Create output all at once.  This
74855         may help avoid triggering unnecessary SIGPIPEs, and at any
74856         rate it doesn't hurt.
74857
74858 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74859             Bruno Haible  <bruno@clisp.org>
74860
74861         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74862         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74863         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74864
74865         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74866         (gl_FUNC_VASPRINTF): Invoke it.
74867
74868 2006-09-22  Bruno Haible  <bruno@clisp.org>
74869
74870         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74871         getloadavg.c as first argument.
74872
74873 2006-09-22  Bruno Haible  <bruno@clisp.org>
74874
74875         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74876         at the beginning of the gl_INIT macro.
74877         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74878         gl_GETLOADAVG.
74879
74880 2006-09-22  Bruno Haible  <bruno@clisp.org>
74881
74882         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74883         module.
74884         Suggested by Ralf Wildenhues.
74885
74886 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         Import this patch from libc:
74889
74890         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74891
74892         * lib/regex_internal.c (re_string_reconstruct): Handle
74893         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74894         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74895         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74896         re_string_context_at.
74897
74898         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74899         now requires it.
74900         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74901         gl_REGEX now does it for us.
74902         (gl_REGEX): Add test taken from
74903         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74904
74905         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74906         Check that large offsets work.  Modernize Autoconf usages.
74907         Prefer "yes" to mean a good thing rather than a bad.
74908         Don't put "#define mkstemp" in config.h, as this might interfere
74909         with standard system headers that "#define mkstemp mkstemp64".
74910
74911         * modules/mkstemp (Depends-on): Add extensions, so that
74912         mkstemp is visible on some platforms.
74913         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74914         (Include): Change to "mkstemp.h" from <stdlib.h>.
74915         (Files): Add mkstemp.h.
74916
74917         * lib/mkstemp.h: New file, since some standard headers
74918         #define mkstemp.
74919         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74920         Include "mkstemp.h".
74921         Make the _LIBC code resemble glibc original more,
74922         e.g., use K&R style.
74923         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74924         (mkstemp): Remove, since mkstemp.h does this for us.
74925         * lib/stdlib--.h: Include mkstemp.h.
74926
74927         Import this patch from libc:
74928
74929         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74930
74931         * lib/tempname.c (__gen_tempname): Change attempts_min
74932         into a macro.  Use preprocessor to decide how to initialize
74933         attempts [Coverity CID 67].
74934
74935 2006-09-20  Bruno Haible  <bruno@clisp.org>
74936
74937         * lib/mkdtemp.c: Import from libc.
74938         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74939                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74940                 attempts_min into a macro.  Use preprocessor to decide how to
74941                 initialize attempts [Coverity CID 67].
74942         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74943                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74944                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74945
74946 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74947
74948         * gnulib-tool (func_exit): New function, to allow to pass the
74949         exit status portably through the trap.  Use everywhere.
74950         (--help, --version): Signal a write error.
74951         (trap): catch SIGPIPE, for write errors.
74952         Exit at the end of the trap, with the correct exit status.
74953
74954 2006-09-19  Karl Berry  <karl@gnu.org>
74955
74956         * doc/gnulib.texi: note about the license texinfo files.
74957
74958 2006-09-19  Eric Blake  <ebb9@byu.net>
74959
74960         * gnulib-tool: Avoid space-tab.
74961
74962 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74965         that prevented coreutils 6.1 from building.  Problem reported
74966         by Petter Reinholdtsen.
74967
74968 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * gnulib-tool (avoidlist): Fix typo that broke options like
74971         --avoid=lock that are used by coreutils bootstrap.
74972
74973 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74974
74975         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74976         more systematically.
74977
74978 2006-09-18  Jim Meyering  <jim@meyering.net>
74979
74980         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74981
74982 2006-09-18  Bruno Haible  <bruno@clisp.org>
74983
74984         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74985
74986 2006-09-18  Bruno Haible  <bruno@clisp.org>
74987
74988         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74989         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74990         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74991         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74992         * m4/gettext.m4: Require autoconf >= 2.52.
74993         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74994         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74995         of gl_cv_header_inttypes_h.
74996
74997 2006-09-18  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/javaversion.c: Include configmake.h.
75000
75001 2006-09-18  Bruno Haible  <bruno@clisp.org>
75002
75003         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75004         avoid that the while loops be executed in a subshell.
75005
75006 2006-09-18  Bruno Haible  <bruno@clisp.org>
75007
75008         * MODULES.html.sh (func_module): Break long lines.
75009         Suggested by Bruce Korb <bkorb@gnu.org>.
75010
75011 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75012
75013         Speed up by a factor of 1.12.
75014         * gnulib-tool (nl): New variable.
75015         (func_import): Rewrite include directive extraction to only read each
75016         directive once.
75017
75018 2006-09-17  Bruno Haible  <bruno@clisp.org>
75019
75020         * modules/javaversion (Makefile.am): Remove DEFS setting.
75021         (Depends-on): Add configmake, for PKGDATADIR definition.
75022
75023 2006-09-17  Bruno Haible  <bruno@clisp.org>
75024
75025         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75026
75027 2006-09-17  Bruno Haible  <bruno@clisp.org>
75028
75029         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75030         (func_modules_transitive_closure, func_modules_add_dummy,
75031         func_modules_to_filelist, func_import, func_create_testdir,
75032         func_create_megatestdir, ...): Use it wherever possible.
75033         Suggested by Ralf Wildenhues.
75034
75035 2006-09-16  Karl Berry  <karl@gnu.org>
75036
75037         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75038         to avoid sectioning errors.
75039         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75040         [ifinfo]: blank line after @center-ed titles.
75041         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75042         Spell FSF address consistently with others.
75043         (These changes approved by rms.)
75044
75045 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75046
75047         Speed up by a factor of 1.61.
75048         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75049         already checked module names again.
75050
75051 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75052
75053         Speed up by a factor of 1.13.
75054         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75055         for new_files, and the input to func_add_or_update.
75056
75057 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75058
75059         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75060         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75061
75062 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         * modules/mkancesdirs (Depends-on): Add fcntl.
75065         * modules/savewd: New file.
75066         * MODULES.html.sh (File system functions): Add savewd.
75067
75068         * modules/configmake (Makefile.am): Add support for the
75069         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75070
75071 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75072
75073         * m4/savewd.m4: New file.
75074
75075 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75078         (dirchownmod): New arg FD.  All callers changed.
75079         Use FD rather than opening the directory ourself, as opening is
75080         now the caller's responsibility.
75081         * lib/dirchownmod.h: Likewise.
75082         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75083         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75084         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75085         (test_dir): Remove.
75086         (mkancesdirs): Return length of prefix of FILE that has already
75087         been made, or -2 if there is a child doing the work.  Redo
75088         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75089         ".", and treat ".." specially since it might stray back into
75090         already-created areas.  Use a subprocess if necessary.  New arg
75091         WD; all users changed.  MAKE_DIR function should now return 1
75092         if it creates a directory that is not readable.  Return -2 if
75093         a child process is spun off.
75094         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75095         Adjust signature to match code.
75096         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75097         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75098         all users changed.
75099         * lib/savewd.c, lib/savewd.h: New files.
75100
75101 2006-09-15  Jim Meyering  <jim@meyering.net>
75102
75103         * modules/rename-dest-slash: New module.
75104         * MODULES.html.sh (posix_compat): Add it here.
75105
75106         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75107
75108 2006-09-15  Jim Meyering  <jim@meyering.net>
75109
75110         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75111         file.
75112
75113         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75114
75115 2006-09-15  Jim Meyering  <jim@meyering.net>
75116
75117         * lib/rename-dest-slash.c (has_trailing_slash): Use
75118         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75119         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75120         test before testing whether SRC is a directory.
75121         Suggestions from Bruno Haible.
75122
75123         Avoid a warning about an unused variable.
75124         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75125         into the #ifdef block where it's used.
75126
75127         * lib/rename-dest-slash.c: New file.
75128
75129 2006-09-14  Bruno Haible  <bruno@clisp.org>
75130
75131         * lib/allocsa.c: Include <config.h> unconditionally.
75132         * lib/asnprintf.c: Likewise.
75133         * lib/asprintf.c: Likewise.
75134         * lib/c-strcasecmp.c: Likewise.
75135         * lib/c-strcasestr.c: Likewise.
75136         * lib/c-strncasecmp.c: Likewise.
75137         * lib/c-strstr.c: Likewise.
75138         * lib/classpath.c: Likewise.
75139         * lib/clean-temp.c: Likewise.
75140         * lib/concatpath.c: Likewise.
75141         * lib/copy-file.c: Likewise.
75142         * lib/csharpcomp.c: Likewise.
75143         * lib/csharpexec.c: Likewise.
75144         * lib/execute.c: Likewise.
75145         * lib/fatal-signal.c: Likewise.
75146         * lib/findprog.c: Likewise.
75147         * lib/fwriteerror.c: Likewise.
75148         * lib/gl_array_list.c: Likewise.
75149         * lib/gl_array_oset.c: Likewise.
75150         * lib/gl_avltree_list.c: Likewise.
75151         * lib/gl_avltree_oset.c: Likewise.
75152         * lib/gl_avltreehash_list.c: Likewise.
75153         * lib/gl_carray_list.c: Likewise.
75154         * lib/gl_linked_list.c: Likewise.
75155         * lib/gl_linkedhash_list.c: Likewise.
75156         * lib/gl_list.c: Likewise.
75157         * lib/gl_oset.c: Likewise.
75158         * lib/gl_rbtree_list.c: Likewise.
75159         * lib/gl_rbtree_oset.c: Likewise.
75160         * lib/gl_rbtreehash_list.c: Likewise.
75161         * lib/imaxabs.c: Likewise.
75162         * lib/imaxdiv.c: Likewise.
75163         * lib/javacomp.c: Likewise.
75164         * lib/javaexec.c: Likewise.
75165         * lib/javaversion.c: Likewise.
75166         * lib/linebreak.c: Likewise.
75167         * lib/localcharset.c: Likewise.
75168         * lib/lock.c: Likewise.
75169         * lib/mbchar.c: Likewise.
75170         * lib/mbswidth.c: Likewise.
75171         * lib/mkdtemp.c: Likewise.
75172         * lib/pipe.c: Likewise.
75173         * lib/printf-args.c: Likewise.
75174         * lib/printf-parse.c: Likewise.
75175         * lib/progname.c: Likewise.
75176         * lib/progreloc.c: Likewise.
75177         * lib/readlink.c: Likewise.
75178         * lib/sh-quote.c: Likewise.
75179         * lib/stpcpy.c: Likewise.
75180         * lib/stpncpy.c: Likewise.
75181         * lib/strcasecmp.c: Likewise.
75182         * lib/strcasestr.c: Likewise.
75183         * lib/strcspn.c: Likewise.
75184         * lib/striconv.c: Likewise.
75185         * lib/strncasecmp.c: Likewise.
75186         * lib/strnlen1.c: Likewise.
75187         * lib/strstr.c: Likewise.
75188         * lib/strtok_r.c: Likewise.
75189         * lib/tls.c: Likewise.
75190         * lib/tmpdir.c: Likewise.
75191         * lib/unicodeio.c: Likewise.
75192         * lib/unsetenv.c: Likewise.
75193         * lib/vasnprintf.c: Likewise.
75194         * lib/vasprintf.c: Likewise.
75195         * lib/wait-process.c: Likewise.
75196         * lib/xallocsa.c: Likewise.
75197         * lib/xsetenv.c: Likewise.
75198         * lib/xstriconv.c: Likewise.
75199
75200 2006-09-13  Simon Josefsson  <jas@extundo.com>
75201
75202         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75203         that internally, suggested by Ralf Wildenhues
75204         <Ralf.Wildenhues@gmx.de>.
75205
75206 2006-09-13  Simon Josefsson  <jas@extundo.com>
75207
75208         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75209         @LIBOBJS@.
75210         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75211
75212 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75213
75214         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75215         longer worry about uses that don't define HAVE_CONFIG_H.
75216         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75217         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75218         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75219         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75220         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75221         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75222         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75223         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75224         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75225         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75226         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75227         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75228         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75229         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75230         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75231         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75232         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75233         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75234         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75235         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75236         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75237         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75238         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75239         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75240         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75241         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75242         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75243         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75244         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75245         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75246         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75247         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75248         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75249         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75250         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75251         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75252         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75253         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75254         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75255         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75256         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75257         Likewise.
75258
75259 2006-09-13  Eric Blake  <ebb9@byu.net>
75260
75261         * lib/getopt.c: Fix typo in last commit.
75262
75263 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75264
75265         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75266         dgettext.
75267
75268 2006-09-12  Jim Meyering  <jim@meyering.net>
75269
75270         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75271         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75272         Reported by Nelson H. F. Beebe.
75273
75274 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75275
75276         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75277         program_invocation_name and program_invocation_short_name are
75278         initialized.
75279         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75280         and program_invocation_short_name to argp.h, so they are visible
75281         to user programs.
75282         * lib/argp.h: Likewise
75283
75284 2006-09-10  Bruno Haible  <bruno@clisp.org>
75285
75286         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75287         m4/inttypes_h.m4, m4/uintmax_t.m4.
75288
75289 2006-09-10  Bruno Haible  <bruno@clisp.org>
75290
75291         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75292         gl_AC_TYPE_UINTMAX_T.
75293
75294 2006-09-10  Bruno Haible  <bruno@clisp.org>
75295
75296         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75297
75298 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75299
75300         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75301         convention.  Text proposed by Bruno Haible.
75302         (struct argp_option): Document the use of N_() wrappers.
75303
75304         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75305         '\v', and translate the two parts separately, instead of feeding
75306         the whole string to gettext.  This allows to exclude
75307         '\v' from the strings visible to the translator by writing doc
75308         strings as N_("..") "\v" N_("..").
75309
75310 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75311
75312         * config/srclist.txt: Undo latest change; the bug was fixed.
75313
75314 2006-09-09  Bruno Haible  <bruno@clisp.org>
75315
75316         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75317         assignments if building a library without libtool.
75318         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75319         in func_emit_lib_Makefile_am.
75320         (func_import): When building a static library libfoo.a, arrange to
75321         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75322         (func_create_testdir): Likewise.
75323         * modules/gc (configure.ac, Makefile.am): If building statically,
75324         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75325         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75326         * modules/striconv (configure.ac, Makefile.am): Likewise.
75327         Based on a suggestion by Ralf Wildenhues.
75328
75329 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75332         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75333         Also:
75334
75335         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75336         Add year_2050_test to catch glibc bug 2821
75337         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75338
75339         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75340         Prefer #ifdef to #if.
75341
75342         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75343         Return from 'main' instead of calling 'exit'.
75344
75345 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75346
75347         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75348         returned the maximum time_t value rather than (time_t) -1.
75349         Problem originally reported by William Bardwell
75350         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75351
75352         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75353         Moved to here ...
75354         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75355         ... from here.
75356
75357 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75360         2821 is fixed.
75361
75362 2006-09-08  Jim Meyering  <jim@meyering.net>
75363
75364         Don't make generated files read-only.  That would bother too many
75365         people.  However, do retain the ability to work when targets are
75366         read-only: remove the destination and temporary files before writing
75367         them (when generated via sed or echo), or by using the -f option for
75368         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75369         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75370         * modules/byteswap, modules/configmake, modules/fcntl:
75371         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75372         * modules/localcharset, modules/netinet_in, modules/poll:
75373         * modules/stdbool, modules/stdint, modules/sys_select:
75374         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75375
75376 2006-09-08  Jim Meyering  <jim@meyering.net>
75377
75378         Avoid new build failure on FreeBSD 6.0.
75379         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75380         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75381         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75382
75383 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75384
75385         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75386
75387 2006-09-07  Jim Meyering  <jim@meyering.net>
75388
75389         Fix global typo in last change: use chmod u-w, not chmod u-x.
75390         Spotted by Paul Eggert and Bruce Korb.
75391         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75392         * modules/byteswap, modules/configmake, modules/fcntl:
75393         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75394         * modules/localcharset, modules/netinet_in, modules/poll:
75395         * modules/stdbool, modules/stdint, modules/sys_select:
75396         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75397
75398 2006-09-06  Jim Meyering  <jim@meyering.net>
75399
75400         Make generated files be read-only.
75401         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75402         Ensure that each generated file is now read-only.
75403         * modules/argz: Likewise.
75404         * modules/arpa_inet: Likewise.
75405         * modules/byteswap: Likewise.
75406         * modules/configmake: Likewise.
75407         * modules/fcntl: Likewise.
75408         * modules/fnmatch: Likewise.
75409         * modules/getopt: Likewise.
75410         * modules/glob: Likewise.
75411         * modules/inttypes: Likewise.
75412         * modules/netinet_in: Likewise.
75413         * modules/poll: Likewise.
75414         * modules/stdbool: Likewise.
75415         * modules/stdint: Likewise.
75416         * modules/sys_select: Likewise.
75417         * modules/sys_socket: Likewise.
75418         * modules/sys_stat: Likewise.
75419         * modules/sysexits: Likewise.
75420         * modules/localcharset: Same as above, but continue using temporary
75421         file named "t-$@" (why different?) rather than the "$@-t" used
75422         everywhere else.
75423
75424         * modules/sysexits (Makefile.am): Replace literal occurrences
75425         of "sysexit.h" more readable, and more consistent, "$@".
75426
75427 2006-09-06  Bruno Haible  <bruno@clisp.org>
75428
75429         * modules/striconv: New file.
75430         * modules/xstriconv: New file.
75431         * MODULES.html.sh (Internationalization functions): Add striconv,
75432         xstriconv.
75433
75434 2006-09-06  Bruno Haible  <bruno@clisp.org>
75435
75436         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75437         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75438         not using libtool correctly.
75439
75440 2006-09-06  Bruno Haible  <bruno@clisp.org>
75441
75442         * lib/striconv.h: New file.
75443         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75444         iconvstring.c.
75445         * lib/xstriconv.h: New file.
75446         * lib/xstriconv.c: New file.
75447
75448 2006-09-06  Bruno Haible  <bruno@clisp.org>
75449
75450         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75451         lib_..._LDFLAGS.
75452
75453 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75454
75455         * lib/argz_.h: Sync from Libtool.
75456
75457         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75458                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75459
75460         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75461
75462 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75463
75464         * modules/trim: New file.
75465
75466 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75467
75468         * lib/trim.h: New file.
75469         * lib/trim.c: New file.
75470
75471 2006-09-05  Bruno Haible  <bruno@clisp.org>
75472
75473         * MODULES.html.sh (String handling): Add trim.
75474
75475 2006-09-04  Karl Berry  <karl@gnu.org>
75476
75477         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75478         until next release.
75479
75480 2006-09-03  Bruno Haible  <bruno@clisp.org>
75481
75482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75483         correctly.
75484
75485 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75486
75487         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75488         not gl_GETLOADAVG.  Omit unneeded semicolons.
75489         Problems reported by Ralf Wildenhues in
75490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75491         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75492         at the end, which is the usual gnulib style.
75493
75494         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75495         of doing all the work ourselves.
75496         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75497         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75498
75499 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75502         Problem reported by Ralf Wildenhues in
75503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75504
75505         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75506         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75507
75508 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75511         yesterday's patch by changing test -n to test -z.
75512
75513 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75514
75515         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75516         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75517         the former is now obsolescent.
75518
75519         * modules/chdir-long (Depends-on): Add fcntl.
75520
75521 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75524         obsolescent, and programs should use gnulib instead.
75525         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75526         but with prefixes changed.
75527
75528 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75531         or stdbool.h, because they might not exist while configuring.
75532
75533         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75534         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75535         does that for us.
75536         (O_DIRECTORY): Remove.
75537
75538 2006-08-31  Eric Blake  <ebb9@byu.net>
75539
75540         * gnulib-tool: Don't let emacs change spaces to TAB.
75541
75542 2006-08-31  Bruno Haible  <bruno@clisp.org>
75543
75544         * gnulib-tool: When calling func_import more than once, do it in a
75545         subshell.
75546         Reported by Eric Blake <ebb9@byu.net>.
75547
75548 2006-08-31  Bruno Haible  <bruno@clisp.org>
75549
75550         * gnulib-tool (nl): Remove variable.
75551         (sed_transform_lib_file): Use more robust test for config-h module.
75552         (func_import): Fix typo in 2006-08-25 patch.
75553
75554 2006-08-31  Bruno Haible  <bruno@clisp.org>
75555
75556         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75557         specified, augment Makefile.am variables instead of assigning them.
75558
75559 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75560
75561         Work around a bug in both the Linux and SunOS 64-bit kernels:
75562         nanosleep mishandles sleeps for longer than 2**31 seconds.
75563         Problem reported by Frank v Waveren in
75564         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75566         Check for nanosleep bug.
75567         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75568
75569 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         Work around a bug in both the Linux and SunOS 64-bit kernels:
75572         nanosleep mishandles sleeps for longer than 2**31 seconds.
75573         Problem reported by Frank v Waveren in
75574         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75575         * lib/nanosleep.c (BILLION): New constant.
75576         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75577         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75578         implementation.
75579
75580 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         * modules/nanosleep (Depends-on): Add gettime.
75583
75584 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75585         and Simon Josefsson  <jas@extundo.com>
75586         and Oskar Liljeblad  <oskar@osk.mine.nu>
75587
75588         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75589         * gnulib-tool (func_import): New license type 'unmodifiable license
75590         text'.
75591         * modules/fdl: Use it.  Longer description.
75592         * module/gpl, module/lgpl: New files.
75593
75594 2006-08-30  Jim Meyering  <jim@meyering.net>
75595
75596         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75597         shadowing the parameter.
75598
75599 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75600
75601         Sync from Libtool:
75602
75603         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75604
75605         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75606         sharing with gnulib.  Report by Eric Blake.
75607
75608 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * modules/isapipe: New file.
75611         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75612
75613 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * modules/configmake (Makefile.am): Add a comment, and omit
75616         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75617         by Bruno Haible.
75618
75619 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * m4/isapipe.m4: New file.
75622
75623 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * lib/isapipe.c, lib/isapipe.h: New files.
75626
75627 2006-08-29  Jim Meyering  <jim@meyering.net>
75628
75629         * modules/configmake (Makefile.am): Make configmake.h depend on
75630         Makefile.  Otherwise, a stale configmake.h could hang around.
75631
75632 2006-08-29  Eric Blake  <ebb9@byu.net>
75633
75634         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75635         resolution of upstream bug 3044.
75636
75637 2006-08-29  Bruno Haible  <bruno@clisp.org>
75638
75639         * modules/localcharset (Depends-on): Add configmake.
75640         (Makefile.am): Remove setting of LIBDIR through DEFS.
75641
75642 2006-08-29  Bruno Haible  <bruno@clisp.org>
75643
75644         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75645         defined.
75646
75647 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * modules/fcntl: New file.
75650         * modules/chdir-safer (Depends-on): Add fcntl.
75651         * modules/fts: Likewise.
75652         * modules/mkdir-p: Likewise.
75653
75654         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75655         This undoes the most recent change, since we're now addressing the
75656         problem in a different way.
75657
75658         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75659         into output, since the output might be called Makefile.am even
75660         if $makefile_name is something different.
75661         (func_import): Use $makefile_am rather than
75662         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75663         empty.
75664
75665         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75666
75667 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75670         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75671         recent change to stdint.m4, since we're now addressing the problem in a
75672         different way.
75673
75674 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75675
75676         * m4/fcntl_h.m4: New file.
75677
75678 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * lib/fcntl_.h: New file.
75681         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75682         the fcntl module.
75683         * lib/dirchownmod.c: Likewise.
75684         * lib/fts.c: Likewise.
75685
75686         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75687         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75688         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75689         just before including <inttypes.h>, to avoid circular inclusion.
75690
75691 2006-08-28  Jim Meyering  <jim@meyering.net>
75692
75693         * doc/visibility.texi: Actually read and correct the grammar of the
75694         sentence affected by yesterday's change.
75695
75696 2006-08-28  Eric Blake  <ebb9@byu.net>
75697
75698         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75699         needs wrapper.
75700
75701 2006-08-28  Eric Blake  <ebb9@byu.net>
75702
75703         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75704
75705 2006-08-28  Eric Blake  <ebb9@byu.net>
75706
75707         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75708
75709 2006-08-28  Bruno Haible  <bruno@clisp.org>
75710
75711         * modules/c-strstr: New file, from GNU gettext.
75712         * MODULES.html.sh (String handling): Add c-strstr.
75713
75714 2006-08-28  Bruno Haible  <bruno@clisp.org>
75715
75716         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75717         macros.
75718         Reported by Eric Blake.
75719
75720 2006-08-28  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75723         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75724         * lib/vasprintf.c: Include errno.h, limits.h.
75725         (EOVERFLOW): New fallback definition.
75726         (vasprintf): Test here whether the string length is > INT_MAX.
75727         * lib/vsnprintf.c: Include errno.h, limits.h.
75728         (EOVERFLOW): New fallback definition.
75729         (vsnprintf): Fix bug when generated string was too long for the buffer.
75730         Test here whether the string length is > INT_MAX.
75731
75732 2006-08-28  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/inttypes_.h (SCNX*): Remove definitions.
75735         Reported by Eric Blake.
75736
75737 2006-08-28  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/c-strstr.h: New file, from GNU gettext.
75740         * lib/c-strstr.c: New file, from GNU gettext.
75741
75742 2006-08-28  Bruno Haible  <bruno@clisp.org>
75743
75744         * gnulib-tool: Reorder some statements.
75745
75746 2006-08-28  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool: New option --makefile-name.
75749         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75750         $makefile_name.
75751         (func_import): Write $makefile_name to the cache file, and read it from
75752         there unless explicitly specified. Use $makefile_name as file name
75753         instead of Makefile.am. Adjust the recommendations accordingly.
75754
75755 2006-08-28  Bruno Haible  <bruno@clisp.org>
75756
75757         * gnulib-tool (func_verify_module): Check against misapplying patch.
75758
75759 2006-08-28  Bruno Haible  <bruno@clisp.org>
75760
75761         * gnulib-tool (func_relativize, func_relconcat): New functions.
75762         Give an error if --local-dir is given with --update.
75763         Remove trailing slashes from $local_gnulib_dir.
75764         (func_import): Store the relativized $local_gnulib_dir in
75765         gnulib-cache.m4, and read it from there if not specified explicitly.
75766
75767 2006-08-28  Bruno Haible  <bruno@clisp.org>
75768
75769         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75770         is the current directory. Respect also $local_gnulib_dir.
75771
75772 2006-08-28  Bruno Haible  <bruno@clisp.org>
75773             Simon Josefsson  <jas@extundo.com>
75774
75775         BeOS portability.
75776         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75777
75778 2006-08-27  Jim Meyering  <jim@meyering.net>
75779
75780         * doc/visibility.texi: Remove duplicate word: "pointer".
75781
75782 2006-08-26  Bruno Haible  <bruno@clisp.org>
75783
75784         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75785         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75786         (Makefile.am): Create inttypes.h from inttypes_.h.
75787         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75788
75789         * modules/imaxabs: New file.
75790
75791         * modules/imaxdiv: New file.
75792
75793 2006-08-26  Bruno Haible  <bruno@clisp.org>
75794
75795         * m4/inttypes.m4: New file.
75796         * m4/_inttypes_h.m4: Remove file.
75797         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75798         PRI_MACROS_BROKEN.
75799         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75800
75801         * m4/imaxabs.m4: New file.
75802
75803         * m4/imaxdiv.m4: New file.
75804
75805 2006-08-26  Bruno Haible  <bruno@clisp.org>
75806
75807         * lib/inttypes_.h: New file.
75808         * lib/inttypes.h: Remove file.
75809         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75810
75811         * lib/imaxabs.c: New file.
75812
75813         * lib/imaxdiv.c: New file.
75814
75815 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75816
75817         New config-h module, so that "make" output needn't be cluttered
75818         by -DHAVE_CONFIG_H.
75819         * MODULES.html.sh (Support for building libraries and executables):
75820         Add config-h.
75821         * modules/config-h: New file.
75822         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75823         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75824         the config-h module is used.
75825
75826         New configmake module, so that "make" output needn't be cluttered
75827         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75828         * MODULES.html.sh (Support for building libraries and executables):
75829         Add configmake.
75830         * modules/configmake: New file.
75831
75832 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * m4/config-h.m4: New file.
75835
75836 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * config/srclist.txt: Add elisp-comp.
75839
75840 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * MODULES.html.sh (Support for building libraries and executables):
75843         Add elisp-comp.
75844         * build-aux/elisp-comp: New file.
75845         * modules/elisp-comp: New file.
75846
75847 2006-08-24  Bruno Haible  <bruno@clisp.org>
75848
75849         * gnulib-tool (func_create_testdir): Use non-default values of
75850         sourcebase and m4base.
75851
75852 2006-08-24  Bruno Haible  <bruno@clisp.org>
75853
75854         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75855         HTML structure.
75856
75857 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * modules/openat (Depends-on): Add lchown.
75860
75861 2006-08-23  Bruno Haible  <bruno@clisp.org>
75862
75863         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75864         of gl_LOCK_EARLY instead of gl_LOCK.
75865
75866 2006-08-23  Bruno Haible  <bruno@clisp.org>
75867
75868         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75869         on OSF/1 to no.
75870         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75871
75872 2006-08-23  Bruno Haible  <bruno@clisp.org>
75873
75874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75875         as unusable.
75876
75877         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75878         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75879         (gl_LOCK): New macro.
75880
75881 2006-08-22  Simon Josefsson  <jas@extundo.com>
75882
75883         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75884         to md5 module.
75885
75886 2006-08-22  Simon Josefsson  <jas@extundo.com>
75887
75888         * MODULES.html.sh: Add "Support for maintaining and release
75889         projects".
75890
75891         * build-aux/gnupload: New file, from coreutils.
75892
75893 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         Avoid the need for AC_LIBSOURCES in m4 macros.
75896         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75897         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75898         * modules/check-version (EXTRA_DIST): Add check-version.h.
75899         * modules/crc (EXTRA_DIST): Add crc.h.
75900         * modules/des (EXTRA_DIST): Add des.h.
75901         * modules/gc (EXTRA_DIST): Add gc.h.
75902         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75903         * modules/getline (EXTRA_DIST): Add getline.h.
75904         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75905         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75906         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75907         * modules/md2 (EXTRA_DIST): Add md2.h.
75908         * modules/md4 (EXTRA_DIST): Add md4.h.
75909         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75910         * modules/read-file (EXTRA_DIST): Add read-file.h.
75911         * modules/readline (EXTRA_DIST): Add readline.h.
75912         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75913         rijndael-api-fst.h.
75914
75915 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75916
75917         * m4/rijndael.m4 (gl_ARCFOUR):
75918         * m4/arctwo.m4 (gl_ARCTWO):
75919         * m4/check-version.m4 (gl_CHECK_VERSION):
75920         * m4/crc.m4 (gl_CRC):
75921         * m4/des.m4 (gl_DES):
75922         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75923         * m4/gc.m4 (gl_GC):
75924         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75925         * m4/getline.m4 (gl_FUNC_GETLINE):
75926         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75927         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75928         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75929         * m4/md2.m4 (gl_MD2):
75930         * m4/md4.m4 (gl_MD4):
75931         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75932         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75933         * m4/readline.m4 (gl_FUNC_READLINE):
75934         * m4/rijndael.m4 (gl_RIJNDAEL):
75935         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75936         to get the necessary .h files and whatnot.
75937
75938 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75941         gnulib rather than the other way around.
75942         * config/srclistvars.sh (COREUTILS): Remove.
75943
75944 2006-08-22  Jim Meyering  <jim@meyering.net>
75945
75946         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75947
75948         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75949
75950 2006-08-22  Eric Blake  <ebb9@byu.net>
75951
75952         * modules/regexprops-generic: New file.
75953         * MODULES.html.sh (Support for building documentation): List it.
75954
75955 2006-08-22  Eric Blake  <ebb9@byu.net>
75956
75957         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75958         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75959         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75960         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75961
75962 2006-08-22  Bruno Haible  <bruno@clisp.org>
75963
75964         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75965         and lib_LTLIBRARIES like the other lib_* variables.
75966
75967 2006-08-22  Bruno Haible  <bruno@clisp.org>
75968
75969         * build-aux/x-to-1.in: New file, from GNU gettext.
75970
75971 2006-08-22  Bruno Haible  <bruno@clisp.org>
75972
75973         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75974         <utmpx.h> exists.
75975
75976 2006-08-22  Bruno Haible  <bruno@clisp.org>
75977
75978         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75979         <utmpx.h> exists.
75980
75981 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75982
75983         BeOS portability.
75984         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75985         exist.
75986         Problem reported by Bruno Haible.
75987
75988 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         Avoid the need for AC_LIBSOURCES in m4 macros.
75991         * modules/acl (EXTRA_DIST): Add acl.h.
75992         * modules/argmatch (Files): Add m4/argmatch.m4.
75993         (configure.ac): Add gl_ARGMATCH.
75994         (EXTRA_DIST): Renamed from lib_SOURCES, for
75995         consistency with the other modules.  Remove argmatch.c.
75996         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75997         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75998         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75999         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76000         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76001         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76002         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76003         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76004         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76005         * modules/closeout (EXTRA_DIST): Add closeout.h.
76006         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76007         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76008         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76009         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76010         dirname.h; remove basename.c and stripslash.c.
76011         * modules/exclude (EXTRA_DIST): Add exclude.h.
76012         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76013         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76014         * modules/file-type (EXTRA_DIST): Add file-type.h.
76015         * modules/filemode (EXTRA_DIST): Add filemode.h.
76016         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76017         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76018         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76019         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76020         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76021         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76022         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76023         * modules/getdate (EXTRA_DIST): Add getdate.c.
76024         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76025         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76026         * modules/getpass (EXTRA_DIST): Add getpass.h.
76027         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76028         * modules/group-member (EXTRA_DIST): Add group-member.h.
76029         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76030         * modules/hash (EXTRA_DIST): Add hash.h.
76031         * modules/human (EXTRA_DIST): Add human.h.
76032         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76033         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76034         * modules/lchown (EXTRA_DIST): Add lchown.h.
76035         * modules/long-options (EXTRA_DIST): Add long-options.h.
76036         * modules/lstat (EXTRA_DIST): Add lstat.h.
76037         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76038         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76039         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76040         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76041         * modules/memxor (EXTRA_DIST): Add memxor.h.
76042         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76043         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76044         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76045         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76046         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76047         * modules/physmem (EXTRA_DIST): Add physmem.h.
76048         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76049         * modules/posixver (EXTRA_DIST): Add posixver.h.
76050         * modules/quote (EXTRA_DIST): Add quote.h.
76051         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76052         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76053         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76054         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76055         regex_internal.h regexec.c.
76056         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76057         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76058         * modules/same (EXTRA_DIST): Add same.h.
76059         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76060         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76061         * modules/savedir (EXTRA_DIST): Add savedir.h.
76062         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76063         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76064         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76065         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76066         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76067         * modules/strdup (EXTRA_DIST): Add strdup.h.
76068         * modules/strftime (EXTRA_DIST): Add strftime.h.
76069         * modules/strndup (EXTRA_DIST): Add strndup.h.
76070         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76071         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76072         * modules/time_r (EXTRA_DIST): Add time_r.h.
76073         * modules/timespec (EXTRA_DIST): Add timespec.h.
76074         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76075         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76076         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76077         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76078         * modules/userspec (EXTRA_DIST): Add userspec.h.
76079         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76080         * modules/utimens (EXTRA_DIST): Add utimens.h.
76081         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76082         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76083         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76084         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76085         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76086         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76087         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76088         * modules/yesno (EXTRA_DIST): Add yesno.h.
76089
76090 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76093
76094         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76095         * m4/dev-ino.m4, same-inode.m4: Remove.
76096
76097         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76098         * m4/acl.m4 (AC_FUNC_ACL):
76099         * m4/backupfile.m4 (gl_BACKUPFILE):
76100         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76101         * m4/canon-host.m4 (gl_CANON_HOST):
76102         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76103         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76104         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76105         * m4/cloexec.m4 (gl_CLOEXEC):
76106         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76107         * m4/closeout.m4 (gl_CLOSEOUT):
76108         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76109         * m4/dirname.m4 (gl_DIRNAME):
76110         * m4/exclude.m4 (gl_EXCLUDE):
76111         * m4/exitfail.m4 (gl_EXITFAIL):
76112         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76113         * m4/file-type.m4 (gl_FILE_TYPE):
76114         * m4/filemode.m4 (gl_FILEMODE):
76115         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76116         * m4/fpending.m4 (gl_FUNC_FPENDING):
76117         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76118         * m4/fts.m4 (gl_FUNC_FTS):
76119         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76120         * m4/getdate.m4 (gl_GETDATE):
76121         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76122         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76123         * m4/getpass.m4 (gl_FUNC_GETPASS):
76124         * m4/gettime.m4 (gl_GETTIME):
76125         * m4/getugroups.m4 (gl_GETUGROUPS):
76126         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76127         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76128         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76129         * m4/hash.m4 (gl_HASH):
76130         * m4/idcache.m4 (gl_IDCACHE):
76131         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76132         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76133         * m4/long-options.m4 (gl_LONG_OPTIONS):
76134         * m4/lstat.m4 (gl_FUNC_LSTAT):
76135         * m4/md5.m4 (gl_MD5):
76136         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76137         * m4/memcoll.m4 (gl_MEMCOLL):
76138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76140         * m4/memxor.m4 (gl_MEMXOR):
76141         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76142         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76143         * m4/modechange.m4 (gl_MODECHANGE):
76144         * m4/mountlist.m4 (gl_MOUNTLIST):
76145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76146         * m4/openat.m4 (gl_FUNC_OPENAT):
76147         * m4/pathmax.m4 (gl_PATHMAX):
76148         * m4/physmem.m4 (gl_PHYSMEM):
76149         * m4/posixtm.m4 (gl_POSIXTM):
76150         * m4/posixver.m4 (gl_POSIXVER):
76151         * m4/quote.m4 (gl_QUOTE):
76152         * m4/quotearg.m4 (gl_QUOTEARG):
76153         * m4/readtokens.m4 (gl_READTOKENS):
76154         * m4/readutmp.m4 (gl_READUTMP):
76155         * m4/regex.m4 (gl_REGEX):
76156         * m4/safe-read.m4 (gl_SAFE_READ):
76157         * m4/safe-write.m4 (gl_SAFE_WRITE):
76158         * m4/same.m4 (gl_SAME):
76159         * m4/save-cwd.m4 (gl_SAVE_CWD):
76160         * m4/savedir.m4 (gl_SAVEDIR):
76161         * m4/settime.m4 (gl_SETTIME):
76162         * m4/sha1.m4 (gl_SHA1):
76163         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76164         * m4/stat-macros.m4 (gl_STAT_MACROS):
76165         * m4/stat-time.m4 (gl_STAT_TIME):
76166         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76167         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76168         * m4/strdup.m4 (gl_FUNC_STRDUP):
76169         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76170         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76171         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76172         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76173         * m4/time_r.m4 (gl_TIME_R):
76174         * m4/timespec.m4 (gl_TIMESPEC):
76175         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76176         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76177         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76178         * m4/userspec.m4 (gl_USERSPEC):
76179         * m4/utimecmp.m4 (gl_UTIMECMP):
76180         * m4/utimens.m4 (gl_UTIMENS):
76181         * m4/xalloc.m4 (gl_XALLOC):
76182         * m4/xgetcwd.m4 (gl_XGETCWD):
76183         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76184         * m4/xreadlink.m4 (gl_XREADLINK):
76185         * m4/xstrtod.m4 (gl_XSTRTOD):
76186         * m4/yesno.m4 (gl_YESNO):
76187         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76188         to get the necessary .h files and whatnot.
76189
76190 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76191             Bruno Haible  <bruno@clisp.org>
76192
76193         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76194         /bin/sh understanding of '!' conditional negation.
76195
76196 2006-08-21  Jim Meyering  <jim@meyering.net>
76197
76198         * modules/openat (Depends-on): Really alphabetize.
76199
76200         * modules/acl (Depends-on): Add error and quote.
76201
76202         * check-module (find_included_lib_files): Add at-func.c to the
76203         ok-to-include-more-than-once white list.
76204
76205         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76206
76207 2006-08-21  Bruno Haible  <bruno@clisp.org>
76208
76209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76210         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76211         Reported by Martin Lambers <marlam@marlam.de>.
76212
76213 2006-08-21  Bruno Haible  <bruno@clisp.org>
76214
76215         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76216         specify an installation location, don't emit a noinst_LIBRARIES or
76217         noinst_LTLIBRARIES assignment.
76218
76219 2006-08-21  Bruno Haible  <bruno@clisp.org>
76220
76221         BeOS portability.
76222         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76223         BeOS has mbrtowc() but no <wctype.h>.
76224
76225 2006-08-21  Bruno Haible  <bruno@clisp.org>
76226
76227         BeOS portability.
76228         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76229         exist.
76230
76231 2006-08-21  Bruno Haible  <bruno@clisp.org>
76232
76233         BeOS portability.
76234         * lib/mbchar.h: Include <wctype.h> only if it exists.
76235
76236 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         Remove files that are no longer needed by their respective modules.
76239         * m4/obstack.m4: Remove.
76240         * m4/strerror_r.m4: Remove.
76241         * m4/uint32_t.m4: Remove.
76242         * m4/uintptr_t.m4: Remove.
76243         * m4/ullong_max.m4: Remove.
76244         * m4/xstrtoimax.m4: Remove.
76245         * m4/xstrtoumax.m4: Remove.
76246
76247         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76248         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76249         dependencies now capture this.
76250
76251         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76252         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76253         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76254         * m4/human.m4 (gl_HUMAN): Likewise.
76255         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76256         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76257
76258         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76259
76260         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76261         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76262         stdint.
76263         * m4/human.m4 (gl_HUMAN): Likewise.
76264         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76265         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76266         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76267         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76268         * m4/xstrtol (gl_XSTRTOL): Likewise.
76269
76270         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76271         AC_TYPE_LONG_LONG_INT.
76272         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76273         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76274         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76275         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76276
76277         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76278         on stdbool.
76279
76280         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76281         (gl_PREREQ_XSTRTOUL): Remove.
76282
76283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76284
76285         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76286         mode.
76287
76288 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         Add and change modules to make it easier for coreutils to use
76291         gnulib-tool.
76292         * modules/backupfile (Files): Remove m4/d-ino.m4.
76293         (Depends-on): Add d-ino.
76294         * modules/cycle-check (Depends-on): Add stdint.
76295         (lib_SOURCES): Add cycle-check.h.
76296         * modules/d-ino: New module.
76297         * modules/d-type: New module.
76298         * modules/error (Files): Remove m4/strerror_r.m4.
76299         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76300         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76301         m4/inttypes_h.m4, m4/uintmax_t.m4.
76302         (Depends-on): Add stdint.
76303         (lib_SOURCES): Add fsusage.h.
76304         * modules/getcwd (Files): Remove d-ino.m4.
76305         (Depends-on): Add d-ino.
76306         * modules/getndelim2 (Depends-on): Add stdint.
76307         * modules/glob (Files): Remove m4/d-type.m4.
76308         (Depends-on): Add d-type.
76309         * modules/host-os: New module.
76310         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76311         m4/inttypes_h.m4, m4/uintmax_t.m4.
76312         * Depends-on: Add stdint.
76313         (lib_SOURCES): Add human.h.
76314         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76315         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76316         m4/uintmax_t.m4, m4/ulonglong.m4.
76317         (Depends-on): Add stdint.
76318         (EXTRA_DIST): Add inttostr.h.
76319         * modules/lchmod: New module.
76320         * modules/link-follow: New module.
76321         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76322         (Depends-on): Add lchmod.
76323         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76324         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76325         (Depends-on): Add stdint.
76326         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76327         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76328         (Depends-on): Add stdint.
76329         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76330         * modules/perl: New module.
76331         * modules/regex (Depends-on): Add stdint.
76332         * modules/rmdir-errno: New module.
76333         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76334         m4/intmax_t.m4.
76335         (Depends-on): Add stdint.
76336         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76337         m4/uintmax_t.m4.
76338         (Depends-on): Add stdint.
76339         * modules/unlink-busy: New module.
76340         * modules/utimecmp (Depends-on): Add stdint.
76341         * modules/uptime: New module.
76342         * modules/winsz-ioctl: New module.
76343         * modules/winsz-termios: New module.
76344         * modules/xnanosleep (Depends-on): Add nanosleep.
76345         * modules/ullong_max: Remove.
76346         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76347         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76348         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76349         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76350         (Depends-on): Add inttypes.
76351         (lib_SOURCES): Add xstrtol.h.
76352         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76353         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76354         * MODULES.html.sh: Move 'assert' into the assert section.
76355         Move 'dummy' into the linking section.
76356         Remove ullong_max.
76357         Add section for compatibility checks for POSIX:2001 functions,
76358         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76359         winsz-ioctl, and winsz-termios into it.
76360         Add lchmod.
76361         Add top-level Misc section and put host-os, perl, and uptime
76362         into it.
76363
76364 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76367         now assume the stdint module.  Do not include inttypes.h.
76368         * lib/fsusage.h: Likewise.
76369         * lib/getndelim2.c: Likewise.
76370         * lib/human.h: Likewise.
76371         * lib/inttostr.h: Likewise.
76372         * lib/obstack.c: Likewise.
76373         * lib/regex_internal.h: Likewise.
76374         * lib/tempname.c: Likewise.
76375         * lib/utimecmp.c: Likewise.
76376         * lib/xstrtol.h: Likewise.
76377
76378         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76379
76380         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76381         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76382         * lib/xtime.h: Likewise.
76383
76384 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76385
76386         * modules/openat (Files): Add lib/fchmodat.c.
76387         Fixes problem reported by Jay Youngman.
76388
76389 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76390
76391         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76392         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76393
76394 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76395             Bruno Haible  <bruno@clisp.org>
76396
76397         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76398         and is a script that invokes bison. Tighten the code. Add comments.
76399
76400 2006-08-18  Jim Meyering  <jim@meyering.net>
76401
76402         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76403         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76404         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76405         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76406
76407 2006-08-18  Bruno Haible  <bruno@clisp.org>
76408
76409         * modules/bison-i18n: New file.
76410         * MODULES.html.sh (Internationalization functions): Add it.
76411
76412 2006-08-18  Bruno Haible  <bruno@clisp.org>
76413
76414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76415         sys/statvfs.h. When getmntinfo was found, check its declaration and
76416         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76417
76418 2006-08-18  Bruno Haible  <bruno@clisp.org>
76419
76420         * m4/bison-i18n.m4: New file, from bison.
76421
76422 2006-08-18  Bruno Haible  <bruno@clisp.org>
76423
76424         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76425         (ME_DUMMY): Treat "kernfs" as a dummy.
76426         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76427
76428 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         Update from coreutils.
76431
76432         2006-08-15  Jim Meyering  <jim@meyering.net>
76433
76434         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76435
76436         2006-01-17  Jim Meyering  <jim@meyering.net>
76437
76438         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76439
76440         2006-01-11  Jim Meyering  <jim@meyering.net>
76441
76442         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76443         Check for the lchmod function.
76444
76445 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76446
76447         Update from coreutils.
76448
76449         * lib/__fpending.h: Add copyright notice.
76450         * lib/fprintftime.h: Likewise.
76451         * lib/savedir.c: Use (C) in copyright notice.
76452         * lib/savedir.h: Likewise.
76453
76454         2006-08-15  Jim Meyering  <jim@meyering.net>
76455
76456         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76457         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76458         in support of the EXPECTED_ERRNO macro.
76459         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76460         definitions.  Instead, define the appropriate symbols and include
76461         "at-func.c".
76462         * lib/mkdirat.c (mkdirat): Likewise.
76463         * lib/fchmodat.c (fchmodat): Likewise.
76464         (ENOSYS): Remove definition.
76465         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76466         it.  Don't include "unistd--.h" -- it wasn't ever used.
76467
76468         2006-01-17  Jim Meyering  <jim@meyering.net>
76469
76470         Rewrite fts.c not to change the current working directory,
76471         by using openat, fstatat, fdopendir, etc..
76472
76473         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76474         (HAVE_OPENAT_SUPPORT): Define.
76475         [_LIBC] (fchdir): Don't undef or define; no longer used.
76476         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76477         Now, this `function' always succeeds, and consumes its file descriptor
76478         parameter -- so callers must not close such FDs.  Update callers.
76479         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76480         (diropen): Add parameter, SP.  Adjust all callers.
76481         Implement using diropen_fd, rather than open.
76482         (fts_open): Initialize new member, fts_cwd_fd.
76483         Remove fts_rft-setting code.
76484         (fts_close): Close fts_cwd_fd, if necessary.
76485         (__opendir2): Define in terms of opendir or opendirat,
76486         depending on whether the FST_NOCHDIR flag is set.
76487         (fts_build): Since fts_safe_changedir consumes its FD, and since
76488         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76489         and close the dup'd file descriptor upon failure.
76490         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76491         (fts_safe_changedir): Tweak semantics to reflect that this function
76492         now calls cwd_advance_fd and hence consumes its FD argument.
76493         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76494         [struct FTS] (fts_rft): Remove now-unused member.
76495         [struct FTS] (fts_cycle.state): Improve comment.
76496
76497         * lib/openat.c (openat_needs_fchdir): New function.
76498         * lib/openat.h (openat_needs_fchdir): Declare it.
76499
76500 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76501
76502         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76503         Problem and fix reported by Pádraig Brady in
76504         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76505
76506 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76509
76510 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * lib/memcoll.c (memcoll): Optimize for the common case where the
76513         arguments are bytewise equal.
76514
76515 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * doc/regexprops-generic.texi: Add a copyright notice.
76518
76519 2006-08-15  Bruno Haible  <bruno@clisp.org>
76520
76521         * modules/tmpdir (License): Change to LGPL.
76522
76523 2006-08-15  Bruno Haible  <bruno@clisp.org>
76524
76525         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76526         module.
76527
76528 2006-08-14  Simon Josefsson  <jas@extundo.com>
76529
76530         * config/srclist.txt: Add gnupload.
76531
76532 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         Change copyright notice from LGPL 2 to GPL 2, since that's the
76535         standard form used in the gnulib repository.
76536         * tests/test-lock.c: Likewise.
76537         * tests/test-stdint.c: Likewise.
76538         * tests/test-tls.c: Likewise.
76539
76540         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76541         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76542         Add copyright notice.
76543
76544         * check-module: Add copyright notice.  Output a copyright
76545         notice if "--version" is specified.
76546         * modules/COPYING: New file.
76547         * tests/test-getaddrinfo.c: Add copyright notice.
76548         * tests/test-verify.c: Likewise.
76549
76550 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         Change copyright notice from LGPL 2 to GPL 2, since that's the
76553         standard form used in the gnulib repository.
76554         * lib/lock.c: LGPL -> GPL.
76555         * lib/lock.h: Likewise.
76556         * lib/strnlen1.c: Likewise.
76557         * lib/strnlen1.h: Likewise.
76558         * lib/tls.c: Likewise.
76559         * lib/tls.h: Likewise.
76560         * lib/tmpdir.c: Likewise.
76561
76562         * lib/TODO: Remove; this belongs only in coreutils.
76563
76564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76565
76566         Add copyright notices to long-enough files that lack them, since
76567         otherwise the files aren't clearly free.  Use the same notice that
76568         getdate.texi already uses.
76569         * doc/alloca-opt.texi: Add copyright notice.
76570         * doc/alloca.texi: Likewise.
76571         * doc/ctime.texi: Likewise.
76572         * doc/functions.texi: Likewise.
76573         * doc/gcd.texi: Likewise.
76574         * doc/gnulib-tool.texi: Likewise.
76575         * doc/inet_ntoa.texi: Likewise.
76576         * doc/visibility.texi: Likewise.
76577
76578         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76579         * doc/quote.texi: Add copyright notice.
76580
76581         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76582         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76583         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76584         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76585         is now obsolete, and give a pointer to the Sun list.
76586         Add copyright notice.
76587
76588 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * config/srclistvars.sh: Add copyright notice.
76591
76592 2006-08-14  Eric Blake  <ebb9@byu.net>
76593
76594         Import the following change from libc:
76595
76596         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76597
76598         Upstream bug 2997.
76599         * lib/misc/error.c: Add space between program name and message if file
76600         name is missing.
76601
76602 2006-08-12  Karl Berry  <karl@gnu.org>
76603
76604         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76605         remove, these originate in gnulib now.
76606
76607 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76608
76609         * doc/Makefile (standards.info standards.html standards.dvi):
76610         Also depend on make-stds.texi.
76611
76612 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76615         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76616
76617         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76618         in wchar_t.  Problem reported by Eric Blake.
76619
76620         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76621         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76622         Also, help the compiler to keep LEN in a register.
76623
76624 2006-08-11  Eric Blake  <ebb9@byu.net>
76625
76626         * users.txt: Sort.  Add tar.
76627
76628 2006-08-11  Bruno Haible  <bruno@clisp.org>
76629
76630         * users.txt: New file.
76631
76632 2006-08-11  Bruno Haible  <bruno@clisp.org>
76633
76634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76635         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76636
76637 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * modules/snprintf (Depends-on): Remove minmax.
76640         (Maintainer): Add self and Bruno.
76641
76642 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76645         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76646         (EOVERFLOW): Define if the system does not.
76647         Do not include "minmax.h"; it wasn't used.
76648         (snprintf): Don't assume size_t promotes to an unsigned type.
76649         Fix bug when generated string was too long for the buffer: the
76650         buffer's contents are supposed to be the initial prefix of the
76651         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76652         exceeds INT_MAX; do the check ourselves.
76653
76654         Import the following changes from libc:
76655
76656         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76657
76658         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76659         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76660         set wc to the byte which couldn't be converted.
76661         (re_string_reconstruct): Don't clear valid_raw_len before calling
76662         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76663         tip_context using re_string_context_at.
76664
76665         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76666
76667         * lib/posix/regex.h: g++ still cannot handled [restrict].
76668
76669         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76670
76671         * lib/posix/regex.h: Remove special handling for VMS.
76672
76673 2006-08-10  Jim Meyering  <jim@meyering.net>
76674
76675         * modules/same-inode: New module.
76676         * modules/dev-ino: New module.
76677         * modules/cycle-check: Depend on these modules, rather than simply
76678         including their .h files.
76679         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76680         required via m4/cycle-check.m4.
76681         * modules/same: Depend on new same-inode module, rather than
76682         including same-inode.h.
76683         * modules/chdir-safer: New file.
76684
76685         * modules/chown (Depends-on): Add stat-macros.
76686
76687 2006-08-10  Jim Meyering  <jim@meyering.net>
76688
76689         * m4/cycle-check.m4: New file.
76690         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76691         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76692
76693 2006-08-10  Eric Blake  <ebb9@byu.net>
76694
76695         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76696         in from original proposal.
76697
76698 2006-08-10  Eric Blake  <ebb9@byu.net>
76699         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76700
76701         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76702         namespace.
76703
76704 2006-08-10  Bruno Haible  <bruno@clisp.org>
76705
76706         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76707         as well.
76708
76709 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         Sync from coreutils.
76712
76713         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76714
76715         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76716         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76717
76718 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * modules/restrict: Remove; no longer needed now that we assume
76721         Autoconf 2.59 or later.
76722         * MODULES.html.sh: Remove 'restrict'.
76723         * modules/argp (Depends-on): Remove 'restrict'.
76724         * modules/base64 (Depends-on): Likewise.
76725         * modules/gc (Depends-on): Likewise.
76726         * modules/getaddrinfo (Depends-on): Likewise.
76727         * modules/glob (Depends-on): Likewise.
76728         * modules/inet_ntop (Depends-on): Likewise.
76729         * modules/inet_pton (Depends-on): Likewise.
76730         * modules/memxor (Depends-on): Likewise.
76731         * modules/regex (Depends-on): Likewise.
76732         * modules/strtok_r (Depends-on): Likewise.
76733         * modules/time_r (Depends-on): Likewise.
76734
76735 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76738         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76739         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76740         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76741         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76742         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76743         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76744         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76745
76746         Merge from coreutils.
76747         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76748         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76750         * m4/time_r.m4 (gl_TIME_R): Likewise.
76751
76752 2006-08-09  Karl Berry  <karl@gnu.org>
76753
76754         * config/srclist.txt: no more gettext-tools, per Bruno.
76755
76756 2006-08-08  Eric Blake  <ebb9@byu.net>
76757
76758         * modules/verror: New module.
76759         * MODULES.html.sh: Document it.
76760
76761 2006-08-08  Eric Blake  <ebb9@byu.net>
76762
76763         * lib/verror.h, lib/verror.c: New files.
76764
76765 2006-08-08  Eric Blake  <ebb9@byu.net>
76766
76767         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76768         verror_at_line output complies with GNU Coding Standards even when
76769         file is NULL.
76770
76771 2006-08-07  Bruno Haible  <bruno@clisp.org>
76772
76773         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76774         versions of AIX.
76775         Reported by Ralf Wildenhues.
76776
76777 2006-08-07  Bruno Haible  <bruno@clisp.org>
76778
76779         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76780         in an AC_DEFUN. Needed so that the autoconf snippets can use
76781         AC_REQUIRE.
76782
76783 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76784
76785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76786         Initialize pkgdata_DATA.
76787         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76788         overriding it.
76789
76790 2006-08-06  Eric Blake  <ebb9@byu.net>
76791
76792         * lib/error.h: Fold in some upstream changes from glibc.
76793         * lib/error.c: Likewise.
76794
76795 2006-08-04  Bruno Haible  <bruno@clisp.org>
76796
76797         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76798         Make the mostlyclean-local rule depend on mostlyclean-generic.
76799         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76800
76801 2006-07-31  Bruno Haible  <bruno@clisp.org>
76802
76803         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76804         <stdlib.h>, <string.h>.
76805
76806 2006-07-30  Bruno Haible  <bruno@clisp.org>
76807
76808         * modules/readlink (License): Change to LGPL.
76809
76810 2006-07-30  Bruno Haible  <bruno@clisp.org>
76811
76812         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76813         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76814         set PKGDATADIR to point to it.
76815
76816 2006-07-30  Bruno Haible  <bruno@clisp.org>
76817
76818         * modules/csharpexec (configure.ac): Comment out macro invocation.
76819         * modules/javaexec (configure.ac): Likewise.
76820         * modules/javacomp-script (configure.ac): Likewise.
76821
76822         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76823
76824 2006-07-30  Bruno Haible  <bruno@clisp.org>
76825
76826         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76827         linked-list.
76828
76829 2006-07-30  Bruno Haible  <bruno@clisp.org>
76830
76831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76832
76833 2006-07-30  Bruno Haible  <bruno@clisp.org>
76834
76835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76836         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76837         get removed.
76838
76839 2006-07-29  Bruno Haible  <bruno@clisp.org>
76840
76841         Make it possible for gnulib-tool to work with locally modified or
76842         augmented gnulib repositories.
76843         * gnulib-tool (func_usage): Document --local-dir option.
76844         (local_gnulib_dir): New variable.
76845         Handle --local-dir option.
76846         (func_lookup_file): New function.
76847         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76848         (func_get_description, func_get_filelist, func_get_description,
76849         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76850         func_get_automake_snippet, func_get_include_directive,
76851         func_get_license, func_get_maintainer): Use func_lookup_file.
76852         (func_import, func_create_testdir): Use func_lookup_file.
76853
76854 2006-07-29  Bruno Haible  <bruno@clisp.org>
76855
76856         * modules/setenv (Depends-on): Add unistd.
76857
76858 2006-07-29  Bruno Haible  <bruno@clisp.org>
76859
76860         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76861
76862 2006-07-29  Bruno Haible  <bruno@clisp.org>
76863
76864         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76865
76866 2006-07-29  Bruno Haible  <bruno@clisp.org>
76867
76868         * gnulib-tool (import, update): If there is no Makefile.am, look at
76869         aclocal.m4, instead of bailing out.
76870
76871 2006-07-29  Bruno Haible  <bruno@clisp.org>
76872
76873         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76874         Categorize the options by when they are useful.
76875
76876 2006-07-29  Bruno Haible  <bruno@clisp.org>
76877
76878         * gnulib-tool (func_usage): Document option --no-libtool.
76879         Handle option --no-libtool.
76880         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76881         for changed semantics of $libtool variable.
76882         (func_import): Likewise. If libtool is not used, show this through
76883         an option --no-libtool.
76884         (func_create_testdir): Update.
76885
76886 2006-07-29  Bruno Haible  <bruno@clisp.org>
76887
76888         * gnulib-tool (func_import): Extend error message about missing
76889         --doc-base.
76890
76891 2006-07-29  Bruno Haible  <bruno@clisp.org>
76892
76893         * gnulib-tool (func_import): Don't create the $docbase directory if
76894         there is no file to store there.
76895
76896 2006-07-29  Bruno Haible  <bruno@clisp.org>
76897
76898         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76899         relevant, look for configure.ac there, not in the current directory.
76900         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76901
76902 2006-07-29  Bruno Haible  <bruno@clisp.org>
76903
76904         * gnulib-tool (SORT): New variable.
76905         (func_usage): Undocument --assume-autoconf option.
76906         Remove --assume-autoconf option handling.
76907         (autoconf_minversion): Determine from the contents of configure.ac.
76908         (func_import): Remove autoconf_minversion handling.
76909         Suggested by Eric Blake.
76910
76911 2006-07-29  Bruno Haible  <bruno@clisp.org>
76912
76913         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76914
76915 2006-07-29  Bruno Haible  <bruno@clisp.org>
76916
76917         * config/srclist.txt (*setenv.[ch]): Remove rules.
76918
76919 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76920
76921         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76922
76923 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76924
76925         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76926         arpa/inet.h.
76927
76928 2006-07-28  Simon Josefsson  <jas@extundo.com>
76929
76930         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76931         * modules/inet_pton (Depends-on): Likewise.
76932
76933 2006-07-28  Simon Josefsson  <jas@extundo.com>
76934
76935         * m4/netinet_in_h.m4: New file.
76936
76937 2006-07-28  Simon Josefsson  <jas@extundo.com>
76938
76939         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76940         #include's.
76941
76942 2006-07-28  Simon Josefsson  <jas@extundo.com>
76943
76944         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76945         #include's.
76946
76947 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76950         setgid on directories only if they set these bits.
76951         * lib/modechange.h: Remove obsolete comment about masks.
76952
76953 2006-07-28  Eric Blake  <ebb9@byu.net>
76954
76955         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76956         macro expansion.
76957
76958 2006-07-28  Bruno Haible  <bruno@clisp.org>
76959
76960         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76961
76962 2006-07-28  Bruno Haible  <bruno@clisp.org>
76963
76964         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76965
76966 2006-07-28  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76969         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76970         Define fallbacks.
76971         Avoids link error on FreeBSD 4.x.
76972         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76973
76974         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76975         encoding.
76976         * lib/mbswidth.c (iswcntrl): Likewise.
76977
76978 2006-07-27  Bruno Haible  <bruno@clisp.org>
76979
76980         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76981         test.
76982
76983 2006-07-27  Bruno Haible  <bruno@clisp.org>
76984
76985         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76986         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76987         defined.
76988
76989 2006-07-26  Eric Blake  <ebb9@byu.net>
76990
76991         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76992
76993 2006-07-26  Eric Blake  <ebb9@byu.net>
76994
76995         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76996         like mingw that lack mkstemp.
76997         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76998         avoid compilation warning on mingw.
76999
77000 2006-07-26  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77003         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77004         INT_FAST*_MIN, INTPTR_MIN.
77005
77006 2006-07-25  Bruno Haible  <bruno@clisp.org>
77007
77008         * modules/version-etc (Depends-on): Add stdarg.
77009
77010 2006-07-25  Bruno Haible  <bruno@clisp.org>
77011
77012         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77013         complex commands.
77014
77015 2006-07-25  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77018         defined in <stdarg.h> or config.h.
77019
77020 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77023         (gl_STDIO_SAFER): Remove.
77024
77025 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * MODULES.html.sh (File stream based Input/Output):
77028         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77029         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77030         * modules/fopen-safer, modules/tmpfile-safer: New files.
77031         * modules/stdio-safer: Remove.
77032
77033 2006-07-24  Bruno Haible  <bruno@clisp.org>
77034
77035         * modules/tmpdir: New file.
77036         * MODULES.html.sh (File system functions): Add it.
77037
77038 2006-07-24  Bruno Haible  <bruno@clisp.org>
77039
77040         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77041         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77042
77043 2006-07-24  Bruno Haible  <bruno@clisp.org>
77044
77045         * modules/clean-temp: New file.
77046
77047 2006-07-24  Bruno Haible  <bruno@clisp.org>
77048
77049         * m4/tmpdir.m4: New file, from GNU gettext.
77050
77051 2006-07-24  Bruno Haible  <bruno@clisp.org>
77052
77053         * lib/tmpdir.h: New file, from GNU gettext.
77054         * lib/tmpdir.c: New file, from GNU gettext.
77055
77056 2006-07-24  Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/clean-temp.h: New file, from GNU gettext.
77059         * lib/clean-temp.c: New file, from GNU gettext.
77060
77061 2006-07-23  Eric Blake  <ebb9@byu.net>
77062
77063         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77064         (Depends-on): Add binary-io.
77065
77066 2006-07-23  Eric Blake  <ebb9@byu.net>
77067
77068         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77069
77070 2006-07-23  Eric Blake  <ebb9@byu.net>
77071
77072         * lib/tmpfile-safer.c: New file.
77073         * lib/stdio-safer.h (fopen_safer): Add prototype.
77074         * lib/stdio--.h (tmpfile): Make safer.
77075
77076 2006-07-23  Bruno Haible  <bruno@clisp.org>
77077
77078         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77079         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77080         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77081         gl_linked_remove_at): Use it.
77082
77083 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77084         and Simon Josefsson <jas@extundo.com>
77085
77086         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77087
77088         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77089
77090 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77091
77092         * modules/close-stream: New file.
77093         * modules/closeout (Description): Make it clear that it exits
77094         with a diagnostic on error.
77095         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77096         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77097
77098 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * m4/close-stream.m4: New file.
77101
77102 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         * lib/close-stream.c, lib/close-stream.h: New files.
77105
77106 2006-07-22  Bruno Haible  <bruno@clisp.org>
77107
77108         Merge from GNU gettext 0.15.
77109
77110         2006-05-01  Bruno Haible  <bruno@clisp.org>
77111
77112                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77113
77114         2006-07-22  Bruno Haible  <bruno@clisp.org>
77115
77116                 * modules/javaversion: New file.
77117                 * MODULES.html.sh (Java): Add javaversion.
77118
77119         2006-03-12  Bruno Haible  <bruno@clisp.org>
77120
77121                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77122
77123         2005-12-04  Bruno Haible  <bruno@clisp.org>
77124
77125                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77126                 (untested).
77127
77128         2006-06-21  Bruno Haible  <bruno@clisp.org>
77129
77130                 Avoid warnings from recent versions of mcs.
77131                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77132                 -o, -L, -r any more. Use options documented since mcs-1.0
77133                 instead. Similarly for -g.
77134
77135         2005-12-04  Bruno Haible  <bruno@clisp.org>
77136
77137                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77138                 .resources, not .resource.
77139
77140         2005-07-09  Bruno Haible  <bruno@clisp.org>
77141
77142                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77143                 add a .dll suffix.
77144                 Reported by Mark Junker <mjscod@gmx.de>.
77145
77146         2006-07-22  Bruno Haible  <bruno@clisp.org>
77147
77148                 * modules/gettext: Upgrade to gettext-0.15.
77149                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77150                 m4/visibility.m4.
77151                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77152
77153 2006-07-22  Bruno Haible  <bruno@clisp.org>
77154
77155         Merge from GNU gettext 0.15.
77156
77157         2006-03-25  Bruno Haible  <bruno@clisp.org>
77158
77159                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77160
77161         2006-07-21  Bruno Haible  <bruno@clisp.org>
77162
77163                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77164                 "1.1".
77165
77166         2006-05-09  Bruno Haible  <bruno@clisp.org>
77167
77168                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77169                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77170                 for the conftestver execution.
77171
77172         2006-05-01  Bruno Haible  <bruno@clisp.org>
77173
77174                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77175                 optional target-version argument. Verify that the compiler
77176                 groks source of the specified source-version, or add -source
77177                 option as necessary. Verify that the compiler produces
77178                 bytecode in the specified target-version, or add -target and
77179                 -source options as necessary. Make the result of the test
77180                 available as variable CONF_JAVAC. Also log error output in
77181                 config.log.
77182
77183         2006-03-11  Bruno Haible  <bruno@clisp.org>
77184
77185                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77186
77187         2006-05-09  Bruno Haible  <bruno@clisp.org>
77188
77189                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77190                 CLASSPATH_SEPARATOR to a semicolon.
77191
77192         2006-03-12  Bruno Haible  <bruno@clisp.org>
77193
77194                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77195                 available as variable CONF_JAVA, for subsequent autoconf
77196                 tests. Also log error output in config.log.
77197
77198         2006-07-19  Bruno Haible  <bruno@clisp.org>
77199
77200                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77201                 that getline works on glibc2 systems. Needed to avoid trouble
77202                 in relocatable.c.
77203                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77204
77205         2005-12-04  Bruno Haible  <bruno@clisp.org>
77206
77207                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77208                 launcher (untested).
77209
77210         2005-12-04  Bruno Haible  <bruno@clisp.org>
77211
77212                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77213
77214         2006-07-22  Bruno Haible  <bruno@clisp.org>
77215
77216                 * gettext.m4: Update from GNU gettext-0.15.
77217                 * nls.m4: Likewise.
77218                 * po.m4: Likewise.
77219                 * inttypes-pri.m4: Likewise.
77220                 * inttypes-h.m4: Renamed from inttypes.m4.
77221                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77222
77223 2006-07-22  Bruno Haible  <bruno@clisp.org>
77224
77225         Merge from GNU gettext 0.15.
77226
77227         2005-07-05  Bruno Haible  <bruno@clisp.org>
77228
77229                 * printf-args.c (printf_fetchargs): Work around broken
77230                 definition of wint_t on mingw.
77231
77232         2005-02-12  Bruno Haible  <bruno@clisp.org>
77233
77234                 * xallocsa.h: Add extern "C" for C++.
77235
77236         2006-05-17  Bruno Haible  <bruno@clisp.org>
77237
77238                 Cygwin portability.
77239                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77240
77241         2006-04-30  Bruno Haible  <bruno@clisp.org>
77242
77243                 * progreloc.c: Include <mach-o/dyld.h> if available.
77244                 (find_executable): Use _NSGetExecutablePath when possible.
77245
77246         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77247
77248                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77249                 function.
77250
77251         2005-12-29  Bruno Haible  <bruno@clisp.org>
77252
77253                 * progreloc.c (set_program_name_and_installdir): Fix
77254                 compilation error.
77255
77256         2005-12-04  Bruno Haible  <bruno@clisp.org>
77257
77258                 Cygwin portability.
77259                 * progreloc.c: Include <windows.h> also on Cygwin.
77260                 (find_executable): Add support for Cygwin.
77261                 (set_program_name_and_installdir): Handle also platforms with
77262                 nonempty EXEEXT.
77263
77264         2006-07-11  Bruno Haible  <bruno@clisp.org>
77265
77266                 * javacomp.c: Fix a comment.
77267                 Reported by Jim Meyering.
77268
77269         2006-04-30  Bruno Haible  <bruno@clisp.org>
77270
77271                 * javacomp.h (compile_java_class): Add source_version,
77272                 target_version arguments.
77273                 * javacomp.c: Rewritten to choose only a compiler that
77274                 respects the specified source_version and target_version.
77275
77276         2006-06-27  Bruno Haible  <bruno@clisp.org>
77277
77278                 Assume correct S_ISDIR macro.
77279                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77280
77281         2006-07-22  Bruno Haible  <bruno@clisp.org>
77282
77283                 * javaversion.h: New file, from GNU gettext.
77284                 * javaversion.c: New file, from GNU gettext.
77285                 * javaversion.java: New file, from GNU gettext.
77286                 * javaversion.class: New file, from GNU gettext.
77287
77288         2006-05-17  Bruno Haible  <bruno@clisp.org>
77289
77290                 Cygwin portability.
77291                 * javaexec.c (execute_java_class): Test for jview program
77292                 also on Cygwin.
77293
77294         2006-04-09  Bruno Haible  <bruno@clisp.org>
77295
77296                 * fatal-signal.c: Don't include string.h.
77297                 (at_fatal_signal): Use a copying loop instead of memcpy.
77298
77299         2005-12-04  Bruno Haible  <bruno@clisp.org>
77300
77301                 * csharpexec.c: Add support for 'clix' launcher (untested).
77302                 (execute_csharp_using_sscli): New function.
77303                 (execute_csharp_program): Call it.
77304
77305         2006-06-21  Bruno Haible  <bruno@clisp.org>
77306
77307                 Avoid warnings from recent versions of mcs.
77308                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77309                 -o, -L, -r any more. Use options documented since mcs-1.0
77310                 instead. Similarly for -g.
77311
77312         2005-07-09  Bruno Haible  <bruno@clisp.org>
77313
77314                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77315                 add a .dll suffix.
77316                 Reported by Mark Junker <mjscod@gmx.de>.
77317
77318         2006-06-17  Bruno Haible  <bruno@clisp.org>
77319
77320                 * config.charset: Update for NetBSD 3.0.
77321
77322         2006-05-17  Bruno Haible  <bruno@clisp.org>
77323
77324                 Cygwin portability.
77325                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77326
77327         2006-05-16  Bruno Haible  <bruno@clisp.org>
77328
77329                 * localcharset.c [CYGWIN]: Include <windows.h>.
77330                 (get_charset_aliases): For Cygwin, return the same CPxxx
77331                 aliases list as under WIN32.
77332                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77333                 the environment variables. Fall back to GetACP().
77334
77335         2006-04-05  Bruno Haible  <bruno@clisp.org>
77336
77337                 * config.charset: Update Juan Manuel Guerrero's address.
77338
77339         2005-02-12  Bruno Haible  <bruno@clisp.org>
77340
77341                 * allocsa.h: Add extern "C" for C++.
77342
77343         2005-02-10  Bruno Haible  <bruno@clisp.org>
77344
77345                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77346                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77347
77348         2006-07-22  Bruno Haible  <bruno@clisp.org>
77349
77350                 * gettext.h: Update to GNU gettext-0.15.
77351
77352 2006-07-22  Bruno Haible  <bruno@clisp.org>
77353
77354         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77355         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77356         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77357
77358 2006-07-21  Eric Blake  <ebb9@byu.net>
77359
77360         * modules/stdlib-safer: New file.
77361         * MODULES.html.sh (File stream based Input/Output): Add
77362         stdlib-safer.
77363
77364 2006-07-21  Eric Blake  <ebb9@byu.net>
77365
77366         * lib/stdlib-safer.h: New file from coreutils, required by
77367         stdlib--.h.
77368
77369 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77372
77373 2006-07-20  Bruno Haible  <bruno@clisp.org>
77374
77375         * gnulib-tool: Recognize new option --assume-autoconf.
77376         (autoconf_minversion): New variable.
77377         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77378
77379 2006-07-20  Bruno Haible  <bruno@clisp.org>
77380
77381         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77382
77383 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77384
77385         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77386         Reindent and repaginate.
77387
77388 2006-07-19  Derek Price  <derek@ximbiot.com>
77389
77390         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77391         Correct grammar.
77392
77393 2006-07-17  Bruno Haible  <bruno@clisp.org>
77394
77395         * modules/list: New file.
77396         * modules/array-list: New file.
77397         * modules/carray-list, modules/carray-list-tests: New files.
77398         * modules/linked-list, modules/linked-list-tests: New files.
77399         * modules/avltree-list, modules/avltree-list-tests: New files.
77400         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77401         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77402         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77403         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77404         * modules/oset: New file.
77405         * modules/array-oset: New file.
77406         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77407         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77408         * tests/test-carray_list.c: New file.
77409         * tests/test-linked_list.c: New file.
77410         * tests/test-avltree_list.c: New file.
77411         * tests/test-rbtree_list.c: New file.
77412         * tests/test-linkedhash_list.c: New file.
77413         * tests/test-avltreehash_list.c: New file.
77414         * tests/test-rbtreehash_list.c: New file.
77415         * tests/test-avltree_oset.c: New file.
77416         * tests/test-rbtree_oset.c: New file.
77417         * MODULES.html.sh (Container data structures): New section.
77418
77419 2006-07-17  Bruno Haible  <bruno@clisp.org>
77420
77421         * m4/gl_list.m4: New file.
77422
77423 2006-07-17  Bruno Haible  <bruno@clisp.org>
77424
77425         * lib/gl_list.h: New file.
77426         * lib/gl_list.c: New file.
77427         * lib/gl_array_list.h: New file.
77428         * lib/gl_array_list.c: New file.
77429         * lib/gl_carray_list.h: New file.
77430         * lib/gl_carray_list.c: New file.
77431         * lib/gl_linked_list.h: New file.
77432         * lib/gl_linked_list.c: New file.
77433         * lib/gl_anylinked_list1.h: New file.
77434         * lib/gl_anylinked_list2.h: New file.
77435         * lib/gl_avltree_list.h: New file.
77436         * lib/gl_avltree_list.c: New file.
77437         * lib/gl_anyavltree_list1.h: New file.
77438         * lib/gl_anyavltree_list2.h: New file.
77439         * lib/gl_rbtree_list.h: New file.
77440         * lib/gl_rbtree_list.c: New file.
77441         * lib/gl_anyrbtree_list1.h: New file.
77442         * lib/gl_anyrbtree_list2.h: New file.
77443         * lib/gl_anytree_list1.h: New file.
77444         * lib/gl_anytree_list2.h: New file.
77445         * lib/gl_linkedhash_list.h: New file.
77446         * lib/gl_linkedhash_list.c: New file.
77447         * lib/gl_anyhash_list1.h: New file.
77448         * lib/gl_anyhash_list2.h: New file.
77449         * lib/gl_avltreehash_list.h: New file.
77450         * lib/gl_avltreehash_list.c: New file.
77451         * lib/gl_rbtreehash_list.h: New file.
77452         * lib/gl_rbtreehash_list.c: New file.
77453         * lib/gl_anytreehash_list1.h: New file.
77454         * lib/gl_anytreehash_list2.h: New file.
77455
77456         * lib/gl_oset.h: New file.
77457         * lib/gl_oset.c: New file.
77458         * lib/gl_array_oset.h: New file.
77459         * lib/gl_array_oset.c: New file.
77460         * lib/gl_avltree_oset.h: New file.
77461         * lib/gl_avltree_oset.c: New file.
77462         * lib/gl_rbtree_oset.h: New file.
77463         * lib/gl_rbtree_oset.c: New file.
77464         * lib/gl_anytree_oset.h: New file.
77465
77466 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * m4/mkancesdirs.m4: New file.
77469         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77470         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77471         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77472         it.
77473
77474 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77475
77476         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77477         * lib/mkancesdirs.h: New files.
77478         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77479         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77480         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77481         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77482         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77483         callers changed.  Revamp internals significantly, by not
77484         attempting to create directories that are temporarily more
77485         permissive than the final results.  Do not attempt to use
77486         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77487         This removes some race conditions, fixes some bugs, and simplifies
77488         things.  Use new dirchownmod function to do owner and mode changes.
77489         * lib/mkdir-p.h: Likewise.
77490         * lib/modechange.c (octal_to_mode): New function.
77491         (struct mode_change): New member mentioned.
77492         (make_node_op_equals): New arg mentioned.  All callers changed.
77493         (mode_compile): Keep track of which mode bits the user has explicitly
77494         mentioned.
77495         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77496         New arg PMODE_BITS, to keep track of which mode bits the user
77497         mentioned; it treats S_ISUID and S_ISGID speciall.
77498         All callers changed.
77499         * lib/modechange.h: Likewise.
77500
77501 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * MODULES.html.sh: Add mkancestors.
77504         * modules/mkancesdirs: New module.
77505         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77506         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77507         The chdir-safer and afs files are now orphans; I'll remove them
77508         unless someone speaks up.
77509         Add lib/dirchownmod.c, lib/dirchownmod.h.
77510         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77511         Add lchown, mkancesdirs.
77512         (Maintainer): Add self.
77513
77514 2006-07-15  Karl Berry  <karl@gnu.org>
77515
77516         * gnulib-tool: help message wording/arrangement.
77517
77518 2006-07-14  Simon Josefsson  <jas@extundo.com>
77519
77520         * doc/gnulib.texi (Libtool and Windows): New section.
77521
77522 2006-07-12  Simon Josefsson  <jas@extundo.com>
77523
77524         * modules/gendocs (License): Fix license, approved by Karl.
77525
77526 2006-07-12  Eric Blake  <ebb9@byu.net>
77527
77528         * MODULES.html.sh: Add gendocs.
77529
77530 2006-07-11  Eric Blake  <ebb9@byu.net>
77531
77532         * modules/fdl: New module, to install doc/fdl.texi.
77533         * MODULES.html.sh: Add new section for documentation modules.
77534         * gnulib-tool: Avoid space-tab.
77535         (--doc-base): New option, to manage files from doc.
77536
77537 2006-07-11  Eric Blake  <ebb9@byu.net>
77538
77539         * m4/absolute-header.m4: Fix comments to match recent change.
77540
77541 2006-07-11  Eric Blake  <ebb9@byu.net>
77542
77543         * gnulib-tool: List --doc-base before --tests-base.
77544
77545 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77546
77547         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77548
77549 2006-07-11  Bruno Haible  <bruno@clisp.org>
77550
77551         * README: Mention where to put documentation.
77552
77553 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77554
77555         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77556
77557 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77560         to stdint.m4.
77561
77562 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77565         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77566         "no/such/file/stdint.h" when there is no such file, so that
77567         the resulting C code can be parsed by dodgy compilers.
77568         Problems reported by Bob Proulx.
77569
77570 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77571
77572         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77573         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77574         macros into the GNU _D_EXACT_NAMLEN.
77575         * lib/savedir.c:  Likewise.
77576         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77577
77578 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77579         and Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77582         * m4/savedir.m4:
77583         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77584         macros into the GNU _D_EXACT_NAMLEN.
77585
77586 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77587
77588         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77589         around the absolute name, to work around a problem with the HP-UX
77590         11.23 native C compiler, reported by Bob Proulx.
77591
77592 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77593
77594         * doc/maintain.texi, make-stds.texi: Sync from
77595         <http://savannah.gnu.org/projects/gnustandards>.
77596
77597 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77598
77599         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77600
77601 2006-07-09  Jim Meyering  <jim@meyering.net>
77602
77603         * m4/glob.m4: Remove a doubled word in a comment.
77604
77605 2006-07-09  Jim Meyering  <jim@meyering.net>
77606
77607         * lib/argp-pv.c: Remove a doubled word in a comment.
77608         * lib/check-version.c (check_version): Likewise.
77609         * lib/javacomp.c (compile_java_class): Likewise.
77610
77611 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77614         for the benefit of people using Autoconf 2.60.  If you want to
77615         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77616         (or m4/onceonly.m4, if pre-2.57) manually.
77617
77618 2006-07-08  Jim Meyering  <jim@meyering.net>
77619
77620         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77621         comment.
77622         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77623         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77624         comment.
77625
77626 2006-07-08  Jim Meyering  <jim@meyering.net>
77627
77628         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77629
77630 2006-07-07  Simon Josefsson  <jas@extundo.com>
77631
77632         * tests/test-crc.c: Change expected crc value, the test vector
77633         were probably computed using the old broken crc.c?
77634
77635 2006-07-06  Simon Josefsson  <jas@extundo.com>
77636
77637         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77638         now the canonical place for the M4 file).
77639
77640         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77641         from the sys_socket dependency now.
77642
77643         * modules/inet_pton (Files): Ditto.
77644
77645         * modules/inet_ntop (Files): Ditto.
77646
77647 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77648
77649         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77650         not gl_PREREQ_GETUSERSHELL.
77651
77652 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77653
77654         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77655         with only one argument, for Autoconf 2.60.
77656         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77657         expand to nothing, so add a shell command to avoid syntax error.
77658         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77659
77660 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77661
77662         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77663
77664 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77667         no longer needed.  Check for isblank decl.
77668         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77669         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77670         of existence.
77671
77672 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77673
77674         * lib/getloadavg.c: Use __VMS, not VMS.
77675         * lib/getopt.c: Likewise.
77676         * lib/getpagesize.h: Likewise.
77677         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77678         and probably does not work.
77679
77680 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/.cppi-disable: Add wcwidth.
77683         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77684         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77685         (ISGRAPH): Remove.  All uses changed to isgraph.
77686         (FOLD) [!defined _LIBC]: Remove special case.
77687         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77688         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77689         HAVE_ISBLANK.
77690         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77691         case.
77692
77693 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77694
77695         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77696         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77697         brackets.  Other minor changes to suppress some compiler
77698         warnings.
77699
77700 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77701         and Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77704         of invoking obsolescent AC_HEADER_DIRENT macro.
77705         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77706         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77707         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77709         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77710         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77711         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77712         * m4/readdir.m4: Remove; no longer needed.
77713
77714 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77715         and Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77718         Don't worry about this obsolete case any more.
77719         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77720         directories.
77721         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77722         worry about this obsolete case any more.
77723         * lib/fts.c: Likewise.
77724         * lib/getcwd.c: Likewise.
77725         * lib/glob.h: Likewise.
77726         * lib/savedir.c: Likewise.
77727
77728 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77731         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77732         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77733         needed.
77734         All uses removed.
77735         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77736         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77737         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77738         needed.
77739         * m4/getdate.m4 (gl_GETDATE): Likewise.
77740         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77741         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77742         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77743         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77744         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77745         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77746         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77747         needed.
77748
77749 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77750
77751         * lib/memcasecmp.c: Include <limits.h>.
77752         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77753         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77754         Don't assume isdigit succeeds only on '0' through '9'.
77755
77756 2006-07-05  Eric Blake  <ebb9@byu.net>
77757
77758         * modules/getaddrinfo (Depends-on): Add snprintf.
77759
77760 2006-07-05  Eric Blake  <ebb9@byu.net>
77761
77762         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77763         to avoid 'header present but could not be compiled' on cygwin.
77764
77765 2006-07-05  Eric Blake  <ebb9@byu.net>
77766
77767         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77768         missing from netdb.h.
77769         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77770
77771 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77772
77773         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77774         no longer needed.
77775         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77776         * m4/getdate.m4 (gl_GETDATE): Likewise.
77777         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77778         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77779         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77780         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77781         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77782
77783 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77784
77785         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77786         All uses of is_space replaced by isspace.
77787         * lib/exit.h: Don't talk about STDC_HEADERS.
77788         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77789         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77790         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77791         replaced by isprint etc.
77792         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77793         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77794         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77795         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77796         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77797         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77798
77799 2006-07-05  Bruno Haible  <bruno@clisp.org>
77800
77801         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77802         the function exists, before testing against AIX.
77803         Reported by Martin Lambers <marlam@marlam.de>.
77804
77805 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77806
77807         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77808         From Mark D. Baushke.
77809
77810 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77813         to the absolute name, not just one, to bypass Sun C 5.8's
77814         "warning: #include of /usr/include/... may be non-portable".
77815
77816 2006-07-04  Eric Blake  <ebb9@byu.net>
77817
77818         * modules/dirname-tests: New test module.
77819         * tests/test-dirname.c: New file, replacing dirname.c
77820         TEST_DIRNAME section that was recently deleted.
77821
77822 2006-07-04  Bruno Haible  <bruno@clisp.org>
77823
77824         Assume ANSI C header files and <ctype.h> functions.
77825         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77826         (mbsnwidth): Use isprint, iscntrl instead.
77827
77828 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         Merge from coreutils.
77831         * MODULES.html.sh: Add xstrtold.
77832         * modules/xstrtold: New file.
77833         * modules/cycle-check (Files): Add lib/same-inode.h.
77834         * modules/dirname (Files): Add m4/double-slash-root.m4.
77835         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77836         * modules/mkdir-p (Files): Add lib/same-inode.h.
77837         * modules/same (Files): Add lib/same-inode.h.
77838
77839 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77842         This is to keep the terminology clean; POSIX talks about
77843         "absolute pathnames", not "full pathnames", but the GNU
77844         Coding Standards say to use "path" for something else;
77845         so use "absolute" to keep both sides happy.
77846         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77847         Set gl_absolute_header, not gl_full_header_path.
77848         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77849         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77850         All uses changed.
77851
77852         Merge from coreutils.
77853
77854         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77857         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77858         want to require the building of c-strtod.o.
77859         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77860         needs -lm directly.
77861         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77862
77863         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77866         --as-needed option if available.  Problem reported by Albert Chin in
77867         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77868         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77869         cc merely issues a bunch of annoying warnings for --as-needed
77870         (this problem was reported by Bob Proulx).  Also, try linking with
77871         -lm to detect a bug in binutils 2.16 (this problem was reported
77872         by Ralf Wildenhues).
77873
77874         2006-06-18  Jim Meyering  <jim@meyering.net>
77875
77876         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77877         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77878         macro.
77879         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77880         also check for glibc-2.4's abort-inducing bug.
77881
77882         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77883         Low-probability clean-up should be to use rmdir to get rid of
77884         the just-created directory, not unlink.
77885
77886         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77887         configure fail, and request a bug report to inform us about it.
77888         Add a comment that, barring reports to the contrary, in 2007 we'll
77889         assume ftruncate is universally available.
77890
77891         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77894
77895         2006-03-12  Jim Meyering  <jim@meyering.net>
77896
77897         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77898         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77899         * m4/same.m4 (gl_SAME): Likewise.
77900         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77901
77902         2006-03-11  Eric Blake  <ebb9@byu.net>
77903
77904         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77905         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77906         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77907         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77908
77909 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77912         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77913         reported by Mark D. Baushke, one in
77914         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77915
77916         Merge from coreutils.
77917
77918         * lib/.cppi-disable: Add stdint_.h.
77919         * lib/.cvsignore: Add stdint.h.
77920
77921         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77924         both double and long double versions.
77925         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77926         * lib/xstrtold.c: New file.
77927         * lib/xstrtod.h (xstrtold): New decl.
77928
77929         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * lib/filemode.c (setst): Remove.
77932         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77933         (arguably) clearer, and the generated code is a bit smaller on my
77934         Debian GNU/Linux stable x86 host.
77935
77936         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77939         Assume that filemode.h includes sys/types.h and sys/stat.h.
77940         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77941         (ftypelet): Reorder to put common cases first, for efficiency.
77942         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77943         to do 'M'.
77944         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77945         of 10, for compatibility with FreeBSD.  All callers changed.
77946         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77947         types that can't be deduced solely from st_mode.  First arg is now a
77948         const pointer.
77949         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77950         (strmode): Renamed from mode_string.
77951         (filemodestring): New decl.
77952         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77953         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77954         needed.
77955         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77956
77957         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77960         fsusage.h now does that.  Include fsusage.h first, to test interface.
77961         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77962         at most one method (the old code could have generated decls that
77963         didn't conform to C89, not that this was ever exercised).
77964         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77965
77966         2006-03-19  Jim Meyering  <jim@meyering.net>
77967
77968         Work even in a chroot where d_ino values for entries in "/"
77969         don't match the stat.st_ino values for the same names.
77970         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77971         number, iterate through all entries again, using lstat instead.
77972         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77973         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77974
77975         * lib/getcwd.c (__getcwd): Clarify a comment.
77976         Use memcpy in place of a call to strcpy.
77977
77978         2006-03-12  Jim Meyering  <jim@meyering.net>
77979
77980         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77981         matches that of the current directory (which we're about to chdir ".."
77982         out of), then save the dev-ino of the parent, instead.
77983
77984         * lib/same-inode.h (SAME_INODE): New file/macro.
77985         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77986         Include "same-inode.h", instead.
77987         * lib/same.c: Likewise.
77988         * lib/cycle-check.h: Include "same-inode.h".
77989         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77990         * lib/cycle-check.c (SAME_INODE): Remove definition.
77991         * lib/root-dev-ino.h: Include "same-inode.h".
77992
77993         2006-03-11  Eric Blake  <ebb9@byu.net>
77994
77995         * lib/same.c (same_name): s/base_name/last_component/
77996         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77997         * lib/filenamecat.c (file_name_concat): Likewise.
77998
77999         2006-03-11  Eric Blake  <ebb9@byu.net>,
78000                     Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78003         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78004         drive prefix.
78005         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78006         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78007         (last_component): New method.
78008         * lib/dirname.c (dir_len): Determine when drive letters need a
78009         subsequent slash.  Preserve // when it is special.
78010         (dir_name): Don't append dot when drive letter is absolute.
78011         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78012         * lib/basename.c (base_name): New semantics - malloc the result.
78013         Preserve // when it is special.  Preserve relative files that look
78014         like drive letters.
78015         (base_len): Preserve // when it is special.
78016         (last_component): New method, similar to old base_name semantics.
78017         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78018         base_name.  Strip redundant slashes from ///.
78019
78020 2006-07-03  Jim Meyering  <jim@meyering.net>
78021
78022         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78023         macro is used before the first cycle_check call.
78024
78025 2006-07-03  Eric Blake  <ebb9@byu.net>
78026
78027         * modules/dirname (Depends-on): Add xstrndup.
78028
78029 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78032         test cases, so that config.log is a bit easier to follow.
78033
78034 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78037         both are 64 bits, since this seems to be the tradition, and this
78038         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78039         we ever run into a host that prefers long long to long in this
78040         case, we'll need another configure-time test.  Problem reported by
78041         Jim Meyering.
78042
78043 2006-07-02  Eric Blake  <ebb9@byu.net>
78044
78045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78046
78047 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * modules/inttypes (Depends-on): No longer depends on stdint.
78050         * modules/stdint (Description): Say more about assumptions.
78051         Say that the fast types might differ.  Say macros are used.
78052         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78053         (Makefile.am): Revise list of substituted symbols to match
78054         new stdint.m4.
78055         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78056         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78057         * tests/test-stdint.c (verify_same_types)
78058         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78059         the code conforms to C99/C89.
78060         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78061         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78062
78063 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78066         but fix a bug, by requiring at least 64 bits.
78067         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78068         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78069         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78070         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78071
78072         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78073         changes.  Make 2.59 a prerequisite.  Check and substitute for
78074         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78075         inttypes.h.  Do not use special include files; just use the
78076         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78077         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78078         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78079         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78080         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78081         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78082         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78083         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78084         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78085         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78086         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78087         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78088         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78089         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78090         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78091         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78092         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78093         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78094         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78095         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78096         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78097         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78098         not check for things that C99 does not require, e.g., int8_t.  If
78099         a test isn't needed unless <stdint.h> isn't working, and is
78100         unlikely to be needed for any other reason, then don't do it
78101         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78102         size_t, since we assume C89 freestanding at least.  Do not check
78103         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78104         the right thing even if the types are not defined.  Instead use:
78105         (gl_STDINT_TYPE_PROPERTIES): New macro.
78106         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78107         testing whether <sys/types.h> clashes, as Autoconf does this for
78108         us now.  All uses removed.
78109         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78110         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78111         (gl_CHECK_TYPE_SAME):
78112         Remove; no longer needed.
78113         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78114         exists, since we'll return 0 anyway in that case.
78115         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78116
78117 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78118
78119         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78120         possible collision with system files.
78121         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78122         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78123         WCHAR_MIN and WCHAR_MAX in this case.
78124         (<stddef.h>): Do not include; no longer needed.
78125         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78126         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78127         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78128         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78129         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78130         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78131         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78132         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78133         !defined(__c99))]: Include in this case too, since it's harmless
78134         now.
78135         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78136         dangerous to do so.
78137         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78138         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78139         (_STDINT_MIN, _STDINT_MAX): New macros.
78140         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78141         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78142         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78143         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78144         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78145         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78146         macros, not typedefs; this simplifies things quite a bit.
78147         Use long int for all types narrower than int64_t.
78148         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78149         Define in terms of long long int or int64_t or long int,
78150         not int64_t or int32_t.  This saves some compile-time testing.
78151         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78152         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78153         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78154         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78155         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78156         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78157         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78158         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78159         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78160         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78161         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78162         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78163         undef any previous version and define our own version, for
78164         simplicity and consistency with the new macros for types.
78165         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78166         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78167         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78168         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78169         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78170         @WINT_T_SUFFIX@ to keep things simple here.
78171         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78172         Simplify by assuming typical 8/16/32/64 host, since we're
78173         already doing that elsewhere anyway.
78174         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78175         and assume long long int is 64 bits if available.  This
78176         speeds up 'configure'.
78177
78178 2006-07-01  Eric Blake  <ebb9@byu.net>
78179
78180         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78181         Reported by Andreas Buening.
78182
78183 2006-07-01  Eric Blake  <ebb9@byu.net>
78184
78185         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78186
78187 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78188
78189         * lib/getaddrinfo.c: fixed typo
78190
78191 2006-06-29  Jim Meyering  <jim@meyering.net>
78192
78193         * modules/strftime (Maintainer): Add my name, since with the
78194         FPRINTFTIME changes strftime.c has forked from glibc.
78195
78196 2006-06-29  Eric Blake  <ebb9@byu.net>
78197
78198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78199
78200 2006-06-29  Eric Blake  <ebb9@byu.net>
78201
78202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78203
78204 2006-06-29  Eric Blake  <ebb9@byu.net>
78205
78206         * lib/stat_.h: New file.
78207
78208 2006-06-29  Eric Blake  <ebb9@byu.net>
78209
78210         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78211         unused static function.
78212
78213 2006-06-29  Eric Blake  <ebb9@byu.net>
78214
78215         * doc/functions.texi (Function Portability): Document missing lstat
78216         on mingw.
78217
78218 2006-06-29  Eric Blake  <ebb9@byu.net>
78219
78220         * MODULES.html.sh: Add sys_stat.
78221         * modules/sys_stat: New module.
78222         * modules/mkstemp (Depends-on): Add sys_stat.
78223
78224 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78225
78226         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78227
78228 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78229
78230         * m4/c-bs-a.m4: Removed.
78231
78232 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78233
78234         * lib/strftime.c: Assume strftime() exists.
78235
78236 2006-06-29  Derek Price  <derek@ximbiot.com>
78237
78238         * modules/c-bs-a: Removed - \a is C89.
78239         * MODULES.html.sh: Remove c-bs-a.
78240
78241 2006-06-29  Bruno Haible  <bruno@clisp.org>
78242
78243         * modules/wcwidth (License): Change to LGPL.
78244
78245 2006-06-28  Simon Josefsson  <jas@extundo.com>
78246
78247         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78248         on _WIN32.
78249
78250         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78251         getnameinfo.
78252
78253 2006-06-28  Simon Josefsson  <jas@extundo.com>
78254
78255         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78256
78257 2006-06-28  Simon Josefsson  <jas@extundo.com>
78258
78259         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78260         functions there.  It will succeed on Windows XP, but on Windows
78261         2000 and (presumably) earlier, it will fail, and use the internal
78262         re-implementation.
78263         (use_win32_p): New function.
78264         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78265         Support AI_NUMERICSERV to disable getservbyname.
78266         (getnameinfo): New function, only supports
78267         NI_NUMERICHOST|NI_NUMERICSERV for now.
78268
78269         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78270         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78271         getnameinfo.
78272
78273 2006-06-28  Eric Blake  <ebb9@byu.net>
78274
78275         * modules/wcwidth: New file.
78276         * modules/mbchar (Depends-on): Add wcwidth.
78277         * modules/mbswidth (Depends-on): Add wcwidth.
78278         * MODULES.html.sh: Add wcwidth.
78279
78280 2006-06-28  Eric Blake  <ebb9@byu.net>
78281
78282         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78284
78285 2006-06-28  Eric Blake  <ebb9@byu.net>
78286
78287         * lib/xvasprintf.h: Fix comments.
78288
78289 2006-06-28  Eric Blake  <ebb9@byu.net>
78290
78291         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78292         * lib/mbswidth.c (wcwidth): Move from here...
78293         * lib/wcwidth.h: ...to this new file.
78294
78295 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78296
78297         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78298
78299         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78300         it's obsolete.
78301         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78302
78303 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78304
78305         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78306         Autoconf 2.60 says this stuff was obsolete.
78307
78308 2006-06-28  Bruno Haible  <bruno@clisp.org>
78309
78310         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78311
78312 2006-06-28  Bruno Haible  <bruno@clisp.org>
78313
78314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78315         gt_TYPE_WCHAR_T.
78316
78317 2006-06-28  Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78320         declaration for wcwidth.
78321         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78322
78323 2006-06-28  Bruno Haible  <bruno@clisp.org>
78324
78325         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78326         (mkdir): Define using _mkdir.
78327
78328 2006-06-28  Bruno Haible  <bruno@clisp.org>
78329
78330         * lib/getaddrinfo.h: Fix POSIX URL.
78331         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78332         _WIN32.
78333         (use_win32_p): Make static.
78334         (getaddrinfo): Reject service name if it is empty or does not consist
78335         solely of decimal digits, or if its value is > 65535.
78336         (getnameinfo): Remove useless casts.
78337
78338 2006-06-27  Simon Josefsson  <jas@extundo.com>
78339
78340         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78341         Eggert and Martin Lambers.
78342
78343 2006-06-27  Simon Josefsson  <jas@extundo.com>
78344
78345         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78346         Eggert and Martin Lambers.
78347
78348 2006-06-27  Bruno Haible  <bruno@clisp.org>
78349
78350         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78351         result to 0, not to empty.
78352         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78353
78354 2006-06-27  Bruno Haible  <bruno@clisp.org>
78355
78356         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78357
78358 2006-06-26  Simon Josefsson  <jas@extundo.com>
78359
78360         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78361         present.
78362
78363 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78366         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78367         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78368
78369 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78370
78371         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78372
78373 2006-06-26  Bruno Haible  <bruno@clisp.org>
78374
78375         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78376
78377 2006-06-26  Bruno Haible  <bruno@clisp.org>
78378
78379         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78380
78381 2006-06-26  Bruno Haible  <bruno@clisp.org>
78382
78383         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78384         SGI C compiler in pre-C99 mode.
78385         Suggested by Mark D. Baushke and Larry Jones.
78386
78387 2006-06-26  Bruno Haible  <bruno@clisp.org>
78388
78389         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78390         WCHAR_MAX.
78391         Reported by Mark D. Baushke and Larry Jones.
78392
78393 2006-06-26  Bruno Haible  <bruno@clisp.org>
78394
78395         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78396         in pre-C99 mode.
78397         Suggested by Mark D. Baushke and Larry Jones.
78398
78399 2006-06-23  Simon Josefsson  <jas@extundo.com>
78400             Bruno Haible  <bruno@clisp.org>
78401
78402         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78403         Emit mostlyclean-local rule.
78404         (func_emit_tests_Makefile_am): Likewise.
78405         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78406
78407 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78408
78409         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78410
78411 2006-06-23  Bruno Haible  <bruno@clisp.org>
78412
78413         * tests/test-stdint.c: Update to match ISO C 99 Technical
78414         Corrigendum 1.
78415
78416 2006-06-23  Bruno Haible  <bruno@clisp.org>
78417
78418         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78419
78420 2006-06-23  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/stdint_.h: Treat IRIX like OpenBSD.
78423
78424 2006-06-23  Bruno Haible  <bruno@clisp.org>
78425
78426         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78427         ISO C 99 Technical Corrigendum 1.
78428
78429 2006-06-22  Simon Josefsson  <jas@extundo.com>
78430
78431         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78432         MinGW.
78433
78434 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78437         needed.  Some compiler complained about some of them.  Problem reported
78438         by Larry Jones in
78439         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78440
78441 2006-06-21  Simon Josefsson  <jas@extundo.com>
78442
78443         * tests/test-getaddrinfo.c: New file.
78444
78445         * modules/getaddrinfo-tests: New file.
78446
78447         * MODULES.html.sh: Add inet_pton.
78448
78449         * modules/inet_pton: New file.
78450
78451 2006-06-21  Simon Josefsson  <jas@extundo.com>
78452
78453         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78454         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78455         of using the (limited) gnulib implementation on Windows XP.
78456
78457         * m4/inet_pton.m4: New file.
78458
78459 2006-06-21  Simon Josefsson  <jas@extundo.com>
78460
78461         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78462         variable.
78463
78464         * lib/socket_.h: Don't define WINVER.
78465
78466         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78467         slightly modified to work in gnulib.
78468
78469 2006-06-21  Simon Josefsson  <jas@extundo.com>
78470
78471         * doc/gnulib.texi (Windows sockets): Add.
78472
78473 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * lib/read-file.c (fread_file): Start with buffer allocation of
78476         0 bytes rather than 1 byte; this simplifies the code.
78477         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78478         code to free buffer and save/restore errno.
78479         (internal_read_file): Remove unused local.
78480
78481 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78484         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78485         Problem reported by Denis Excoffier in
78486         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78487
78488 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78489
78490         * modules/sys_socket, modules/socklen: Include sys/types since
78491         FreeBSD 4.x's sys/socket.h needs it.
78492
78493 2006-06-19  Simon Josefsson  <jas@extundo.com>
78494
78495         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78496
78497 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78500
78501 2006-06-19  Bruno Haible  <bruno@clisp.org>
78502
78503         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78504         and FULL_PATH_INTTYPES_H in angle brackets.
78505         Reported by Mark D. Baushke <mdb@gnu.org>.
78506
78507 2006-06-17  Eric Blake  <ebb9@byu.net>
78508
78509         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78510         errno.
78511
78512 2006-06-17  Bruno Haible  <bruno@clisp.org>
78513
78514         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78515         <sys/inttypes.h>.
78516
78517 2006-06-17  Bruno Haible  <bruno@clisp.org>
78518
78519         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78520         whether errno is declared. Assume <errno.h> declares errno.
78521
78522 2006-06-17  Bruno Haible  <bruno@clisp.org>
78523
78524         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78525
78526 2006-06-17  Bruno Haible  <bruno@clisp.org>
78527
78528         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78529         problem on Solaris 2.5.1.
78530
78531 2006-06-16  Eric Blake  <ebb9@byu.net>
78532
78533         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78534         * lib/unicodeio.c [!defined errno]: Likewise.
78535         * lib/strtol.c [!defined errno]: Likewise.
78536         * lib/strtod.c [!defined errno]: Likewise.
78537
78538 2006-06-15  Eric Blake  <ebb9@byu.net>
78539
78540         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78541
78542 2006-06-15  Eric Blake  <ebb9@byu.net>
78543
78544         * config/srclist.txt (ssize_t.m4): Lose sync.
78545
78546 2006-06-15  Bruno Haible  <bruno@clisp.org>
78547
78548         * modules/stdint (Files): Include m4/full-header-path.m4,
78549         m4/size_max.m4, m4/wchar_t.m4.
78550         (Makefile.am): Many more substitutions.
78551         * modules/stdint-tests: New file.
78552         * tests/test-stdint.c: New file.
78553
78554 2006-06-15  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78557         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78558         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78559         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78560         gl_CHECK_TYPE_SAME): New macros.
78561
78562 2006-06-15  Bruno Haible  <bruno@clisp.org>
78563
78564         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78565
78566 2006-06-15  Bruno Haible  <bruno@clisp.org>
78567
78568         * lib/stdint_.h: Rewritten to be fully auto-configured.
78569         Fixes bug on HP-UX/IA64.
78570
78571 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/getdate.y (__attribute__): Don't define if already defined.
78574         Problem reported by Larry Jones.
78575         * lib/utimens.c (__attribute__): Likewise.
78576
78577 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78578
78579         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78580         reported by Andreas Schwab.
78581
78582 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78583             Bruno Haible  <bruno@clisp.org>
78584
78585         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78586         check for the declaration of strnlen and a run test that exposes the
78587         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78588         rpl_strndup.
78589
78590 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78591             Bruno Haible  <bruno@clisp.org>
78592
78593         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78594
78595 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78596
78597         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78598         compile test, for Tru64 4.0D.
78599
78600 2006-05-28  Karl Berry  <karl@gnu.org>
78601
78602         * config/srclist.txt (printf-args.c): lose sync.
78603
78604 2006-05-26  Martin Lambers  <marlam@marlam.de>
78605
78606         * lib/getpass.c: Updates the test for the native W32 API, and adds
78607         missing includes, thus fixing compilation warnings.
78608
78609 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78610
78611         * lib/exclude.c (exclude_fnmatch): New function.
78612         (excluded_file_name): Call exclude_fnmatch.
78613         * lib/exclude.h (excluded_file_name): New prototype
78614
78615 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78616
78617         * lib/tempname.c (small_open, large_open): New macros.
78618         (__open, __open64) [!_LIBC]: Remove.
78619         (__gen_tempname): Use small_open and large_open instead of __open
78620         and __open64.  This fixes a portability bug on HP-UX 11.11i
78621         reported by Simon Wing-Tang in
78622         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78623
78624 2006-05-24  Bruno Haible  <bruno@clisp.org>
78625
78626         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78627         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78628         Reported by Thorsten Maerz <torte@netztorte.de> via
78629         Aaron Stone <aaron@serendipity.cx>.
78630
78631 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78632
78633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78634         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78635         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78636         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78637         not really conditional on the cache.
78638         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78639
78640 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78643         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78644         (my_usleep): Don't mishandle maximum value.
78645
78646 2006-05-19  Jim Meyering  <jim@meyering.net>
78647
78648         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78649
78650 2006-05-17  Bruno Haible  <bruno@clisp.org>
78651
78652         Cygwin portability.
78653         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78654
78655 2006-05-17  Bruno Haible  <bruno@clisp.org>
78656
78657         * lib/stdint_.h: Fix recognition of Cygwin.
78658
78659 2006-05-15  Bruno Haible  <bruno@clisp.org>
78660
78661         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78662         on libtool patch by Ralf Wildenhues.
78663
78664 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78667         test for C99 conformance; (bool) 0.5 is an integer constant
78668         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78669         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78670
78671 2006-05-11  Simon Josefsson  <jas@extundo.com>
78672
78673         * m4/xvasprintf.m4: Fix obvious typo.
78674
78675 2006-05-11  Jim Meyering  <jim@meyering.net>
78676
78677         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78678         James Lemley.
78679
78680 2006-05-10  Simon Josefsson  <jas@extundo.com>
78681
78682         * lib/md4.c: Typo fix, update copyright years.
78683         (K1, K2): Don't use L because it turn computations into 64-bit on
78684         64-bit platforms.
78685
78686 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78689         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78690         unwanted sign propagation, e.g., on hosts with 64-bit int.
78691         There still are some problems with reeelly weird theoretical hosts
78692         (e.g., 33-bit int) but it's not worth worrying about now.
78693         * lib/sha1.c (rol): Likewise.
78694         (K1, K2, K3, K4): Remove unnecessary L suffix.
78695
78696 2006-05-10  Bruno Haible  <bruno@clisp.org>
78697
78698         * lib/des.c: Cast to avoid warnings.
78699
78700 2006-05-09  Bruno Haible  <bruno@clisp.org>
78701
78702         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78703         (Depends-on): Depend also on xsize, stdarg.
78704         (configure.ac): Add gl_XVASPRINTF.
78705
78706 2006-05-09  Bruno Haible  <bruno@clisp.org>
78707
78708         * m4/xvasprintf.m4: New file.
78709
78710 2006-05-09  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78713         (EOVERFLOW): Define fallback value.
78714         (xstrcat): New function.
78715         (xvasprintf): Recognize the special case of a string concatenation.
78716
78717 2006-05-08  Eric Blake  <ebb9@byu.net>
78718
78719         * gnulib-tool (func_version): Base copyright year on CVS date.
78720         (func_emit_copyright_notice): New function.
78721         (func_emit_lib_Makefile_am): Use it.
78722         (func_emit_tests_Makefile_am): Likewise.
78723         (func_import): Likewise.
78724
78725 2006-05-08  Bruno Haible  <bruno@clisp.org>
78726
78727         * modules/stdarg: New file.
78728         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78729
78730 2006-05-08  Bruno Haible  <bruno@clisp.org>
78731
78732         * m4/stdarg.m4: New file, from GNU gettext.
78733
78734 2006-05-08  Bruno Haible  <bruno@clisp.org>
78735
78736         * config/srclist.txt (build-aux/config.rpath): different from latest
78737         release.
78738
78739 2006-05-08  Bruno Haible  <bruno@clisp.org>
78740
78741         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78742
78743 2006-05-05  Jim Meyering  <jim@meyering.net>
78744
78745         * m4/warning.m4: New file, derived from bison's file by the same name.
78746
78747 2006-05-03  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/stdint_.h: Shorter URL.
78750         * lib/inttypes.h: Likewise.
78751
78752 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78755
78756 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * lib/verify.h: Document the internals better.  Most of this change
78759         was written by Bruno Haible.
78760
78761 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         * doc/verify.texi: New file, partly based on a proposal by
78764         Bruno Haible.
78765
78766 2006-05-02  Bruno Haible  <bruno@clisp.org>
78767
78768         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78769         test from here...
78770         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78771
78772 2006-04-29  Bruno Haible  <bruno@clisp.org>
78773
78774         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78775         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78776
78777 2006-04-29  Bruno Haible  <bruno@clisp.org>
78778
78779         * gnulib-tool: Make --update option actually work.
78780
78781 2006-04-29  Bruno Haible  <bruno@clisp.org>
78782
78783         * doc/gcd.texi: New file.
78784         * doc/gnulib.texi: Include it.
78785
78786 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * lib/getdate.y (get_date): When adding relative date, start with the
78789         initial time, not with the result of the first mktime call.
78790
78791 2006-04-25  Bruno Haible  <bruno@clisp.org>
78792
78793         * gnulib-tool (func_import): Output the include directives in three
78794         blocks, sorted separately.
78795         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78796
78797 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78800         to define main with arguments, for C++.  Reported by Eric Blake.
78801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78802         Prefer 'int main ()' to 'int main (void)', for C++.
78803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78805         for 'main', for C99 and C++.
78806
78807 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78808
78809         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78810         Don't assume that exit status -1 is valid.
78811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78812         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78813         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78814         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78815         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78816         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78817         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78818         functions can be used without declaring them, or that you can
78819         exit with status -1.
78820         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78821
78822 2006-04-24  Karl Berry  <karl@gnu.org>
78823
78824         * config/srclist.txt (longdouble.m4): sync lost.
78825
78826 2006-04-24  Eric Blake  <ebb9@byu.net>
78827
78828         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78829
78830 2006-04-24  Bruno Haible  <bruno@clisp.org>
78831
78832         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78833         poll() implementation in AIX.
78834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78835
78836 2006-04-24  Bruno Haible  <bruno@clisp.org>
78837
78838         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78839         assigned exactly once.
78840
78841 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78842             Bruno Haible  <bruno@clisp.org>
78843
78844         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78845         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78846         for AM_CPPFLAGS.
78847
78848 2006-04-23  Bruno Haible  <bruno@clisp.org>
78849
78850         * modules/copy-file: Depend on unistd.
78851         * modules/execute: Likewise.
78852         * modules/fatal-signal: Likewise.
78853         * modules/findprog: Likewise.
78854         * modules/mkdtemp : Likewise.
78855         * modules/pipe: Likewise.
78856         * modules/wait-process: Likewise.
78857
78858 2006-04-23  Bruno Haible  <bruno@clisp.org>
78859
78860         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78861         condition was already detected.
78862         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78863
78864 2006-04-23  Bruno Haible  <bruno@clisp.org>
78865
78866         * lib/copy-file.c: Include <unistd.h> unconditionally.
78867         * lib/execute.c: Likewise.
78868         * lib/fatal-signal.c: Likewise.
78869         * lib/findprog.c: Likewise.
78870         * lib/mkdtemp.c: Likewise.
78871         * lib/pipe.h: Likewise.
78872         * lib/pipe.c: Likewise.
78873         * lib/wait-process.h: Likewise.
78874
78875 2006-04-23  Bruno Haible  <bruno@clisp.org>
78876
78877         * gnulib-tool (func_usage): Fix --import description. Document
78878         --update.
78879         (func_import): Create temporary file in a temporary directory, if
78880         --dry-run is specified. Silence errors from 'grep' when there are no
78881         m4 files in $m4dir.
78882         (func_create_testdir): Silence errors from 'grep' when there are no
78883         m4 files in $m4dir.
78884         Reported by Karl Berry <karl@freefriends.org>.
78885
78886 2006-04-20  Bruno Haible  <bruno@clisp.org>
78887
78888         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78889         one argument, so that the code will be portable to Autoconf 2.60.
78890         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78891         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78892         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78893
78894 2006-04-19  Derek Price  <derek@ximbiot.com>
78895             Eric Blake  <ebb9@byu.net>
78896
78897         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78898         rather than "/full/path.h".  Update comment to match.  Shorten &
78899         generalize m4_translit call via AS_TR_CPP.
78900
78901 2006-04-19  Derek Price  <derek@ximbiot.com>
78902             Eric Blake  <ebb9@byu.net>
78903
78904         * lib/inttypes.h: Correct grammar in comment.
78905
78906 2006-04-18  Derek Price  <derek@ximbiot.com>
78907             Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * modules/inttypes: New file.
78910         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78911
78912 2006-04-18  Derek Price  <derek@ximbiot.com>
78913             Paul Eggert  <eggert@cs.ucla.edu>
78914
78915         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78916         New files.
78917
78918 2006-04-18  Derek Price  <derek@ximbiot.com>
78919             Paul Eggert  <eggert@cs.ucla.edu>
78920
78921         * lib/inttypes.h: New file.
78922         * lib/strtoimax.c: Assume <inttypes.h>.
78923
78924 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78927         isn't mounted.  Problem reported by Kir Kolyshkin.
78928
78929 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78932         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78933         Derek R. Price.
78934         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78935         implementation.
78936
78937 2006-04-12  Eric Blake  <ebb9@byu.net>
78938
78939         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78940         is now done automatically by the corresponding Autoconf macro.
78941
78942 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78945         time_r.h.
78946
78947 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         Merge regex changes from libc, removing some of our
78950         POSIX-conformance changes that were rejected and redoing them in a
78951         less-intrusive way.
78952
78953         * lib/regcomp.c (re_compile_internal, init_dfa):
78954         Length arg is now size_t, not Idx.  All uses changed.
78955         (peek_token): Forward decl now says internal_function.
78956         (__re_error_msgid, __re_error_msgid_idx):
78957         Now static rather than extern with attribute_hidden.
78958         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78959         For some reason libc prefers K&R style defns for external functions.
78960         (regerror) [!defined _LIBC]: Likewise.
78961         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78962         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78963         (build_range_exp, build_collating_symbol):
78964         Use K&R-style defn.
78965         (re_compile_fastmap): Use '\0' to memset, not 0.
78966         (utf8_sb_map): Make the calculations more obvious.
78967         (init_dfa, parse_bracket_exp, build_charclass_op):
78968         Call calloc and cast result, as glibc does.
78969         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78970         (build_range_exp, build_collating_symbol):
78971         Now internal functions.
78972
78973         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78974
78975         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78976         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78977         Don't depend on VMS; depend on __VMS instead, for POSIX
78978         namespace cleanness.
78979         (regoff_t): Define to ssize_t, not long int.
78980
78981         Remove the REG_ macros named below.  Instead, make the old names
78982         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78983         __USE_GNU_REGEX.
78984         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78985         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78986         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78987         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78988         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78989         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78990         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78991         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78992         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78993         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78994         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78995         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78996         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78997         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78998         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78999         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79000         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79001         (REG_NREGS):
79002         Remove.  All uses replaced by the old RE_* names.
79003         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79004         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79005         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79006         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79007         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79008         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79009         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79010         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79011         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79012         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79013         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79014         Don't bother having these macros be independent of each others'
79015         values, since they no longer exist in the POSIX name space.
79016
79017         Rename the following member names back to their old names,
79018         unless !__USE_GNU_REGEX.  All uses changed back.
79019         (buffer): Renamed from re_buffer.
79020         (allocated): Renamed from re_allocated.
79021         (used): Renamed from re_used.
79022         (syntax): Renamed from re_syntax.
79023         (fastmap): Renamed from re_fastmap.
79024         (translate): Renamed from re_translate.
79025         (can_be_null): Renamed from re_can_be_null.
79026         (regs_allocated): Renamed from re_regs_allocated.
79027         (fastmap_accurate): Renamed from re_fastmap_accurate.
79028         (no_sub): Renamed from re_no_sub.
79029         (not_bol): Renamed from re_not_bol.
79030         (not_eol): Renamed from re_not_eol.
79031         (newline_anchor): Renamed from re_newline_anchor.
79032         (num_regs): Renamed from rm_num_regs.
79033         (start): Renamed from rm_start.
79034         (end): Renamed from rm_end.
79035
79036         (free_state): Move up a bit.
79037
79038         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79039         #define to be empty.
79040         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79041         when that is what is intended.
79042         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79043         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79044         (MAX): New macro.
79045         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79046         All uses changed back to re_malloc, etc.  It's now the caller's
79047         responsibility to check for overflow; all callers changed.
79048         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79049         (re_x2nrealloc): Remove.
79050         (free_state): Remove decl.
79051
79052         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79053         (re_set_registers, re_exec):
79054         Use K&R-style defn.
79055
79056         2006-01-31  Roland McGrath  <roland@redhat.com>
79057
79058         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79059         Reported by Mike Frysinger <vapier@gentoo.org>.
79060
79061         2006-01-15  Andreas Jaeger  <aj@suse.de>
79062
79063         [BZ #1950]
79064         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79065         build_wcs_upper_buffer change.
79066         (build_wcs_upper_buffer): Change return type.
79067
79068         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79069
79070         * lib/regex_internal.h: Include <stdint.h> if available.
79071
79072         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79073
79074         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79075
79076         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79077
79078         * lib/regcomp.c: Adjust for changed secondary hash function.
79079
79080         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79081
79082         * lib/regex.h: Pretty printing.
79083         Clean up namespace a bit.
79084
79085         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79086
79087         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79088         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79089
79090         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79091                     Ulrich Drepper  <drepper@redhat.com>
79092
79093         [BZ #1302]
79094         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79095         changed.
79096         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79097
79098         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79099
79100         [BZ #281]
79101         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79102         * lib/regcomp.c: Remove unnecessary uses of
79103         unsigned RE_TRANSLATE_TYPE.
79104         * lib/regex_internal.h: Likewise.
79105         * lib/regex_internal.c: Likewise.
79106         * lib/regexec.c: Likewise.
79107         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79108
79109         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79110
79111         * lib/regexec.c (find_recover_state): Remove unnecessary
79112         initialization.
79113         (transit_state_bkref): Make DFA a const pointer.
79114         (get_subexp): Likewise.
79115         (check_arrival): Likewise.
79116         (update_cur_sifted_state): Likewise.
79117         (re_search_internal): Likewise.
79118         (prune_impossible_nodes): Likewise.
79119         (acquire_init_state_context): Likewise.
79120         (proceed_next_node): Likewise.
79121         (set_regs): Likewise.
79122         (free_fail_stack_return): Likewise.
79123         (check_arrival_expand_ecl): Mark DFA parameter as const.
79124         (check_arrival_expand_ecl_sub): Likewise.
79125         (check_subexp_limits): Likewise.
79126         (sub_epsilon_src_nodes):  Likewise.
79127         (add_epsilon_src_nodes):  Likewise.
79128         (merge_state_array): Likewise.
79129         (update_regs): Likewise.
79130         (build_trtable): Likewise.
79131         (sift_states_backward): Mark MCTX parameter as const.
79132         (build_sifted_states): Likewise.
79133         (update_cur_sifted_state): Likewise.
79134         (sift_states_mkref): Likewise.
79135         (check_arrival_expand_ecl): Mark eclosure as const.
79136         (check_dst_limits_calc_pos_1): Likewise.
79137         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79138         pointer.
79139
79140         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79141
79142         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79143         (transit_state_sb): Likewise.
79144         (transit_state_mb): Likewise.
79145         (sift_states_iter_mb): Likewise.
79146         (check_arrival_add_next_nodes): Likewise.
79147         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79148         [_LIBC] (re_search_2_stub): Use mempcpy.
79149
79150         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79151         mbrtowc for very simple UTF-8 case.
79152
79153         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79154         a pointer-to-const.
79155         (re_acquire_state_context): Likewise.
79156         * lib/regex_internal.h: Adjust prototypes.
79157
79158         * lib/regex.c: Prevent using C++ compilers.
79159
79160         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79161         (re_acquire_state_context): Likewise.
79162
79163 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79164
79165         * modules/regex (Depends-on): Add ssize_t.
79166
79167 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79168
79169         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79170         translation table.
79171
79172 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79175
79176 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79177             Bruno Haible  <bruno@clisp.org>
79178
79179         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79180         <sys/types.h> and <inttypes.h>.
79181
79182 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79183
79184         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79185         `__error_t_defined', so argp.h will not typedef the former.
79186
79187 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79190         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79191         glibc names.  Even if glibc is changed to conform to POSIX, the
79192         traditional names will be available anyway, since regex depends on
79193         the extensions module.  Also, fix a longstanding typo in the
79194         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79195         reported by Emanuele Giaquinta.  Also, change sense of cached
79196         variable, so that the message makes sense.
79197
79198 2006-03-24  Simon Josefsson  <jas@extundo.com>
79199
79200         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79201         including some doc fixes.
79202         (base64_encode_alloc): Fix +1 bug on allocation failures.
79203
79204 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79205
79206         * lib/base64.c (base64_encode): Do not read past end of array with
79207         unsanitized input on systems with CHAR_BIT > 8.
79208
79209 2006-03-24  Eric Blake  <ebb9@byu.net>
79210
79211         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79212
79213 2006-03-22  Karl Berry  <karl@gnu.org>
79214
79215         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79216         * config/srclistvars.sh (COREUTILS): new var.
79217
79218 2006-03-17  Jim Meyering  <jim@meyering.net>
79219
79220         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79221         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79222
79223 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79226         no longer needs it.  Instead, check that regoff_t is as least
79227         as wide as ptrdiff_t.
79228
79229         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79230         so that our regex.h stays compatible with the installed regex.
79231         This is helpful for installers who configure --without-included-regex.
79232         Problem reported by Emanuele Giaquinta.
79233
79234 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79237         Typedef to long int, not to off_, as POSIX will likely change
79238         in that direction.
79239
79240 2006-03-15  Eric Blake  <ebb9@byu.net>
79241
79242         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79243
79244 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79245
79246         * lib/argp-help.c (validate_uparams): Fix typo
79247         * lib/argp-parse.c (argp_default_options): Consistently begin help
79248         messages with a lowercase letter.
79249
79250 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79253         overrun buffers and shouldn't be used (much as gets shouldn't be
79254         used).
79255         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79256
79257 2006-03-08  Simon Josefsson  <jas@extundo.com>
79258
79259         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79260         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79261
79262 2006-03-08  Simon Josefsson  <jas@extundo.com>
79263
79264         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79265         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79266
79267 2006-03-08  Simon Josefsson  <jas@extundo.com>
79268
79269         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79270         signal that configure disabled the device.
79271
79272 2006-03-08  Simon Josefsson  <jas@extundo.com>
79273
79274         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79275         languages.
79276
79277 2006-03-07  Simon Josefsson  <jas@extundo.com>
79278
79279         * modules/getopt (Depends-on): Add unistd.
79280
79281         * modules/unistd: New file.
79282
79283 2006-03-07  Simon Josefsson  <jas@extundo.com>
79284
79285         * modules/gc-random: New file.
79286
79287 2006-03-07  Simon Josefsson  <jas@extundo.com>
79288
79289         * m4/unistd_h.m4: New file.
79290
79291 2006-03-07  Simon Josefsson  <jas@extundo.com>
79292
79293         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79294         test to be side-effect free by storing the result in the cache
79295         variable gl_cv_lib_readline, and moving the assignment of
79296         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79297         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79298
79299 2006-03-07  Simon Josefsson  <jas@extundo.com>
79300
79301         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79302         error on missing devices (the functions will return an error).
79303
79304         * m4/gc.m4: Move random stuff to gc-random.m4
79305
79306 2006-03-07  Simon Josefsson  <jas@extundo.com>
79307
79308         * lib/unistd_.h: New file.
79309
79310 2006-03-07  Simon Josefsson  <jas@extundo.com>
79311
79312         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79313
79314 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79317         Problem reported by Juan Manuel Guerrero.
79318
79319 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79322         the unistd module.
79323         * lib/getlogin_r.c: Likewise.
79324         * lib/getlogin_r.h: Likewise.
79325         * lib/glob.c: Likewise.
79326         * lib/pagealign_alloc.c: Likewise.
79327         * lib/unistd_.h: Remove; no longer needed.
79328
79329 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79332         Add unistd.
79333         * modules/c-stack (Depends-on): Add unistd.
79334         * modules/getlogin_r: Likewise.
79335         * modules/glob: Likewise.
79336         * modules/pagealign_alloc: Likewise.
79337         * modules/unistd (Files): Remove lib/unistd_.h.
79338         (EXTRA_DIST): Remove.
79339         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79340         need unistd_.h.
79341         (MOSTLYCLEANFILES): Remove unistd.h-t.
79342
79343 2006-03-03  Simon Josefsson  <jas@extundo.com>
79344
79345         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79346
79347 2006-03-03  Simon Josefsson  <jas@extundo.com>
79348
79349         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79350         libidn and bison.
79351
79352 2006-03-03  Simon Josefsson  <jas@extundo.com>
79353
79354         * build-aux/maint.mk: Add indent target.
79355
79356 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79357
79358         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79359         our replacement poll.h in any case, to avoid a differing
79360         declaration from a system header.  Seen on AIX.
79361
79362 2006-03-01  Simon Josefsson  <jas@extundo.com>
79363
79364         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79365         <kasal@ucw.cz>.
79366
79367 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79368
79369         * modules/gettime (Depends-on): Add extensions module.
79370         * modules/nanosleep (Depends-on): Likewise.
79371         * modules/settime (Depends-on): Likewise.
79372
79373 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79374
79375         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79376         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79377         pedantically.
79378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79379         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79380
79381         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79382         not "==".  Reported by Ralf Wildenhues.
79383
79384 2006-03-01  Karl Berry  <karl@gnu.org>
79385
79386         * doc/Copyright/request-*: new files, synced from gnuorg.
79387
79388 2006-03-01  Karl Berry  <karl@gnu.org>
79389
79390         * config/srclist.txt (Copyright/*): new entries.
79391
79392 2006-02-28  Simon Josefsson  <jas@extundo.com>
79393
79394         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79395
79396 2006-02-27  Simon Josefsson  <jas@extundo.com>
79397
79398         * lib/base64.h: Indent #define's.  From Jim Meyering
79399         <jim@meyering.net>.
79400
79401 2006-02-27  Jim Meyering  <jim@meyering.net>
79402
79403         Revert the change of 2006-02-24, so these files can continue
79404         to be sync'd from gettext.
79405         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79406         of `config.h'.
79407
79408 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * modules/intprops: New file.
79411         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79412         Add intprops.
79413         * modules/getloadavg (Files): Remove lib/intprops.h.
79414         (Depends-on): Add intprops.
79415         * modules/human: Likewise.
79416         * modules/inttostr: Likewise.
79417         * modules/openat: Likewise.
79418         * modules/sig2str: Likewise.
79419         * modules/userspec: Likewise.
79420         * modules/utimecmp: Likewise.
79421         * modules/xnanosleep: Likewise.
79422         * modules/xstrtol: Likewise.
79423
79424 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79425
79426         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79427         * modules/lock-tests (TESTS): Use $(EXEEXT).
79428         * modules/tls-tests: Likewise.
79429         * modules/argp-tests: Likewise.
79430         (check_PROGRAMS): New var, replacing...
79431         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79432
79433 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79434
79435         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79436         `config.h'.
79437
79438 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79441
79442 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79443
79444         Sync from coreutils.
79445         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79446         gl_CHDIR_SAFER.
79447
79448 2006-02-22  Jim Meyering  <jim@meyering.net>
79449
79450         Sync from coreutils.
79451         * m4/chdir-safer.m4: New file.
79452
79453 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79456         AT_FDCWD exceeds INT_MAX.
79457         * lib/openat.h (AT_FDCWD): Likewise.
79458
79459 2006-02-17  Eric Blake  <address@hidden>
79460
79461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79462
79463 2006-02-16  Simon Josefsson  <jas@extundo.com>
79464
79465         * modules/getaddrinfo (Depends-on): Add sys_socket.
79466
79467 2006-02-15  Simon Josefsson  <jas@extundo.com>
79468
79469         * build-aux/maint.mk: Add dsyntax-check rule.
79470
79471 2006-02-15  Eric Blake  <ebb9@byu.net>
79472
79473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79474         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79475         'present but cannot compile' warnings on cygwin.
79476         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79477         use ws2tcpip.h if sys/socket.h works.
79478         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79479         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79480
79481 2006-02-14  Simon Josefsson  <jas@extundo.com>
79482
79483         * modules/maintainer-makefile (Files): Rename.
79484
79485         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79486         and (the local) Makefile.cfg to maint-cfg.mk.
79487
79488         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79489         to the latter.
79490
79491         * modules/maintainer-makefile: New module.
79492
79493         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79494         severaly stripped to make it possible to build it up from scratch
79495         with reliable tests.
79496
79497         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79498         fixes to permit overriding the default actions when configure and
79499         makefile are not available.
79500
79501 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         Sync from coreutils.
79504         * modules/lstat (Depends-on): Don't depend on xalloc.
79505         (License): Change from GPL to LGPL, since this is now simply a
79506         replacement for a libc function.
79507
79508 2006-02-14  Jim Meyering  <jim@meyering.net>
79509
79510         Sync from coreutils.
79511
79512         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79513         failure on deficient systems, and simplify gnulib lgpl dependencies.
79514         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79515         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79516
79517         * lib/xalloc-die.c: Remove unused definition of N_.
79518
79519 2006-02-14  Jim Meyering  <jim@meyering.net>
79520
79521         Sync from coreutils.
79522         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79523         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79524         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79525         double-quote uses of that variable, to accommodate the rare case in
79526         which getmntent is available in none of the libraries checked.  This
79527         happens at least on FreeBSD 5.0.
79528
79529 2006-02-13  Simon Josefsson  <jas@extundo.com>
79530
79531         * gnulib-tool (Usage): Fix --import, from
79532         karl@freefriends.org (Karl Berry).
79533
79534 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79535
79536         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79537
79538 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79539
79540         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79541         "autoupdate" on 2005-12-12.
79542
79543 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * modules/closeout (Depends-on): Remove atexit.
79546
79547 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79550         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79551
79552 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79555         __EXTENSIONS__ if this causes compilation to fail.  Problem
79556         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79557         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79558
79559 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79562         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79564         All uses changed.
79565
79566 2006-01-26  Simon Josefsson  <jas@extundo.com>
79567
79568         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79569         prototype is visible on mingw32.
79570
79571         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79572         for mingw32.
79573
79574         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79575         mingw32).
79576
79577 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79580         attempt to open for write; this always fails, at least on POSIX
79581         hosts.  This reinstates the 2006-01-09 change, which was
79582         inadvertently removed.
79583
79584 2006-01-26  Bruno Haible  <bruno@clisp.org>
79585
79586         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79587         Reported by Paul Eggert.
79588
79589 2006-01-26  Bruno Haible  <bruno@clisp.org>
79590             Paul Eggert  <eggert@cs.ucla.edu>
79591
79592         * lib/stdbool_.h (_Bool)
79593         [(! (defined __cplusplus || defined __BEOS__)
79594           && !defined __GNUC__
79595           && !(defined __HP_cc || defined __xlc__
79596                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79597                || defined __sgi))]:
79598         #define to signed char in these cases too; this simplifies
79599         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79600         etc., separately) and makes it more conservative.
79601
79602 2006-01-25  Simon Josefsson  <jas@extundo.com>
79603
79604         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79605         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79606         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79607
79608 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79609
79610         * lib/argp-namefrob.h: Bugfix. Remove stray #
79611
79612 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79615         so that we test the test.
79616         Check for yet another HP-UX cc bug involving *bool |= bool.
79617
79618 2006-01-25  Karl Berry  <karl@gnu.org>
79619
79620         * config/srclist.txt (vasnprintf.c): sync lost.
79621
79622 2006-01-25  Jim Meyering  <jim@meyering.net>
79623
79624         Sync from the stable (b5) branch of coreutils:
79625
79626         * lib/fts.c (fts_children): Don't let close() clobber errno from
79627         failed fchdir().
79628
79629         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79630         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79631         a dangling symlink.  That can also happen at least for ELOOP.
79632         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79633         FYI, this bug predates the inclusion of fts.c in coreutils.
79634
79635         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79636         in their own block, so pre-c99 compilers don't object.
79637
79638         Avoid the double-free (first in fts_read, second in fts_close) that
79639         would occur when an `active' directory is made inaccessible (e.g.,
79640         via chmod a-x) during a traversal.
79641         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79642         before returning.  Reproduce this failure by
79643         mkdir -p a/b; cd a; chmod a-x . b
79644         Reported by Stavros Passas.
79645
79646 2006-01-25  Jim Meyering  <jim@meyering.net>
79647
79648         * lib/fileblocks.c: Remove more useless parentheses.
79649         * lib/readutmp.h: Likewise.
79650
79651 2006-01-25  Bruno Haible  <bruno@clisp.org>
79652
79653         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79654         warnings.
79655         Reported by Paul Eggert.
79656
79657 2006-01-25  Bruno Haible  <bruno@clisp.org>
79658
79659         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79660         rid of a trap command. For Solaris sh.
79661         Reported by Mark D. Baushke <mdb@gnu.org>.
79662
79663 2006-01-24  Simon Josefsson  <jas@extundo.com>
79664
79665         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79666         Bruno.
79667
79668 2006-01-24  Karl Berry  <karl@gnu.org>
79669
79670         * config/srclist.txt (argp-namefrob.h): sync lost.
79671
79672 2006-01-24  Jim Meyering  <jim@meyering.net>
79673
79674         * modules/openat (Files): Add lib/intprops.h.
79675         From Mark D. Baushke.
79676
79677 2006-01-24  Jim Meyering  <jim@meyering.net>
79678
79679         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79680         Reported by Mark D. Baushke.
79681
79682 2006-01-24  Jim Meyering  <jim@meyering.net>
79683
79684         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79685
79686 2006-01-24  Bruno Haible  <bruno@clisp.org>
79687
79688         * modules/strnlen (Maintainer): Change from glibc to all.
79689
79690 2006-01-24  Bruno Haible  <bruno@clisp.org>
79691
79692         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79693         Patch by Paul Eggert.
79694
79695 2006-01-24  Bruno Haible  <bruno@clisp.org>
79696
79697         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79698         already has it.
79699         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79700         2005-11-26.
79701
79702         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79703         'signed char' to avoid problems with the built-in _Bool type.
79704         Reported by Paul Eggert on 2005-11-26.
79705
79706 2006-01-24  Bruno Haible  <bruno@clisp.org>
79707
79708         * gnulib-tool (func_import): Avoid constructing complicated sed
79709         expressions inside backquote.
79710         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79711
79712 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79713
79714         These changes imported from libc.
79715         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79716         test and two separate function calls.
79717         * lib/strndup.c (__strndup): Add libc_hidden_def.
79718
79719 2006-01-23  Simon Josefsson  <jas@extundo.com>
79720
79721         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79722         Remove the test_*_SOURCES variable: automake infers it by default.
79723         * modules/tls-tests: Likewise.
79724
79725 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         Work around porting bugs reported by Dieter in
79728         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79729         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79730         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79731         Include "getopt.h" first, to check interface.
79732         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79733         !HAVE_DECL_GETENV.
79734         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79735         (__strndup): Revert to K&R-style function dfns, the glibc style.
79736         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79737         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79738         Include strnlen.h first, to get prototype properly.
79739         (strnlen): Renamed from __strnlen.
79740         Remove weak alias.
79741
79742 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79743
79744         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79745
79746 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79747
79748         * config/srclist.txt: Adjust to reflect glibc reorganization.
79749         This affects only comments.
79750
79751 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79752
79753          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79754          Reported by Bruce Korb <bkorb@gnu.org>.
79755
79756 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79757
79758         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79759         to pacify gcc -Wswitch-default.
79760
79761 2006-01-22  Bruno Haible  <bruno@clisp.org>
79762
79763         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79764         temporary buffer for sprintf, take into account the precision also
79765         for 'd', 'i', 'u', 'o', 'x', 'X'.
79766
79767 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79768
79769         * modules/argp-tests: New module
79770         * tests/test-argp.c: New file
79771         * tests/test-argp-2.sh: New file
79772
79773 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79774
79775         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79776         (__argp_base_name): Removed
79777         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79778         typo.
79779         (__argp_base_name): Provide macro definition or extern declaration
79780         depending on the configuration
79781
79782 2006-01-20  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79785
79786 2006-01-20  Simon Josefsson  <jas@extundo.com>
79787
79788         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79789
79790 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79793         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79794         Suggested by Bruno Haible.
79795
79796 2006-01-20  Karl Berry  <karl@gnu.org>
79797
79798         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79799         until changes propagate, I guess.
79800
79801 2006-01-19  Simon Josefsson  <jas@extundo.com>
79802
79803         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79804
79805 2006-01-19  Simon Josefsson  <jas@extundo.com>
79806
79807         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79808
79809 2006-01-19  Simon Josefsson  <jas@extundo.com>
79810
79811         * gnulib-tool: Set check_PROGRAMS.
79812
79813         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79814         modules/des-tests, modules/gc-arcfour-tests,
79815         modules/gc-arctwo-tests, modules/gc-des-tests,
79816         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79817         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79818         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79819         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79820         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79821         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79822         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79823         test_*_SOURCES.
79824
79825 2006-01-18  Simon Josefsson  <jas@extundo.com>
79826
79827         * modules/socklen (Depends-on): Depend on sys_socket.
79828
79829 2006-01-18  Simon Josefsson  <jas@extundo.com>
79830
79831         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79832         modules/des-tests, modules/gc-arcfour-tests,
79833         modules/gc-arctwo-tests, modules/gc-des-tests,
79834         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79835         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79836         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79837         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79838         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79839         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79840         $(EXEEXT) to automake TESTS variable, for mingw32.
79841
79842 2006-01-17  Simon Josefsson  <jas@extundo.com>
79843
79844         * modules/socklen (Include): Need sys/socket.h.
79845
79846 2006-01-17  Bruno Haible  <bruno@clisp.org>
79847
79848         * modules/ssize_t (Include): Add <sys/types.h>.
79849
79850 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79853         it's not portable and it doesn't work with cross-compiles.
79854         Problem reported by Bruno Haible.  Fix missing-$ typo in
79855         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79856         -zignore from being used with Sun's C compiler.
79857
79858 2006-01-12  Simon Josefsson  <jas@extundo.com>
79859
79860         * lib/base64.c: Fix warning, reported by Bruno Haible
79861         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79862
79863 2006-01-12  Bruno Haible  <bruno@clisp.org>
79864
79865         * modules/ldd: New file.
79866         * build-aux/ldd.sh.in: New file.
79867         * MODULES.html.sh (Support for building libraries and executables): Add
79868         ldd.
79869
79870 2006-01-12  Bruno Haible  <bruno@clisp.org>
79871
79872         * m4/ldd.m4: New file.
79873
79874 2006-01-12  Bruno Haible  <bruno@clisp.org>
79875
79876         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79877         endless loop while replacing $auxdir with build-aux.
79878
79879 2006-01-11  Simon Josefsson  <jas@extundo.com>
79880
79881         * lib/stdint_.h (SIZE_MAX): Add missing (.
79882
79883 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         Sync from coreutils.
79886         * lib/md5.c: Fix commentary typos.
79887         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79888         * lib/md5.h (__attribute__): Remove; unused.
79889         * lib/sha1.c: Fix commentary to match md5 better.
79890         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79891         so that we don't need to worry about alignment.  All uses changed.
79892         This merges the 2005-10-28 md5 change into sha1.
79893
79894 2006-01-11  Jim Meyering  <jim@meyering.net>
79895
79896         Sync from coreutils.
79897         * lib/md5.c (OP): Fix spacing.
79898
79899 2006-01-11  Bruno Haible  <bruno@clisp.org>
79900
79901         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79902         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79903         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79904
79905 2006-01-11  Bruno Haible  <bruno@clisp.org>
79906
79907         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79908         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79909         the "early" section as well.
79910
79911 2006-01-11  Bruno Haible  <bruno@clisp.org>
79912
79913         Avoid "ar: no archive members specified" error on MacOS X.
79914         * gnulib-tool (func_modules_add_dummy): New function.
79915         (func_import, func_create_testdir): Invoke it.
79916
79917 2006-01-11  Bruno Haible  <bruno@clisp.org>
79918
79919         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79920         with $auxdir in AC_CONFIG_FILES statements.
79921
79922 2006-01-11  Bruno Haible  <bruno@clisp.org>
79923
79924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79925         Initialize also noinst_HEADERS to empty.
79926
79927 2006-01-11  Bruno Haible  <bruno@clisp.org>
79928
79929         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79930         variables.
79931         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79932         autoreconf.
79933
79934 2006-01-11  Bruno Haible  <bruno@clisp.org>
79935
79936         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79937         overridable by the user.
79938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79939
79940 2006-01-10  Simon Josefsson  <jas@extundo.com>
79941
79942         * modules/sys_socket: New file.
79943
79944 2006-01-10  Simon Josefsson  <jas@extundo.com>
79945
79946         * m4/sys_socket_h.m4: New file.
79947
79948 2006-01-10  Simon Josefsson  <jas@extundo.com>
79949
79950         * lib/socket_.h: New file.
79951
79952 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * modules/readutmp (Maintainer): Add myself.
79955
79956 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79959         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79960         People who are still concerned with buggy memcmp implementations
79961         can invoke gl_FUNC_MEMCMP themselves.
79962
79963 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79964
79965         * lib/regex_internal.h (BITSET_WORD_BITS):
79966         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79967         preprocessor mishandles large unsigned values as if they were signed.
79968         Problem reported by Claudio Fontana in
79969         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79970
79971 2006-01-10  Jim Meyering  <jim@meyering.net>
79972
79973         Avoid the double-free (first in fts_read, second in fts_close) that
79974         would occur when an `active' directory is made inaccessible (e.g.,
79975         via chmod a-x) during a traversal.
79976         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79977         before returning.  Reproduce this failure by
79978         mkdir -p a/b; cd a; chmod a-x . b
79979         Reported by Stavros Passas.
79980
79981         Sync from coreutils.
79982         * lib/sha1.c: Tweak grammar in a comment.
79983
79984 2006-01-10  Jim Meyering  <jim@meyering.net>
79985
79986         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79987         Patch by Joerg Sonnenberger.
79988
79989 2006-01-10  Bruno Haible  <bruno@clisp.org>
79990
79991         * modules/readutmp: Depend on module free.
79992         * modules/strtok_r: Depend on module restrict.
79993
79994 2006-01-10  Bruno Haible  <bruno@clisp.org>
79995
79996         * modules/gettext (configure.ac): Add an invocation of
79997         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79998
79999 2006-01-10  Bruno Haible  <bruno@clisp.org>
80000
80001         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80002         Reported by Werner Lemberg <wl@gnu.org>.
80003
80004 2006-01-10  Bruno Haible  <bruno@clisp.org>
80005
80006         * lib/localcharset.c: Update from GNU gettext.
80007
80008 2006-01-10  Bruno Haible  <bruno@clisp.org>
80009
80010         * lib/argp.h (__const): Remove macro. Use const instead.
80011         * lib/argp-fmtstream.h (__const): Likewise.
80012         * lib/glob_.h (__const): Remove macro.
80013         * lib/glob-libc.h: Use const instead of __const.
80014
80015 2006-01-10  Bruno Haible  <bruno@clisp.org>
80016
80017         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80018         variable.
80019         Needed to avoid an automake error regarding the 'gettext' module.
80020
80021 2006-01-09  Simon Josefsson  <jas@extundo.com>
80022
80023         * modules/inet_ntop (Depends-on): Add restrict.
80024
80025 2006-01-09  Simon Josefsson  <jas@extundo.com>
80026
80027         * modules/gc-rijndael-tests (License): Put under LGPL.
80028
80029         * modules/gc-des-tests (License): Likewise.
80030
80031         * modules/gc-arcfour-tests (License): Likewise.
80032
80033         * modules/gc-arctwo-tests (License): Likewise.
80034
80035         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80036
80037         * modules/gc-hmac-sha1-tests (Files): Likewise.
80038
80039         * modules/gc-hmac-md5-tests (License): Likewise.
80040
80041         * modules/gc-sha1-tests (License): Likewise.
80042
80043         * modules/gc-md5-tests (License): Likewise.
80044
80045         * modules/gc-md4-tests (License): Likewise.
80046
80047         * modules/gc-md2-tests (License): Likewise.
80048
80049         * modules/gc-tests (License): Likewise.
80050
80051         * modules/des-tests (License): Likewise.
80052
80053         * modules/md4-tests (License): Likewise.
80054
80055         * modules/md2-tests (License): Likewise.
80056
80057 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         Sync from coreutils:
80060
80061         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80062         * modules/lib-ignore: New file.
80063         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80064         chdir-safer.m4, lchmod.m4.
80065         * modules/openat: Add mkdirat.c, openat-priv.h.
80066
80067 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         Sync from coreutils.
80070         * m4/lib-ignore.m4: New file.
80071         * m4/lchmod.m4: New file.
80072
80073 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80074
80075         Sync from coreutils.
80076         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80077         for write access: POSIX says that must fail.
80078         * lib/fts.c (diropen): Likewise.
80079         * lib/save-cwd.c (save_cwd): Likewise.
80080         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80081         well, for minor improvements on hosts that lack O_DIRECTORY.
80082         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80083         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80084         Fall back on chown if open failed with EACCES.
80085
80086         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80087         Report an error at compile-time if only a 1-second nominal clock
80088         resolution is found.
80089
80090         * lib/lchmod.h: New file.
80091         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80092         (make_dir_parents): Use lchown rather than chown, and
80093         lchmod rather than chmod.
80094
80095         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80096         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80097         "proc" reported by n0dalus.
80098
80099         * lib/mountlist.c: Include <limits.h>.
80100         (dev_from_mount_options)
80101         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80102         New function.  It no longer assumes "dev=" has the System V meaning
80103         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80104         (read_file_system_list)
80105         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80106         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80107         dev= in that case.
80108
80109         * lib/posixtm.h (PDS_PRE_2000): New macro.
80110         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80111         allow_century.  All usages changed.  Reject dates outside the range
80112         1969-1999 if PDS_PRE_2000 is used.
80113
80114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         Sync from coreutils.
80117         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80118         (Time of day items): Mention the possibility of leap seconds.
80119         Problem reported by Dr. David Alan Gilbert.
80120
80121 2006-01-09  Jim Meyering  <jim@meyering.net>
80122
80123         Sync from coreutils.
80124
80125         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80126
80127         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80128
80129         * lib/modechange.c (mode_compile): Reject an invalid mode string
80130         that starts with an octal digit.  From Andreas Gruenbacher.
80131
80132         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80133         and dup to open_safer and dup_safer, respectively.
80134         (openat_permissive): Fix typo in comment.
80135
80136         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80137         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80138         (_): Remove; no longer needed.
80139         (openat): Renamed from rpl_openat; no need for rpl_openat
80140         since openat.h renames openat for us.
80141         Replace most of the body with a call to openat_permissive,
80142         to avoid duplicate code.
80143         Port to (probably hypothetical) environments were mode_t is
80144         wider than int.
80145         (openat_permissive): Require mode arg, so that we can check
80146         types better.  Put it just after flags.  Change cwd failure
80147         indicator from pointer-to-bool to pointer-to-errno-value.
80148         All callers changed.
80149         Invoke openat_save_fail and/or openat_restore_fail if
80150         cwd_errno is null, so that openat can call us.
80151         (openat_permissive, fdopendir, fstatat, unlinkat):
80152         Simplify errno handling to avoid some duplicate code,
80153         as it's OK to set errno on success.
80154         * lib/openat.h: Revamp code so that function macros depend on
80155         __OPENAT_PREFIX only, not also on AT_FDCWD.
80156         (openat_ro): Remove.  Caller changed to use openat_permissive.
80157         (openat_permissive): Now a macro, if not a function.
80158         (openat_restore_fail, openat_save_fail): Now always functions,
80159         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80160
80161         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80162         and openat.c.
80163         * lib/mkdirat.c: Include openat-priv.h.
80164         Remove definitions of macros defined therein.
80165         * lib/openat.c: Likewise.
80166
80167         * lib/mkdirat.c (mkdirat): New file and function.
80168         * lib/openat.h (mkdirat): Declare.
80169
80170         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80171
80172         * lib/openat.h (openat_permissive): Declare.
80173         (openat_ro): Define.
80174
80175         * lib/openat.c (EXPECTED_ERRNO): New macro.
80176         (openat_permissive): New function -- used in remove.c rewrite.
80177         (all functions): Set errno just before returning, only if there
80178         was an actual failure.
80179         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80180
80181         Emulate openat-family functions using Linux's procfs, if possible.
80182         Idea and some code based on Ulrich Drepper's glibc changes.
80183
80184         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80185         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80186         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80187         before falling back on save_cwd and restore_cwd.
80188         (fdopendir, fstatat, unlinkat): Likewise.
80189
80190         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80191         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80192
80193         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80194         as second argument to va_arg.  Otherwise, some versions of gcc
80195         warn that `if this code is reached, the program will abort'.
80196
80197 2006-01-09  Jim Meyering  <jim@meyering.net>
80198
80199         Sync from coreutils.
80200         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80201         Require openat-priv.h.
80202
80203 2006-01-09  Bruno Haible  <bruno@clisp.org>
80204
80205         * modules/strnlen (Include): Use strnlen.h.
80206
80207 2006-01-09  Bruno Haible  <bruno@clisp.org>
80208
80209         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80210
80211 2006-01-09  Bruno Haible  <bruno@clisp.org>
80212
80213         * lib/sysexit_.h (EX_OK): New macro.
80214         Suggested by Martin Lambers <marlam@marlam.de>.
80215
80216 2006-01-09  Bruno Haible  <bruno@clisp.org>
80217
80218         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80219         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80220
80221 2006-01-09  Bruno Haible  <bruno@clisp.org>
80222
80223         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80224         numbers.
80225
80226 2006-01-09  Bruno Haible  <bruno@clisp.org>
80227
80228         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80229         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80230         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80231         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80232
80233 2006-01-09  Bruno Haible  <bruno@clisp.org>
80234
80235         * build-aux/javacomp.sh.in: New file, moved from lib/.
80236         * modules/javacomp-script (Files): Update.
80237         (configure.ac): Add AC_CONFIG_FILES invocation.
80238         (EXTRA_DIST): Remove variable.
80239
80240         * build-aux/javaexec.sh.in: New file, moved from lib/.
80241         * modules/javaexec (Files): Update.
80242         (configure.ac): Add AC_CONFIG_FILES invocation.
80243         (EXTRA_DIST): Remove javaexec.sh.in.
80244
80245         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80246         * modules/csharpcomp-script (Files): Update.
80247         (configure.ac): Add AC_CONFIG_FILES invocation.
80248         (EXTRA_DIST): Remove variable.
80249
80250         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80251         * modules/csharpexec (Files): Update.
80252         (configure.ac): Add AC_CONFIG_FILES invocation.
80253         (EXTRA_DIST): Remove csharpexec.sh.in.
80254
80255 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80256
80257         Sync from coreutils.
80258
80259         Add POSIX ACL support
80260         * lib/acl.h (copy_acl, set_acl): Add declarations.
80261         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80262         systems other than Linux.
80263         (chmod_or_fchmod): New function: use fchmod when possible,
80264         and chmod otherwise.
80265         (file_has_acl): Add a POSIX ACL implementation, with a
80266         Linux-specific subcase.
80267         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80268         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80269         acls are unsupported.
80270         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80271         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80272         are unsupported.
80273
80274 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80275
80276         Sync from coreutils.
80277         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80278
80279 2006-01-07  Bruno Haible  <bruno@clisp.org>
80280
80281         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80282         gl_EARLY.
80283
80284 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80287         Problem reported for Mingw by Mark Junker.
80288
80289 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80290
80291         * README: Gnulib normally doesn't generate a tarball.
80292
80293 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80296         long int, not int, for nanosecond counts, so that people who are
80297         used to POSIX struct timespec won't be surprised.  Reported by Jim
80298         Meyering.
80299
80300 2005-12-28  Bruno Haible  <bruno@clisp.org>
80301
80302         * build-aux/config.rpath: Update from GNU gettext.
80303
80304 2005-12-16  Jim Meyering  <jim@meyering.net>
80305
80306         * modules/fprintftime: New module.
80307         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80308
80309 2005-12-16  Jim Meyering  <jim@meyering.net>
80310
80311         * m4/fprintftime.m4: New file.
80312
80313 2005-12-16  Jim Meyering  <jim@meyering.net>
80314
80315         * lib/fprintftime.c, lib/fprintftime.h: New files.
80316
80317 2005-12-15  Simon Josefsson  <jas@extundo.com>
80318
80319         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80320         new m4/socklen.m4.
80321
80322 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80323
80324         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80325         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80326
80327 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80328
80329         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80330         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80331         struct uparams is valid. Fall back to the default values if it is
80332         not.
80333
80334 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80335
80336         * modules/argp (Files): Add argp-pin.c
80337         (Depends-on): dirname
80338         (lib_SOURCES): Add argp-pin.c
80339
80340 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80341
80342         * m4/argp.m4:  Check if program_invocation_name and
80343         program_invocation_short_name are declared and define appropriate
80344         macros if they are not.
80345
80346 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80347
80348         * lib/argp-help.c (__argp_base_name): New function
80349         (__argp_short_program_name): Rewrite using __argp_base_name
80350         * lib/argp-namefrob.h: Define program_invocation_name and
80351         program_invocation_short_name if requested
80352         (__argp_base_name): Add prototype
80353         * lib/argp-parse.c (argp_def): Use gettext wrappers
80354         (argp_default_parser): Use __argp_base_name
80355         * lib/argp-pin.c: New file. Defines program_invocation_name and
80356         program_invocation_short_name on systems that lack them.
80357
80358 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80361         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80362         porting problem reported by Georg Schwarz in
80363         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80364
80365 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80368         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80369         porting problem reported by Georg Schwarz in
80370         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80371
80372 2005-12-05  Bruno Haible  <bruno@clisp.org>
80373
80374         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80375         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80376         Reported by Mark Junker <mjscod@gmx.de>.
80377
80378 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80379
80380         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80381         Use implementation from Albert Chin, with some
80382         comments/corrections by Stepan Kasal and myself.
80383
80384 2005-12-02  Bruno Haible  <bruno@clisp.org>
80385
80386         * gnulib-tool (func_import): Accept GPLed build tool modules when
80387         --lgpl is given.
80388         * modules/csharpcomp-script: New file.
80389         * modules/csharpcomp: Depend on it.
80390         * modules/javacomp-script: New file.
80391         * modules/javacomp: Depend on it.
80392         Suggested by Simon Josefsson.
80393
80394 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80397         statement, to work around an HP-UX 10.20 compiler bug reported by
80398         Peter O'Gorman.
80399
80400 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         * modules/savedir (Depends-on): Add openat.
80403
80404 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80407         (uintmax_t) [defined uintmax_t]: Do not declare.
80408         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80409         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80410         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80411         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80412         sake of portability to weird hosts that C allows (though we don't
80413         know of any practical examples).
80414
80415         * lib/savedir.h (fdsavedir): New decl.
80416         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80417         contains most of the former guts of savedir.
80418         (savedir): Use savedirstream.
80419         Include "openat.h".
80420
80421 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * modules/obstack (Files): Add m4/ulonglong.m4.
80424         Problem reported by Davide Angelocola.
80425
80426 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80429         coreutils no longer futzes with rounding modes.
80430
80431 2005-11-14  Jim Meyering  <jim@meyering.net>
80432
80433         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80434         replacement of mkstemp.
80435
80436 2005-11-10  Simon Josefsson  <jas@extundo.com>
80437
80438         * lib/readline.c: Remove EOL.
80439
80440 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         * modules/gethrxtime (Depends-on): Add gettime.
80443
80444 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80445
80446         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80447         or gettimeofday; no longer needed.
80448
80449 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80452         time business.
80453         (gethrxtime) [! (HAVE_NANOUPTIME
80454         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80455         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80456         our own approximation.
80457
80458 2005-11-08  Eric Blake  <ebb9@byu.net>
80459
80460         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80461
80462 2005-11-08  Eric Blake  <ebb9@byu.net>
80463
80464         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80465
80466 2005-11-04  Bruno Haible  <bruno@clisp.org>
80467
80468         * gnulib-tool: Implement --update mode.
80469
80470 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Fix porting problem reported by Theodoros V. Kalamatianos.
80473         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80474         Don't assume that futimes failing means we must fail.
80475
80476 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80479         variables to suggest the intended function of the PATH_MAX check.
80480
80481 2005-10-30  Kean Johnston  <jkj@sco.com>
80482
80483         Trivial changes to support SCO systems.
80484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80485         as PATH_MAX.
80486         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80487         where __ptr is null when no I/O is pending.
80488
80489 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80490
80491         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80492         leave errno alone.  Problem reported by Dmitry V. Levin.
80493
80494 2005-10-28  Simon Josefsson  <jas@extundo.com>
80495
80496         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80497         Test more.
80498
80499         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80500
80501         * modules/md2, modules/md2-tests: New files.
80502
80503 2005-10-28  Simon Josefsson  <jas@extundo.com>
80504
80505         * m4/inet_ntop.m4: More tests.
80506
80507         * m4/gc-md2.m4, md2.m4: New file.
80508
80509 2005-10-28  Simon Josefsson  <jas@extundo.com>
80510
80511         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80512         "restrict" keywords, as per POSIX.  Protect the function
80513         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80514         Don't use K&R prototypes.  Check the sprintf return values.
80515         Re-define EAFNOSUPPORT if not present.  Indent.
80516
80517         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80518         suggested by Bruno Haible <bruno@clisp.org>.
80519
80520         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80521
80522         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80523
80524         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80525         libgcrypt).
80526
80527         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80528
80529         * lib/md2.h, lib/md2.c: New files.
80530
80531 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80534         errno alone.  Problem reported by Frederic Jolliton.
80535
80536 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * modules/verify (License): Change from GPL to LGPL.  This is a
80539         tiny module and there are apparently near-equivalents that are
80540         under the BSD license.
80541
80542 2005-10-24  Simon Josefsson  <jas@extundo.com>
80543
80544         * modules/sha1: Relicense to LGPL.
80545
80546 2005-10-24  Simon Josefsson  <jas@extundo.com>
80547
80548         * lib/md4.h: Shrink buffer size, now that we changed the type.
80549
80550 2005-10-23  Simon Josefsson  <jas@extundo.com>
80551
80552         * gnulib-tool (func_import): Fix --tests-base.
80553
80554 2005-10-22  Simon Josefsson  <jas@extundo.com>
80555
80556         * modules/arcfour (Depends-on): Need stdint.
80557
80558 2005-10-22  Simon Josefsson  <jas@extundo.com>
80559
80560         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80561         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80562
80563 2005-10-22  Simon Josefsson  <jas@extundo.com>
80564
80565         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80566         suggested by Bruno Haible <bruno@clisp.org>.
80567
80568 2005-10-22  Simon Josefsson  <jas@extundo.com>
80569
80570         * lib/crc.h: Include stddef.h, for size_t.
80571
80572 2005-10-22  Simon Josefsson  <jas@extundo.com>
80573
80574         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80575         arcfour_context struct (simplify test vector testing in GNU
80576         Shishi).
80577
80578 2005-10-21  Simon Josefsson  <jas@extundo.com>
80579
80580         * modules/des, modules/des-tests: New files.
80581
80582         * modules/gc-des, modules/gc-des-tests: New files.
80583
80584         * tests/test-des.c, tests/test-gc-des.c: New file.
80585
80586 2005-10-21  Simon Josefsson  <jas@extundo.com>
80587
80588         * modules/arctwo, modules/arctwo-tests: New files.
80589
80590         * tests/test-arctwo.c: New file.
80591
80592         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80593
80594         * tests/test-gc-arctwo.c: New file.
80595
80596 2005-10-21  Simon Josefsson  <jas@extundo.com>
80597
80598         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80599         Bruno Haible <bruno@clisp.org>.
80600
80601         * m4/gc-des.m4: New file.
80602
80603 2005-10-21  Simon Josefsson  <jas@extundo.com>
80604
80605         * m4/arctwo.m4: New file.
80606
80607         * m4/gc-arctwo.m4: New file.
80608
80609 2005-10-21  Simon Josefsson  <jas@extundo.com>
80610
80611         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80612         block.
80613
80614 2005-10-21  Simon Josefsson  <jas@extundo.com>
80615
80616         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80617         <bruno@clisp.org>.
80618
80619         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80620
80621         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80622         Bruno Haible <bruno@clisp.org>.
80623
80624         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80625         <bruno@clisp.org>.
80626
80627 2005-10-21  Simon Josefsson  <jas@extundo.com>
80628
80629         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80630
80631 2005-10-21  Simon Josefsson  <jas@extundo.com>
80632
80633         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80634
80635 2005-10-21  Simon Josefsson  <jas@extundo.com>
80636
80637         * lib/des.h, lib/des.c: New files.
80638
80639         * lib/gc-gnulib.c: Support DES.c
80640
80641 2005-10-21  Simon Josefsson  <jas@extundo.com>
80642
80643         * lib/arctwo.h, lib/arctwo.c: New files.
80644
80645         * lib/gc-gnulib.c: Support ARCTWO.
80646
80647 2005-10-21  Simon Josefsson  <jas@extundo.com>
80648
80649         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80650         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80651
80652 2005-10-21  Simon Josefsson  <jas@extundo.com>
80653
80654         * gnulib-tool (func_import, func_create_testdir): Define automake
80655         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80656         Makefile.am snippet),
80657         suggested by Bruno Haible <bruno@clisp.org>.
80658
80659         * modules/gc (Makefile.am): Use it.
80660
80661 2005-10-21  Bruno Haible  <bruno@clisp.org>
80662
80663         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80664         patch.
80665
80666 2005-10-19  Simon Josefsson  <jas@extundo.com>
80667
80668         * tests/test-gc-rijndael.c: New file.
80669
80670         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80671
80672 2005-10-19  Simon Josefsson  <jas@extundo.com>
80673
80674         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80675         interface too.
80676
80677 2005-10-19  Simon Josefsson  <jas@extundo.com>
80678
80679         * tests/test-gc-arcfour.c: New file.
80680
80681         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80682
80683 2005-10-19  Simon Josefsson  <jas@extundo.com>
80684
80685         * modules/gc-md4, modules/gc-md4-tests: New file.
80686
80687         * tests/test-gc-md4.c: New file.
80688
80689 2005-10-19  Simon Josefsson  <jas@extundo.com>
80690
80691         * m4/gc-md4.m4: New file.
80692
80693 2005-10-19  Simon Josefsson  <jas@extundo.com>
80694
80695         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80696         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80697         <kasal@ucw.cz>.
80698
80699 2005-10-19  Simon Josefsson  <jas@extundo.com>
80700
80701         * m4/gc-arcfour.m4: New file.
80702
80703         * m4/gc-rijndael.m4: New file.
80704
80705 2005-10-19  Simon Josefsson  <jas@extundo.com>
80706
80707         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80708
80709 2005-10-19  Simon Josefsson  <jas@extundo.com>
80710
80711         * lib/gc-gnulib.c: Support ARCFOUR.
80712
80713 2005-10-19  Simon Josefsson  <jas@extundo.com>
80714
80715         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80716         support.
80717
80718         * lib/gc.h: Add ECB enum type.
80719
80720         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80721
80722 2005-10-18  Simon Josefsson  <jas@extundo.com>
80723
80724         * tests/test-md5.c: New file.
80725
80726         * modules/md5-tests: New file.
80727
80728 2005-10-18  Simon Josefsson  <jas@extundo.com>
80729
80730         * tests/test-md4.c: New file.
80731
80732         * modules/md4, modules/md4-tests: New files.
80733
80734 2005-10-18  Simon Josefsson  <jas@extundo.com>
80735
80736         * m4/md4.m4: New file.
80737
80738 2005-10-18  Simon Josefsson  <jas@extundo.com>
80739
80740         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80741
80742 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80743
80744         * gnulib-tool (func_create_testdir): Omit the second check whether
80745         BUILT_SOURCES in nonempty.
80746
80747 2005-10-17  Simon Josefsson  <jas@extundo.com>
80748
80749         * tests/test-rijndael.c: New file.
80750
80751 2005-10-17  Simon Josefsson  <jas@extundo.com>
80752
80753         * modules/sha1: Depend on stdint instead of md5.
80754
80755         * modules/md5: Depend on stdint, remove uint32_t.
80756
80757 2005-10-17  Simon Josefsson  <jas@extundo.com>
80758
80759         * modules/gc-sha1-tests: New file.
80760
80761         * tests/test-gc-sha1.c: New file.
80762
80763 2005-10-17  Simon Josefsson  <jas@extundo.com>
80764
80765         * m4/md5.m4: Remove call to uint32_t.m4.
80766
80767 2005-10-17  Simon Josefsson  <jas@extundo.com>
80768
80769         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80770
80771         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80772         md5.h.
80773
80774         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80775
80776         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80777
80778 2005-10-17  Simon Josefsson  <jas@extundo.com>
80779
80780         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80781
80782 2005-10-17  Simon Josefsson  <jas@extundo.com>
80783
80784         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80785
80786 2005-10-17  Simon Josefsson  <jas@extundo.com>
80787
80788         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80789
80790         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80791
80792 2005-10-17  Bruno Haible  <bruno@clisp.org>
80793
80794         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80795         that it can also be used in a test.
80796
80797 2005-10-16  Bruno Haible  <bruno@clisp.org>
80798
80799         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80800         TESTS_ENVIRONMENT, so that individual tests can augment it.
80801
80802         * gnulib-tool (func_create_testdir): Use an intermediate target for
80803         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80804         macros, like $(ALLOCA_H), which cannot be passed through the command
80805         line.
80806
80807 2005-10-15  Simon Josefsson  <jas@extundo.com>
80808
80809         * modules/rijndael-tests: New file.
80810
80811         * modules/rijndael: New file.
80812
80813 2005-10-15  Simon Josefsson  <jas@extundo.com>
80814
80815         * m4/rijndael.m4: New file.
80816
80817 2005-10-15  Simon Josefsson  <jas@extundo.com>
80818
80819         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80820
80821         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80822
80823 2005-10-14  Simon Josefsson  <jas@extundo.com>
80824
80825         * tests/test-arcfour.c: New file.
80826
80827         * modules/arcfour, modules/arcfour-tests: New files.
80828
80829 2005-10-14  Simon Josefsson  <jas@extundo.com>
80830
80831         * m4/arcfour.m4: New file.
80832
80833 2005-10-14  Simon Josefsson  <jas@extundo.com>
80834
80835         * lib/arcfour.h, lib/arcfour.c: New files.
80836
80837 2005-10-14  Roland McGrath  <roland@redhat.com>
80838
80839         Import from libc.  [BZ #1331]
80840         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80841         macro argument.
80842         Reported by Matej Vela <vela@debian.org>.
80843
80844 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80845
80846         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80847         include <wchar.h>; no longer needed.
80848
80849 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80852
80853 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80854         and  Ulrich Drepper  <drepper@redhat.com>
80855
80856         Import from libc.
80857         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80858         instead of inline stream orientation test and two separate
80859         function calls.  Pay no attention to USE_IN_LIBIO.
80860
80861 2005-10-13  Simon Josefsson  <jas@extundo.com>
80862
80863         * modules/gc-hmac-md5-tests: New file.
80864
80865         * tests/test-gc-hmac-sha1.c: New file.
80866
80867         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80868
80869         * modules/gc-hmac-md5-tests: New file.
80870
80871         * tests/test-gc-md5.c: New file.
80872
80873         * modules/gc-md5-tests: New file.
80874
80875 2005-10-13  Simon Josefsson  <jas@extundo.com>
80876
80877         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80878         Move memory allocation outside of loop.
80879
80880 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80883         intermediate directory is in a read-only file system.  Problem
80884         reported by Eric Blake.
80885
80886 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80887
80888         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80889
80890 2005-10-12  Simon Josefsson  <jas@extundo.com>
80891
80892         * tests/test-hmac-sha1.c: New file.
80893
80894         * modules/hmac-sha1-tests: New file.
80895
80896         * modules/hmac-sha1: New file.
80897
80898 2005-10-12  Simon Josefsson  <jas@extundo.com>
80899
80900         * modules/gc-sha1: New file.
80901
80902 2005-10-12  Simon Josefsson  <jas@extundo.com>
80903
80904         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80905
80906         * tests/test-gc-pbkdf2-sha1.c: New file.
80907
80908 2005-10-12  Simon Josefsson  <jas@extundo.com>
80909
80910         * modules/gc-md5, modules/gc-hmac-md5: New files.
80911
80912         * modules/gc (Files): Remove md5, memxor and hmac files.
80913
80914 2005-10-12  Simon Josefsson  <jas@extundo.com>
80915
80916         * m4/gc-pbkdf2-sha1.m4: New file.
80917
80918         * m4/gc-hmac-sha1.m4: New file.
80919
80920         * m4/gc-sha1: New file.
80921
80922         * m4/hmac-sha1.m4: New file.
80923
80924 2005-10-12  Simon Josefsson  <jas@extundo.com>
80925
80926         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80927
80928         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80929
80930 2005-10-12  Simon Josefsson  <jas@extundo.com>
80931
80932         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80933         suggested by Bruno Haible <bruno@clisp.org>.
80934
80935 2005-10-12  Simon Josefsson  <jas@extundo.com>
80936
80937         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80938
80939 2005-10-12  Simon Josefsson  <jas@extundo.com>
80940
80941         * lib/gc-pbkdf2-sha1.c: New file.
80942
80943         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80944
80945 2005-10-12  Simon Josefsson  <jas@extundo.com>
80946
80947         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80948
80949         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80950
80951 2005-10-12  Simon Josefsson  <jas@extundo.com>
80952
80953         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80954         GC_USE_HMAC_MD5, respectively.
80955
80956         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80957         (gc_md5): Fix typo.
80958
80959         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80960
80961         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80962
80963         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80964
80965 2005-10-12  Bruno Haible  <bruno@clisp.org>
80966
80967         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80968         Reported by Stepan Kasal <kasal@ucw.cz>.
80969
80970 2005-10-11  Simon Josefsson  <jas@extundo.com>
80971
80972         * tests/test-crc.c: New file.
80973
80974         * modules/crc, modules/crc-tests: New files.
80975
80976 2005-10-11  Simon Josefsson  <jas@extundo.com>
80977
80978         * m4/crc.m4: New file.
80979
80980 2005-10-11  Simon Josefsson  <jas@extundo.com>
80981
80982         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80983
80984         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80985
80986         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80987
80988 2005-10-11  Simon Josefsson  <jas@extundo.com>
80989
80990         * lib/crc.h, lib/crc.c: New files.
80991
80992         * lib/gc.h (gc_hash_buffer): Add doc.
80993
80994 2005-10-11  Bruno Haible  <bruno@clisp.org>
80995
80996         * modules/c-strcasestr: New file.
80997         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80998
80999 2005-10-11  Bruno Haible  <bruno@clisp.org>
81000
81001         * modules/c-strcase: New file.
81002         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81003
81004 2005-10-11  Bruno Haible  <bruno@clisp.org>
81005
81006         * lib/strcasecmp.c: Include limits.h.
81007         (strcasecmp): Avoid integer overflow on exotic platforms.
81008         * lib/strncasecmp.c: Include limits.h.
81009         (strncasecmp): Avoid integer overflow on exotic platforms.
81010         Reported by Paul Eggert.
81011
81012 2005-10-11  Bruno Haible  <bruno@clisp.org>
81013
81014         * lib/c-strcasestr.h: New file, from GNU gettext.
81015         * lib/c-strcasestr.c: New file, from GNU gettext.
81016
81017 2005-10-11  Bruno Haible  <bruno@clisp.org>
81018
81019         * lib/c-strcase.h: New file, from GNU gettext.
81020         * lib/c-strcasecmp.c: New file, from GNU gettext.
81021         * lib/c-strncasecmp.c: New file, from GNU gettext.
81022
81023 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81024
81025         * modules/mempcpy (License): GPL -> LGPL.
81026         * modules/strchrnul (License): Likewise.
81027         * modules/sysexits (License): Likewise.
81028
81029 2005-10-08  Simon Josefsson  <jas@extundo.com>
81030
81031         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81032
81033 2005-10-07  Simon Josefsson  <jas@extundo.com>
81034
81035         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81036
81037 2005-10-06  Simon Josefsson  <jas@extundo.com>
81038
81039         * tests/test-hmac-md5.c: New file.
81040
81041         * modules/hmac-md5-tests: New file.
81042
81043         * modules/hmac-md5: New file.
81044
81045 2005-10-06  Simon Josefsson  <jas@extundo.com>
81046
81047         * m4/hmac-md5.m4: New file.
81048
81049         * m4/memxor.m4: Require gl_C_RESTRICT.
81050
81051 2005-10-06  Simon Josefsson  <jas@extundo.com>
81052
81053         * lib/memxor.c (memxor): Avoid casts and warnings.
81054
81055 2005-10-06  Simon Josefsson  <jas@extundo.com>
81056
81057         * lib/hmac-md5.c: New file.
81058
81059         * lib/hmac.h: New file.
81060
81061 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81064         promotes to int, not unsigned int, to catch the AIX 5.3
81065         compiler bug.
81066
81067 2005-10-05  Simon Josefsson  <jas@extundo.com>
81068
81069         * modules/memxor: New file.
81070
81071         * modules/iconv (Files): Move config.rpath to havelib, it is used
81072         there.
81073
81074         * modules/havelib (Files): Add config.rpath.
81075
81076 2005-10-05  Simon Josefsson  <jas@extundo.com>
81077
81078         * m4/memxor.m4: New file.
81079
81080 2005-10-05  Simon Josefsson  <jas@extundo.com>
81081
81082         * lib/memxor.c (memxor): Fix compiler error.
81083
81084         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81085         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81086
81087         * lib/memxor.h, lib/memxor.c: New files.
81088
81089         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81090         we assume all systems have it, suggested by Jim Meyering
81091         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81092         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81093         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81094         same reasons.
81095
81096 2005-10-05  Simon Josefsson  <jas@extundo.com>
81097
81098         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81099
81100 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81103         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81104         needed, since the source code now assumes these .h files.
81105
81106 2005-10-05  Derek Price  <derek@ximbiot.com>
81107
81108         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81109
81110 2005-10-05  Bruno Haible  <bruno@clisp.org>
81111
81112         * modules/stdint (License): Change to LGPL.
81113
81114 2005-10-04  Simon Josefsson  <jas@extundo.com>
81115
81116         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81117         D. Baushke" <mdb@gnu.org>.
81118
81119 2005-10-04  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/verify.h (verify_true): Provide alternative definition for C++.
81122
81123 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81126         (SSIZE_MAX): New macro, if not already defined.
81127         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81128         than 2 GiB.
81129
81130 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         Sync from coreutils.
81133         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81134         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81135         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81136         ULLONG_MAX doesn't work with 2.7.2.1.
81137
81138 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81139
81140         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81141         From Ben Pfaff.
81142
81143         * modules/exclude (Depends-on): Depend on verify.
81144         * modules/strtoimax (Depends-on): Likewise.
81145         * modules/utimecmp (Depends-on): Likewise.
81146
81147 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * lib/exclude.c: Include verify.h.
81150         (verify): Remove.  All callers changed to use verify.h's version.
81151         * lib/strtoimax.c: Likewise.
81152         * lib/utimecmp.c: Likewis.e
81153
81154         Sync from coreutils.
81155         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81156         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81157         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81158         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81159         bother returning ENOSYS if settimeofday or stime fails; just let
81160         them return whatever errno they want to return.
81161         * lib/utimens.c: Include unistd.h, for dup2.
81162         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81163         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81164
81165 2005-10-02  Jim Meyering  <jim@meyering.net>
81166
81167         Sync from coreutils.
81168         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81169         from glibc-2.2.5 that fails for read-only files.
81170
81171 2005-10-02  Jim Meyering  <jim@meyering.net>
81172
81173         Sync from coreutils.
81174         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81175         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81176         `#if HAVE_CONFIG_H'.
81177         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81178         Remove AT_FDCWD test.
81179         Do not consume the fd unless successful.
81180         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81181         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81182         block, so that we don't even try to compile it if settimeofday is
81183         available.  This works around a compilation failure on OSF1 V5.1,
81184         due to stime requiring a `long int*' while tv_sec is `int'.
81185
81186 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81187
81188         Sync from coreutils.
81189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81190         against `yes', rather than just testing for nonempty.
81191
81192 2005-10-01  Simon Josefsson  <jas@extundo.com>
81193
81194         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81195         and Darwin.
81196
81197         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81198         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81199         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81200         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81201         Check if struct addrinfo is declared.
81202
81203 2005-10-01  Simon Josefsson  <jas@extundo.com>
81204
81205         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81206         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81207         AI_* and EAI_* definitions.  Protect function declarations.
81208
81209 2005-10-01  Jim Meyering  <jim@meyering.net>
81210
81211         Sync from coreutils.
81212
81213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81214         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81215         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81217         in the inet and nsl libraries.  Required on Solaris 5.7.
81218
81219 2005-10-01  Jim Meyering  <jim@meyering.net>
81220
81221         Sync from coreutils.
81222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81223         in the inet and nsl libraries.  Required on Solaris 5.7.
81224
81225 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81226
81227         * lib/getdelim.c (getdelim): Remove unused variables.
81228
81229 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81230
81231         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81232         so that the code works even with ancient cpp.  Portability problem
81233         with GCC 2.7.2.1 reported by Thomas M.Ott.
81234
81235 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * modules/regex (Depends-on): Add strcase.
81238
81239         * modules/gethostname (Licence): Change from GPL to LGPL, since
81240         gethostname.c is a trivial implementation of a standard library
81241         function.
81242         * modules/poll (License): Change from GPL to LGPL, since it's
81243         derived from LGPL code.
81244
81245 2005-09-27  Jim Meyering  <jim@meyering.net>
81246
81247         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81248         HAVE_CONFIG_H.
81249
81250         * lib/intprops.h (signed_type_or_expr__): Define.
81251         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81252         for unsigned types.
81253
81254 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * lib/verify.h (verify_expr): Remove, replacing with:
81257         (verify_true): New macro that returns true instead of void.
81258         (verify_type__): Remove.
81259         (verify): Use verify_true rather than verify_type__.
81260
81261 2005-09-26  Bruno Haible  <bruno@clisp.org>
81262
81263         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81264         is necessary.
81265         (lib_SOURCES): Remove mbchar.c.
81266         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81267         (Files): Add m4/mbrtowc.m4.
81268         * modules/mbiter: Likewise.
81269         * modules/mbuiter: Likewise.
81270
81271 2005-09-26  Bruno Haible  <bruno@clisp.org>
81272
81273         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81274         compile mbchar.c if they are not both present.
81275         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81276         * m4/mbiter.m4 (gl_MBITER): Likewise.
81277         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81278         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81279         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81280
81281 2005-09-25  Jim Meyering  <jim@meyering.net>
81282
81283         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81284         also uses socklen_t.
81285
81286 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         * lib/utimens.c (ENOSYS): Define if not already defined.
81289         (futimens): Support having a null PATH if the file descriptor
81290         is nonnegative.
81291
81292         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81293         Remove.
81294         (__attribute): Define to empty unless GCC 3.1 or later.
81295         This works around a core dump on OpenBSD 3.4, which has GCC
81296         2.95.3, which dumps core when given __attribute__(()).  It also
81297         simplifies other tests, since we really don't want to bother with
81298         worrying about which ancient version of GCC supported what.
81299         Original problem reported by Yoann Vandoorselaere, with part of
81300         the fix suggested by Derek Price.
81301
81302 2005-09-24  Jim Meyering  <jim@meyering.net>
81303
81304         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81305         so we can once again use a positive bitfield width of 1 -- now we
81306         don't have to explain why we were using a bitfield width of 2.
81307
81308 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81309
81310         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81311         and similarly for the other external symbols.  Problem reported
81312         by James Gallager.
81313
81314         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81315         bug reported by Jim Meyering.
81316
81317         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81319         not needed, since socklen is a prerequisite module.
81320
81321 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81322
81323         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81324         Problem reported by Eric Blake.
81325         (getaddrinfo): Initialize se so that it's not garbage.
81326         Redo internal storage allocation so that it doesn't make unportable
81327         assumptions about alignment.
81328         Fix a memory leak.
81329
81330         * lib/utimens.c (futimens): Use futimesat if available.
81331         Prefer it to futimes since it doesn't have the futimes bug.
81332
81333         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81334         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81335         Instead, declare a function that returns a pointer to an array,
81336         and use verify_type__ to declare the size of the array.
81337         Problem and germ of a solution reported by Bruno Haible.
81338         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81339         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81340
81341 2005-09-23  Jim Meyering  <jim@meyering.net>
81342
81343         Sync from coreutils.
81344         Correct build failure (socklen_t not defined) on at least
81345         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81347
81348 2005-09-23  Jim Meyering  <jim@meyering.net>
81349
81350         * modules/getaddrinfo (Depends-on): Add socklen.
81351
81352 2005-09-23  Bruno Haible  <bruno@clisp.org>
81353
81354         * tests/test-verify.c: New file.
81355
81356 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         Sync from coreutils.
81359
81360         * modules/argmatch (Depends-on): Add verify.
81361         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81362         unistd-safer.
81363         * modules/save-cwd (Depends-on): Likewise.
81364
81365         * modules/openat (Files): Add lib/openat-die.c.
81366         (Depends-on): Remove error, exitfail.
81367         Add dirname.
81368
81369         * modules/verify: New file.
81370         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81371         with "verify" module.
81372
81373 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         Sync from coreutils.
81376
81377         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81378         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81379         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81380         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81381         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81382         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81383         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81384         Don't bother checking for string.h, stdlib.h, unistd.h.
81385         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81386         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81387         module's job.
81388         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81389         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81390
81391         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81392         (gl_GETDATE): Use it.
81393
81394         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81395
81396 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         Sync from coreutils.
81399
81400         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81401         stat-time.h.
81402         * lib/argmatch.h: Include verify.h
81403         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81404         (ARGMATCH_ASSERT): Remove; unused.
81405         * lib/canonicalize.c: Assume STDC_HEADERS.
81406         * lib/exclude.c: Include "strcase.h".
81407         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81408         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81409         and stdio-safer.h.
81410         (getusershell): Call fopen, not fopen_safer.
81411         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81412         Do not include unistd-safer.h.
81413         (save_cwd): Don't call fd_safer; no longer needed
81414         now that we include fcntl--.h.
81415
81416         * lib/getdate.y (relative_time): New type.
81417         (RELATIVE_TIME_0): New constant.
81418         (parser_control): Use relative_time instead of doing it ourselves.
81419         (%union): Add new relative_time rel member.
81420         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81421         Now typeless.
81422         (relunit, relunit_snumber): Now of type rel.
81423         (zone, rel, relunit, get_date): Adjust to above changes.
81424
81425         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81426         Do not include unistd-safer.h.
81427         (getloadavg): Don't call fd_safer; no longer needed
81428         now that we include fcntl--.h.
81429
81430         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81431         (make_dir_parents): Treat ENOSYS like EEXIST.
81432
81433         Improve quality of diagnostics on restore_cwd failure.
81434         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81435         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81436         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81437         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81438         each time through the loop.  Do not diagnose restore_cwd failure;
81439         that is the caller's job (and perhaps the caller does not care).
81440
81441         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81442         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81443         If the file already exists but is not a directory, don't bother
81444         to try to make its parents.
81445         Close potential file descriptor leak if we can't chdir("/") (!).
81446         Don't always return true if chdir($PWD) fails; return true only
81447         if the requested action was done successfully (except for the
81448         chdir($PWD)).
81449         Don't log final directory unless we actually made it.
81450         Refactor to avoid duplicate code to fix up permissions.
81451         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81452
81453         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81454         to make it a bit faster and (I hope) clearer.
81455         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81456         Fix bug in formats like %2N.
81457
81458         * lib/verify.h: New file.
81459
81460 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81461
81462         Sync from coreutils.
81463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81464
81465 2005-09-22  Jim Meyering  <jim@meyering.net>
81466
81467         Sync from coreutils.
81468
81469         * m4/lstat.m4 (gl_FUNC_LSTAT):
81470         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81471         Remove obsolete comment.
81472         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81473         * m4/xstrtod.m4: Likewise.
81474
81475         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81476
81477 2005-09-22  Jim Meyering  <jim@meyering.net>
81478
81479         Sync from coreutils.
81480
81481         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81482
81483         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81484         the .tm_year member, since otherwise gcc-4.0 would now warn about
81485         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81486
81487         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81488         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81489
81490         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81491         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81492         when run in a time zone for which daylight savings time is in effect
81493         for the starting date.
81494
81495         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81496         stop us from restricting permissions of just-created absolute-named
81497         directories.
81498         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81499         to restore initial working directory.
81500         * lib/mkdir-p.c (make_dir_parents): New parameter:
81501         different_working_dir, to tell caller if/when we change the working
81502         directory and are unable to return to the initial one.
81503         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81504         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81505         `return false'.  This fixes a bug introduced on 2004-07-30.
81506
81507         * lib/openat.c (fdopendir): Be sure to close the supplied
81508         file descriptor before returning.  This makes our replacement
81509         implementation a little closer to Solaris's, where fdopendir
81510         ties the file descriptor to the returned DIR* pointer.
81511         * lib/openat.c (unlinkat): New function.
81512         * lib/openat.h (unlinkat): Add prototype.
81513         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81514         (openat_restore_fail): Rename from openat_restore_die.
81515         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81516
81517         Provide an alternative to exiting immediately upon save_cwd or
81518         restore_cwd failure.  Now, an application can arrange e.g.,
81519         to perform a longjump in that case.
81520         * lib/openat.c: Include dirname.h.
81521         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81522         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81523         and openat_restore_die rather than calling error directly.
81524         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81525
81526         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81527         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81528         define.
81529
81530         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81531         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81532                             int utc, int nanoseconds);
81533         Background:
81534         date should not have to allocate a megabyte of virtual memory to
81535         handle a format argument like +%1048575T.  When implemented with
81536         strftime, it must allocate such a buffer, use strftime to fill it
81537         in, print it, then free it.
81538         With fprintftime, it simply prints everything and exits.
81539         With no need for memory allocation, that's one fewer way to fail.
81540         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81541         optional field width, not before, so we accept %9:z, not %:9z.
81542         (my_strftime): Be sure to use L_('x') for literals.
81543
81544         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81545         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81546         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81547         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81548         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81549         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81550         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81551         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81552         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81553         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81554         * lib/xgethostname.c, lib/xreadlink.c:
81555         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81556
81557         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81558         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81559         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81560         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81561         and don't include <sys/file.h>).
81562
81563 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81564
81565         Sync from coreutils.
81566
81567         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81568         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81569         [!LDAV_DONE]: Avoid unused variable warning.
81570
81571 2005-09-21  Bruno Haible  <bruno@clisp.org>
81572
81573         * lib/unicodeio.h (unicode_to_mb): New declaration.
81574
81575 2005-09-20  Derek Price  <derek@ximbiot.com>
81576
81577         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81578         getaddrinfo.h.
81579
81580 2005-09-20  Bruno Haible  <bruno@clisp.org>
81581
81582         * gnulib-tool: Remove trailing slashes from the values specified for
81583         --source-base, --m4-base, --tests-base, --aux-dir.
81584         Suggested by Simon Josefsson <jas@extundo.com>.
81585
81586 2005-09-20  Bruno Haible  <bruno@clisp.org>
81587
81588         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81589         func_modules_to_filelist, func_import, func_create_testdir): Make all
81590         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81591         change when gnulib-tool is invoked in a different locale.
81592
81593 2005-09-19  Simon Josefsson  <jas@extundo.com>
81594
81595         * m4/socklen.m4: Fix typo.
81596
81597 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81598
81599         Use a consistent style for including <config.h>.
81600         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81601         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81602         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81603         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81604         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81605         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81606         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81607         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81608         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81609         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81610         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81611         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81612         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81613         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81614         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81615         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81616         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81617         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81618         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81619         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81620         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81621         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81622         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81623         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81624         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81625         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81626         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81627         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81628         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81629         lib/xstrtoumax.c, lib/yesno.c:
81630         Standardize inclusion of config.h.
81631         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81632         lib/inttostr.h:  Removed inclusion of config.h from header files.
81633         * lib/inttostr.c:  Adjusted in-tree users.
81634         * lib/timespec.h: Remove superfluous warning to include config.h.
81635         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81636         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81637         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81638         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81639         config.h with HAVE_CONFIG_H.
81640
81641 2005-09-19  Jim Meyering  <jim@meyering.net>
81642
81643         * modules/pathmax (License): Change to LGPL.
81644
81645 2005-09-19  Derek Price  <derek@ximbiot.com>
81646
81647         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81648
81649 2005-09-19  Bruno Haible  <bruno@clisp.org>
81650
81651         * gnulib-tool (import): Provide default for --tests-base.
81652
81653 2005-09-19  Bruno Haible  <bruno@clisp.org>
81654
81655         * doc/quote.texi: New file, extracted from gnulib.texi.
81656         * doc/ctime.texi: New file, extracted from gnulib.texi.
81657         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81658         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81659         * doc/gnulib.texi: Include them.
81660
81661 2005-09-18  Bruno Haible  <bruno@clisp.org>
81662
81663         Portability fix.
81664         * gnulib-tool (func_readlink): New function.
81665         (func_ln_if_changed): Use it.
81666
81667 2005-09-18  Bruno Haible  <bruno@clisp.org>
81668
81669         * gnulib-tool: Support --with-tests also with --import.
81670         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81671         (func_import): Use variables $testsbase and $inctests. Emit a
81672         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81673         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81674         SUBDIRS += $testsdir.
81675         (func_create_testdir): Update.
81676
81677 2005-09-18  Bruno Haible  <bruno@clisp.org>
81678
81679         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81680         instead of $dry_run.
81681         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81682         (func_ln_if_changed): Don't handle dry-run here.
81683         (func_import): In dry-run mode, detect more precisely which actions
81684         would be performed, and don't use "...ing" verbs.
81685
81686 2005-09-18  Bruno Haible  <bruno@clisp.org>
81687
81688         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81689         (func_import): Use join on two temporary files instead of three nested
81690         loops, in order to determine which files are new or old.
81691
81692 2005-09-18  Bruno Haible  <bruno@clisp.org>
81693
81694         * gnulib-tool (func_import): Comment out code that spits out the
81695         new files with --dry-run.
81696
81697 2005-09-18  Bruno Haible  <bruno@clisp.org>
81698
81699         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81700
81701 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81702
81703         * lib/stat-time.h: New file.
81704         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81705         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81706         in a different way.
81707         (timespec_cmp): New function.
81708         * lib/utimecmp.c: Include stat-time.h.
81709         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81710         members exist, not on the obsolescent ST_MTIM_NSEC.
81711         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81712
81713 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81714
81715         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81716
81717 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * MODULES.html.sh (File system functions): Add stat-time.
81720         * modules/stat-time: New file.
81721         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81722         is now done in a different way, by the stat-time module.
81723         * modules/utimecmp (Depends-on): Add stat-time.
81724
81725 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81726
81727         * m4/st_mtim.m4: Remove.  Superseded by...
81728         * m4/stat-time.m4: New file.
81729         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81730         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81731
81732 2005-09-15  Derek Price  <derek@ximbiot.com>
81733
81734         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81735
81736 2005-09-15  Derek Price  <derek@ximbiot.com>
81737
81738         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81739         * lib/regex_internal.c: Ditto, using this...
81740         (__GNUC_PREREQ): ...new macro.
81741         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81742         using...
81743         (__GNUC_PREREQ): ...this new macro.
81744
81745         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81746
81747 2005-09-15  Derek Price  <derek@ximbiot.com>
81748             Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81751         changes, consolidating in...
81752         * lib/regex_internal.h: ...this file.
81753
81754 2005-09-13  Jim Meyering  <jim@meyering.net>
81755
81756         * lib/canon-host.c: Filter through gnu indent and reword comments
81757         slightly.
81758         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81759
81760 2005-09-13  Derek Price  <derek@ximbiot.com>
81761
81762         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81763         failure.
81764         Reported by Jim Meyering  <jim@meyering.net>.
81765
81766 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81767
81768         * lib/base64.c: Typo.
81769         (base64_encode): Put b64str in initialized data section.
81770
81771 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81772
81773         Merge glibc and coreutils changes into gnulib, plus a few
81774         extra fixes.
81775         * lib/md5.c: Use #error rather than a string.
81776         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81777         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81778         (__attribute__): Define to empty for non recent-GCC.
81779         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81780         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81781         Renamed from their non-__ counterparts, with new macros replacing
81782         them if not _LIBC.  Add __THROW attribute.
81783         (rol): Remove.
81784         (struct md5_ctx): Align buffer if using GCC.
81785         * lib/sha1.h (struct sha1_ctx): Likewise.
81786         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81787         The old name was backwards.
81788         (NOTSWAP): Remove; not used.
81789         (rol): New macro, moved here from md5.h.
81790         (sha1_process_block): Remove a FIXME that doesn't make sense.
81791
81792 2005-09-12  Derek Price  <derek@ximbiot.com>
81793
81794         Return usable errors from canon-host.
81795         * lib/canon-host.h: New file.
81796         * lib/canon-host.c (canon_host): Wrap...
81797         (canon_host_r): ...this new function, which now relies exclusively on
81798         getaddrinfo.
81799         (ch_strerror): New function.
81800         (last_cherror): New global.
81801         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81802         interface.
81803         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81804         void *.
81805         (freeaddrinfo): Free ai->ai_canonname when set.
81806
81807 2005-09-12  Derek Price  <derek@ximbiot.com>
81808
81809         Make canon-host require getaddrinfo.
81810         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81811         AC_LIBSOURCE canon-host.h.  Call...
81812         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81813         gl_GETADDRINFO.
81814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81815
81816 2005-09-12  Derek Price  <derek@ximbiot.com>
81817
81818         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81819         LGPL.
81820         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81821
81822 2005-09-12  Derek Price  <derek@ximbiot.com>
81823
81824         * lib/gai_strerror.c: Include config.h when available.  Include
81825         getaddrinfo.h before other headers to test interface.
81826         Reported by Larry Jones <lawrence.jones@ugs.com>.
81827
81828 2005-09-12  Derek Price  <derek@ximbiot.com>
81829             Paul Eggert  <eggert@cs.ucla.edu>
81830
81831         * modules/glob (Files): Add glob-libc.h.
81832
81833 2005-09-12  Derek Price  <derek@ximbiot.com>
81834             Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81837         glob_.h, glob-libc.h.
81838         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81839
81840 2005-09-12  Derek Price  <derek@ximbiot.com>
81841             Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81844         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81845         protecting things that should be done only in gnulib contexts.
81846         * lib/glob_.h: New file, containing only the glob things needed for
81847         gnulib.
81848         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81849         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81850         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81851         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81852         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81853         and to respect the namespace rules better.
81854
81855 2005-09-08  Simon Josefsson  <jas@extundo.com>
81856
81857         * modules/socklen: New file.
81858
81859 2005-09-08  Simon Josefsson  <jas@extundo.com>
81860
81861         * m4/socklen.m4: New file.
81862
81863 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * modules/utimens (Files): Add m4/utimbuf.m4, since
81866         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81867         Reported by Sergey Poznyakoff.
81868
81869 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81870
81871         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81872         definitions, since that's the preferred style in glibc.
81873         Fix a minor spacing issue, and update copyright notice to match
81874         glibc's.
81875
81876 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81879
81880 2005-09-06  Simon Josefsson  <jas@extundo.com>
81881
81882         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81883         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81884
81885 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81886
81887         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81888         warning.
81889
81890 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         * config/srclist.txt: Add glibc bug 1302.
81893
81894 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         Change bitset word type from unsigned int to unsigned long int,
81897         as this has better performance on typical 64-bit hosts.
81898         Port bitset code to hosts with unusual word sizes.
81899         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81900         (build_collating_symbol):
81901         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81902         argument is a bitset.  This is merely a style issue, but it makes
81903         it clearer that an entire array is expected.
81904         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81905         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81906         Port to the case where bitset_word is not the same as unsigned int.
81907         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81908         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81909         Likewise.
81910         * lib/regexec.c (check_dst_limits_calc_pos_1,
81911         check_subexp_matching_top):
81912         (build_trtable, group_nodes_into_DFAstates):
81913         Likewise.
81914         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81915         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81916         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81917         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81918         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81919         * lib/regcomp.c (optimize_subexps, lower_subexp):
81920         Work even if bitset_word has holes in its bitwise representation.
81921         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81922         * lib/regexec.c (check_dst_limits_calc_pos_1,
81923         check_subexp_matching_top):
81924         Likewise.
81925         * lib/regex_internal.c (re_string_reconstruct):
81926         Don't assume UCHAR_MAX == 255.
81927         * lib/regex_internal.h (bitset_set_all): Likewise.
81928         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81929         All uses changed.
81930         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81931         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81932         All uses changed.
81933         (BITSET_WORD_MAX): New macro.
81934         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81935         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81936         (bitset_empty, bitset_copy):
81937         Prefer sizeof (bitset) to multiplying it out ourselves.
81938         (bitset_not_merge): Remove; unused.
81939         (bitset_contain): Return bool, not unsigned int with one bit on.
81940         All callers changed.
81941         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81942         alignment than re_node_set; do this by defining a new internal
81943         type struct dests_alloc and using it to allocate memory.
81944
81945 2005-09-05  Bruno Haible  <bruno@clisp.org>
81946
81947         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81948         links.
81949
81950 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81951
81952         * modules/size_max (Makefile.am): Add size_max.h
81953
81954 2005-09-04  Derek Price  <derek@ximbiot.com>
81955
81956         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81957
81958 2005-09-03  Simon Josefsson  <jas@extundo.com>
81959
81960         * gnulib-tool: Fix typo.
81961
81962 2005-09-03  Simon Josefsson  <jas@extundo.com>
81963
81964         * config/srclist.txt: Add glibc bug 1293.
81965
81966 2005-09-03  Derek Price  <derek@ximbiot.com>
81967
81968         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81969         From Larry Jones <lawrence.jones@ugs.com>.
81970
81971 2005-09-02  Simon Josefsson  <jas@extundo.com>
81972
81973         * modules/socklen: New file.
81974
81975 2005-09-02  Simon Josefsson  <jas@extundo.com>
81976
81977         * modules/havelib: New module.
81978
81979         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81980         Use havelib.
81981
81982 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81983
81984         Check for arithmetic overflow when calculating sizes, to prevent
81985         some buffer-overflow issues.  These patches are conservative, in the
81986         sense that when I couldn't determine whether an overflow was possible,
81987         I inserted a run-time check.
81988         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81989         macros.
81990         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81991         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81992         (re_xnrealloc, re_x2nrealloc): New inline functions.
81993         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81994         parse_bracket_exp):
81995         (build_equiv_class, build_charclass): Check for arithmetic overflow
81996         in size expression calculations.
81997         * lib/regex_internal.c (re_string_realloc_buffers):
81998         (build_wcs_upper_buffer, re_node_set_add_intersect):
81999         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82000         (re_dfa_add_node, register_state): Likewise.
82001         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82002         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82003         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82004         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82005
82006 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82007
82008         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82009         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82010
82011 2005-09-02  Bruno Haible  <bruno@clisp.org>
82012
82013         Support for lib vs. lib64 distinction on biarch platforms.
82014         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82015         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82017
82018 2005-09-02  Bruno Haible  <bruno@clisp.org>
82019
82020         * gnulib-tool (import): In the other first-use case, provide defaults
82021         as well.
82022
82023 2005-09-02  Bruno Haible  <bruno@clisp.org>
82024
82025         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82026         patches not yet found in the latest gettext release.
82027
82028 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82029
82030         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82031         to avoid a collision with bits/local_lim.h in glibc.
82032         All uses changed.  Problem reported by Dmitry V. Levin in
82033         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82034
82035         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82036         bugs in int versus size_t comparisons.
82037         (re_string_context_at): Fix bug where the code assumed that
82038         Idx is signed.
82039
82040         Use bool where appropriate.
82041         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82042         All callers changed.
82043         (calc_eclosure_iter): Likewise, for ROOT arg.
82044         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82045         (build_charclass_op): Likewise, for NON_MATCH arg.
82046         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82047         (re_string_construct_common): Likewise, for ICASE arg.
82048         * lib/regexec.c (re_search_2_stub, re_search_stub):
82049         Likewise, for RET_LEN arg.
82050         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82051         (set_regs): Likewise, for FL_BACKTRACK arg.
82052         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82053         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82054         (calc_eclosure_iter, parse_bracket_exp):
82055         Use bool for internal variables that are booleans.
82056         * lib/regexec.c (re_search_internal, check_matching,
82057         proceed_next_node):
82058         (set_regs, build_sifted_states, sift_states_bkref):
82059         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82060         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82061         (find_collation_sequence_value):
82062         Likewise.
82063         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82064         (re_node_set_compare):
82065         Return bool, not int. All callers changed.
82066         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82067         (build_trtable, check_node_accept): Likewise.
82068         * lib/regex_internal.h: Include stdbool.h.
82069
82070         Fix bugs uncovered when converting to bool.
82071         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82072         failure instead of charging ahead blindly.
82073         * lib/regex_internal.c (register_state): Likewise.
82074         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82075         for freeing internal storage.
82076         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82077         bitset pieces used as boolean, to avoid undefined behavior
82078         on hosts that do int overflow checking.
82079
82080 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82081
82082         * config/srclist.txt: Add glibc bugs 1285-1287.
82083
82084 2005-09-01  Jim Meyering  <jim@meyering.net>
82085
82086         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82087         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82088         Require gl_STAT_MACROS, too.
82089
82090 2005-09-01  Bruno Haible  <bruno@clisp.org>
82091
82092         * gnulib-tool (import): In the first-use case, provide defaults.
82093
82094 2005-09-01  Bruno Haible  <bruno@clisp.org>
82095
82096         * gnulib-tool (func_import): Remove the .tmp files.
82097
82098 2005-09-01  Bruno Haible  <bruno@clisp.org>
82099
82100         * gnulib-tool (func_import): Fix handling of symbolic links.
82101
82102 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82103
82104         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82105         old glibc regex code mishandles strings longer than 2**31 bytes.
82106         This patch fixes this when the regex code is used in gnulib
82107         (i.e., outside glibc).
82108
82109         This patch should not affect the use of the regex code inside
82110         glibc.  No doubt this problem also needs to be handled for glibc
82111         as well, but the result will be an incompatible change to the
82112         glibc ABI, and the old ABI will have to be supported too.  That
82113         can be the the subject for another patch.
82114
82115         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82116         governing whether the rest of this patch is active.  By default,
82117         the macro is disabled and the patch has no effect.
82118         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82119         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82120         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82121         (re_match_2, re_set_registers): Use the new types.
82122         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82123         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82124         New macros.
82125         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82126         (re_string_context_at, bin_tree_t, re_dfastate_t):
82127         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82128         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82129         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82130         (re_string_char_size_at, re_string_wchar_at):
82131         (re_string_elem_size_at):
82132         Use the new types and macros to port to 64-bit hosts.
82133         Use unsigned types for internal values, so that the code
82134         mostly works even for arrays larger than SSIZE_MAX.
82135         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82136         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82137         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82138         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82139         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82140         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82141         (calc_inveclosure, parse_dup_op, build_range_exp):
82142         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82143         (fetch_number, create_token_tree, mark_opt_subexp):
82144         Likewise.
82145         * lib/regex_internal.c (re_string_construct_common,
82146         create_ci_newstate):
82147         (create_cd_newstate, re_string_allocate, re_string_construct):
82148         (re_string_realloc_buffers, build_wcs_upper_buffer):
82149         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82150         (re_string_reconstruct, re_string_peek_byte_case):
82151         (re_string_fetch_byte_case, re_string_context_at):
82152         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82153         (re_node_set_init_copy, re_node_set_add_intersect):
82154         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82155         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82156         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82157         (re_acquire_state, re_acquire_state_context, register_state):
82158         Likewise.
82159         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82160         search_cur_bkref_entry):
82161         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82162         (re_search_internal, re_search_2_stub, re_search_stub)
82163         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82164         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82165         (update_cur_sifted_state, check_dst_limits):
82166         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82167         (check_subexp_limits, sift_states_bkref, merge_state_array):
82168         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82169         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82170         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82171         (expand_bkref_cache, check_node_accept_bytes):
82172         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82173         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82174         (acquire_init_state_context, check_halt_node_context):
82175         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82176         (sift_states_backward, clean_state_log_if_needed):
82177         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82178         (find_recover_state, transit_state_sb, transit_state_mb):
82179         (transit_state_bkref, build_trtable, match_ctx_clean):
82180         Likewise.
82181         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82182         to work around an assumption that REG_MISSING is negative.
82183
82184         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82185         (seek_collating_symbol_entry) [defined _LIBC]:
82186         (lookup_collation_sequence_value) [defined _LIBC]:
82187         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82188         Use prototypes rather than old-style function definitions.
82189         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82190         (transit_state_sb) [0]:
82191         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82192
82193         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82194         rm_eo.
82195
82196         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82197         (optimize_subexps, lower_subexp):
82198         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82199         since the signed shift might overflow.  Use 1u<<31 instead.
82200         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82201         Likewise.
82202         * lib/regexec.c (check_dst_limits_calc_pos_1,
82203         check_subexp_matching_top): Likewise.
82204
82205         * lib/regcomp.c (optimize_subexps, lower_subexp):
82206         Use CHAR_BIT rather than 8, for clarity.
82207         * lib/regexec.c (check_dst_limits_calc_pos_1):
82208         (check_subexp_matching_top): Likewise.
82209         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82210         have to worry about portability issues when shifting it left.
82211         Remove no-longer-needed test for table_size > 0.
82212         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82213         in a word, as the resulting behavior is undefined.
82214         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82215         in one case, a <= should have been an <, and in another case the
82216         whole test was missing.
82217         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82218         the standard name CHAR_BIT.
82219         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82220         this is not true on one's complement and signed-magnitude hosts.
82221
82222         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82223         next_last_offset.
82224         (struct re_dfa_t): Remove unused member states_alloc.
82225         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82226
82227 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82230         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82231         and large-file glibc and in 32-bit large-file Solaris.
82232
82233 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82236         lengths fit in regoff_t; this isn't true if regoff_t is the same
82237         width as size_t.
82238         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82239         (= START + RANGE) instead of RANGE.  This avoids overflow
82240         problems when regoff_t is the same width as size_t.
82241         All callers changed.
82242         (re_search_2_stub): Check for overflow when adding the
82243         sizes of the two strings.
82244         (re_search_stub): Check for overflow when adding START
82245         to RANGE; if it occurs, substitute the extreme value.
82246
82247 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82250
82251 2005-08-31  Jim Meyering  <jim@meyering.net>
82252
82253         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82254         a pointer-to-const.
82255         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82256         (register_state): Likewise.
82257         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82258         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82259         (group_nodes_into_DFAstates): Likewise.
82260
82261 2005-08-31  Jim Meyering  <jim@meyering.net>
82262
82263         * check-module: Add a FIXME comment.
82264
82265 2005-08-31  Eric Blake  <ebb9@byu.net>
82266
82267         * modules/unistd-safer (Files): Add unistd--.h.
82268         * modules/stdio-safer (Files): Add stdio--.h.
82269
82270 2005-08-31  Derek Price  <derek@ximbiot.com>
82271
82272         * lib/getdelim.c (getdelim): Return EOF on EOF.
82273         Reported by Larry Jones <lawrence.jones@ugs.com>.
82274
82275 2005-08-31  Bruno Haible  <bruno@clisp.org>
82276
82277         Avoid unnecessary diffs in the generated lib/Makefile.am.
82278         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82279         the generated files.
82280         (func_import): Don't set cmd.
82281
82282 2005-08-31  Bruno Haible  <bruno@clisp.org>
82283
82284         * lib/strstr.c: Include <stddef.h>, for NULL.
82285         * lib/strcasestr.c: Likewise.
82286         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82287
82288 2005-08-31  Bruno Haible  <bruno@clisp.org>
82289
82290         * gnulib-tool: New option --macro-prefix.
82291         (func_import): Use macro_prefix.
82292         (import): Handle option --macro-prefix.
82293
82294 2005-08-31  Bruno Haible  <bruno@clisp.org>
82295
82296         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82297         Also use new variables cached_lgpl, cached_libtool.
82298
82299 2005-08-31  Bruno Haible  <bruno@clisp.org>
82300
82301         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82302         always instantiating them.
82303
82304 2005-08-31  Bruno Haible  <bruno@clisp.org>
82305
82306         * gnulib-tool (func_import): Read the previous cached settings
82307         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82308         earlier added by gnulib but are now dropped. Warn when a gnulib file
82309         overwrites a non-gnulib file.
82310
82311 2005-08-31  Bruno Haible  <bruno@clisp.org>
82312
82313         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82314         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82315         projects that don't keep autogenerated files in CVS. Put into
82316         actioncmd only the specified modules, not the transitive closure.
82317
82318 2005-08-31  Bruno Haible  <bruno@clisp.org>
82319
82320         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82321         Create directories that shall be filled.
82322         (import): Don't look for gl_* macros in configure.ac. Recurse across
82323         all directories containing a gnulib-cache.m4 files, if meaningful.
82324
82325 2005-08-31  Bruno Haible  <bruno@clisp.org>
82326
82327         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82328         (import): Set seen_libtool when we see gl_LIBTOOL.
82329
82330 2005-08-31  Bruno Haible  <bruno@clisp.org>
82331
82332         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82333         declaration macro definitions from generated gnulib.m4.
82334
82335 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82336
82337         * lib/iconvme.h: Add prototype for iconv_alloc.
82338
82339 2005-08-29  Simon Josefsson  <jas@extundo.com>
82340
82341         * lib/iconvme.c: Fix errno.
82342
82343 2005-08-29  Bruno Haible  <bruno@clisp.org>
82344
82345         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82346         that it works when the directory contains spaces.
82347
82348 2005-08-29  Bruno Haible  <bruno@clisp.org>
82349
82350         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82351
82352 2005-08-29  Bruno Haible  <bruno@clisp.org>
82353
82354         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82355         Emit more advice.
82356
82357 2005-08-29  Bruno Haible  <bruno@clisp.org>
82358         and Stepan Kasal  <kasal@ucw.cz>
82359
82360         * check-module: If more parameters are given, check each of them
82361         separately; add more exceptions, as noted by Jim Meyering.
82362         (check_module): New procedure.
82363         (%exempt_header): Now contains all exceptions.
82364
82365 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82366
82367         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82368
82369 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82370
82371         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82372
82373 2005-08-28  Bruno Haible  <bruno@clisp.org>
82374
82375         * m4/gnulib-tool.m4: New file.
82376
82377 2005-08-27  Jim Meyering  <jim@meyering.net>
82378
82379         * modules/unistd-safer (Files): Add pipe-safer.c.
82380         * modules/fcntl-safer (Files): Add creat-safer.c.
82381
82382 2005-08-27  Jim Meyering  <jim@meyering.net>
82383
82384         * m4/stdlib-safer.m4: New file.  From coreutils.
82385         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82387         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82388         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82389         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82390
82391 2005-08-27  Jim Meyering  <jim@meyering.net>
82392
82393         * lib/fopen-safer.c: Merge minor changes from coreutils.
82394         * lib/dup-safer.c: Likewise.
82395         * lib/fd-safer.c: Likewise.
82396
82397         Merge from coreutils.
82398         * lib/stdio--.h: New file.
82399         * lib/stdlib--.h: New file.
82400         * lib/mkstemp-safer.c: New file.
82401
82402         GNU tar needs these.
82403         * lib/pipe-safer.c: New file.
82404         * lib/creat-safer.c: New file.
82405         * lib/fcntl--.h (creat): Define to creat_safer.
82406         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82407         * lib/unistd--.h (pipe): Define to pipe_safer.
82408         * lib/unistd-safer.h: Declare pipe_safer.
82409
82410 2005-08-26  Simon Josefsson  <jas@extundo.com>
82411
82412         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82413         Haible <bruno@clisp.org>.
82414
82415 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82416
82417         * lib/regex_internal.h: Remove all references to
82418         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82419         or better.
82420         (bitset_not, bitset_merge, bitset_not_merge):
82421         (bitset_mask, re_string_allocate, re_string_construct):
82422         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82423         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82424         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82425         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82426         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82427         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82428         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82429         (re_acquire_state_context):
82430         Remove unnecessary forward decls.
82431         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82432         Put __attribute at function definition,
82433         now that the function decl has been removed.
82434         * lib/regex_internal.c (re_string_peek_byte_case):
82435         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82436         Likewise.
82437
82438 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82439
82440         * m4/regex.m4: Add AC_PREREQ(2.50).
82441         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82442
82443 2005-08-25  Simon Josefsson  <jas@extundo.com>
82444
82445         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82446         __fsetlocking.
82447
82448 2005-08-25  Simon Josefsson  <jas@extundo.com>
82449
82450         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82451         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82452         GLIBC specific code.
82453
82454 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82455
82456         Make regex safe for g++.  This fixes one real bug (an "err"
82457         that should have been "*err").  g++ problem reported by
82458         Sam Steingold.
82459         * lib/regex_internal.h (re_calloc): New macro, consistent with
82460         re_malloc etc.  All callers of calloc changed to use re_calloc.
82461         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82462         not int.  All callers changed.
82463         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82464         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82465         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82466         (find_recover_state): Change "err" to "*err"; this fixes what
82467         appears to be a real bug.
82468         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82469         versus int.
82470
82471 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82472
82473         * modules/regex (Depends-on): Add malloc, since the code
82474         assumes that !malloc(0) means failure.
82475
82476 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82477
82478         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82479
82480         alloca modernization/simplification for regex.
82481         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82482         needs to be at the start of the file, and can be moved into
82483         regex_internal.h and simplified.
82484         * lib/regex_internal.h: Include <alloca.h>.
82485         (__libc_use_alloca) [!defined _LIBC]: New macro.
82486         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82487         now works outside glibc.
82488
82489 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * config/srclist.txt: Add glibc bugs 1241, 1245.
82492
82493 2005-08-25  Jim Meyering  <jim@meyering.net>
82494
82495         * lib/open-safer.c: Include <config.h>.
82496         Otherwise, we'd lose LARGEFILE support in any file using
82497         e.g. "fcntl--.h"
82498
82499 2005-08-25  Bruno Haible  <bruno@clisp.org>
82500
82501         * m4/minmax.m4: Require autoconf 2.52.
82502         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82503         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82504         alternatives of translit over the alphabet.
82505         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82506
82507 2005-08-24  Simon Josefsson  <jas@extundo.com>
82508
82509         * tests/test-getpass.c: New file.
82510
82511 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82512
82513         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82514         for GNU regex features.
82515
82516 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82517
82518         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82519         * lib/regex.h (regerror): Likewise.
82520
82521         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82522         requires this.  (The code never needed it.)
82523
82524         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82525         All uses of recently-renamed identifiers changed to use the new,
82526         POSIX-compliant names.  The code will build and run just fine
82527         without these changes, but it's better to eat our own dog food
82528         and use the standard-conforming names.
82529
82530         * lib/regex.h: Fix a multitude of POSIX name space violations.
82531         These changes have an effect only for programs that define
82532         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82533         do not change anything for programs compiled in the normal way.
82534         Also, there is no effect on the ABI.
82535
82536         (_REGEX_SOURCE): New macro.
82537         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82538         defined and _GNU_SOURCE is not; this fixes a name space violation.
82539
82540         Rename the following macros to obey POSIX requirements.
82541         The old names are still visible as macros if _REGEX_SOURCE is defined.
82542         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82543         RE_BACKSLASH_ESCAPE_IN_LISTS.
82544         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82545         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82546         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82547         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82548         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82549         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82550         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82551         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82552         (REG_INTERVALS): renamed from RE_INTERVALS.
82553         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82554         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82555         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82556         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82557         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82558         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82559         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82560         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82561         RE_UNMATCHED_RIGHT_PAREN_ORD.
82562         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82563         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82564         (REG_DEBUG): renamed from RE_DEBUG.
82565         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82566         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82567         unusual, since we can't clash with the POSIX REG_ICASE.
82568         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82569         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82570         (REG_NO_SUB): renamed from RE_NO_SUB.
82571         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82572         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82573         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82574         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82575         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82576         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82577         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82578         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82579         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82580         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82581         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82582         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82583         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82584         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82585         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82586         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82587         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82588         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82589         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82590         (REG_FIXED): Renamed from REGS_FIXED.
82591         (REG_NREGS): Renamed from RE_NREGS.
82592
82593         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82594         of other REG_* macros, since POSIX says the user is allowed to
82595         #undef these macros selectively.
82596
82597         (reg_errcode_t): Update comment stating what other tables need
82598         to be consistent.
82599
82600         Rename the following enum values to obey POSIX requirements.
82601         The old names are still visible as macros.
82602         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82603         is not defined, since GNU is supposed to be a superset of POSIX as
82604         much as possible, and since we want reg_errcode_t to be a signed
82605         type for implementation consistency.
82606         (_REG_NOERROR): Renamed from REG_NOERROR.
82607         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82608         (_REG_BADPAT): Renamed from REG_BADPAT.
82609         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82610         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82611         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82612         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82613         (_REG_EBRACK): Renamed from REG_EBRACK.
82614         (_REG_EPAREN): Renamed from REG_EPAREN.
82615         (_REG_EBRACE): Renamed from REG_EBRACE.
82616         (_REG_BADBR): Renamed from REG_BADBR.
82617         (_REG_ERANGE): Renamed from REG_ERANGE.
82618         (_REG_ESPACE): Renamed from REG_ESPACE.
82619         (_REG_BADRPT): Renamed from REG_BADRPT.
82620         (_REG_EEND): Renamed from REG_EEND.
82621         (_REG_ESIZE): Renamed from REG_ESIZE.
82622         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82623         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82624         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82625         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82626         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82627
82628         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82629         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82630         changed.  But support the old name if the new one is not defined
82631         and if _REGEX_SOURCE.
82632
82633         Change the following member names in struct re_pattern_buffer.
82634         The old names are still supported if !_REGEX_SOURCE.
82635         The new names are always supported, regardless of _REGEX_SOURCE.
82636         (re_buffer): Renamed from buffer.
82637         (re_allocated): Renamed from allocated.
82638         (re_used): Renamed from used.
82639         (re_syntax): Renamed from syntax.
82640         (re_fastmap): Renamed from fastmap.
82641         (re_translate): Renamed from translate.
82642         (re_can_be_null): Renamed from can_be_null.
82643         (re_regs_allocated): Renamed from regs_allocated.
82644         (re_fastmap_accurate): Renamed from fastmap_accurate.
82645         (re_no_sub): Renamed from no_sub.
82646         (re_not_bol): Renamed from not_bol.
82647         (re_not_eol): Renamed from not_eol.
82648         (re_newline_anchor): Renamed from newline_anchor.
82649
82650         Change the following member names in struct re_registers.
82651         The old names are still supported if !_REGEX_SOURCE.
82652         The new names are always supported, regardless of _REGEX_SOURCE.
82653         (rm_num_regs): Renamed from num_regs.
82654         (rm_start): Renamed from start.
82655         (rm_end): Renamed from end.
82656
82657         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82658         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82659         Prepend __ to parameter names.
82660
82661         Undo yesterday's changes.
82662
82663 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82666         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82667         lib/regex.c.
82668
82669 2005-08-24  Jim Meyering  <jim@meyering.net>
82670
82671         Sync from coreutils.
82672         * m4/fcntl-safer.m4: New file.
82673
82674         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82675         and object files for this module.
82676
82677 2005-08-24  Jim Meyering  <jim@meyering.net>
82678
82679         Sync from coreutils.
82680         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82681
82682 2005-08-24  Jim Meyering  <jim@meyering.net>
82683
82684         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82685         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82686
82687 2005-08-24  Jim Meyering  <jim@meyering.net>
82688
82689         * modules/fcntl-safer: New module.
82690         * modules/fts (Depends-on): Add fcntl-safer.
82691         * MODULES.html.sh (File descriptor based Input/Output):
82692         Add fcntl-safer.
82693
82694 2005-08-24  Bruno Haible  <bruno@clisp.org>
82695
82696         Support for unit test modules.
82697         * modules/README: Mention tests modules.
82698         * modules/TEMPLATE-TESTS: New file.
82699         * gnulib-tool: New options --extract-tests-module, --with-tests and
82700         --tests-base (unused for the moment).
82701         (testsbase, inctests): New variables.
82702         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82703         (func_verify_module): Exclude TEMPLATE-TESTS.
82704         (func_verify_nontests_module, func_verify_tests_module): New functions.
82705         (func_get_dependencies): Add implicit dependency for tests modules.
82706         (func_get_tests_module): New function.
82707         (func_modules_transitive_closure): When --with-tests was specified,
82708         include the unit tests as well, unless explicitly avoided.
82709         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82710         (func_emit_tests_Makefile_am): New function.
82711         (func_create_testdir): When --with-tests was specified, emit a
82712         tests/ directory.
82713         * MODULES.html.sh (Future developments): Update.
82714
82715 2005-08-24  Bruno Haible  <bruno@clisp.org>
82716
82717         * modules/tls-tests: New file.
82718         * tests/test-tls.c: New file, from GNU gettext.
82719
82720 2005-08-24  Bruno Haible  <bruno@clisp.org>
82721
82722         * modules/lock-tests: New file.
82723         * tests/test-lock.c: New file, from GNU gettext.
82724
82725 2005-08-24  Bruno Haible  <bruno@clisp.org>
82726
82727         * lib/lock.h: Add multiple inclusion guard.
82728         * lib/tls.h: Add multiple inclusion guard.
82729
82730 2005-08-24  Bruno Haible  <bruno@clisp.org>
82731
82732         * gnulib-tool: Add support for the --aux-dir option to
82733         --create-testdir, --create-megatestdir, --test, --megatest.
82734         (func_create_testdir, func_create_megatestdir): Optionally emit a
82735         AC_CONFIG_AUX_DIR directive.
82736         (create-testdir, create-megatestdir, test, megatest): Provide a
82737         default value for $auxdir.
82738
82739 2005-08-24  Bruno Haible  <bruno@clisp.org>
82740
82741         * gnulib-tool (import): Use compound statement instead of subshell
82742         where possible.
82743
82744 2005-08-24  Bruno Haible  <bruno@clisp.org>
82745
82746         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82747
82748 2005-08-24  Bruno Haible  <bruno@clisp.org>
82749
82750         * gnulib-tool (func_version): Update.
82751
82752 2005-08-24  Bruno Haible  <bruno@clisp.org>
82753
82754         * gnulib-tool (func_import, func_create_testdir,
82755         func_create_megatestdir): Quote all autoconf macro arguments.
82756
82757 2005-08-24  Bruno Haible  <bruno@clisp.org>
82758
82759         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82760         option --force, because --force causes the aclocal.m4 of each
82761         subdirectory to be newer than the corresponding config.h.in.
82762
82763 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82764
82765         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82766         All contents moved to gl_REGEX.
82767         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82768         assume that it does.
82769
82770 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82771
82772         * lib/regex.h (REG_NOSYS)
82773         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82774         Define, since POSIX requires it as of 2001.
82775         (_REG_ENOSYS)
82776         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82777         New private symbol, used to keep the enum signed in all cases.
82778         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82779         Youngman in
82780         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82781
82782         * lib/regex_internal.c (re_string_skip_chars, register_state):
82783         (calc_state_hash):
82784         Remove forward decls; no longer needed now that we use prototypes.
82785         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82786         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82787         (clean_state_log_if_needed): Likewise.
82788
82789 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         * config/srclist.txt: Add glibc bugs 1231-1233.
82792
82793 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82794
82795         Fix problems reported by Sam Steingold in
82796         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82797         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82798         assumed that reg_errcode_t is a signed type, which is not
82799         necessarily true if _XOPEN_SOURCE is not defined.
82800         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82801         since some compilers warn about it otherwise.
82802
82803 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82806         (init_word_char, create_initial_state, duplicate_node_closure):
82807         (fetch_token, peek_token_bracket, build_range_exp):
82808         (build_collating_symbol): Remove forward decls; no longer needed
82809         now that we use prototypes.
82810
82811         * lib/regcomp.c:
82812         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82813         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82814         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82815         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82816         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82817         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82818         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82819         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82820         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82821         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82822         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82823         (build_charclass, build_charclass_op, fetch_number, create_tree):
82824         (create_token_tree, mark_opt_subexp, duplicate_tree):
82825         Use prototypes rather than old-style definitions.
82826
82827         * lib/regex_internal.c:
82828         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82829         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82830         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82831         (re_string_reconstruct, re_string_peek_byte_case):
82832         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82833         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82834         (re_node_set_init_copy, re_node_set_add_intersect):
82835         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82836         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82837         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82838         (re_acquire_state, re_acquire_state_context, register_state):
82839         (create_ci_newstate, create_cd_newstate, free_state):
82840         Likewise.
82841         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82842         re_search_2):
82843         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82844         (re_search_internal, prune_impossible_nodes):
82845         (acquire_init_state_context, check_matching, static):
82846         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82847         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82848         (update_regs, sift_states_backward, build_sifted_states):
82849         (clean_state_log_if_needed, merge_state_array):
82850         (update_cur_sifted_state, add_epsilon_src_nodes):
82851         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82852         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82853         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82854         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82855         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82856         (check_arrival, check_arrival_add_next_nodes):
82857         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82858         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82859         (check_node_accept_bytes, check_node_accept, extend_buffers):
82860         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82861         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82862         (sift_ctx_init):
82863         Likewise.
82864
82865         * lib/regex_internal.h:
82866         (re_string_allocate, re_string_construct, re_string_reconstruct):
82867         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82868         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82869         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82870         (re_string_context_at, re_string_peek_byte_case):
82871         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82872         is defined, since we now use prototypes always.
82873
82874         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82875         C89 or better.  All uses removed.
82876
82877 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82878
82879         * config/srclist.txt: Add glibc bugs 1220-1227.
82880
82881 2005-08-20  Jim Meyering  <jim@meyering.net>
82882
82883         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82884         of unused local, dfa.
82885
82886 2005-08-20  Bruno Haible  <bruno@clisp.org>
82887
82888         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82889
82890 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82893         (re_node_set_insert_last, re_dfa_add_node):
82894         Rename local variables to avoid GCC shadowing warnings.
82895
82896 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82897
82898         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82899         [defined lint]: Suppress bogus uninitialized-variable warnings.
82900
82901         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82902         and let the caller return REG_ESPACE if out of space.  This
82903         removes an uninitialied-variable warning with GCC 4.0.1, and also
82904         avoids taking the address of a local variable.  All callers
82905         changed.
82906
82907 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82908
82909         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82910         $LIBCSRC/posix/regexec.c.
82911         Add glibc bug 1217 for regcomp.c.
82912
82913 2005-08-19  Jim Meyering  <jim@meyering.net>
82914
82915         * lib/regexec.c (proceed_next_node): Redo local variables to
82916         avoid GCC shadowing warnings.
82917
82918 2005-08-18  Bruno Haible  <bruno@clisp.org>
82919
82920         * lib/strstr.c (strstr): Fix return value in multibyte case.
82921         * lib/strcasestr.c (strcasestr): Likewise.
82922
82923 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82924
82925         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82926
82927 2005-08-17  Jim Meyering  <jim@meyering.net>
82928
82929         Make the %s format (seconds since the epoch) work for a negative
82930         number and when used with a zero-padded field width, e.g. %015s.
82931
82932         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82933         label so that it precedes the code to set `digits'.  Otherwise,
82934         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82935         print `00-22'.  Now, it prints `-0022', as it should.
82936
82937 2005-08-17  Bruno Haible  <bruno@clisp.org>
82938
82939         * modules/strstr (Files): Add m4/mbrtowc.m4.
82940         (Depends-on): Add mbuiter.
82941
82942 2005-08-17  Bruno Haible  <bruno@clisp.org>
82943
82944         * modules/strcasestr: New file.
82945         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82946         strcasestr.
82947
82948 2005-08-17  Bruno Haible  <bruno@clisp.org>
82949
82950         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82951
82952 2005-08-17  Bruno Haible  <bruno@clisp.org>
82953
82954         * modules/mbuiter: New file.
82955         * MODULES.html.sh (Extended multibyte and wide character utilities):
82956         Add mbuiter.
82957
82958 2005-08-17  Bruno Haible  <bruno@clisp.org>
82959
82960         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82961         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82962
82963 2005-08-17  Bruno Haible  <bruno@clisp.org>
82964
82965         * m4/strcasestr.m4: New file.
82966
82967 2005-08-17  Bruno Haible  <bruno@clisp.org>
82968
82969         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82970         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82971
82972 2005-08-17  Bruno Haible  <bruno@clisp.org>
82973
82974         * lib/strcasestr.h: New file.
82975         * lib/strcasestr.c: New file.
82976
82977 2005-08-17  Bruno Haible  <bruno@clisp.org>
82978
82979         * lib/strcasecmp.c: Use mbuiter.h.
82980
82981 2005-08-17  Bruno Haible  <bruno@clisp.org>
82982
82983         * lib/mbuiter.h: New file.
82984
82985 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82986
82987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82988         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82989         and gl_GETOPT are both invoked via different paths (as happens
82990         with GNU tar CVS because it uses both argp and getopt), the former
82991         wins.
82992
82993 2005-08-16  Bruno Haible  <bruno@clisp.org>
82994
82995         * modules/tls: New file.
82996         * MODULES.html.sh (Multithreading): Add tls.
82997
82998 2005-08-16  Bruno Haible  <bruno@clisp.org>
82999
83000         * modules/strnlen1: New file.
83001         * MODULES.html.sh (String handling): Add strnlen1.
83002
83003 2005-08-16  Bruno Haible  <bruno@clisp.org>
83004
83005         * modules/strcase (Files): Add m4/mbrtowc.m4.
83006         (Depends-on): Add strnlen1, mbchar.
83007
83008 2005-08-16  Bruno Haible  <bruno@clisp.org>
83009
83010         * modules/mbiter: New file.
83011         * MODULES.html.sh (Extended multibyte and wide character utilities):
83012         Add mbiter.
83013
83014 2005-08-16  Bruno Haible  <bruno@clisp.org>
83015
83016         * modules/mbfile: New file.
83017         * MODULES.html.sh (Extended multibyte and wide character utilities):
83018         Add mbfile.
83019
83020 2005-08-16  Bruno Haible  <bruno@clisp.org>
83021
83022         * modules/mbchar: New file.
83023         * MODULES.html.sh (Extended multibyte and wide character utilities):
83024         New section.
83025
83026 2005-08-16  Bruno Haible  <bruno@clisp.org>
83027
83028         * m4/tls.m4: New file, from GNU gettext.
83029
83030 2005-08-16  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83033         always.
83034         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83035
83036 2005-08-16  Bruno Haible  <bruno@clisp.org>
83037
83038         * m4/mbiter.m4: New file.
83039
83040 2005-08-16  Bruno Haible  <bruno@clisp.org>
83041
83042         * m4/mbfile.m4: New file.
83043
83044 2005-08-16  Bruno Haible  <bruno@clisp.org>
83045
83046         * m4/mbchar.m4: New file.
83047
83048 2005-08-16  Bruno Haible  <bruno@clisp.org>
83049
83050         * lib/tls.h: New file, from GNU gettext.
83051         * lib/tls.c: New file, from GNU gettext.
83052
83053 2005-08-16  Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/strnlen1.h: New file.
83056         * lib/strnlen1.c: New file.
83057
83058 2005-08-16  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83061         (mbi_init): Update.
83062         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83063         NUL byte, not after it.
83064
83065 2005-08-16  Bruno Haible  <bruno@clisp.org>
83066
83067         * lib/strcase.h (strcasecmp): Add note in comments.
83068         * lib/strncasecmp.c: Use code from strcasecmp.c.
83069         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83070         (strcasecmp): Work correctly in multibyte locales.
83071
83072 2005-08-16  Bruno Haible  <bruno@clisp.org>
83073
83074         * lib/mbiter.h: New file.
83075
83076 2005-08-16  Bruno Haible  <bruno@clisp.org>
83077
83078         * lib/mbfile.h: New file.
83079
83080 2005-08-16  Bruno Haible  <bruno@clisp.org>
83081
83082         * lib/mbchar.h: New file.
83083         * lib/mbchar.c: New file.
83084
83085 2005-08-16  Bruno Haible  <bruno@clisp.org>
83086
83087         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83088         the valid ones. Makes the comparison operations transitive:
83089         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83090         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83091
83092 2005-08-15  Simon Josefsson  <jas@extundo.com>
83093
83094         * modules/ssize_t (License): Change to 'unlimited'.
83095
83096         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83097
83098 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83099
83100         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83101         Add comments for each pending glibc patch.
83102
83103 2005-08-15  Bruno Haible  <bruno@clisp.org>
83104
83105         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83106         __cplusplus is defined.
83107
83108 2005-08-14  Jim Meyering  <jim@meyering.net>
83109
83110         Sync from coreutils.
83111
83112         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83113         Use the hash-table-based cycle-detection code not just when
83114         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83115         Reported by James Youngman in
83116         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83117         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83118         FTS_TIGHT_CYCLE_CHECK.
83119         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83120         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83121         once again.
83122         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83123         * lib/fts.c (fd_safer): Remove decl.
83124         Include fcntl--.h rather than unistd-safer.h
83125         (fts_safe_changedir): Don't call fd_safer; no longer needed
83126         now that we include fcntl--.h.
83127
83128 2005-08-12  Simon Josefsson  <jas@extundo.com>
83129
83130         * modules/getndelim2: Use ssize_t module.
83131         * modules/getnline: Likewise.
83132         * modules/safe-read: Likewise.
83133         * modules/xreadlink: Likewise.
83134
83135         * modules/ssize_t: New file.
83136
83137 2005-08-12  Simon Josefsson  <jas@extundo.com>
83138
83139         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83140
83141 2005-08-12  Simon Josefsson  <jas@extundo.com>
83142
83143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83144         ssize_t.
83145
83146 2005-08-12  Simon Josefsson  <jas@extundo.com>
83147
83148         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83149         readline, getdelim and check_version.
83150         (Support for systems lacking ISO C 99: Sizes of integer types):
83151         Add size_max.
83152
83153 2005-08-12  Bruno Haible  <bruno@clisp.org>
83154
83155         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83156
83157 2005-08-11  Simon Josefsson  <jas@extundo.com>
83158
83159         * modules/readline: New file.
83160
83161         * modules/strnlen (Files): Add strnlen.h.
83162
83163 2005-08-11  Simon Josefsson  <jas@extundo.com>
83164
83165         * m4/readline.m4: New file.
83166
83167 2005-08-11  Simon Josefsson  <jas@extundo.com>
83168
83169         * lib/readline.h, readline.c: New file.
83170
83171 2005-08-11  Simon Josefsson  <jas@extundo.com>
83172
83173         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83174         gl_AVOID.
83175
83176 2005-08-11  Bruno Haible  <bruno@clisp.org>
83177
83178         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83179
83180 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83181
83182         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83183
83184 2005-08-10  Simon Josefsson  <jas@extundo.com>
83185
83186         * tests/test-iconvme.c: New file.
83187
83188 2005-08-10  Simon Josefsson  <jas@extundo.com>
83189
83190         * m4/strnlen.m4: New file.
83191
83192         * m4/strndup.m4: Don't check for strnlen declaration, done in
83193         strnlen.m4.
83194
83195 2005-08-10  Simon Josefsson  <jas@extundo.com>
83196
83197         * lib/strndup.c: Use strnlen.h.
83198
83199         * lib/strnlen.h: New file.
83200
83201 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83202
83203         * README: Typos.
83204
83205 2005-08-02  Simon Josefsson  <jas@extundo.com>
83206
83207         * modules/readline: New file.
83208
83209 2005-08-02  Simon Josefsson  <jas@extundo.com>
83210
83211         * modules/getdelim: New file.
83212
83213         * modules/getline: Rewrite, don't use getndelim2.
83214
83215 2005-08-02  Simon Josefsson  <jas@extundo.com>
83216
83217         * m4/getline.m4: Separate out getdelim stuff into separate module.
83218
83219         * m4/getdelim.m4: New file.
83220
83221 2005-08-02  Simon Josefsson  <jas@extundo.com>
83222
83223         * lib/getline.h, getline.c: Rewrite.
83224
83225         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83226
83227 2005-07-31  Bruno Haible  <bruno@clisp.org>
83228
83229         * lib/lock.h (gl_lock_initializer): New macro.
83230         (gl_lock_define_initialized): Use it.
83231         (gl_rwlock_initializer): New macro.
83232         (gl_rwlock_define_initialized): Use it.
83233         (gl_recursive_lock_initializer): New macro.
83234         (gl_recursive_lock_define_initialized): Use it.
83235
83236 2005-07-30  Karl Berry  <karl@gnu.org>
83237
83238         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83239         Report from Ben Pfaff, regarding getopt.
83240
83241 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83242
83243         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83244         normal way.
83245         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83246         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83247         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83248         (gl_GETOPT): Use the new macros.  Most of the implementation
83249         is moved to the new macros.  This is for programs like Emacs
83250         that don't want all the functionality of gl_GETOPT.
83251
83252 2005-07-26  Bruno Haible  <bruno@clisp.org>
83253
83254         * m4/lock.m4: Update from GNU gettext.
83255
83256 2005-07-26  Bruno Haible  <bruno@clisp.org>
83257
83258         * lib/lock.h: Update from GNU gettext.
83259         * lib/lock.c: Update from GNU gettext.
83260
83261 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83262
83263         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83264         obsolescent AC_TRY_RUN.  Include the default includes files, for
83265         'exit'.
83266
83267 2005-07-24  Bruno Haible  <bruno@clisp.org>
83268
83269         * modules/visibility: New file.
83270         * MODULES.html.sh (Misc): Add visibility.
83271
83272 2005-07-24  Bruno Haible  <bruno@clisp.org>
83273
83274         * m4/visibility.m4: New file.
83275
83276 2005-07-24  Bruno Haible  <bruno@clisp.org>
83277
83278         * doc/visibility.texi: New file.
83279
83280 2005-07-22  Bruno Haible  <bruno@clisp.org>
83281
83282         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83283         $(ALLOCA_H), redundant through BUILT_SOURCES.
83284         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83285         redundant through BUILT_SOURCES.
83286         * modules/byteswap (Makefile.am): Remove explicit dependency on
83287         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83288         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83289         $(FNMATCH_H), redundant through BUILT_SOURCES.
83290         * modules/getopt (Makefile.am): Remove explicit dependency on
83291         $(GETOPT_H), redundant through BUILT_SOURCES.
83292         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83293         redundant through BUILT_SOURCES.
83294         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83295         redundant through BUILT_SOURCES.
83296         * modules/stdbool (Makefile.am): Remove explicit dependency on
83297         $(STDBOOL_H), redundant through BUILT_SOURCES.
83298         * modules/stdint (Makefile.am): Remove explicit dependency on
83299         $(STDINT_H), redundant through BUILT_SOURCES.
83300         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83301         Remove explicit dependency on $(SYSEXITS_H).
83302         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83303
83304 2005-07-18  Simon Josefsson  <jas@extundo.com>
83305
83306         * lib/check-version.c (check_version): Accept identical versions too.
83307
83308 2005-07-18  Bruno Haible  <bruno@clisp.org>
83309
83310         * modules/lock: New file.
83311         * MODULES.html.sh (Multithreading): New section.
83312
83313 2005-07-18  Bruno Haible  <bruno@clisp.org>
83314
83315         * m4/lock.m4: New file, from GNU gettext.
83316
83317 2005-07-18  Bruno Haible  <bruno@clisp.org>
83318
83319         * lib/lock.h: New file, from GNU gettext.
83320         * lib/lock.c: New file, from GNU gettext.
83321
83322 2005-07-18  Bruno Haible  <bruno@clisp.org>
83323
83324         * lib/lock.h (gl_once_t): New type.
83325         (gl_once_define, gl_once): New macros.
83326         * lib/lock.c (fresh_once): New variable.
83327         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83328         functions.
83329
83330 2005-07-16  Simon Josefsson  <jas@extundo.com>
83331
83332         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83333         workaround, suggested by Bruno.
83334
83335 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * modules/xalloc (Depends-on): Add xalloc-die.
83338         * modules/xvasprintf (Depends-on): Add xalloc-die.
83339
83340 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83341
83342         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83343         with a minor change.
83344
83345 2005-07-15  Bruno Haible  <bruno@clisp.org>
83346
83347         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83348         When using lib/poll.c, define poll as rpl_poll.
83349
83350 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83351
83352         * modules/argp (Depends-on): Remove unlocked-io.
83353
83354 2005-07-14  Derek Price  <derek@ximbiot.com>
83355
83356         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83357         for glob symlink bug.
83358
83359 2005-07-14  Bruno Haible  <bruno@clisp.org>
83360
83361         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83362         Instead, test for *_unlocked function declarations directly.
83363
83364 2005-07-11  Simon Josefsson  <jas@extundo.com>
83365
83366         * modules/size_max: New file.
83367
83368         * modules/xsize: Depend on size_max module for size_max.m4.
83369
83370 2005-07-11  Simon Josefsson  <jas@extundo.com>
83371
83372         * lib/size_max.h: New file.
83373
83374 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83375
83376         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83377         copyright symbol and the year.
83378         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83379         (version_etc_va): Use parameterized copyright notice.
83380         Reword to conform to the current GNU coding standards.
83381
83382 2005-07-11  Karl Berry  <karl@gnu.org>
83383
83384         * doc/gnulib.texi (Quoting): new node.
83385         (Initial import): more info, from Patrice.
83386
83387 2005-07-11  Bruno Haible  <bruno@clisp.org>
83388
83389         * gnulib-tool (func_usage): Document option --avoid.
83390         (Command line options): Handle --avoid.
83391         (func_acceptable): New function.
83392         (func_modules_transitive_closure): Use it.
83393
83394 2005-07-11  Bruno Haible  <bruno@clisp.org>
83395
83396         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83397         Reported by Jim Meyering.
83398
83399 2005-07-10  Bruno Haible  <bruno@clisp.org>
83400
83401         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83402         Needed when size_t is smaller than 'unsigned int'.
83403         Reported by Paul Eggert.
83404
83405 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83406
83407         * modules/argp (Depends-on): Add unlocked-io
83408
83409 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83410
83411         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83412         block of defines.
83413
83414 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83417         fix now.
83418
83419 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83420         and Paul Eggert  <eggert@cs.ucla.edu>
83421
83422         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83423         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83424
83425 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83426
83427         * modules/regex (Files): Add lib/regex_internal.c,
83428         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83429         (Depends-on): Add extensions.
83430         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83431
83432 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83433
83434         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83435         pathconf.
83436         * m4/same.m4 (gl_SAME): Likewise.
83437         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83438
83439         * m4/regex.m4: Adjust to new libc regex implementation.
83440         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83441         all the .c and .h parts of (the new) regex.
83442         Quote the m4 stuff better.
83443         Check for RE_ICASE bug of old gnulib.
83444         Check for REG_STARTEND of recent libc.
83445         Rename local variables from jm_* to gl_*.
83446         Quote operand of "test -f".
83447         Say "recent enough" version of libc, not "version 2".
83448         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83449         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83450         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83451         Remove check for btowc, isascii.
83452         Require AM_LANGINFO_CODESET.
83453
83454 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         * lib/regex.c, regex.h: Sync from libc.
83457         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83458         * lib/regexec.c:
83459         New files, synced from libc, except that regex_internal.h
83460         currently has a small porting fix.
83461
83462 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83463
83464         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83465         regex_internal.c, regexec.c.
83466         Add regex_internal.h too, but as a comment, since the libc version
83467         is currently broken in gnulib mode.
83468
83469 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83470
83471         Support programs like Emacs that use gnulib but not gettext.
83472         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83473         * modules/gettext-h: New file.
83474         * modules/gettext (Files): Remove lib/gettext.h.
83475         (Depends-on): Add gettext-h.
83476         (Makefile.am): Remove lib_SOURCES.
83477         * modules/argmatch, modules/c-stack, modules/closeout:
83478         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83479         * modules/execute, modules/file-type, modules/getaddrinfo:
83480         * modules/getopt, modules/human, modules/javacomp:
83481         * modules/javaexec, modules/mkdir-p, modules/obstack:
83482         * modules/openat, modules/pagealign_alloc, modules/pipe:
83483         * modules/quotearg, modules/regex, modules/rpmatch:
83484         * modules/unicodeio, modules/userspec, modules/version-etc:
83485         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83486         * modules/xsetenv:
83487         Depend on gettext-h, not gettext.
83488
83489 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83490
83491         * gnulib-tool (func_import): Add support for 'public domain' license.
83492         * modules/alloca, modules/atexit, modules/memmove:
83493         Now public domain, not GPL.
83494         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83495         * modules/realloc, modules/strerror, modules/strtod:
83496         Now LGPL, not GPL.
83497
83498 2005-07-05  Bruno Haible  <bruno@clisp.org>
83499
83500         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83501         autoconf CVS. Needed for mingw.
83502
83503 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         Remove the dependency of the strftime module on the tzset module.
83506         * modules/strftime (Depends-on): Remove dependency on tzset.
83507
83508 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83509
83510         Remove the dependency of the strftime module on the tzset module.
83511         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83512         gl_FUNC_TZSET_CLOBBER.
83513
83514 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         Remove the dependency of the strftime module on the tzset module.
83517         * lib/strftime.c (my_strftime)
83518         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83519         Copy the input structure, to work around some of the bug with
83520         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83521         Solaris releases, you should also use the tzset module, but we won't
83522         require it as a dependency any more since we don't want LGPLed code
83523         to depend on GPLed code.
83524
83525 2005-07-02  Jim Meyering  <jim@meyering.net>
83526
83527         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83528         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83529         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83530         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83531
83532 2005-07-02  Jim Meyering  <jim@meyering.net>
83533
83534         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83535
83536 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83539         declares only 'struct timespec;' (!).
83540
83541 2005-07-01  Jim Meyering  <jim@meyering.net>
83542
83543         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83544         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83545         * lib/save-cwd.c, tempname.c:
83546         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83547         and don't include <sys/file.h>).
83548
83549 2005-06-29  Jim Meyering  <jim@meyering.net>
83550
83551         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83552         type name.  Use the variable name instead.
83553         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83554         Likewise.
83555
83556 2005-06-28  Simon Josefsson  <jas@extundo.com>
83557
83558         * modules/check-version (Files): Add check-version.m4.
83559
83560 2005-06-28  Simon Josefsson  <jas@extundo.com>
83561
83562         * m4/check-version.m4: New file, suggested by Jim Meyering
83563         <jim@meyering.net>.
83564
83565 2005-06-28  Simon Josefsson  <jas@extundo.com>
83566
83567         * lib/check-version.h, lib/check-version.c: New files.
83568
83569 2005-06-28  Simon Josefsson  <jas@extundo.com>
83570
83571         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83572         collision with global variable.  Better indentation.  Don't
83573         increment buffer pointer beyond buffer end.  Based on comments
83574         from Paul Eggert <eggert@cs.ucla.edu>.
83575
83576         * lib/base64.h: Indent.
83577
83578 2005-06-28  Simon Josefsson  <jas@extundo.com>
83579
83580         * doc/gnulib.texi (Library version handling): New section.
83581
83582 2005-06-28  Jim Meyering  <jim@meyering.net>
83583
83584         * check-module (find_included_lib_files): Hard-code another
83585         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83586         but modules/fts-lgpl (correctly) does not list those files.
83587
83588         * modules/canonicalize (Files): Add lib/pathmax.h.
83589
83590 2005-06-25  Simon Josefsson  <jas@extundo.com>
83591
83592         * modules/check-version: New file.
83593
83594 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83597         initializer of struct addrinfo, as an indication that we don't
83598         care how many members the structure has.
83599
83600 2005-06-24  Derek Price  <derek@ximbiot.com>
83601         and Bruno Haible  <bruno@clisp.org>
83602
83603         Remove stat module & update lstat.
83604         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83605         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83606         * m4/stat.m4: Remove this file.
83607
83608 2005-06-24  Derek Price  <derek@ximbiot.com>
83609         and Bruno Haible  <bruno@clisp.org>
83610
83611         Remove stat module & update lstat.
83612         * lib/stat.c: Remove this file...
83613         (slash_aware_lstat): ...moving this content and its support...
83614         * lib/lstat.c (rpl_lstat): ...into here.
83615         * lib/lstat.h: New file.
83616
83617 2005-06-24  Derek Price  <derek@ximbiot.com>
83618         and Bruno Haible  <bruno@clisp.org>
83619
83620         Remove stat module & update lstat.
83621         * config/srclist.txt (libc sources): Remove stat.
83622
83623 2005-06-24  Derek Price  <derek@ximbiot.com>
83624         and Bruno Haible  <bruno@clisp.org>
83625
83626         Remove stat module & update lstat.
83627         * MODULES.html.sh (stat): Remove.
83628         * MODULES.html: Regenerated.
83629         * modules/lstat (Description): Correct function name.
83630         (Files): Add "lstat.h".
83631         (Depends-on): Remove stat, add xalloc, stat-macros.
83632         * modules/stat: Remove this file.
83633         (Include): Add "lstat.h", remove <sys/stat.h>.
83634
83635 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83636
83637         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83638         (ranged_convert): Don't save conversion in a temporary struct.
83639         This causes a warning with GCC 4.0.0, and anyway in the typical
83640         case it's not worth the extra 100 bytes or so of code.
83641         (ranged_convert, __mktime_internal): When calling a function via a
83642         pointer P, use P () rather than (*P) (), as we now assume C89 or
83643         better.
83644
83645 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83646
83647         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83648         "who -r" failed to give output.  Problem reported by Tim Waugh.
83649
83650         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83651         (xcalloc): Use it to avoid needless tests.
83652         Problem reported by Jim Meyering.
83653
83654 2005-06-20  Derek Price  <derek@ximbiot.com>
83655
83656         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83657         unnecessary for Autoconfs > 2.59c.
83658
83659 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83660
83661         * lib/argp.h (__option_is_short): Check upper limit of
83662         __key. Isprint() requires its argument to have the value
83663         of an unsigned char or EOF.
83664
83665 2005-06-16  Jim Meyering  <jim@meyering.net>
83666
83667         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83668         when either N or S is zero.
83669
83670 2005-06-16  Derek Price  <derek@ximbiot.com>
83671
83672         * m4/bison.m4: Declare YACC & YFLAGS precious.
83673
83674 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83675
83676         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83677         multibyte string or pattern, fall back on unibyte matching.
83678         Problem reported by James Youngman.
83679
83680 2005-06-08  Bruno Haible  <bruno@clisp.org>
83681
83682         * modules/csharpcomp: New file.
83683         * MODULES.html.sh (C#): Add csharpcomp.
83684
83685 2005-06-08  Bruno Haible  <bruno@clisp.org>
83686
83687         * m4/csharpcomp.m4: New file, from GNU gettext.
83688
83689 2005-06-08  Bruno Haible  <bruno@clisp.org>
83690
83691         * lib/csharpcomp.h: New file, from GNU gettext.
83692         * lib/csharpcomp.c: New file, from GNU gettext.
83693         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83694
83695 2005-06-08  Bruno Haible  <bruno@clisp.org>
83696
83697         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83698         warning on mingw.
83699
83700 2005-06-07  Derek Price  <derek@ximbiot.com>
83701
83702         Sync from CVS.
83703         * lib/glob_.h: Indent nested #ifdef.
83704
83705 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83706
83707         Sync from coreutils.
83708         Use "file name" when talking about file names, instead of "filename"
83709         or "path", as per the GNU coding standards.
83710         * lib/mkdir-p.c: Renamed from makepath.c.
83711         (make_dir_parents): Renamed from make_path.  All callers changed.
83712         * lib/mkdir-p.h: Likewise.  All includers changed.
83713         * lib/filenamecat.c: Renamed from path-concat.c.
83714         (file_name_concat): Renamed from path_concat.  All callers changed.
83715         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83716         * lib/filenamecat.h: Likewise.  All includers changed.
83717         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83718         in comments or local variable names.
83719         * lib/basename.c: Likewise.
83720         * lib/canonicalize.c, canonicalize.h: Likewise.
83721         * lib/dirname.c, dirname.h: Likewise.
83722         * lib/euidaccess.c: Likewise.
83723         * lib/exclude.c: Likewise
83724         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83725         * lib/fsusage.c, fsuage.h: Likewise.
83726         * lib/fts.c, fts_.h: Likewise.
83727         * lib/getcwd.c: Likewise.
83728         * lib/getloadavg.c: Likewise.
83729         * lib/mkstemp.c: Likewise.
83730         * lib/mountlist.c, mountlist.h: Likewise.
83731         * lib/openat.c, openat.h: Likewise.
83732         * lib/readlink-stub.c: Likewise.
83733         * lib/readutmp.c, readutmp.h: Likewise.
83734         * lib/rename.c: Likewise.
83735         * lib/rmdir.c: Likewise.
83736         * lib/same.c: Likewise.
83737         * lib/savedir.c: Likewise.
83738         * lib/stripslash.c: Likewise.
83739         * lib/tempname.c: Likewise.
83740         * lib/xreadlink.c: Likewise.
83741         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83742         All uses changed.
83743         * lib/exclude.h: Likewise.
83744
83745         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83746         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83747         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83748         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83749         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83750         files have been getting away with it for years (MORE/BSD 4.3
83751         is extinct now).
83752         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83753         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83754
83755         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83756         Define to 256, not 255, as per modern POSIX.
83757
83758 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83759
83760         Sync from coreutils.
83761         Use "file name" when talking about file names, instead of "filename"
83762         or "path", as per the GNU coding standards.
83763         * MODULES.html.sh: mkdir-p renamed from makepath.
83764         filenamecat renamed from path-concat.
83765         * modules/filenamecat: Renamed from modules/path-concat.
83766         (Files): filenamecat.h and filenamecat.c renamed from
83767         path-concat.h and path-concat.c.
83768         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83769         (Include): filenamecat.h, not path-concat.h.
83770         * modules/mkdir-p: Renamed from modules/makepath.
83771         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83772         makepath.c.
83773         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83774         (Include): mkdir-p.h, not makepath.h.
83775
83776 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83777
83778         Sync from coreutils.
83779         * m4/mkdir-p.m4: Renamed from makepath.m4.
83780         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83781         Rename files from makepath.c to mkdir-p.c, and from
83782         makepath.h to mkdir-p.h.
83783         * m4/filenamecat.m4: Renamed from path-concat.m4.
83784         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83785         Rename files from path-concat.c to filenamecat.c,
83786         and from path-concat.h to filenamecat.h.
83787         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83788         "file name" in local variables or comments.
83789         * m4/rename.m4: Likewise.
83790
83791 2005-06-01  Bruno Haible  <bruno@clisp.org>
83792
83793         * modules/csharpexec: New file.
83794         * MODULES.html.sh (C#): New section.
83795
83796 2005-06-01  Bruno Haible  <bruno@clisp.org>
83797
83798         * m4/csharp.m4: New file, from GNU gettext.
83799         * m4/csharpexec.m4: New file, from GNU gettext.
83800
83801 2005-06-01  Bruno Haible  <bruno@clisp.org>
83802
83803         * lib/csharpexec.h: New file, from GNU gettext.
83804         * lib/csharpexec.c: New file, from GNU gettext.
83805         * lib/csharpexec.sh.in: New file, from GNU gettext.
83806
83807 2005-05-31  Derek Price  <derek@ximbiot.com>
83808             Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         Sync from cvs.
83811         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83812
83813 2005-05-31  Derek Price  <derek@ximbiot.com>
83814             Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         Sync from cvs.
83817         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83818
83819 2005-05-29  Derek Price  <derek@ximbiot.com>
83820
83821         * config/srclist.txt (glob_.h, glob.c): Add these files.
83822
83823 2005-05-29  Derek Price  <derek@ximbiot.com>
83824
83825         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83826         * modules/glob: New file.
83827         * modules/getlogin_r: Add link to POSIX spec in description.
83828
83829 2005-05-29  Derek Price  <derek@ximbiot.com>
83830             Paul Eggert  <eggert@cs.ucla.edu>
83831
83832         * m4/glob.m4: New file.
83833
83834 2005-05-29  Derek Price  <derek@ximbiot.com>
83835             Paul Eggert  <eggert@cs.ucla.edu>
83836
83837         * lib/glob_.h, lib/glob.c: New files.
83838
83839 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83842         * modules/fts-lgpl (Depends-on): Remove gettext.
83843
83844 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83847         and don't require gt_INTTYPES_PRI.
83848
83849 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83850
83851         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83852
83853         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83854         the configuration hassle isn't worth it.
83855         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83856         (LONGEST_MODIFIER, PRIuMAX): Remove.
83857
83858 2005-05-27  Bruno Haible  <bruno@clisp.org>
83859
83860         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83861
83862 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83865         _POSIX_PTHREAD_SEMANTICS for Solaris.
83866
83867 2005-05-25  Derek Price  <derek@ximbiot.com>
83868
83869         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83870
83871 2005-05-25  Derek Price  <derek@ximbiot.com>
83872             Paul Eggert  <eggert@cs.ucla.edu>
83873
83874         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83875         * lib/getlogin_r.c, getlogin_r.h: New files.
83876
83877 2005-05-25  Bruno Haible  <bruno@clisp.org>
83878             Derek Price  <derek@ximbiot.com>
83879
83880         * lib/getlogin_r.h: Simplify API documentation.
83881
83882 2005-05-23  Derek Price  <derek@ximbiot.com>
83883
83884         * modules/minmax (Files): Add m4/minmax.m4.
83885         (configure.ac): Add gl_MINMAX.
83886
83887 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83890         so that unistd-safer.h (GPL'ed code) need not be included.
83891
83892 2005-05-22  Bruno Haible  <bruno@clisp.org>
83893
83894         * m4/minmax.m4: New file.
83895         Based on a patch by Derek Price <derek@ximbiot.com>.
83896
83897 2005-05-22  Bruno Haible  <bruno@clisp.org>
83898
83899         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83900         (INT64_MIN): Fix definition.
83901         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83902
83903         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83904         NEED_SIGNED_INT_TYPES.
83905
83906         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83907         HAVE_SYSTEM_INTTYPES.
83908
83909 2005-05-22  Bruno Haible  <bruno@clisp.org>
83910
83911         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83912         Also include <sys/param.h> if it defines MIN, MAX.
83913         Based on a patch by Derek Price <derek@ximbiot.com>.
83914
83915 2005-05-21  Jim Meyering  <jim@meyering.net>
83916
83917         * modules/fts (Files): Add m4/inttypes-pri.m4.
83918         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83919
83920 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         New fts module.
83923         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83924         (setup_dir, free_dir): New functions.
83925         (enter_dir, leave_dir): Define trivial
83926         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83927         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83928         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83929         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83930         Move to fts-cycle.c.
83931         (fts_open): Use setup_dir.
83932         (fts_close): Use free_dir.
83933         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83934         This adds a label and some gotos, but the alternatives were messier.
83935         Check for memory allocation failure when entering a dir.
83936         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83937         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83938         (FTS): New member fts_cycle, that is a union that contains the
83939         old active_dir_ht and cycle_state.  All uses changed to mention
83940         fts_cycle.ht and fts_cycle.state.
83941         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83942         fts.c, with the following changes:
83943         (setup_dir, free_dir): New functions.
83944         (enter_dir): Now returns bool.  Return true if successful, false
83945         if memory exhausted.  All callers changed.
83946         Do not bother partly cleaning up on
83947         memory allocation failure; that is free_dir's job.
83948         However, free ad if hash_insert fails, to avoid memory leak.
83949         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83950         fts->fts_options to see which union member to use.
83951
83952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83953
83954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83955         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83956
83957 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83958
83959         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83960
83961 2005-05-20  Jim Meyering  <jim@meyering.net>
83962
83963         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83964         Now a macro, to pacify GCC.
83965
83966 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83967
83968         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83969         of -1.
83970
83971 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83972
83973         * lib/chown.c (rpl_chown): Return -1 on failure.
83974
83975 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83978         Don't check for stddef.h.
83979         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83980         don't use its results.
83981         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83982         since we include them unconditionally.  Don't require
83983         AM_STDBOOL_H, since stdbool is a prerequisite.
83984         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83985         since we assume C89 or better.
83986         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83987         as we don't use their results.
83988         Don't check for fchdir, memmove, memset, strrchr, as we use
83989         them unconditionally.
83990         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83991         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83992
83993 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83994
83995         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83996         Include <stddef.h> unconditionally, since we assume C89 now.
83997         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83998         * lib/fts.c: Include fts_.h first, to check interface.
83999         Do not include intprops.h; no longer needed.
84000         Include cycle-check.h and hash.h, since fts_.h no longer does.
84001         Remove unnecessary casts of closedir to void.
84002         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84003         decide whether to decrement nlinks.
84004         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84005         (FTS): Use struct hash_table * instead of Hash_table, so that
84006         we no longer need to include hash.h here.
84007
84008 2005-05-18  Jim Meyering  <jim@meyering.net>
84009
84010         * modules/dirfd (License): Change to LGPL.  Most of the code
84011         is already in the public domain.
84012
84013 2005-05-18  Jim Meyering  <jim@meyering.net>
84014
84015         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84016         Reported by Yoann Vandoorselaere.
84017
84018 2005-05-17  Jim Meyering  <jim@meyering.net>
84019
84020         * m4/fts.m4: New file, from coreutils.
84021
84022 2005-05-17  Jim Meyering  <jim@meyering.net>
84023
84024         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84025
84026 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84027
84028         Sync from coreutils.
84029         * m4/unlinkdir.m4: New file.
84030
84031 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         Sync from coreutils.
84034         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84035         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84036         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84037         White space changes only.
84038         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84039         special.
84040         * lib/yesno.c: Include getline.h, not ctype.h.
84041         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84042         Use getline to remove arbitrary restriction on response length.
84043
84044 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * config/srclist-update: Spell out "Street" in FSF postal
84047         mail address; this is the style the FSF seems to prefer.
84048
84049         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84050         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84051         this updates FSF postal mail address.
84052
84053         Sync from coreutils.
84054         * modules/unlinkdir: New file.
84055         * modules/yesno (Depends-on): Add getline.
84056         * MODULES.html.sh (File system functions): Add unlinkdir.
84057
84058 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84061         lib/strsep.h:
84062         Change the initial comment to refer to GPL, not LGPL.
84063         gnulib-tool will change it to LGPL as needed.
84064
84065         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84066         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84067         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84068         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84069         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84070         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84071         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84072         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84073         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84074         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84075         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84076         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84077         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84078         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84079         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84080         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84081         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84082         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84083         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84084         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84085         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84086         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84087         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84088         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84089         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84090         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84091         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84092         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84093         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84094         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84095         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84096         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84097         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84098         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84099         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84100         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84101         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84102         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84103         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84104         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84105         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84106         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84107         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84108         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84109         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84110         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84111         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84112         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84113         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84114         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84115         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84116         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84117         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84118         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84119         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84120         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84121         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84122         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84123         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84124         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84125         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84126         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84127         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84128         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84129         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84130         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84131         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84132         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84133         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84134         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84135         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84136         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84137         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84138         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84139         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84140         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84141         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84142         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84143         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84144         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84145         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84146         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84147         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84148         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84149         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84150         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84151         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84152         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84153         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84154         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84155         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84156         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84157         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84158         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84159         lib/yesno.c, lib/yesno.h:
84160         Update FSF postal mail address.
84161
84162 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84163
84164         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84165         tests/test-memmem.c, tests/test-stpncpy.c:
84166         Update FSF postal mail address.
84167
84168 2005-05-13  Bruno Haible  <bruno@clisp.org>
84169
84170         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84171         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84172         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84173         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84174         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84175         Add support for 64-bit integers in the MSVC compiler.
84176
84177 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84178
84179         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84180
84181 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84182
84183         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84184
84185 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84186
84187         * doc/getdate.texi (General date syntax): Don't say that date
84188         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84189         Problem reported by Nic Ferrier.
84190
84191 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84192
84193         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84194         specified in ai_socktype. Fix invalid ai_protocol
84195         check. ai_protocol is usually set to 0 or depending on
84196         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84197         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84198         ai_socktype / ai_protocol in the returned addrinfo structure.
84199
84200 2005-05-10  Simon Josefsson  <jas@extundo.com>
84201
84202         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84203         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84204
84205 2005-05-10  Karl Berry  <karl@gnu.org>
84206
84207         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84208         (from http://www.gnu.org/licenses).
84209         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84210         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84211         fdl.texi suffices.
84212
84213 2005-05-10  Karl Berry  <karl@gnu.org>
84214
84215         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84216         (COPYING.DOC): remove.
84217
84218         * config/srclist-update: new FSF address.
84219
84220 2005-05-10  Derek Price  <derek@ximbiot.com>
84221
84222         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84223         possible.
84224
84225 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84226             Bruno Haible  <bruno@clisp.org>
84227
84228         * modules/inet_ntop: New file.
84229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84230         inet_ntop.
84231
84232 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84233             Bruno Haible  <bruno@clisp.org>
84234
84235         * m4/inet_ntop.m4: New file.
84236
84237 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84238             Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/inet_ntop.h: New file.
84241         * lib/inet_ntop.c: New file, from glibc with modifications.
84242
84243 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84244
84245         * modules/time_r (License): Change to LGPL.
84246         * modules/extensions (License): Change to LGPL.  Actually,
84247         the license is more permissive than that, but currently gnulib-tool
84248         doesn't know how to handle more-permissive licenses.
84249
84250         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84251         Problem reported by Dave Love.
84252
84253 2005-05-08  Jim Meyering  <jim@meyering.net>
84254
84255         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84256         blank.
84257
84258 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84259
84260         * modules/argmatch (Depends-on): Add stdbool.
84261         * modules/backupfile (Depends-on): Likewise.
84262         * modules/chdir-long (Depends-on): Likewise.
84263         * modules/closeout (Depends-on): Likewise.
84264         * modules/cycle-check (Depends-on): Likewise.
84265         * modules/dirname (Depends-on): Likewise.
84266         * modules/fnmatch (Depends-on): Likewise.
84267         * modules/fsusage (Depends-on): Likewise.
84268         * modules/fwriteerror (Depends-on): Likewise.
84269         * modules/getcwd (Depends-on): Likewise.
84270         * modules/getloadavg (Depends-on): Likewise.
84271         * modules/hard-locale (Depends-on): Likewise.
84272         * modules/makepath (Depends-on): Likewise.
84273         * modules/mountlist (Depends-on): Likewise.
84274         * modules/nanosleep (Depends-on): Likewise.
84275         * modules/posixtm (Depends-on): Likewise.
84276         * modules/quotearg (Depends-on): Likewise.
84277         * modules/readtokens (Depends-on): Likewise.
84278         * modules/readtokens0 (Depends-on): Likewise.
84279         * modules/readutmp (Depends-on): Likewise.
84280         * modules/save-cwd (Depends-on): Likewise.
84281         * modules/strftime (Depends-on): Likewise.
84282         * modules/userspec (Depends-on): Likewise.
84283         * modules/utimecmp (Depends-on): Likewise.
84284         * modules/xgetcwd (Depends-on): Likewise.
84285         * modules/xnanosleep (Depends-on): Likewise.
84286         * modules/xstrtod (Depends-on): Likewise.
84287         * modules/yesno (Depends-on): Likewise.
84288
84289 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84290
84291         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84292         needless checks.
84293
84294 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84295
84296         Merge from coreutils.  Among other things,
84297         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84298         * lib/fd-safer.c: New file.
84299         * lib/fcntl-safer.h, open-safer.c: Remove.
84300         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84301         * lib/dup-safer.c: Include unistd-safer.h first.
84302         Don't include errno.h.
84303         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84304         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84305         * lib/file-type.c: Rely on file-type.h change.
84306         * lib/getloadavg.c: Include unistd-safer.h.
84307         (getloadavg): Use safer open.
84308         * lib/getusershell.c: Include "stdio-safer.h".
84309         (getusershell): Use safer fopen.
84310         * lib/long-options.c (long_options): Use NULL rather than 0.
84311         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84312         'free'.
84313         * lib/modechange.c: Likewise.
84314         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84315         (MODE_DONE): New constant.
84316         (struct mode_change): Remove 'next' member.
84317         (make_node_op_equals): New function; like the old one of the
84318         same name, except it allocates an array.
84319         (mode_compile, mode_create_from_ref): Use it.
84320         (mode_compile): Allocate result as an array, not a linked list.
84321         Parse octal string ourself, so that we catch mistakes like "+0".
84322         (mode_adjust): Arg is an array, not a linked list.
84323         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84324         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84325         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84326         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84327         Remove.  This is now stat-macros.h's job.
84328         (talloc): Remove.  All callers replaced by xalloc, so that
84329         our invokers don't have to worry about reporting memory failures.
84330         (make_node_op_equals): Remove.
84331         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84332         New constants.
84333         (struct mode_change): Moved here from modechange.h.
84334         (mode_append_entry): Remove.
84335         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84336         apps to have incorrect behavior.  Use simpler algorithm for head
84337         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84338         Detect more invalid usages rather than having somewhat-random behavior.
84339         Don't insert an "a=" action, as that leads to incorrect behavior.
84340         (mode_compile, mode_create_from_ref): Return NULL on error instead
84341         of an enum, since now there's only one way to have an error.  All
84342         callers changed.
84343         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84344         at the correct time.  Simplify calculation of "+u" and its ilk.
84345         Don't mishandle "+X".
84346         (mode_free): Remove "register" and localize decls.
84347         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84348         (struct mode_change): Move to modechange.c; callers don't
84349         need to see this stuff.
84350         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84351         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84352         (mode_change, mode_adjust): Reflect the new signatures noted above.
84353         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84354         that might redefine system include files.
84355         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84356         (my_usleep): Use NULL rather than (void *) 0.
84357         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84358         Use siginterrupt to specify that system calls should be interrupted.
84359         (rpl_nanosleep): Move initialization of suspended closer to call of
84360         my_usleep.
84361         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84362         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84363         (desirable_utmp_entry): New function.
84364         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84365         using x2nrealloc, to simplify logic.
84366         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84367         size calculation.  Do not assume utmp file is a regular file.
84368         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84369         (READ_UTMP_CHECK_PIDS): New constant.
84370         * lib/save-cwd.c: Include unistd-safer.h.
84371         (save_cwd): Use fd_safer.
84372         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84373         [!_LIBC] Include "stat-macros.h" instead.
84374         * lib/unistd-safer.h (fd_safer): New decl.
84375
84376 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         * modules/getloadavg (Depends-on): Add unistd-safer.
84379         * modules/getusershell (Depends-on): Add stdio-safer.
84380         * modules/lstat (Depends-on): Remove xalloc.
84381         * modules/mkstemp (Depends-on): Add stat-macros.
84382         * modules/modechange (Depends-on): Remove xstrtol.
84383         Add stat-macros, xalloc.
84384         * modules/save-cwd (Depends-on): Add unistd-safer.
84385         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84386         * modules/unistd-safer (Files): Add lib/fd-safer.c
84387         (Makefile.am): Remove lib_SOURCES.
84388
84389         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84390         Remove fcntl-safer; unistd-safer supersedes it.
84391
84392 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84395         AC_HEADER_STAT.
84396         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84397         (gl_PREREQ_CHOWN): Remove.
84398         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84399         it.  Don't require AC_HEADER_STAT.
84400         (gl_PREREQ_LSTAT): Remove.
84401         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84402         Don't require AC_HEADER_STAT.
84403         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84404         (gl_PREREQ_RMDIR): Remove.
84405         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84406         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84407         the stat-macros module a prerequisite.
84408         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84409         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84410         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84411         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84412         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84413         variable names.
84414         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84415         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84416         variable prefixes.
84417         * m4/fcntl-safer.m4: Remove.
84418         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84419         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84420         Invoke gl_PREREQ_FD_SAFER.
84421         (gl_PREREQ_FD_SAFER): New macro.
84422         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84423         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84424         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84425         Remove duplicate call to AC_LIBOBJ(readutmp).
84426         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84427
84428         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84429         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84430
84431 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84432
84433         * MODULES.html.sh (Misc): Add byteswap.
84434
84435 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84436
84437         * modules/getcwd (Depends-on): Add extensions.
84438         * modules/openat (Depends-on): Likewise.
84439
84440 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84441
84442         * modules/byteswap: New file.
84443
84444 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84445
84446         * m4/byteswap.m4: New file.
84447
84448 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84449
84450         * lib/byteswap_.h: New file.
84451
84452 2005-04-25  Karl Berry  <karl@gnu.org>
84453
84454         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84455
84456 2005-04-25  Albert Chin  <china@thewrittenword.com>
84457
84458         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84459         Toolkit C bug.
84460
84461 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84462
84463         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84464         (func_ln_if_changed): Remove forcibly for no error message
84465         in case file does not exist.
84466
84467 2005-04-19  Simon Josefsson  <jas@extundo.com>
84468
84469         * gnulib-tool (Options): Make --symlink mean --symbolic.
84470
84471 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84472
84473         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84474
84475 2005-04-16  Simon Josefsson  <jas@extundo.com>
84476
84477         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84478
84479 2005-04-15  Simon Josefsson  <jas@extundo.com>
84480
84481         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84482
84483 2005-04-15  Simon Josefsson  <jas@extundo.com>
84484
84485         * gnulib-tool: Rename --symlink to --symbolic.
84486
84487 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84488
84489         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84490         symbolic links to files instead of copying/moving.  Add --aux-dir,
84491         specifying directory relative --dir where auxiliary build tools
84492         are placed.
84493
84494 2005-04-14  Bruno Haible  <bruno@clisp.org>
84495
84496         * modules/allocsa (License): Change to LGPL.
84497         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84498
84499 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84502         that "UTC +1 second" continues to work.  Problem reported
84503         by Dmitry V. Levin.
84504         (relunit_snumber): New rule.
84505         (relunit): Use it.
84506
84507 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84508
84509         * lib/getdate.y (universal_time_zone_table): New constant.
84510         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84511         universal_time_zone_table.
84512         (lookup_zone): Prefer universal_time_zone_table to
84513         local_time_zone_table, so that "GMT" time stamps are allowed in
84514         London during the summer.  Problem reported by Ian Abbott.
84515
84516 2005-04-12  Jim Meyering  <jim@meyering.net>
84517
84518         * lib/human.c (humblock): Set *options even when returning due to
84519         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84520         warning from gcc-4.
84521
84522 2005-04-09  Jim Meyering  <jim@meyering.net>
84523
84524         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84525         -Wuninitialized: initialize tm0.tm_year.
84526
84527 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84530         count, since there's no maximum.  All uses changed.
84531         Add member dsts_seen.
84532         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84533         not being INT_MAX.
84534         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84535         Use pc_rels_seen to decide whether a date is absolute.
84536
84537         * lib/getdate.y (number): Don't overwrite year.
84538         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84539         check.
84540
84541 2005-04-02  Simon Josefsson  <jas@extundo.com>
84542
84543         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84544         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84545
84546 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84547
84548         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84549         where no absolute path name can be longer than PATH_MAX.
84550
84551 2005-03-27  Jim Meyering  <jim@meyering.net>
84552
84553         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84554
84555 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84558         "one's complement" -> "ones' complement" in comment, as per Knuth.
84559         "value of type" -> "type or expression" in comment.
84560         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84561
84562 2005-03-26  Jim Meyering  <jim@meyering.net>
84563
84564         Comment nits.
84565         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84566         Correct typos: s/or/of/.
84567
84568 2005-03-26  Jim Meyering  <jim@meyering.net>
84569
84570         * modules/check-include-files: Move to ../ and rename to...
84571         * check-module: ...this.
84572
84573 2005-03-25  Jim Meyering  <jim@meyering.net>
84574
84575         * modules/xvasprintf (Files): Add xalloc.h.
84576
84577 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84578
84579         * modules/gettext (Files): config/config.rpath ->
84580         build-aux/config.rpath
84581         * modules/iconv (Files): Likewise.
84582         Problem reported by Oskar Liljeblad.
84583
84584 2005-03-23  Jim Meyering  <jim@meyering.net>
84585
84586         * modules/check-include-files: New script to check for
84587         missing dependencies, multiple includes, etc.
84588
84589         * modules/c-strtold (Depends-on): Add xalloc.
84590         * modules/c-strtod (Depends-on): Add xalloc.
84591         * modules/hash (Depends-on): Add xalloc.
84592         (Files): Remove lib/xalloc.h.
84593
84594         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84595         * modules/userspec (Files): Add lib/inttostr.h.
84596
84597 2005-03-23  Jim Meyering  <jim@meyering.net>
84598
84599         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84600
84601 2005-03-22  Jim Meyering  <jim@meyering.net>
84602
84603         * modules/stat-macros: New module.
84604         * modules/canonicalize, modules/euidaccess, modules/file-type,
84605         * modules/filemode, modules/lchown, modules/makepath,
84606         * modules/rmdir, modules/stat: Depend on new stat-macros module
84607         rather than listing lib/stat-macros.h manually.
84608         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84609
84610 2005-03-22  Jim Meyering  <jim@meyering.net>
84611
84612         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84613
84614 2005-03-22  Bruno Haible  <bruno@clisp.org>
84615
84616         * config/srclist.txt: Replace target directory 'config' with
84617         'build-aux'.
84618         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84619         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84620         ../build-aux/.
84621
84622 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84623
84624         * modules/chdir-long (Depends-on): Add mempcpy.
84625
84626         * modules/acl, modules/backupfile, modules/c-strtod,
84627         modules/c-strtold, modules/canon-host, modules/canonicalize,
84628         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84629         modules/exclude, modules/exitfail, modules/file-type,
84630         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84631         modules/getdate, modules/getline, modules/getpagesize,
84632         modules/getpass, modules/getugroups, modules/group-member,
84633         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84634         modules/inttostr, modules/long-options, modules/makepath,
84635         modules/md5, modules/memcasecmp, modules/memcoll,
84636         modules/modechange, modules/mountlist, modules/path-concat,
84637         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84638         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84639         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84640         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84641         modules/strftime, modules/strndup, modules/strverscmp,
84642         modules/timespec, modules/unlocked-io, modules/userspec,
84643         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84644         modules/yesno:
84645         Remove lib_SOURCES line from Makefile.am section, as this is now
84646         done automatically by the corresponding Autoconf macro.
84647
84648 2005-03-21  Jim Meyering  <jim@meyering.net>
84649
84650         Changes imported from coreutils.
84651
84652         * lib/cycle-check.c: Don't include xalloc.h.
84653
84654         * lib/path-concat.c: Don't include assert.h.
84655         (path_concat): Remove assertion that would have triggered
84656         for ABASE starting with more than one slash.
84657         Reported by Andreas Schwab.
84658
84659         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84660         properly when ABASE is an absolute file name.
84661         Correct the description of this function.
84662         Include <assert.h>.
84663         Add an assertion and a test driver.
84664         This fixes a bug introduced on 2004-07-02.
84665         Andreas Schwab reported the resulting failure of cp --parents:
84666         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84667
84668 2005-03-21  Jim Meyering  <jim@meyering.net>
84669
84670         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84671         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84672
84673 2005-03-21  Jim Meyering  <jim@meyering.net>
84674         and  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84677         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84678         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84679         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84680         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84681         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84682         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84683         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84684         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84685         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84686         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84687         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84688         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84689         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84690         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84691         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84692         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84693         for these modules.
84694
84695 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84698         (which shouldn't happen), generate nothing instead of returning 0
84699         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84700
84701 2005-03-16  Bruno Haible  <bruno@clisp.org>
84702
84703         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84704         HAVE_LONGLONG_64BIT.
84705
84706 2005-03-16  Bruno Haible  <bruno@clisp.org>
84707
84708         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84709         HAVE_LONGLONG_64BIT.
84710
84711 2005-03-16  Bruno Haible  <bruno@clisp.org>
84712
84713         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84714         HAVE_LONGLONG_64BIT.
84715
84716 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84717
84718         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84719         reliably distinguish strftime failure from empty output on POSIX
84720         hosts.
84721
84722 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84725         (iconv_string): Don't guess a size-zero buffer, as that might cause
84726         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84727         result would be 'too large', where 'too large' is (heuristically)
84728         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84729         overflow concerns.  This will prevent some unwanted malloc failures
84730         when the inputs are very large.
84731
84732 2005-03-15  Karl Berry  <karl@gnu.org>
84733
84734         * config/srclist.txt (config.rpath): from gettext.
84735         * config/config.rpath: update.
84736
84737 2005-03-15  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84740         to 'negate'.
84741
84742         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84743         variable.
84744
84745         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84746         results.
84747
84748 2005-03-14  Simon Josefsson  <jas@extundo.com>
84749
84750         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84751         <fx@gnu.org>.
84752
84753 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84754
84755         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84756         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84757         intprops.h.
84758         * lib/strtol.c: Likewise.
84759
84760 2005-03-14  Jim Meyering  <jim@meyering.net>
84761
84762         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84763         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84764         to be nonzero so that we (and caller) can detect the difference
84765         between a valid zero-length expansion and an error return, even
84766         when the underlying strftime fails before writing anything into
84767         that location.
84768
84769 2005-03-14  Bruno Haible  <bruno@clisp.org>
84770
84771         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84772         Update from GNU gettext 0.14.3.
84773
84774 2005-03-10  Jim Meyering  <jim@meyering.net>
84775
84776         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84777
84778 2005-03-10  Jim Meyering  <jim@meyering.net>
84779
84780         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84781         so that this module works on systems without fchdir.
84782
84783 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84784
84785         Factor int-properties macros into a single file, except for
84786         glibc-related files.
84787         * lib/intprops.h: New file.
84788         * lib/getloadavg.c: Include it instead of limits.h.
84789         (INT_STRLEN_BOUND): Remove.
84790         * lib/human.c: Include intprops.h.
84791         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84792         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84793         302/1000.
84794         * lib/inttostr.h: Include intprops.h instead of limits.h.
84795         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84796         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84797         for consistency with intprops.h.
84798         (time_t_is_integer, twos_complement_arithmetic): Use them.
84799         * lib/sig2str.h: Include <signal.h>, intprops.h.
84800         (INT_STRLEN_BOUND): Remove.
84801         * lib/strftime.c (TYPE_SIGNED): Remove.
84802         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84803         * lib/strtol.c: Adjust comments to match intprops.h.
84804         * lib/userspec.c: Include intprops.h.
84805         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84806         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84807         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84808         instead of rolling our own expressions.
84809         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84810
84811         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84812         instead of int.
84813         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84814         the right thing even if adding 1900 would overflow.  Similarly
84815         for tm_mon + 1 and tm_yday + 1.
84816         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84817         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84818         (DO_SIGNED_NUMBER): New macro.
84819         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84820
84821 2005-03-07  Bruno Haible  <bruno@clisp.org>
84822
84823         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84824
84825 2005-03-07  Bruno Haible  <bruno@clisp.org>
84826
84827         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84828
84829 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84830
84831         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84832         (func_import): Only replace files via --import when they have actually
84833         changed.
84834
84835 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84836
84837         * m4/mmap-anon.m4: New file.
84838         * m4/pagealign_alloc.m4: New file.
84839
84840 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84841             Bruno Haible  <bruno@clisp.org>
84842
84843         * modules/pagealign_alloc: New file.
84844         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84845
84846 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84847             Bruno Haible  <bruno@clisp.org>
84848
84849         * lib/pagealign_alloc.h: New file.
84850         * lib/pagealign_alloc.c: New file.
84851
84852 2005-03-03  Bruno Haible  <bruno@clisp.org>
84853
84854         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84855         Use an all-permissive copyright notice, recommended by RMS.
84856
84857 2005-03-02  Bruno Haible  <bruno@clisp.org>
84858
84859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84860         of AIX, the replacement has to be done only after <string.h> is
84861         included, therefore not in config.h. stpncpy.h does the replacement,
84862         and stpncpy.c uses it.
84863
84864 2005-03-02  Bruno Haible  <bruno@clisp.org>
84865
84866         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84867         stpncpy.c uses it.
84868
84869 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84872         The workaround isn't strictly needed for POSIX conformance, and
84873         it's too much of a pain to configure and maintain.  We'll ask
84874         people to fix their kernels instead.
84875         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84876         (NANOSLEEP_BUG_WORKAROUND): Remove.
84877         (xnanosleep): Remove the workaround.
84878
84879 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84880
84881         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84882         Reported by Derek Price.
84883         (Include): Add "timespec.h".
84884
84885         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84886
84887 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84890         to detect nanosleep bug.
84891
84892 2005-03-01  Bruno Haible  <bruno@clisp.org>
84893
84894         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84895
84896 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84897
84898         * modules/gethrxtime: New file.
84899         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84900         (Depends-on): Add gethrxtime.
84901         (configure.ac): Add gl_XNANOSLEEP.
84902         (Makefile.am): Remove lib_SOURCES line.
84903
84904 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84907         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84908
84909 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84910
84911         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84912         * lib/timespec.h (gettime): Return void, since it always
84913         succeeds now.  All uses changed.
84914         * lib/gettime.c (gettime): Likewise.
84915         [HAVE_NANOTIME]: Prefer nanotime.
84916         Assume gettimeofday succeeds, as POSIX requires.
84917         Assime time () succeeds, since other code already does.
84918         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84919         (timespec_subtract): Remove.
84920         (NANOSLEEP_BUG_WORKAROUND): New constant.
84921         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84922         things considerably.  Use it only on GNU/Linux hosts, since the
84923         workaround shouldn't be needed elsewhere.
84924
84925 2005-02-24  Bruno Haible  <bruno@clisp.org>
84926
84927         * modules/gettext (Files): Add m4/glibc2.m4.
84928
84929 2005-02-24  Bruno Haible  <bruno@clisp.org>
84930
84931         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84932         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84933         * m4/progtest.m4:
84934         Update from GNU gettext 0.14.2.
84935         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84936
84937 2005-02-24  Bruno Haible  <bruno@clisp.org>
84938
84939         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84940         * lib/config.charset: Update from GNU gettext 0.14.2.
84941
84942 2005-02-24  Bruno Haible  <bruno@clisp.org>
84943
84944         * lib/gettext.h: Update from GNU gettext 0.14.2.
84945
84946 2005-02-23  Simon Josefsson  <jas@extundo.com>
84947
84948         * m4/iconvme.m4: New file.
84949
84950 2005-02-23  Jim Meyering  <jim@meyering.net>
84951
84952         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84953         change.
84954         Thanks to Bruno Haible for catching it.
84955
84956 2005-02-22  Simon Josefsson  <jas@extundo.com>
84957
84958         * modules/iconvme: New file.
84959
84960         * MODULES.html.sh: Add iconvme.
84961
84962 2005-02-22  Simon Josefsson  <jas@extundo.com>
84963
84964         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84965
84966 2005-02-22  Simon Josefsson  <jas@extundo.com>
84967
84968         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84969
84970 2005-02-22  Jim Meyering  <jim@meyering.net>
84971
84972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84973         s/ifndef/ifdef/.
84974
84975 2005-02-20  Neil Conway  <neilc@samurai.com>
84976
84977         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84978         returned by OSX/Darwin if the specified buffer is not large
84979         enough for the hostname.
84980
84981 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84982
84983         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84984         pass it to _help, otherwise the latter coredumps trying to
84985         dereference state.root_argp.
84986
84987 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84988
84989         * modules/chdir-long (Depends-on): Add memrchr.
84990         * modules/memrchr (Files): Add lib/memrchr.h.
84991         (Include): "memrchr.h".
84992
84993 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84994
84995         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84996
84997 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         * lib/memrchr.h: New file.
85000         * lib/chdir-long.c: Include it.
85001         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85002         Don't bother including stddef.h.
85003
85004 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85005
85006         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85007         inclusion.
85008         Include <sys/types.h>, for dev_t.
85009         (ME_DUMMY, ME_REMOTE): Move from here....
85010         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85011         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85012         Dmitry V. Levin.
85013         Include mountlist.h first, to test the interface.
85014
85015 2005-01-29  Bruno Haible  <bruno@clisp.org>
85016
85017         * lib/progname.c (program_name): Initialize.
85018         Needed when linking statically on MacOS X.
85019
85020 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85021
85022         Sync from coreutils.
85023         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85024         (Depends-on): Add c-strtod.
85025         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85026
85027 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85028
85029         Sync from coreutils.
85030         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85031
85032         Remove files that are specific to coreutils.
85033         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85034
85035 2005-01-28  Bruno Haible  <bruno@clisp.org>
85036
85037         * modules/javacomp: New file.
85038         * MODULES.html.sh (Java): Add javacomp.
85039
85040 2005-01-28  Bruno Haible  <bruno@clisp.org>
85041
85042         * m4/javacomp.m4: New file, from GNU gettext.
85043
85044 2005-01-28  Bruno Haible  <bruno@clisp.org>
85045
85046         * lib/javacomp.sh.in: New file, from GNU gettext.
85047         * lib/javacomp.h: New file, from GNU gettext.
85048         * lib/javacomp.c: New file, from GNU gettext.
85049
85050 2005-01-26  Simon Josefsson  <jas@extundo.com>
85051
85052         * lib/gai_strerror.c: Use GPL in header.
85053
85054 2005-01-26  Bruno Haible  <bruno@clisp.org>
85055
85056         * modules/javaexec: New file.
85057         * MODULES.html.sh (Java): Add javaexec.
85058
85059 2005-01-26  Bruno Haible  <bruno@clisp.org>
85060
85061         * m4/javaexec.m4: New file, from GNU gettext.
85062
85063 2005-01-26  Bruno Haible  <bruno@clisp.org>
85064
85065         * lib/javaexec.sh.in: New file, from GNU gettext.
85066         * lib/javaexec.h: New file, from GNU gettext.
85067         * lib/javaexec.c: New file, from GNU gettext.
85068
85069 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85070
85071         * modules/lchown (Depends-on): Remove lchown.h
85072
85073 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85074
85075         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85076         must be defined if the header file was not found, in order
85077         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85078
85079 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85080
85081         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85082         initializers for struct pentry_state.
85083         (__argp_error): Check return value of __asprintf
85084         (__argp_failure): Translate error message
85085
85086         * lib/argp-parse.c: Removed braces around the expansion of N_()
85087
85088 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85091         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85092         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85093         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85094         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85095         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85096         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85097         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85098         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85099         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85100         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85101         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85102         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85103         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85104         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85105         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85106         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85107         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85108         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85109         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85110         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85111         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85112         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85113         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85114         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85115         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85116         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85117         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85118         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85119         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85120         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85121         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85122         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85123         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85124         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85125         Use an all-permissive copyright notice, recommended by RMS.
85126
85127 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * modules/chdir-long (Depends-on): Remove mempcpy.
85130
85131 2005-01-21  Jim Meyering  <jim@meyering.net>
85132
85133         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85134         same value as for Solaris 9.
85135
85136         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85137         component length.  This included changing the parameter to be
85138         of type `char *' rather than `char const *'.
85139         * lib/chdir-long.h (chdir_long): Update prototype.
85140
85141         * lib/openat.c (fdopendir, fstatat): New functions.
85142         * lib/openat.h: Include headers required for use of DIR and struct
85143         stat.
85144         [AT_SYMLINK_NOFOLLOW]: Define.
85145         (fdopendir, fstatat): Add prototypes.
85146
85147 2005-01-21  Bruno Haible  <bruno@clisp.org>
85148
85149         * modules/classpath: New file.
85150         * MODULES.html.sh (Java): Add classpath.
85151
85152 2005-01-21  Bruno Haible  <bruno@clisp.org>
85153
85154         * lib/classpath.h: New file, from GNU gettext.
85155         * lib/classpath.c: New file, from GNU gettext.
85156
85157 2005-01-20  Simon Josefsson  <jas@extundo.com>
85158
85159         * modules/version-etc-fsf: New file.
85160
85161 2005-01-20  Simon Josefsson  <jas@extundo.com>
85162
85163         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85164         * lib/version-etc.c: Remove version_etc_copyright.
85165         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85166         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85167
85168 2005-01-20  Simon Josefsson  <jas@extundo.com>
85169
85170         * lib/base64.h (isbase64): Add.
85171
85172         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85173         using a unsigned prototype, don't inline.
85174         (base64_decode): Use it.
85175
85176 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85177
85178         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85179         it.
85180
85181 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85182
85183         * lib/save-cwd.c (save_cwd): Remove code to support the case
85184         where fchdir is missing or flaky.
85185
85186 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85187
85188         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85189
85190 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85191
85192         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85193         AC_LIBSOURCES now does this.
85194         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85195         with new ullong_max module.
85196
85197 2005-01-19  Bruno Haible  <bruno@clisp.org>
85198
85199         * modules/sh-quote: New file.
85200         * MODULES.html.sh (Executing programs): Add sh-quote.
85201
85202 2005-01-19  Bruno Haible  <bruno@clisp.org>
85203
85204         * lib/sh-quote.h: New file, from GNU gettext.
85205         * lib/sh-quote.c: New file, from GNU gettext.
85206
85207 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85208
85209         Merge from coreutils.
85210         * m4/ullong_max.m4: New file.
85211         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85212         (gl_MACROS): Assume localeconv exists.
85213
85214 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         Merge changes from coreutils, as described below in several
85217         changelogs dated today.
85218
85219         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85220         (O_DIRECTORY): Remove; not needed here, since "." must be
85221         a directory.  All uses removed.
85222         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85223         universal on Suns, and we also need to test for IRIX.
85224         Revamp code to use 'if' rather than '#if'.
85225         Avoid unnecessary comparison of cwd->desc to 0.
85226
85227         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85228         for known valid error numbers rather than observed invalid ones.
85229
85230 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85231
85232         * modules/ullong_max: New file.
85233
85234         * modules/chdir-long, modules/openat: New files.
85235         * modules/save-cwd (Depends-on): Depend on chdir-long.
85236         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85237
85238 2005-01-18  Jim Meyering  <jim@meyering.net>
85239
85240         Merge from coreutils.
85241         * m4/chdir-long.m4, m4/openat.m4: New files.
85242         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85243         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85244         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85245         is sane and DOES follow symlinks.  Besides, testing 20 different
85246         systems found no broken chown implementations.
85247         Prompted by a change in rsync's copy of this macro.
85248         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85249
85250         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85251
85252         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85253         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85254         NULL-means-set-to-current-time semantics.
85255         Remove temporary file immediately, rather than waiting
85256         for configure's at-exit trap code to do it.
85257
85258 2005-01-18  Jim Meyering  <jim@meyering.net>
85259
85260         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85261
85262         * lib/utimens.c (futimens): Account for the fact that futimes
85263         can also fail with errno == ENOSYS or errno == ENOENT.
85264         Patch from Dmitry V. Levin.
85265
85266         Change the name of the robust chdir function from chdir to chdir_long.
85267         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85268         (restore_cwd): Use chdir_long, not chdir.
85269         * lib/chdir-long.c: Renamed from chdir.c.
85270         * lib/chdir-long.h: Renamed from chdir.h.
85271         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85272         Hurd.
85273
85274 2005-01-18  Bruno Haible  <bruno@clisp.org>
85275
85276         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85277         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85278         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85279         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85280         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85281         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85282         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85283         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85284         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85285         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85286         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85287         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85288         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85289         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85290         Use an all-permissive copyright notice, recommended by RMS.
85291
85292 2005-01-18  Bob Proulx  <bob@proulx.com>
85293
85294         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85295         simplify offsetof() macro construct to avoid compile failure with
85296         native HP-UX 11.0 ANSI C compiler.
85297
85298 2005-01-17  Bruno Haible  <bruno@clisp.org>
85299
85300         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85301         redundant because stpncpy.m4 takes care of it.
85302
85303 2005-01-17  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85306
85307 2005-01-17  Bruno Haible  <bruno@clisp.org>
85308
85309         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85310         used.
85311
85312 2005-01-17  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/fwriteerror.h (fwriteerror): Change specification to include
85315         fclose.
85316         * lib/fwriteerror.c: Include <stdbool.h>.
85317         (fwriteerror): At the end, close the file stream. Record whether
85318         stdout was already closed.
85319
85320 2005-01-17  Bruno Haible  <bruno@clisp.org>
85321
85322         * lib/execute.c (environ): Declare if needed.
85323         * lib/pipe.c (environ): Likewise.
85324         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85325
85326 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85327
85328         * modules/argp: Depend on vsnprintf
85329
85330 2005-01-10  Jim Meyering  <jim@meyering.net>
85331
85332         * modules/closeout (Depends-on): Add atexit.
85333
85334 2005-01-06  Bruno Haible  <bruno@clisp.org>
85335
85336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85337
85338 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85339
85340         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85341         definitions to be after all include files, to avoid collisions.
85342         Problem reported by Bob Proulx.
85343
85344 2005-01-04  Jim Meyering  <jim@meyering.net>
85345
85346         Changes imported from coreutils.
85347         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85348         as the mkstemp template, use a temporary directory and an
85349         8.3-friendly template to avoid trouble on systems like DJGPP.
85350         Reported by Juan M. Guerrero via Stepan Kasal.
85351         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85352         close. Remove the temporary directory right away, rather than waiting
85353         for configure's at-exit trap code to do it.
85354         Suggestion from Stepan Kasal.
85355
85356 2005-01-01  Simon Josefsson  <jas@extundo.com>
85357
85358         * gnulib-tool: Print #include directives when --import'ing.
85359
85360 2004-12-28  Simon Josefsson  <jas@extundo.com>
85361
85362         * tests/test-base64.c: Include required header files.  Remove
85363         unused variables.
85364
85365 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * modules/error (Depends-on): Remove gettext.
85368
85369 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85370
85371         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85372         not needed.  This removes a dependency on the gettext module.
85373         [defined _LIBC]: Do not include <libintl.h>; not needed.
85374
85375 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85376
85377         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85378         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85379
85380 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85383         HAVE_DECL_STRTOLD.
85384
85385 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * modules/getdate (Depends-on): Remove alloca-opt.
85388
85389 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85392
85393 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85394
85395         * lib/argp-parse.c: Include <stddef.h>.
85396         (alignof, alignto): New macros.
85397         (parser_init): Don't assume that void * is aligned sufficiently
85398         for struct option.
85399
85400         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85401         need to extend the stack.
85402         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85403         large.
85404
85405 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85406
85407         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85408
85409 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85412         (2004-10-24) change.  Apparently this was a false alarm.
85413
85414         * modules/getdate: Depend on alloca-opt, not alloca.
85415
85416 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85419         Remove now-obsolete comment about AIX.
85420         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85421         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85422         (YYMAXDEPTH): New macro.
85423
85424 2004-12-18  Simon Josefsson  <jas@extundo.com>
85425
85426         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85427
85428 2004-12-18  Bruno Haible  <bruno@clisp.org>
85429
85430         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85431
85432 2004-12-18  Bruno Haible  <bruno@clisp.org>
85433
85434         * lib/fatal-signal.c (fatal_signals): Make non-const.
85435         (init_fatal_signals): New function.
85436         (uninstall_handlers, install_handlers): Ignore signals that were set to
85437         SIG_IGN.
85438         (at_fatal_signal): Call init_fatal_signals.
85439         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85440         SIG_IGN.
85441         Reported by Paul Eggert.
85442
85443 2004-12-18  Bruno Haible  <bruno@clisp.org>
85444
85445         * doc/alloca.texi: New file.
85446         * doc/alloca-opt.texi: New file.
85447
85448 2004-12-17  Jim Meyering  <jim@meyering.net>
85449
85450         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85451         Otherwise, install-sh could exit with improper exit status when
85452         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85453
85454 2004-12-16  Simon Josefsson  <jas@extundo.com>
85455
85456         * tests/test-base64.c: Add license.
85457
85458 2004-12-15  Stepan Kasal  <address@hidden>
85459
85460         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85461
85462 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * modules/getcwd (Files): Add m4/d-ino.m4.
85465         Suggested by Mark D. Baushke.
85466
85467 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85468
85469         * lib/getdate.y (textint): New member "negative".
85470         (time_zone_hhmm): New function.
85471         Expect 14 shift-reduce conflicts, not 13.
85472         (o_colon_minutes): New rule.
85473         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85474         (yylex): Set the "negative" member of signed numbers.
85475
85476 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         * doc/getdate.texi (Time of day items, Time zone items):
85479         Describe new formats +00:00, UTC+00:00.
85480
85481 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85484         spurious "-l"s.  Problem reported by Stepan Kasal.
85485
85486 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85487
85488         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85489         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85490
85491 2004-12-04  Simon Josefsson  <jas@extundo.com>
85492
85493         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85494         Vandoorselaere <yoann@prelude-ids.org>.
85495
85496 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85497
85498         Changes imported from coreutils.
85499         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85500         exist.
85501         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85502
85503 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         Changes imported from coreutils.
85506         * lib/hard-locale.c: Assume <locale.h> exists.
85507         Include "strdup.h".
85508         (GLIBC_VERSION): New macro.
85509         (hard_locale): Assume setlocale exists.
85510         Rewrite to avoid #ifdef.
85511         Use strdup rather than malloc + strcpy.
85512         * lib/human.c: Assume <locale.h> exists.
85513         (human_readable): Assume localeconv exists.
85514
85515 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * modules/hard-locale (Depends-on): Add strdup.
85518
85519 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85520
85521         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85522         convert T2, not T.  (Imported from libc.)
85523
85524 2004-11-30  Simon Josefsson  <jas@extundo.com>
85525
85526         * modules/restrict (License): Change to LGPL.
85527
85528 2004-11-30  Simon Josefsson  <jas@extundo.com>
85529
85530         * m4/restrict.m4: Add copyright and copying conditions.
85531
85532 2004-11-30  Simon Josefsson  <jas@extundo.com>
85533
85534         * m4/base64.m4: New file.
85535
85536 2004-11-30  Simon Josefsson  <jas@extundo.com>
85537
85538         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85539         base64.
85540
85541         * tests/test-base64.c: New file.
85542
85543         * modules/base64: New file.
85544
85545 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85546
85547         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85548         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85549
85550         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85551
85552 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85553
85554         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85555         (__getcwd.c): Don't restore errno; glibc doesn't.
85556         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85557         first, falling back to our code only if its results look suspicious.
85558         Ensure that the resulting buffer is only as large as necessary.
85559
85560         * lib/readutmp.c: Include readutmp.h first.
85561         Include <errno.h>, since readutmp.h no longer does that.
85562         * lib/readutmp.h: Don't include <errno.h>,
85563         <sys/param.h>, <time.h>; not needed to establish interface.
85564         (errno): Remove decl.
85565         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85566         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85567         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85568
85569 2004-11-28  Simon Josefsson  <jas@extundo.com>
85570
85571         * lib/base64.h, base64.c: New file.
85572
85573 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85574
85575         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85576
85577 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85578
85579         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85580         (Depends-on): Remove pathmax, same.  Add mempcpy.
85581         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85582         (Makefile.am): Append getcwd.h to lib_SOURCES.
85583         (Include): Add getcwd.h.
85584         (Maintainer): Change from Jim Meyering to "all, glibc",
85585         since getdate now uses intended-for-glibc code.
85586         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85587         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85588
85589 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85590
85591         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85592         HP's ANSI C compiler.
85593         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85594         Declaring int functions causes warnings on some modern systems and
85595         shouldn't be needed to compile on ancient ones.
85596         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85597         defined.
85598
85599         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85600         with the following changes.
85601         (__set_errno): Parenthesize properly.
85602         Include <stdbool.h>.
85603         (MIN, MAX, MATCHING_INO): New macros.
85604         (__getcwd): Define with prototype, not K&R form.
85605         Use heuristics to allocate default buffer on stack if possible.
85606         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85607         behavior, and to avoid the PATH_MAX limit when computing
85608         ../../../../...
85609         Use MATCHING_INO to compare inode number to file.
85610         Check for arithmetic overflow in size calculations.
85611         Fix bug in reallocation of dot array that caused getcwd to fail
85612         on directories nested deeper than 75.
85613         Be more careful about saving errno on error.
85614         Do not use realloc; use only free+malloc, as this is a bit
85615         more flexible and avoids a needless copy operation.
85616         Do not inspect st_dev and st_ino for symbolic links; POSIX
85617         doesn't specify the latter.
85618         Check for closedir errors.
85619         Avoid needless casts.
85620         Use "#ifdef weak_alias" around weak_alias, to be like other
85621         glibc code.
85622         The following changes to getcwd.c have effect only when used in
85623         gnulib; they have no effect inside glibc proper.
85624         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85625         as alloca isn't used.
85626         (alloca, __alloca): Likewise.
85627         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85628         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85629         unconditionally, as gnulib assumes C89 or better.
85630         Do not include <sys/param.h>.
85631         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85632         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85633         better.
85634         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85635         Include <dirent.h> in a way that is compatible with modern Autoconf.
85636         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85637         New macros, if not already defined.
85638         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85639         Use "_LIBC", not "defined _LIBC", for consistency.
85640         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85641         a mempcpy module.
85642         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85643         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85644         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85645         credit only to Jim Meyering and adjust the copyright dates.
85646         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85647         <stdlib.h>, <unistd.h>, "pathmax.h".
85648         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85649         (INITIAL_BUFFER_SIZE): Remove.
85650         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85651
85652 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85653
85654         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85655         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85656         Use the _ONCE methods, for efficiency.
85657         Check for fcntl.h.  In test program, include <errno.h>
85658         and <fcntl.h> if available.  Remove old K&R cruft from
85659         test program.  Check for common errors in GNU/Linux,
85660         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85661         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85662         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85663         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85664         name accordingly.
85665         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85666         accommodate new getcwd.c.
85667         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85668         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85669         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85670         that's all we need now.
85671
85672 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85673
85674         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85675         argp-parse.c depends on getopt internals, that means we should
85676         always use our getopt, to be on the safe side.
85677         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85678         order not to spoil the result of an eventual previous invocation
85679         of gl_GETOPT_SUBSTITUTE.
85680
85681 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85682
85683         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85684         redefinition warnings. To avoid them, include the defines
85685         in `#if !defined __need_getopt ... #endif'. The only place
85686         where __getopt_argv_const is used is in definitions
85687         of getopt_long and getopt_long_only below, which are as well
85688         protected by `#ifndef __need_getopt'.
85689         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85690         __need_getopt after including <stdio.h> and <unistd.h> These
85691         headers might have defined it.
85692
85693 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85694
85695         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85696
85697 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85698
85699         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85700         (futimens): New function, which uses futimes if available.
85701         (futimens, utimens): Support timespec==NULL, with same semantics
85702         as utime and utimens.
85703         * lib/utimens.h (futimens): New decl.
85704
85705 2004-11-23  Jim Meyering  <jim@meyering.net>
85706
85707         * lib/getopt_.h: Remove trailing blanks.
85708
85709 2004-11-23  Jim Meyering  <jim@meyering.net>
85710
85711         * lib/__fpending.c: Add comment.
85712
85713 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         * modules/canonicalize (Depends-on): Add xreadlink.
85716         Problem reported by James Youngman.
85717
85718 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85719
85720         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85721         New macros.
85722         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85723         optopt): Use them instead of invoking ## directly; otherwise, the
85724         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85725
85726 2004-11-19  Bruno Haible  <bruno@clisp.org>
85727
85728         * lib/strtok_r.c: Move comments from here...
85729         * lib/strtok_r.h: ... to here.
85730
85731 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85732
85733         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85734         implementations that mishandle size_t overflow.
85735
85736 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85739         might fail.  Problem reported by Yoann Vandoorselaere.
85740         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85741         implementations that mishandle size_t overflow.
85742
85743 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85744
85745         * modules/canon-host (Depends-on): Add strdup.
85746
85747 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85748
85749         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85750
85751 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85752
85753         * lib/canon-host.c: Include "strdup.h".
85754         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85755         Use strdup instead of malloc/strcpy to duplicate strings.
85756
85757         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85758         (human_space_before_unit): New constant.
85759         * lib/human.c (human_readable): Support it.
85760
85761         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85762         (xgetcwd): Set errno correctly when failing.
85763         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85764         the failure is actually due to a PATH_MAX problem.
85765
85766         Further getopt changes to make it more likely that glibc will
85767         buy the changes back.
85768         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85769         (getopt): Use it, so to preserve glibc semantic
85770         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85771         when compiling for libc.
85772         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85773         (getopt_long, getopt_long_only): Use it.
85774
85775         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85776         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85777         (getopt): Argv is now char * const *, as per standard.
85778         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85779         not char *__getopt_argv_const *.
85780         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85781         _getopt_long_only_r): Likewise.
85782         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85783         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85784         _getopt_long_r, _getopt_long_only_r): Likewise.
85785         * lib/getopt_.h (__getopt_argv_const): Remove.
85786         (getopt): Argv is now char * const *, as per standard.
85787
85788         * lib/getdate.y (tORDINAL): New token.
85789         (day, relunit): Allow it for relative times.
85790         (relative_time_table): Use tORDINAL for ordinals.
85791
85792 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85793
85794         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85795         Document that "second" isn't allowed as an ordinal number.
85796
85797 2004-11-16  Jim Meyering  <jim@meyering.net>
85798
85799         * modules/closeout (Depends-on): Add fpending.
85800
85801 2004-11-15  Jim Meyering  <jim@meyering.net>
85802
85803         * lib/closeout.c: Include "__fpending.h" once again.
85804         Include <stdbool.h>.
85805         (close_stdout): Don't fail just because stdout was closed initially,
85806         since some programs don't write to stdout in the normal course of
85807         operation (other than --version and --help), and we don't want this
85808         function to make e.g. `touch file >&-' fail.
85809         But do fail if it was closed and someone has tried to write to it.
85810         E.g., `printf foo >&-' must fail.
85811
85812 2004-11-13  Jim Meyering  <jim@meyering.net>
85813
85814         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85815
85816 2004-11-12  Simon Josefsson  <jas@extundo.com>
85817
85818         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85819         small doc fix is still pending.
85820
85821 2004-11-11  Simon Josefsson  <jas@extundo.com>
85822
85823         * modules/strtok_r: New file.
85824
85825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85826         strtok_r.
85827
85828 2004-11-11  Simon Josefsson  <jas@extundo.com>
85829
85830         * m4/strtok_r.m4: New file.
85831
85832         * m4/getopt.m4: Replace opterr.
85833
85834 2004-11-11  Simon Josefsson  <jas@extundo.com>
85835
85836         * lib/strtok_r.h, strtok_r.c: New file.
85837
85838 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85841         of replacing opterr, getopt, etc.  This should handle the
85842         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85843
85844 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85847         we can stop lying to compilers about the constness of argv when we
85848         are compiled outside glibc.
85849         (getopt, getopt_long, getopt_long_only): Use it.
85850         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85851         _getopt_internal, getopt): Likewise.
85852         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85853         _getopt_long_only_r): Likewise.
85854         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85855         _getopt_long_r, _getopt_long_only_r): Likewise.
85856
85857         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85858         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85859         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85860         the other external symbols.
85861         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85862         declaration, since the above renaming now works around collisions.
85863
85864 2004-11-11  Jim Meyering  <jim@meyering.net>
85865
85866         * lib/linebreak.c: Remove trailing blanks.
85867         * lib/alloca_.h: Likewise.
85868         * lib/acosl.c: Likewise.
85869         * lib/euidaccess.c: Likewise.
85870         * lib/allocsa.h: Likewise.
85871
85872 2004-11-10  Simon Josefsson  <jas@extundo.com>
85873
85874         * m4/getaddrinfo.m4: New file.
85875
85876 2004-11-10  Simon Josefsson  <jas@extundo.com>
85877
85878         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85879
85880 2004-11-10  Simon Josefsson  <jas@extundo.com>
85881
85882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85883         getaddrinfo.
85884
85885         * modules/getaddrinfo: New file.
85886
85887 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85890
85891 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85892
85893         * lib/mktime.c (SHR): New macro, which is a portable
85894         substitute for >> that should work even on Crays.
85895         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85896         Problem reported by Mark D. Baushke in
85897         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85898         * lib/getdate.y (SHR): Likewise.
85899         (tm_diff): Use it.
85900         * lib/strftime.c (SHR): Likewise.
85901         (tm_diff): Use it.
85902         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85903         quote_these_too, so that right shifts are well defined.  All uses
85904         changed.
85905
85906 2004-11-10  Jim Meyering  <jim@meyering.net>
85907
85908         Ensure that no close failure goes unreported.
85909         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85910         return early when it seems there's nothing to flush.
85911         Don't include __fpending.h.
85912
85913 2004-11-10  Jim Meyering  <jim@meyering.net>
85914
85915         * modules/closeout (Depends-on): Remove fpending.
85916
85917 2004-11-10  Jim Meyering  <jim@meyering.net>
85918
85919         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85920
85921 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85924         gl_FUNC_STRFTIME.
85925         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85926         and AC_REQUIRE when possible, to avoid duplicate checks.
85927         Check for <wchar.h>.
85928
85929 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85930
85931         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85932
85933 2004-11-09  Bruno Haible  <bruno@clisp.org>
85934
85935         * m4/sockpfaf.m4: New file.
85936
85937 2004-11-05  Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85940         Reported by Mark D. Baushke <mdb@cvshome.org>.
85941
85942 2004-11-04  Bruno Haible  <bruno@clisp.org>
85943
85944         2004-09-11  Bruno Haible  <bruno@clisp.org>
85945                 * allocsa.valgrind: New file.
85946         2004-02-06  Bruno Haible  <bruno@clisp.org>
85947                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85948                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85949                 Reported by Christopher Seip <chris.seip@hp.com>.
85950
85951 2004-11-04  Bruno Haible  <bruno@clisp.org>
85952
85953         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85954         (Makefile.am): Distribute it.
85955
85956 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85959         with errno == ERANGE if the buffer is too small.
85960         Problem reported by Mark D. Baushke.
85961
85962 2004-11-03  Albert Chin  <china@thewrittenword.com>
85963             Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85966         equivalent, substitute $ac_type for equivalent type rather than
85967         blindly using uint32_t *always* which won't work if uint32_t is not
85968         available.  Define _UINT32_T to work around typedef of uint32_t if
85969         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85970         2.5.1.
85971
85972 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85973
85974         * m4/jm-macros.m4: Sync from coreutils.
85975         (gl_MACROS): Check for mbrlen, for pathchk.
85976         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85977
85978 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * lib/xreadlink.c (MAXSIZE): New macro.
85981         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85982         size does not exceed MAXSIZE.  Avoid cast.
85983         As suggested by Mark D. Baushke in
85984         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85985         if readlink fails with buffer size just under MAXSIZE, try again
85986         with MAXSIZE.
85987
85988 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85989
85990         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85991
85992 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85993         and  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85996         (get_date): Overparenthesize to avoid GCC warning.
85997
85998 2004-11-02  Bruno Haible  <bruno@clisp.org>
85999
86000         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86001         returns void.
86002
86003 2004-11-02  Bruno Haible  <bruno@clisp.org>
86004
86005         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86006         function returns void.
86007
86008 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86009
86010         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86011         fflush_unlocked, flockfile, funlockfile, funlockfile,
86012         fputs_unlocked, putc_unlocked.
86013
86014 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86015
86016         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86017         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86018         already declared.
86019
86020 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86021
86022         * modules/getdate (Files): Add doc/getdate.texi.
86023         (Depends-on): Add setenv, xalloc.
86024
86025 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86026
86027         * lib/getdate.y: Add support for TZ="foo" within a date string.
86028         Fix some bugs near time_t boundaries.  Reject dates with
86029         out-of-range components, e.g., "Sept 31".
86030         Include <stdlib.h>, "setenv.h", "xalloc.h".
86031         (ISDIGIT_LOCALE): Remove; unused.
86032         Note that the TZ and time functions used here are not reentrant.
86033         (mktime_ok, get_tz): New functions.
86034         (TZBUFSIZE): New constant.
86035         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86036         This requires that we sometimes generate our own TZ="XXX..." setting.
86037
86038 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86039
86040         * doc/getdate.texi: New file, from coreutils with modifications for
86041         the new TZ parsing.
86042
86043 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86044
86045         * lib/mktime.c (not_equal_tm): Remove redundant check.
86046
86047 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86048
86049         * modules/regex (lib_SOURCES): Add regex.c.
86050         Reported by James Youngman in
86051         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86052
86053 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86054
86055         * lib/getdate.y: Use Bison 1.875 features, and some minor
86056         code cleanups.  This change does not affect semantics.
86057         Don't include <stdlib.h>; no longer needed.
86058         Don't include unlocked-io.h; only the "#if TEST" code uses
86059         stdio, and performance isn't crucial there.
86060         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86061         Bison 1.875 features as described below.
86062         All uses of "PC." replaced by "pc->".
86063         (YYSTYPE): Add a forward declaration.
86064         (yylex, yyerror): Use full prototypes in forward decls.
86065         Use "%pure-parser" rather than obsolescent "%pure_parser".
86066         Use %parse-param and %lex-param instead of obsolescent
86067         YYPARSE_PARAM and YYLEX_PARAM.
86068         (meridian_table, month_and_day_table, time_units_table,
86069         relative_time_table, time_zone_table, military_table,
86070         lookup_zone, lookup_word, get_date):
86071         Use NULL instead of 0 where appropriate.
86072         (to_hour): Avoid abort (), to avoid a dependency on
86073         stdlib.h.
86074         (yyerror, yylex): Now accepts parser_control * arg.
86075         (main) [TEST]: Use '\0' rather than 0 for char.
86076
86077 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86078
86079         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86080
86081 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86084         It's now the caller's responsibility to handle the case where
86085         !HAVE_GETPAGESIZE && !defined getpagesize.
86086
86087         * lib/mktime.c (leapyear): Arg is long int, not int.
86088
86089 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86090
86091         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86092
86093 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86096         missing.  Problem reported by James Youngman.
86097
86098 2004-10-16  Simon Josefsson  <jas@extundo.com>
86099
86100         * gnulib-tool: Fix comments.  Fix parse problem.
86101         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86102
86103 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86106         implementation of getopt_long.  Problem reported by Alexander Taler in:
86107         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86108
86109 2004-10-15  Bruno Haible  <bruno@clisp.org>
86110
86111         * gnulib-tool: Untabify. Initialize supplied_libname.
86112         (func_usage): More homogenous output.
86113         (func_modules_transitive_closure, func_modules_to_filelist,
86114         func_emit_lib_Makefile_am): New functions.
86115         (func_import): New function, extracted from big case statement. Use
86116         func_get_license, func_modules_transitive_closure,
86117         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86118         opt_lgpl. Don't use test -a, as it's not portable.
86119         (func_create_testdir): Use func_modules_transitive_closure,
86120         func_modules_to_filelist, func_emit_lib_Makefile_am.
86121
86122 2004-10-15  Bruno Haible  <bruno@clisp.org>
86123
86124         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86125
86126 2004-10-15  Bruno Haible  <bruno@clisp.org>
86127
86128         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86129         the portions belonging to each module.
86130         Suggested by Derek Robert Price <derek@ximbiot.com>.
86131
86132 2004-10-12  Simon Josefsson  <jas@extundo.com>
86133
86134         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86135         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86136         to real functions.
86137
86138 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86139
86140         * modules/vsnprintf: New file.
86141
86142 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86143
86144         * m4/vsnprintf.m4: New file.
86145
86146 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86147
86148         * lib/vsnprintf.h: New file.
86149         * lib/vsnprintf.c: New file.
86150
86151 2004-10-11  Bruno Haible  <bruno@clisp.org>
86152
86153         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86154         vsnprintf.
86155
86156 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86157
86158         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86159
86160 2004-10-07  Bruno Haible  <bruno@clisp.org>
86161
86162         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86163         fits into the provided buffer.
86164
86165 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86166
86167         * lib/diacrit.c, diacrit.h: Add GPL notice.
86168
86169         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86170         notice.
86171         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86172         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86173         This avoids a potential constant-folding bug.
86174
86175 2004-10-05  Bruno Haible  <bruno@clisp.org>
86176
86177         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86178         for the declaration of strsep.
86179
86180 2004-10-05  Bruno Haible  <bruno@clisp.org>
86181
86182         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86183
86184 2004-10-04  Simon Josefsson  <jas@extundo.com>
86185
86186         * modules/memmem: New file.
86187         * tests/test-memmem.c: New file.
86188         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86189
86190 2004-10-04  Simon Josefsson  <jas@extundo.com>
86191
86192         * m4/memmem.m4: New file.
86193
86194 2004-10-04  Simon Josefsson  <jas@extundo.com>
86195
86196         * lib/memmem.h: New file.
86197         * lib/memmem.c: New file, taken from glibc.
86198
86199 2004-10-04  Simon Josefsson  <jas@extundo.com>
86200
86201         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86202         '#ifdef USE_UNLOCKED_IO'.
86203
86204 2004-10-04  Simon Josefsson  <jas@extundo.com>
86205
86206         * config/srclist.txt: Add memmem from glibc.
86207
86208 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86209
86210         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86211
86212         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86213         modules/exclude, modules/getdate, modules/getline,
86214         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86215         modules/getusershell, modules/linebuffer, modules/md5,
86216         modules/mountlist, modules/posixtm, modules/readtokens,
86217         modules/readutmp, modules/regex, modules/sha1,
86218         modules/version-etc, modules/yesno:
86219         Remove dependency on unlocked-io.
86220
86221 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86222
86223         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86224
86225         * m4/unlocked-io.m4: Add copyright notice.
86226         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86227
86228 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86229
86230         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86231         * lib/xmalloc.c (xmemdup): Likewise.
86232         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86233         XFREE): Remove these long-obsolescent macros.
86234         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86235         * lib/xstrdup.c: Remove.
86236
86237         * lib/regex.c (re_comp): Cast gettext return value to char *,
86238         Problem reported by Martin Neitzel via Mark D. Baushke.
86239
86240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86243         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86244         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86245         regex.c, sha1.c, version-etc.c, yesno.c:
86246         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86247         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86248         the includer's responsibility.
86249
86250         Sync from coreutils.
86251
86252         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86253         points to the start of a string, as the C Standard says the
86254         resulting behavior is undefined.
86255
86256         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86257         simple -> simple_backups, numbered_existing ->
86258         numbered_existing_backups, numbered -> numbered_backups
86259         to avoid shadowing problems.  All uses changed.
86260         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86261         * lib/backupfile.c (check_extension, numbered_backup):
86262         Rename locals to avoid shadowing 'basename'.
86263         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86264         once.
86265
86266         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86267         * lib/.cvsignore: Add getopt.h.
86268
86269 2004-10-04  Bruno Haible  <bruno@clisp.org>
86270
86271         * modules/README: New file.
86272         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86273         not a module.
86274
86275 2004-10-02  Jim Meyering  <jim@meyering.net>
86276
86277         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86278
86279 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86280
86281         * modules/strsep: New file.
86282
86283 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86284
86285         * m4/strsep.m4: New file.
86286
86287 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86288
86289         * lib/strsep.h: New file.
86290         * lib/strsep.c: New file.
86291
86292 2004-10-01  Simon Josefsson  <jas@extundo.com>
86293
86294         * lib/snprintf.c (snprintf): Handle size==0.
86295
86296 2004-10-01  Simon Josefsson  <jas@extundo.com>
86297             Bruno Haible  <bruno@clisp.org>
86298
86299         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86300         (snprintf): Declare 'args'.
86301
86302 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86303
86304         * lib/snprintf.c: Remove comments as to why each header is needed.
86305
86306 2004-10-01  Bruno Haible  <bruno@clisp.org>
86307
86308         * MODULES.html.sh: Add strsep.
86309
86310 2004-09-30  Simon Josefsson  <jas@extundo.com>
86311
86312         * modules/snprintf: New file.
86313
86314 2004-09-30  Simon Josefsson  <jas@extundo.com>
86315
86316         * m4/snprintf.m4: New file.
86317
86318 2004-09-30  Simon Josefsson  <jas@extundo.com>
86319
86320         * lib/snprintf.h, lib/snprintf.c: New files.
86321
86322 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86323
86324         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86325         (hol_entry_help): Never translate an empty string.
86326         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86327         * lib/argp.h (OPTION_NO_TRANS): New option.
86328
86329 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86330
86331         * modules/argp (Maintainer): Replace Simon Josefsson
86332         by Sergey Poznyakoff.
86333
86334 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86335
86336         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86337         changes merged back into glibc.
86338
86339 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86342
86343 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86344
86345         * lib/xvasprintf.c: Include xalloc.h.
86346         (xvasprintf): Use xalloc_die, not xmalloc_die.
86347
86348 2004-09-29  Bruno Haible  <bruno@clisp.org>
86349
86350         * modules/alloca-opt: New file, derived from modules/alloca.
86351         * modules/allocsa: Depend on alloca-opt instead of alloca.
86352         * modules/setenv: Likewise.
86353         * modules/vasnprintf: Likewise.
86354         * MODULES.html.sh: Add alloca-opt.
86355
86356 2004-09-28  Simon Josefsson  <jas@extundo.com>
86357
86358         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86359         LGPL, and to replace license template from GPL to LGPL.
86360
86361 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * modules/dummy: Change license to LGPL.
86364
86365 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86366
86367         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86368
86369 2004-09-24  Simon Josefsson  <jas@extundo.com>
86370
86371         * modules/minmax (License): Change from GPL to LGPL.
86372
86373 2004-09-23  Simon Josefsson  <jas@extundo.com>
86374
86375         * gnulib-tool (--import): Typo.
86376
86377 2004-09-23  Simon Josefsson  <jas@extundo.com>
86378
86379         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86380
86381 2004-09-22  Bruno Haible  <bruno@clisp.org>
86382
86383         * modules/*: Add 'License' field.
86384         * gnulib-tool: Accept --extract-license option.
86385         (func_get_license): New function.
86386
86387 2004-09-21  Bruno Haible  <bruno@clisp.org>
86388
86389         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86390         Reported by Simon Josefsson.
86391
86392 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86395         gl_AC_TYPE_LONG_LONG.
86396
86397 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86398
86399         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86400
86401 2004-09-18  Simon Josefsson  <jas@extundo.com>
86402         and  Paul Eggert  <eggert@cs.ucla.edu>
86403
86404         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86405         calls with autoreconf.  Define GL_LIB.
86406
86407 2004-09-14  Karl Berry  <karl@gnu.org>
86408
86409         * config/srclist.txt: unsync setenv.c, sigh.
86410
86411 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86412
86413         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86414         Problem reported by Bruno Haible in:
86415         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86416
86417 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86418
86419         * config/srclist.txt: Comment out argp-pvh.c.
86420
86421 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86422
86423         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86424         in case some system header has #define'd it.  Problem reported by
86425         Soeren D. Schulze in
86426         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86427
86428 2004-09-09  Karl Berry  <karl@gnu.org>
86429
86430         * regex.[ch]: delete from the root.  These were supposed to be
86431                 synced with emacs cvs, but this has not happened for about
86432                 a year, and anyway nothing else uses emacs regex.[ch].
86433                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86434                 lib/regex[.ch] is untouched.
86435
86436 2004-09-09  Bruno Haible  <bruno@clisp.org>
86437
86438         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86439
86440 2004-09-09  Bruno Haible  <bruno@clisp.org>
86441
86442         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86443         modifications.
86444         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86445
86446 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86447
86448         * modules/xvasprintf: New file.
86449         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86450
86451 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86452
86453         * lib/xvasprintf.h: New file.
86454         * lib/xvasprintf.c: New file.
86455         * lib/xasprintf.c: New file.
86456
86457 2004-09-08  Bruno Haible  <bruno@clisp.org>
86458
86459         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86460
86461 2004-09-08  Bruno Haible  <bruno@clisp.org>
86462
86463         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86464         length is > INT_MAX.
86465         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86466         more.
86467
86468 2004-09-08  Bruno Haible  <bruno@clisp.org>
86469
86470         * lib/stdint_.h: New file, taken from GNU clisp.
86471
86472 2004-09-08  Bruno Haible  <bruno@clisp.org>
86473             Oskar Liljeblad  <oskar@osk.mine.nu>
86474
86475         * modules/stdint: New file.
86476         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86477
86478 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86479
86480         Import from coreutils.
86481         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86482         strings on unbounded length.  alloca's performance benefits aren't
86483         that important here.
86484         (V_STRDUP): Remove.
86485         (parse_with_separator): New function, with most of the internals
86486         of the old parse_user_spec.  Allow user to omit both user and group,
86487         for compatibility with FreeBSD.
86488         Clone only the user name, not the entire spec.
86489         Do not set *uid, *gid unless entirely successful.
86490         Avoid memory leak in some failing cases.
86491         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86492         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86493         (parse_user_spec): Rewrite to use parse_with_separator.
86494
86495 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86496
86497         * modules/userspec: Don't depend on alloca.
86498
86499 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86500
86501         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86502
86503 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86504
86505         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86506         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86507         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86508
86509 2004-08-16  Simon Josefsson  <jas@extundo.com>
86510
86511         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86512         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86513         Add --dry-run for --import.
86514         Let user provided command line parameters override configure.ac
86515         settings.
86516
86517 2004-08-12  Simon Josefsson  <jas@extundo.com>
86518
86519         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86520         as discussed with Paul Eggert in threads rooted at
86521         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86522         and
86523         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86524         Before, the test was empty, and relied on ELIDE_CODE in source
86525         code.)
86526         (gl_PREREQ_GETOPT): New macro.
86527         (gl_GETOPT): Use them.
86528
86529 2004-08-12  Simon Josefsson  <jas@extundo.com>
86530
86531         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86532         * lib/getopt_.h: Renamed from getopt.h.
86533
86534 2004-08-12  Simon Josefsson  <jas@extundo.com>
86535
86536         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86537         Change default library name from libfoo to libgnu.
86538         Now, if you have a configure.ac that says:
86539                 gl_SOURCE_BASE(gl)
86540                 gl_M4_BASE(gl/m4)
86541                 gl_MODULES(error getopt etcetera)
86542                 gl_INIT
86543         you can import all you need by running:
86544                 ../gnulib/gnulib-tool --import
86545
86546         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86547         (Makefile.am): Rewrite, use logic from argz.
86548         (Include): Use <getopt.h> instead of "getopt.h".
86549
86550 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86551
86552         * modules/argp (Files): Add m4/unlocked-io.m4.
86553         (Depends-on): Add extensions.
86554
86555 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86556
86557         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86558         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86559         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86560         Check for program_invocation_name, program_invocation_short_name,
86561         flockfile, funlockfile, features.h, _getopt_long_only_r.
86562
86563 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86564
86565         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86566         its complicated substitute.
86567         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86568         and program_invocation_name.
86569         (__argp_basename) [!_LIBC]: Remove; the only use was
86570         replaced by its body.
86571         (__argp_short_program_name): Change condition from
86572         !defined __argp_short_program_name to
86573         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86574         to match argp-namefrob.h.
86575         (__argp_failure): Don't assume strerror_r returns char *.
86576         * lib/argp-parse.c (N_): Define unconditionally.
86577         (argp_default_options): Fill out initializers with 0 to avoid
86578         gcc warnings.
86579
86580 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86581
86582         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86583         getopt1.c.
86584
86585 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86586
86587         Merge from coreutils.
86588
86589         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86590
86591         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86592         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86593
86594 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86595
86596         Merge from coreutils.
86597
86598         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86599         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86600         for Reliant Unix 5.43.
86601
86602         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86603         (union fooround): Use uintmax_t, not long int.
86604         The rest is a merge from libc:
86605         [defined _LIBC]: Include <shlib-compat.h>.
86606         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86607
86608         * lib/settime.c (settime): Recode to avoid warning with
86609         Sun Forte C 6U2.
86610
86611         * lib/strverscmp.c: Convert to UTF-8.
86612
86613 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86614
86615         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86616         m4/uintmax_t.m4.
86617
86618 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86619
86620         * modules/xalloc-die: New file.
86621         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86622
86623         * modules/md5 (Files): Add m4/uint32_t.m4.
86624         * modules/sha1: Renamed from modules/sha.
86625         (Files):
86626         Rename lib/sha.h to lib/sha1.h.
86627         Rename lib/sha.c to lib/sha1.c.
86628         Rename m4/sha.m4 to m4/sha1.m4.
86629         (lib_SOURCES): Likewise.
86630         (configure.ac): Rename gl_SHA to gl_SHA1.
86631         (Include): sha.h -> sha1.h.
86632
86633 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86634
86635         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86636         * m4/sha1.m4: Renamed from sha.m4.
86637         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86638
86639 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86640
86641         * lib/obstack.h (obstack_empty_p):
86642         Don't assume that chunk->contents is suitably aligned.
86643         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86644         Likewise. Problem reported by Benno in
86645         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86646
86647         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86648         readable.  This could be improved further but it'd take some work.
86649
86650 2004-08-08  Simon Josefsson  <jas@extundo.com>
86651
86652         * modules/xgethostname (Depends-on): Remove exit and error (not
86653         used).
86654
86655         * modules/getpass-gnu: Add getpass.h.
86656         (Depends-on): Add stdbool.
86657         * modules/getpass: Add getpass.h.
86658
86659 2004-08-08  Simon Josefsson  <jas@extundo.com>
86660
86661         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86662         Check getpass declaration.
86663
86664 2004-08-08  Simon Josefsson  <jas@extundo.com>
86665
86666         * lib/xgethostname.c: Don't include error.h (not used).
86667
86668         * lib/getpass.h: Add.
86669         * lib/getpass.c: Include getpass.h first.
86670
86671 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86672
86673         * lib/xalloc-die.c: New file.
86674         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86675         All uses removed.
86676         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86677         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86678         xalloc-die.c.
86679         (_, N_, xalloc_die): Move to xalloc-die.c.
86680         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86681         so that we needn't mess with xalloc_msg_memory_exhausted.
86682
86683         * lib/sha1.h: Renamed from sha.h.
86684         (SHA1_H): Renamed from _SHA_H.
86685         (sha1_ctx): Renamed from sha_ctx.
86686         (sha1_init_ctx): Renamed from sha_init_ctx.
86687         (sha1_process_block): Renamed from sha_process_block.
86688         (sha1_process_bytes): Renamed from sha_process_bytes.
86689         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86690         (sha1_read_ctx): Renamed from sha_read_ctx.
86691         (sha1_stream): Renamed from sha_stream.
86692         (sha1_buffer): Renamed from sha_buffer.
86693         * lib/sha1.c: Likewise; renamed from sha.c.
86694         Do not include <sys/types.h>.
86695         Include <stddef.h> rather than <stdlib.h>.
86696
86697 2004-08-08  Bruno Haible  <bruno@clisp.org>
86698
86699         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86700         FILESYSTEM_PREFIX_LEN.
86701         * lib/progreloc.c: Likewise.
86702         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86703
86704 2004-08-06  Simon Josefsson  <jas@extundo.com>
86705
86706         * modules/progname (Depends-on): Don't depend on stdbool.
86707
86708 2004-08-06  Simon Josefsson  <jas@extundo.com>
86709
86710         * modules/getsubopt: New file.
86711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86712         getsubopt.
86713
86714 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86715
86716         More merge from coreutils.
86717
86718         * m4/utimens.m4, m4/utimecmp.m4: New files.
86719         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86720         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86721         prereq.m4, sha.m4: Import changes from coreutils.
86722
86723 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86724
86725         More merge from coreutils.
86726         * modules/raise, modules/readtokens0, modules/utimens:
86727         * modules/utimecmp, module/xnanosleep: New files.
86728         * modules/strftime: Add lib/strftime.h.
86729         Change include from <time.h> to "strftime.h".
86730         * modules/yesno: Add lib/yesno.h.
86731         * modules/backupfile: Remove lib/addext.c.
86732         * modules/euidaccess: Add stat-macros.h.
86733         * modules/canonicalize, modules/euidaccess,
86734         modules/filemode, modules/lchown, modules/makepath,
86735         modules/rmdir, modules/stat: Likewise.
86736
86737 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86738
86739         Merge from tar.
86740         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86741         SIZE_MAX is a valid preprocessor constant.
86742         (__argp_basename): Change from "#ifndef _LIBC"
86743         to "#ifndef __argp_short_program_name", so that
86744         we don't compile these functions for tar.
86745
86746         More merges from coreutils.
86747         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86748         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86749         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86750         * lib/addext.c: Remove; no longer needed.
86751         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86752         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86753         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86754         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86755         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86756         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86757         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86758         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86759         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86760         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86761         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86762         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86763         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86764         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86765         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86766         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86767         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86768         Import changes from coreutils.
86769
86770 2004-08-05  Simon Josefsson  <jas@extundo.com>
86771
86772         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86773
86774 2004-08-05  Simon Josefsson  <jas@extundo.com>
86775
86776         * m4/getsubopt.m4: New file.
86777
86778 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86779
86780         Merge from coreutils.
86781
86782         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86783         * m4/getcwd-path-max.m4: New files.
86784
86785         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86786         FILESYSTEM_PREFIX_LEN ->
86787         FILE_SYSTEM_PREFIX_LEN.
86788         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86789         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86790         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86791         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86792
86793         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86794         prerequisite modules now handle the DOS stuff.
86795         Don't check for unistd.h.
86796
86797 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86798
86799         Merge from coreutils.
86800
86801         * lib/.gdb-history: Remove; this doesn't belong here.
86802
86803         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86804         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86805         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86806         * lib/getcwd.c: New files.
86807
86808         * lib/dirname.h: Include <stdbool.h>.
86809         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86810         for consistency with POSIX terminology.  All uses changed.
86811         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86812         (strip_trailing_slashes): Use bool for booleans.
86813         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86814
86815         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86816         sometimes returns a positive errno value even when it succeeds.
86817         (print_errno_message) [!LIBC]: Fall back on strerror if
86818         __strerror_r fails.
86819
86820         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86821         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86822         (longest_relative_suffix): New function.
86823         (path_concat): Use it.  Assume first argument is not NULL.
86824         Port to DOS.  Omit redundant separators.
86825         Report an error instead of returning NULL.
86826         Use mempcpy instead of memcpy.
86827         (xpath_concat): Remove: not declared or used.
86828
86829         * lib/same.h: Include <stdbool.h>
86830         (same_name): Return bool, not int.
86831         * lib/same.c (same_name): Likewise.
86832         (errno): Don't declare; we assume C89 or better now.
86833
86834         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86835         if not already defined.
86836
86837         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86838         * lib/dup-safer.c (errno): Likewise.
86839
86840 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86841
86842         Merge from coreutils.
86843         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86844         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86845         * modules/path-concat: Don't depend on strdup.
86846
86847 2004-08-03  Simon Josefsson  <jas@extundo.com>
86848
86849         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86850         * lib/progname.h: Don't include stdbool.h.
86851
86852 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86853
86854         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86855         * MODULES.html.sh (func_all_modules): Remove fatal.
86856
86857 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86858
86859         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86860
86861 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86862
86863         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86864         working.
86865
86866 2004-08-02  Simon Josefsson  <jas@extundo.com>
86867
86868         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86869         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86870         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86871
86872 2004-08-01  Simon Josefsson  <jas@extundo.com>
86873
86874         * lib/xgetdomainname.c: Include stdlib.h, for free().
86875
86876 2004-07-19  Bruno Haible  <bruno@clisp.org>
86877
86878         * MODULES.html.sh (func_all_modules): Add dummy.
86879
86880 2004-07-16  Simon Josefsson  <jas@extundo.com>
86881
86882         * modules/dummy: New file.
86883
86884 2004-07-16  Simon Josefsson  <jas@extundo.com>
86885
86886         * lib/dummy.c: New file.
86887
86888 2004-07-16  Bruno Haible  <bruno@clisp.org>
86889
86890         * lib/backupfile.h: Add extern "C" for C++.
86891         * lib/closeout.h: Likewise.
86892         * lib/copy-file.h: Likewise.
86893         * lib/findprog.h: Likewise.
86894         * lib/full-write.h: Likewise.
86895         * lib/pathname.h: Likewise.
86896         * lib/progname.h: Likewise.
86897         * lib/stpcpy.h: Likewise.
86898         * lib/stpncpy.h: Likewise.
86899         * lib/strcase.h: Likewise.
86900         * lib/strstr.h: Likewise.
86901         * lib/xalloc.h: Likewise.
86902
86903         * lib/mbswidth.h: Add extern "C" for C++.
86904         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86905
86906 2004-07-13  Robert Millan  <robertmh@gnu.org>
86907
86908         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86909
86910 2004-07-09  Simon Josefsson  <jas@extundo.com>
86911
86912         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86913         failed without this.)
86914
86915 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86916
86917         * modules/chown (Files): Add lib/fchown-stub.c, since
86918         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86919
86920 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86921
86922         * lib/fchown-stub.c: New file.
86923
86924 2004-06-24  Jim Meyering  <jim@meyering.net>
86925
86926         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86927
86928 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86929
86930         * modules/argz: Omit "#include".
86931
86932         * MODULES.html.sh (func_all_modules): Add calloc, to match
86933         2004-06-01 addition of calloc module.
86934
86935 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86936
86937         * m4/argz.m4: New file, which is autoupdated from libtool.
86938
86939 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86940
86941         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86942         libtool.
86943
86944 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86945
86946         * config/srclist-update: Don't insist on "USA." before the
86947         close-comment, as libtool omits the period and puts the */ on a
86948         separate line.
86949         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86950         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86951
86952 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86953
86954         * modules/argz: New file.
86955         * MODULES.html.sh (func_all_modules): Add argz.
86956
86957 2004-06-12  Jim Meyering  <jim@meyering.net>
86958         and  Paul Eggert  <eggert@cs.ucla.edu>
86959
86960         * modules/hash (Files): Add lib/xalloc.h.
86961         * modules/pipe (Depends-on): Add wait-process.
86962         * modules/stat (Depends-on): Add xalloc.
86963         * modules/userspec (Files): Add lib/userspec.h.
86964         * modules/xstrto
86965
86966         Upgrade from gettext-0.13.
86967         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86968         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86969         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86970
86971 2004-06-10  Jim Meyering  <jim@meyering.net>
86972
86973         * lib/calloc.c: New file.
86974
86975 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86976
86977         * lib/getdate.y (yylex): Allow space between sign and number.
86978         Problem reported by Dan Jacobson.
86979
86980 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86981
86982         Merge from coreutils CVS.
86983
86984         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86985         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86986         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86987         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86988         xstrtol.m4: Fix copyright date and/or serial number.
86989
86990         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86991         See if we need an fchown replacement.
86992         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86993         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86994         and use the replacement function if we detect either defect.
86995
86996         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86997         gl_UTIMECMP.
86998
86999 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87000         and  Jim Meyering  <jim@meyering.net>
87001
87002         Merge from coreutils CVS.
87003
87004         * lib/stat-macros.h: New file, with contents from file-type.h
87005         and coreutils' system.h.
87006         * lib/file-type.c: Include "stat-macros.h".
87007         * lib/file-type.h (file_type): Move all macro definitions to new file,
87008         stat-macros.h.
87009
87010         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87011         Wrap old code with this conditional.
87012         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87013         function that does not dereference symlinks.
87014         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87015
87016         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87017         dependency problems.
87018         (xreadlink): Accept new arg SIZE, for efficiency.
87019         All decls and uses changed.
87020         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87021
87022         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87023         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87024
87025         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87026         sysexits.h.
87027
87028 2004-06-01  Jim Meyering  <jim@meyering.net>
87029
87030         * m4/calloc.m4: New file.
87031
87032 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87033
87034         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87035         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87036         Also, fix a typo in a diagnostic.
87037
87038 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87039
87040         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87041         or AC_FUNC_REALLOC.
87042
87043 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87044
87045         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87046         macros to be defined.
87047         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87048         the allocator returns NULL because the requested size is zero.
87049
87050 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87051
87052         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87053         var.  Add comment explaining why libc still defines it.  This
87054         merges the following patch from glibc:
87055         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87056
87057 2004-05-20  Andreas Schwab  <schwab@suse.de>
87058
87059         * m4/free.m4: Replace free if it not known to work, not the other
87060         way round.
87061
87062 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87063
87064         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87065         present in glibc since revision 1.1 of this file.
87066         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87067         obstack_alignment_mask, obstack_alloc, obstack_base,
87068         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87069         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87070         obstack_grow0, obstack_init, obstack_int_grow,
87071         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87072         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87073         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87074         nonexistent functions.
87075
87076 2004-05-18  Karl Berry  <karl@gnu.org>
87077
87078         * config/srclist.txt: break link for vasnprintf.c.
87079
87080 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87081
87082         Port obstack to the AS/400, where pointers are 16 bytes wide and
87083         you cannot cast an integer to a valid pointer.  This patch is
87084         currently waiting to be integrated into glibc; see
87085         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87086
87087         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87088         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87089         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87090         (struct obstack): temp member is now a union of a pointer and
87091         an integer, instead of an integer.  All integer uses changed.
87092         This does not affect the physical layout of struct obstack,
87093         except on hosts (like the AS/400) where the size or alignment of
87094         void * is greater than that of ptrdiff_t.
87095         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87096         __STDC__)]: Store temporary in pointer member of union, not
87097         integer member.
87098         * lib/obstack.c: Include <stddef.h>, for offsetof.
87099         (struct fooalign): Remove; it doesn't need a name.
87100         (union fooround): Change double to long double, and add void *.
87101         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87102         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87103         not a macro.  Hence the values are always int; so remove all
87104         casts-to-int in uses.
87105
87106 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87107
87108         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87109         we can get this patch merged into glibc.
87110
87111 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87112             Paul Eggert  <eggert@cs.ucla.edu>
87113
87114         * m4/argp: Depend on alloca.
87115
87116 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87117             Paul Eggert  <eggert@cs.ucla.edu>
87118
87119         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87120         freecoding.
87121
87122 2004-05-17  Bruno Haible  <bruno@clisp.org>
87123
87124         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87125         precision that consists of a '.' followed by an empty digit string.
87126         Patch by Tor Lillqvist <tml@iki.fi>.
87127
87128 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87129
87130         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87131         for backward compatibility with older code.  We need our own
87132         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87133         it under some other name, and our alloca.h will define it.
87134
87135 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87136             Derek Price  <derek@ximbiot.com>
87137
87138         * lib/alloca.c: Include <alloca.h>, to get our interface.
87139         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87140         include <alloca.h> first.  Use C89 prototype for alloca; this
87141         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87142         Use #elif for simplicity, since we can assume C89 now.
87143         Don't try to source the system alloca.h since it will not be found
87144         and to prevent recursively including its replacement.
87145         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87146         * lib/regex.c: Likewise.
87147
87148 2004-05-16  Derek Price  <derek@ximbiot.com>
87149             Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         getline cleanup.  This changes the getndelim2 API: both order of
87152         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87153         no delimiter).
87154
87155         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87156         interface does that.
87157         (getline): Always use getdelim, so that we don't have two
87158         copies of this code.
87159         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87160         if available.
87161         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87162         (GETNDELIM2_MAXIMUM): New macro.
87163         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87164         instead of the old practice of delim2==0.  All callers changed.
87165         Return -1 on overflow, instead of returning junk.
87166         Do not set *linesize unless allocation succeeds.
87167         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87168         that we include sys/types.h.
87169         * lib/getnline.h: Likewise.
87170         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87171         (getndelim2): Reorder arguments.
87172         * lib/getnline.c (getnline, getndelim):
87173         Don't discard the NMAX argument.
87174         (getnline): Invoke getndelim, to avoid code duplication.
87175         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87176         of (size_t) -1 by callers of the getnline family.
87177
87178 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87179
87180         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87181         Check for gettimeofday.
87182         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87183         Check for settimeofday, stime.
87184
87185 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87186
87187         * lib/nanosleep.c (suspended): Change its type from int to
87188         sig_atomic_t volatile.
87189         (first_call): Make it private to rpl_nanosleep, and have it
87190         be zero initially as that's a bit faster.
87191         (my_usleep): Round up fractional times instead of truncating them,
87192         as this is the usual meaning for 'sleep'.
87193
87194         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87195         doesn't work.
87196         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87197         (ENOSYS): Define if not defined.
87198         (settime): Fall back on stime if it exists and settimeofday fails.
87199         But don't bother with fallbacks if a method fails with errno == EPERM.
87200
87201 2004-05-11  Jim Meyering  <jim@meyering.net>
87202
87203         Prior to this change, the save_cwd caller required read access to the
87204         current directory on most systems (ones with the fchdir function).
87205
87206         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87207         fails, try write-only, and finally, resort to using xgetcwd.
87208
87209 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87210
87211         * lib/obstack.c, obstack.h: Import changes from libc.
87212
87213 2004-04-28  Bruno Haible  <bruno@clisp.org>
87214
87215         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87216         also implicitly appends .exe to executables.
87217         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87218         accepts Windows pathnames.
87219         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87220         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87221         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87222         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87223         Reported by Derek Robert Price <derek@ximbiot.com>.
87224
87225 2004-04-21  Karl Berry  <karl@gnu.org>
87226
87227         * config/srclist.txt (localcharset.c): break sync.
87228
87229 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87230
87231         * m4/host-os.m4: Add a copyright notice.
87232
87233 2004-04-20  Jim Meyering  <jim@meyering.net>
87234
87235         Change UTILS_ to gl_ in AC_DEFINE'd names.
87236         Change utils_- and jm_-prefixed variables, too.
87237         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87238         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87239         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87240
87241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87242         Don't emit trailing blanks.
87243         Also rename jm_-prefixed variables to have gl_ prefix.
87244
87245         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87246         Also rename jm_-prefixed variables to have gl_ prefix.
87247
87248         * m4/jm-macros.m4: Reflect the renamings.
87249         * m4/prereq.m4: Likewise.
87250
87251 2004-04-20  Jim Meyering  <jim@meyering.net>
87252
87253         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87254         memory.
87255
87256 2004-04-20  Jim Meyering  <jim@meyering.net>
87257             Bruno Haible  <bruno@clisp.org>
87258
87259         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87260         memory when realloc fails.
87261
87262 2004-04-19  Jim Meyering  <jim@meyering.net>
87263
87264         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87265         now that readutmp.c may call `free (0)'.
87266
87267 2004-04-19  Bruno Haible  <bruno@clisp.org>
87268
87269         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87270         * m4/inttypes_h.m4: Likewise.
87271         * m4/stdint_h.m4: Likewise.
87272         * m4/intmax_t.m4: Likewise.
87273         * m4/uintmax_t.m4: Likewise.
87274
87275 2004-04-18  Jim Meyering  <jim@meyering.net>
87276
87277         * m4/prereq.m4: Don't forbid jm_ prefix.
87278
87279         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87280         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87281         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87282         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87283         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87284         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87285         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87286         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87287         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87288         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87289         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87290         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87291         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87292         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87293         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87294         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87295         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87296         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87297         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87298
87299 2004-04-18  Jim Meyering  <jim@meyering.net>
87300
87301         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87302         failure, don't leak memory and do call END_UTMP_ENT.
87303
87304 2004-04-16  Jim Meyering  <jim@meyering.net>
87305
87306         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87307         coreutils' stat program.
87308         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87309
87310 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87311
87312         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87313         C89.
87314         (CHAR_BIT): Remove, since we assume C89.
87315         Include <stdint.h> if available, as per current Autoconf CVS advice.
87316
87317 2004-03-31  Jim Meyering  <jim@meyering.net>
87318
87319         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87320         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87321         * m4/xalloc.m4: Likewise.
87322
87323 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87324
87325         Merge from coreutils.
87326
87327         * m4/inttostr.m4: New file.
87328         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87329         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87330         Require gl_CLOCK_TIME.
87331         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87332
87333 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87334
87335         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87336         not bool, to be more consistent with Unix conventions.
87337         Suggested by Bruno Haible.
87338
87339         Merge from coreutils.
87340
87341         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87342         * lib/umaxtostr.c: New files.
87343
87344         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87345         the usual <time.h> dance.
87346         (get_date): Change signature to support fractional time stamps.
87347         All callers changed.
87348         * lib/getdate.y: Include "getdate.h" first, as we can now
87349         assume C89 and don't need to worry about 'const'.
87350         Similarly, include "unlocked-io.h" near start, not in middle.
87351         Include <limits.h>.
87352         (textint.value): Use long int rather than int.
87353         (textint.digits): Use size_t rather than int.
87354         (BILLION, LOG10_BILLION): New constants.
87355         (parser_control): New member rel_ns.  Members day_ordinal,
87356         time_zone, month, day, hour, minutes, rel_year, rel_month,
87357         rel_day, rel_hour, rel_minutes, rel_seconds
87358         are now long int, not int.  Member seconds is now struct timespec,
87359         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87360         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87361         not int.
87362         (%union.intval): Now long int, not int.
87363         New member timespec.
87364         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87365         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87366         (spec): Now is a timespec or an item list.
87367         (timespec, items): New nonterminals.
87368         (time, rel, relunit, number, get_date):
87369         Add support for fractional seconds.
87370         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87371         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87372         (to_hour): First arg is now long int, not int.
87373         (to_year): Returns long int, not int.
87374         Don't treat year -70 like 70.
87375         (tm_diff): Returns long int, not int.
87376         (lookup_word): Use bool instead of int when appropriate.
87377         (yylex): Use size_t for count, not int.
87378         Detect overflow when parsing large integer constants.
87379         Add support for fractions.
87380         (get_date): Make pointers 'const' if possible.
87381         Use more-portable code to detect integer overflow.
87382         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87383         Don't use ctime; it's not reliable if the year has >4 digits.
87384
87385         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87386         This is for compatibility with BSD.
87387
87388         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87389         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87390         From coreutils' system.h.
87391
87392         * lib/userspec.c: Don't include "posixver.h".
87393         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87394         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87395         compatible extension.  Simplify code by removing a boolean int
87396         that was always nonzero if a string was nonnull.
87397
87398 2004-03-30  Jim Meyering  <jim@meyering.net>
87399
87400         Merge from coreutils.
87401
87402         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87403         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87404         on some systems one must include <grp.h> before it.
87405         Reported by Christian Krackowizer.
87406
87407 2004-03-30  Jim Meyering  <jim@meyering.net>
87408
87409         Merge from coreutils.
87410
87411         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87412
87413         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87414         an empty input stream.
87415
87416         * lib/readtokens.c: Include <stdbool.h>.
87417         (readtoken): Use `size_t' rather than int/long.
87418         All callers adjusted.
87419         Use `bool' rather than `int' where appropriate.
87420         Use memset rather than an explicit loop.
87421         Use x2nrealloc rather than xrealloc.
87422         Allow the use of `\0' as a delimiter.
87423         (readtokens): Likewise.
87424         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87425
87426 2004-03-30  Jim Meyering  <jim@meyering.net>
87427
87428         * m4/realloc.m4: Remove file, since now it does no more than
87429         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87430         the `configure.ac' section of module/realloc.
87431         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87432
87433 2004-03-30  Bruno Haible  <bruno@clisp.org>
87434
87435         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87436         nonnull.
87437
87438 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87439
87440         Merge changes to getloadavg.c from coreutils and Emacs.
87441
87442         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87443         Define to an expression, not to the empty string.
87444         Include cloexec.h and xalloc.h.
87445         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87446         Use set_cloexec_flag rather than rolling our own.
87447         * lib/cloexec.c, lib/cloexec.h: New files.
87448
87449 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87450
87451         * m4/cloexec.m4: New file.
87452
87453 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87454
87455         * lib/getopt.h: Sync with libc CVS.
87456
87457 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87458             Bruno Haible  <bruno@clisp.org>
87459
87460         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87461         mbswidth.
87462
87463 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87464             Bruno Haible  <bruno@clisp.org>
87465
87466         * lib/mbswidth.h: Include <wchar.h> only if
87467         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87468         <wchar.h>.
87469         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87470
87471 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87472
87473         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87474         Sync with libc CVS.
87475         * lib/getopt_int.h: New file, also synced from libc.
87476
87477 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87478
87479         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87480         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87481         Bring back getopt.c, getopt.h, getopt1.c.
87482
87483 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87484
87485         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87486         All uses changed.  Check for sa_sigaction member; this fixes
87487         a bug first reported by Jason Andrade in
87488         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87489
87490 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87491
87492         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87493         '#if' expressions.  Unlike the code it replaces, it does not
87494         depend on (defined _SC_PAGESIZE).  However, it does depend on
87495         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87496         first reported by Jason Andrade in
87497         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87498
87499 2004-02-25  Simon Josefsson  <jas@extundo.com>
87500
87501         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87502
87503 2004-02-25  Simon Josefsson  <jas@extundo.com>
87504
87505         * lib/strdup.h: New file.
87506         * lib/strdup.c: Include it.
87507         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87508         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87509
87510 2004-02-23  Karl Berry  <karl@gnu.org>
87511
87512         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87513         (from fencepost.gnu.org:/gd/gnuorg).
87514
87515 2004-02-23  Karl Berry  <karl@gnu.org>
87516
87517         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87518         * config/srclist.txt: add maintain/standards documents.
87519
87520 2004-02-18  Bruno Haible  <bruno@clisp.org>
87521
87522         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87523         Reported by Derek Robert Price <derek@ximbiot.com>.
87524
87525 2004-02-16  Karl Berry  <karl@gnu.org>
87526
87527         * config/mkinstalldirs, install-sh: update from automake.
87528
87529 2004-02-06  Karl Berry  <karl@gnu.org>
87530
87531         * m4/po.m4: update from gettext 0.14.1.
87532
87533 2004-02-06  Karl Berry  <karl@gnu.org>
87534
87535         * lib/config.charset: update from gettext 0.14.1.
87536
87537 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87538
87539         Add comments and code, prompted by suggestions from Bruno Haible
87540         for sh-quote.
87541         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87542         describing the enum quoting_style values.
87543         * lib/quotearg.c (quotearg_alloc): New function.
87544         (quotearg_buffer_restyled): Treat lone { and } as special.
87545         Treat = as special.  Work around bug with older shells
87546         that "see" a '\' that is really the 2nd byte of a multibyte char.
87547         Quote empty string with shell_quoting_style.
87548
87549 2004-02-03  Bruno Haible  <bruno@clisp.org>
87550
87551         * m4/pipe.m4: New file, from GNU gettext.
87552
87553 2004-02-03  Bruno Haible  <bruno@clisp.org>
87554
87555         * lib/pipe.h: New file, from GNU gettext.
87556         * lib/pipe.c: New file, from GNU gettext.
87557
87558 2004-01-27  Bruno Haible  <bruno@clisp.org>
87559
87560         * m4/execute.m4: New file, from GNU gettext.
87561
87562 2004-01-27  Bruno Haible  <bruno@clisp.org>
87563
87564         * lib/execute.h: New file, from GNU gettext.
87565         * lib/execute.c: New file, from GNU gettext.
87566         * lib/w32spawn.h: New file, from GNU gettext.
87567
87568 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87569
87570         Merge from diffutils.
87571
87572         * lib/file-type.c (file_type): Add typed memory objects.
87573         * lib/file-type.h (S_TYPEISTMO): New macro.
87574
87575         * lib/c-stack.h (c_stack_action): Remove argv argument.
87576         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87577         (die): Don't calculate message unless segv_action returns.
87578         (get_stack_location, min_address_from_argv, max_address_from_argv,
87579         volatile stack_base, volatile_stack_size): Remove.
87580         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87581         that every segmentation violation is a stack overflow.  (Ouch!)
87582         See Debian bug 136249 (still outstanding) for more info about why
87583         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87584
87585 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87586
87587         Exit-status fix from coreutils.
87588
87589         Use exit_failure consistently in place of EXIT_FAILURE,
87590         so that program exit statuses are consistent on failure.
87591
87592         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87593         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87594         * lib/argmatch.h: Comment fix to match the above.
87595         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87596         Now a macro referring to exit_failure, instead of a separate
87597         variable.  Include "exitfail.h" to get it.
87598         * lib/xstrtol.h: Include "exitfail.h".
87599         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87600
87601         * lib/long-options.c (parse_long_options): Use prototype
87602         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87603         for clarity.
87604
87605 2004-01-21  Jim Meyering  <jim@meyering.net>
87606
87607         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87608         so as not to conflict with a different-sized __mktime_internal
87609         function in GNU libc.
87610         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87611         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87612
87613 2004-01-20  Karl Berry  <karl@gnu.org>
87614
87615         * config/config.guess: update from config.
87616
87617         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87618
87619 2004-01-20  Bruno Haible  <bruno@clisp.org>
87620
87621         Safer stack allocation.
87622         * lib/setenv.c: Include allocsa.h.
87623         (alloca): Remove fallback definition.
87624         (freea): Remove macro.
87625         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87626         instead of freea.
87627
87628 2004-01-20  Bruno Haible  <bruno@clisp.org>
87629
87630         * m4/eealloc.m4: New file, from GNU gettext.
87631
87632 2004-01-20  Bruno Haible  <bruno@clisp.org>
87633
87634         * m4/allocsa.m4: New file, from GNU gettext.
87635
87636 2004-01-20  Bruno Haible  <bruno@clisp.org>
87637
87638         * lib/xallocsa.h: New file, from GNU gettext.
87639         * lib/xallocsa.c: New file, from GNU gettext.
87640
87641 2004-01-20  Bruno Haible  <bruno@clisp.org>
87642
87643         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87644
87645 2004-01-20  Bruno Haible  <bruno@clisp.org>
87646
87647         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87648         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87649         specially.
87650
87651 2004-01-20  Bruno Haible  <bruno@clisp.org>
87652
87653         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87654         patch.
87655
87656 2004-01-20  Bruno Haible  <bruno@clisp.org>
87657
87658         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87659
87660 2004-01-20  Bruno Haible  <bruno@clisp.org>
87661
87662         * lib/eealloc.h: New file.
87663
87664 2004-01-20  Bruno Haible  <bruno@clisp.org>
87665
87666         * lib/binary-io.h: Avoid warnings on Cygwin.
87667
87668 2004-01-20  Bruno Haible  <bruno@clisp.org>
87669
87670         * lib/allocsa.h: New file, from GNU gettext.
87671         * lib/allocsa.c: New file, from GNU gettext.
87672
87673 2004-01-18  Karl Berry  <karl@gnu.org>
87674
87675         * doc/gpl.texi, doc/lgpl.texi: new files.
87676
87677 2004-01-18  Karl Berry  <karl@gnu.org>
87678
87679         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87680         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87681
87682 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87683
87684         Merge from coreutils.
87685
87686         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87687         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87688         (gl_DEFAULT_POSIX2_VERSION): Move
87689         the documentation from 'configure' into 'config.hin',
87690         so that 'configure --help' isn't burdened by it and
87691         we don't have to worry about its formatting there.
87692         Reword the documentation so that it's more succinct
87693         and can be run together into a single paragraph.
87694         * m4/same.m4 (gl_SAME): Check for pathconf.
87695
87696 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87697
87698         Merge from coreutils.
87699
87700         * lib/posixver.c: Include posixver.h.
87701
87702         * lib/same.c: Include <stdbool.h>, <limits.h>.
87703         (_POSIX_NAME_MAX): Define if not defined.
87704         (MIN): New macro.
87705         (same_name): If file names are silently truncated, report
87706         that the file names are the same if they are the same after
87707         the silent truncation.
87708
87709         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87710         conversion function.
87711         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87712         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87713         longer needed.
87714
87715 2004-01-15  Jim Meyering  <jim@meyering.net>
87716
87717         Merge from coreutils.
87718
87719         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87720         if no library is required.
87721         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87722         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87723         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87724         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87725         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87726         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87727         value, $ac_cv_search_crypt, if it's "none required".
87728         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87729         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87730         not gl_FUNC_GETLOADAVG.
87731         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87732         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87733
87734 2004-01-15  Jim Meyering  <jim@meyering.net>
87735
87736         Merge from coreutils.
87737
87738         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87739         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87740         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87741
87742         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87743         optional configure-time default.
87744
87745         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87746
87747         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87748
87749 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87750
87751         Merge from coreutils.
87752
87753         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87754         value, $ac_cv_search_nanosleep, if it's "none required".
87755
87756 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87757
87758         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87759         with like-named macro in fnmatch.c.
87760         (EXT): Use an internal constant instead.
87761
87762         Merge fnmatch patches from glibc.
87763         * lib/fnmatch.c (mbsinit): Remove define.
87764         Add libc_hidden_ver (__fnmatch, fnmatch).
87765         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87766         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87767
87768 2004-01-14  Karl Berry  <karl@gnu.org>
87769
87770         * config/install-sh: update from automake.
87771
87772 2004-01-13  Karl Berry  <karl@gnu.org>
87773
87774         * config/install-sh: update from automake.
87775
87776 2004-01-09  Karl Berry  <karl@gnu.org>
87777
87778         * config/install-sh: update from automake.
87779
87780 2004-01-05  Karl Berry  <karl@gnu.org>
87781
87782         * config/config.{sub,guess}: update from config.
87783
87784 2003-12-31  Karl Berry  <karl@gnu.org>
87785
87786         * config/depcomp: update from automake.
87787
87788 2003-12-14  Karl Berry  <karl@gnu.org>
87789
87790         * lib/config.charset: update from gettext-runtime.
87791
87792 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87795         Bug reported by Alfred M. Szmidt.
87796
87797 2003-12-03  Bruno Haible  <bruno@clisp.org>
87798
87799         * m4/gettext.m4: Upgrade from gettext-0.13.
87800         * m4/po.m4: Upgrade from gettext-0.13.
87801         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87802         * m4/intmax.m4: New file, from gettext-0.13.
87803         * m4/printf-posix.m4: New file, from gettext-0.13.
87804
87805 2003-11-29  Karl Berry  <karl@gnu.org>
87806
87807         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87808
87809 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87810             Bruno Haible  <bruno@clisp.org>
87811
87812         * lib/printf-parse.h: Don't include sys/types.h.
87813         (ARG_NONE): New macro.
87814         (char_directive): Change type of *arg_index fields to size_t.
87815         * lib/printf-parse.c: Don't include sys/types.h.
87816         (SSIZE_MAX): Remove macro.
87817         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87818         Remove unnecessary overflow check.
87819         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87820         fields.
87821
87822 2003-11-25  Bruno Haible  <bruno@clisp.org>
87823
87824         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87825
87826 2003-11-25  Bruno Haible  <bruno@clisp.org>
87827
87828         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87829         gt_TYPE_SSIZE_T.
87830
87831 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87832
87833         * modules/alloca: Remove dependency on xalloc.
87834
87835 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87836
87837         * lib/alloca.c: Remove dependency on xalloc module.
87838         (xalloc_die): Remove.
87839         (memory_full) [!defined emacs]: New macro.
87840         [!defined emacs]: Don't include xalloc.h.
87841         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87842         address arithmetic overflows.  Change datatypes a bit to avoid
87843         unnecessary casts.
87844
87845 2003-11-22  Jim Meyering  <jim@meyering.net>
87846
87847         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87848         s/size/size_t/.
87849
87850 2003-11-21  Karl Berry  <karl@gnu.org>
87851
87852         * config/config.{sub,guess}: update from config.
87853
87854 2003-11-18  Karl Berry  <karl@gnu.org>
87855
87856         * config/config.{sub,guess}: update from config.
87857
87858         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87859
87860 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87861
87862         * README: Mention that S+T cannot overflow if S is the size of
87863         an existing object and T is sufficiently small.
87864
87865 2003-11-17  Jim Meyering  <jim@meyering.net>
87866
87867         On systems without utime and without a utimes function capable of
87868         dealing with a NULL struct utimbuf* argument, this utime replacement
87869         could -- in unusual circumstances -- leak a file descriptor.
87870         * lib/utime.c: Include <unistd.h> and <errno.h>.
87871         (utime_null): Be sure to close `fd' and to preserve errno.
87872         Reported by Geoff Collyer via Arnold Robbins.
87873
87874 2003-11-17  Bruno Haible  <bruno@clisp.org>
87875
87876         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87877         (Depends-on): Add xsize.
87878
87879 2003-11-17  Bruno Haible  <bruno@clisp.org>
87880
87881         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87882
87883 2003-11-17  Bruno Haible  <bruno@clisp.org>
87884
87885         * lib/vasnprintf.c (alloca): Remove fallback definition.
87886         (freea): Remove definition.
87887         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87888         Reported by Paul Eggert.
87889
87890 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87891             Bruno Haible  <bruno@clisp.org>
87892
87893         Protect against address arithmetic overflow.
87894         * lib/printf-args.h: Include stddef.h.
87895         (arguments): Change type of field 'count' to size_t.
87896         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87897         'unsigned int' where appropriate.
87898         * lib/printf-parse.h: Include sys/types.h.
87899         (char_directive): Change type of *arg_index fields to ssize_t.
87900         (char_directives): Change type of fields 'count', max_*_length to
87901         size_t.
87902         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87903         (SSIZE_MAX): Define fallback value.
87904         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87905         instead of 'int' where appropriate. Check a_allocated, d_allocated
87906         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87907         * lib/vasnprintf.c: Include xsize.h.
87908         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87909         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87910         overflow. Avoid wraparound when converting a width or precision from
87911         decimal to binary.
87912
87913 2003-11-16  Bruno Haible  <bruno@clisp.org>
87914
87915         Update from GNU gettext.
87916         * lib/printf-parse.c: Generalize to it can be compiled for wide
87917         strings.
87918         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87919         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87920         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87921         SNPRINTF): New macros.
87922         Don't include <alloca.h> if the file is used inside libintl.
87923         (local_wcslen): New function, for Solaris 2.5.1.
87924         (VASNPRINTF): Use it instead of wcslen.
87925
87926 2003-11-16  Bruno Haible  <bruno@clisp.org>
87927
87928         * lib/xsize.h (xmax): New function.
87929         (xsum, xsum3, xsum4): Declare as "pure" functions.
87930
87931 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87932
87933         * modules/xalloc (Files): Undo latest change, since xalloc.h
87934         no longer needs SIZE_MAX or PTRDIFF_MAX.
87935
87936 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87937
87938         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87939         gl_PTRDIFF_MAX.
87940
87941 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87942
87943         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87944         "return", to pacify some unknown compiler.  Problem reported
87945         by Joerg Schilling.
87946
87947 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87948
87949         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87950         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87951         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87952         heuristic is just as accurate as far as we know, and it removes a
87953         dependency on size_max.m4 and ptrdiff_max.m4.
87954
87955 2003-11-11  Bruno Haible  <bruno@clisp.org>
87956
87957         * modules/xsize (Files): Add m4/size_max.m4.
87958         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87959
87960 2003-11-11  Bruno Haible  <bruno@clisp.org>
87961
87962         * m4/size_max.m4: New file.
87963         * m4/ptrdiff_max.m4: New file.
87964         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87965         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87966         (gl_XALLOC): Invoke it.
87967
87968 2003-11-11  Bruno Haible  <bruno@clisp.org>
87969
87970         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87971         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87972         defined.
87973
87974 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87975
87976         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87977         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87978         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87979         From Bruno Haible.
87980         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87981         not (size_t) -1, since it's defined here.
87982
87983 2003-11-09  Karl Berry  <karl@gnu.org>
87984
87985         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87986
87987 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87988
87989         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87990         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87991         Reject sizes of exactly SIZE_MAX bytes.
87992         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87993         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87994
87995 2003-11-05  Bruno Haible  <bruno@clisp.org>
87996
87997         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87998         SIZE_MAX defined in <limits.h> on Solaris.
87999
88000 2003-11-04  Jim Meyering  <jim@meyering.net>
88001
88002         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88003         variable names, rather than @VAR@.
88004         * modules/poll: Likewise.
88005
88006 2003-11-04  Bruno Haible  <bruno@clisp.org>
88007
88008         * modules/xsize: New file.
88009         * modules/linebreak: Depend on xsize.
88010         * MODULES.html.sh (func_all_modules): Add xsize.
88011
88012 2003-11-04  Bruno Haible  <bruno@clisp.org>
88013
88014         * m4/xsize.m4: New file.
88015
88016 2003-11-04  Bruno Haible  <bruno@clisp.org>
88017
88018         * lib/xsize.h: New file.
88019         * lib/linebreak.c: Include xsize.h.
88020         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88021         argument for overflow.
88022         Suggested by Paul Eggert.
88023
88024 2003-11-03  Karl Berry  <karl@gnu.org>
88025
88026         * config/config.{guess,sub}: update from config.
88027
88028 2003-11-03  Jim Meyering  <jim@meyering.net>
88029
88030         * modules/userspec (lib_SOURCES): Add userspec.h.
88031         (Include): Add "userspec.h".
88032         Improve description.
88033
88034 2003-11-03  Jim Meyering  <jim@meyering.net>
88035
88036         * lib/userspec.c: Include "userspec.h".
88037         * lib/userspec.h: New file.
88038
88039 2003-11-03  Bruno Haible  <bruno@clisp.org>
88040
88041         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88042
88043 2003-11-03  Bruno Haible  <bruno@clisp.org>
88044
88045         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88046         available, to avoid (extremely rare) race condition.
88047         Suggested by Paul Eggert.
88048
88049 2003-11-02  Karl Berry  <karl@gnu.org>
88050
88051         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88052
88053 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88054
88055         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88056         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88057         (read_filesystem_list): Set and use me_type_malloced.
88058         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88059         whatever the type happens to be), for brevity and consistency.
88060         Check for size calculation overflow on Alphas running OSF/1.
88061
88062 2003-10-31  Jim Meyering  <jim@meyering.net>
88063
88064         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88065
88066         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88067
88068 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88069             Bruno Haible  <bruno@clisp.org>
88070
88071         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88072         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88073
88074 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88075
88076         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88077         netbsd*-gnu*.  Suggested by Robert Millan.
88078
88079 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88080
88081         * modules/group-member: Depend on stdbool.
88082
88083 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88084
88085         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88086
88087 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88088
88089         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88090         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88091         after the 'gnu' in these cases.  This fixes some bugs in the
88092         previous change, and is based on suggestions by Robert Millan.
88093
88094 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88095
88096         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88097         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88098         no longer needed.
88099         * lib/quotearg.c (quotearg_n_options): Use it.
88100         * lib/group-member.c: Include <stdbool.h>.
88101         (free_group_info): Arg is now const *; don't free arg.
88102         (get_group_info): Now returns bool and accepts struct group_info *,
88103         rather than returning a malloc'ed struct group_info *.
88104         All uses changed.  Check for overflow in internal size calculation.
88105
88106         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88107         rather than xmalloc/xrealloc.
88108         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88109         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88110         conformance bug: the old code used a pointer after freeing the
88111         storage that it addressed.
88112         * lib/hash.c (hash_initialize): Simplify the code by using
88113         xalloc_oversized rather than doing it by hand.
88114         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88115         the buffer preserved.  Use free and xmalloc instead.
88116         * lib/quotearg.c (quotearg_n_options): Likewise.
88117         Use a simpler test for size overflow.  Don't use xalloc_oversized
88118         because unsigned int might be wider than size_t (!); this suggests
88119         that we should switch from unsigned int to size_t for slot numbers.
88120
88121 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88122
88123         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88124         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88125         NetBSD kernels.  Requested by Richard Stallman.
88126
88127 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88128
88129         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88130         to allocate the returned structure.  Do not allocate a subarray,
88131         as x2nrealloc will do that.
88132         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88133         instead of xnrealloc.
88134         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88135
88136 2003-10-27  Bruno Haible  <bruno@clisp.org>
88137
88138         * lib/stdbool_.h: Better support for BeOS.
88139
88140 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88141
88142         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88143         now uses inline.
88144
88145 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88146
88147         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88148         callers that want to do their own size-overflow checking.  Include
88149         <stdbool.h>, since xalloc_oversized returns bool.
88150         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88151         to use xalloc_oversized.
88152
88153         Add two functions x2realloc, x2nrealloc, for programs that grow
88154         arrays dynamically by doubling their sizes.
88155         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88156         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88157         New functions.
88158
88159         Port to C99 semantics for 'inline' of external functions.
88160         Bug reported by Bruno Haible.
88161         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88162         with the old contents of xnmalloc.
88163         (xnmalloc, xmalloc): Use it.
88164         (xnrealloc_inline): New static inline function,
88165         with the old contents of xnrealloc.
88166         (xnrealloc, xrealloc): Use it.
88167
88168         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88169         that.
88170
88171 2003-10-26  Karl Berry  <karl@gnu.org>
88172
88173         * config/srclist.txt (COPYING.DOC): no longer available from
88174         /gd/gnuorg; don't know where the ultimate source is.
88175
88176 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88177
88178         Fix several address-calculation bugs in the hash modules,
88179         plus some minor code cleanup.
88180
88181         * lib/hash.h: Include <stdbool.h>, for bool.
88182         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88183         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88184         hash_get_n_entries, hash_get_max_bucket_length,
88185         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88186         hash_rehash): Use size_t rather than unsigned.
88187         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88188         hash_get_n_buckets_used, hash_get_n_entries,
88189         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88190         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88191         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88192         Likewise.
88193         (SIZE_MAX): Define if not defined.
88194         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88195         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88196         hash_print):
88197         Use const * when possible.
88198         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88199         (check_tuning): Fix bug: if tuning parameters were very close to
88200         0 or 1, rounding errors could have caused subscript violations.
88201         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88202         (hash_initialize): Add 'fail:' label
88203         to free table and return NULL, and use it to simplify code.
88204         Use calloc rather than clearing the storage ourself.
88205         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88206         buffer size calculations.
88207         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88208         Include <stddef.h>, for size_t.
88209         * lib/hash-pjw.c (hash_pjw): Likewise.
88210         Switch to method described by Bruno Haible.
88211         Include <limits.h>, for CHAR_BIT.
88212         (SIZE_BITS): New macro.
88213
88214 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88215
88216         * m4/getline.m4 (AM_FUNC_GETLINE):
88217         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88218         hosts.  Problem reported by Derek Robert Price in
88219         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88220         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88221         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88222
88223 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88224
88225         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88226         ceiling the allocation at NMAX bytes rather than silently
88227         discarding input bytes before NMAX is reached.  This makes
88228         a difference only if NMAX exceeds SIZE_MAX / 2.
88229
88230         * lib/obstack.c: Merge from glibc.
88231         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88232         Add libc_hidden_def (_obstack_newchunk).
88233         (_obstack_free) [! defined _LIBC]: Remove.
88234         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88235         a clone of the function body.
88236         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88237         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88238
88239         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88240         glibc.
88241         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88242         arg to memcpy.
88243
88244         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88245         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88246         Don't use lvalue casts, as GCC plans to remove support for them
88247         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88248         was also present in the non-GCC version, indicating that this
88249         code had always been buggy and had never been widely used.
88250         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88251         Use the fast variant of each macro, rather than copying the
88252         definiens of the fast variant; that way, we'll be more likely to
88253         catch future bugs in the fast variants.
88254
88255 2003-10-20  Bruno Haible  <bruno@clisp.org>
88256
88257         * modules/wait-process: New file.
88258         * MODULES.html.sh (func_all_modules): Add wait-process.
88259
88260 2003-10-20  Bruno Haible  <bruno@clisp.org>
88261
88262         * m4/wait-process.m4: New file.
88263
88264 2003-10-20  Bruno Haible  <bruno@clisp.org>
88265
88266         * lib/wait-process.h: New file, from GNU gettext.
88267         * lib/wait-process.c: New file, from GNU gettext.
88268
88269 2003-10-19  Jim Meyering  <jim@meyering.net>
88270
88271         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88272         HPUX 10.20.
88273
88274 2003-10-18  Karl Berry  <karl@gnu.org>
88275
88276         * config/config.guess: update from config.
88277
88278 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88279
88280         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88281         (getgroups): First arg is int, not size_t.
88282         Don't let 'free' mangle errno.
88283
88284 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88285
88286         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88287
88288 2003-10-16  Karl Berry  <karl@gnu.org>
88289
88290         * config/config.{guess,sub}: update from config.
88291
88292 2003-10-16  Jim Meyering  <jim@meyering.net>
88293
88294         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88295         memcpy.
88296
88297 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88298
88299         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88300         (SIZE_MAX): Remove.
88301         (new_exclude, add_exclude_file): Initial size no longer needs to
88302         be a power of 2.
88303         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88304         our own address arithmetic overflow checking.
88305
88306         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88307         (fnmatch): Do not alloca more than 2000 wide characters;
88308         instead, use malloc for large buffers.
88309         Check for address arithmetic overflow, and return -1
88310         with errno set to ENOMEM in that case.
88311         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88312         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88313         instead, return -1.  Check for address arithmetic overflow.
88314
88315 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88316
88317         Handle invalid suffixes and overflow independently, so that
88318         callers can treat them independently as needed.  Fix some bugs in
88319         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88320         suffix for a human-readable blocksize.  The major caller-visible
88321         change is the addition of a new
88322         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88323         that both overflow and suffix chars were found.
88324
88325         * lib/human.c (humblock): Don't check separately for invalid suffix
88326         char; that is xstrtoumax's job (now that its bug is fixed).
88327         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88328         INTMAX_MAX]: New macros.
88329         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88330         TYPE_MAXIMUM): New macros.
88331         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88332         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88333         if overflow occurs, as it's what __strtol does and it's more useful
88334         in practice.
88335         (__xstrtol): If __strtol reports some error other than ERANGE,
88336         reflect it to the caller as LONGINT_INVALID.  If it reports
88337         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88338         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88339         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88340         value.
88341         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88342         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88343         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88344         [defined UINTMAX_MAX]: New macros.
88345
88346 2003-10-14  Bruno Haible  <bruno@clisp.org>
88347
88348         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88349
88350 2003-10-14  Bruno Haible  <bruno@clisp.org>
88351
88352         * m4/sig_atomic_t: New file, from GNU gettext.
88353         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88354
88355 2003-10-14  Bruno Haible  <bruno@clisp.org>
88356
88357         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88358         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88359         Also use volatile where needed.
88360
88361 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88362
88363         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88364         Change maintainer from Bruno Haible to 'all'.
88365
88366 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88367
88368         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88369
88370 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88371
88372         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88373         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88374         and define in terms of the other primitives.
88375         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88376         (SIZE_MAX): Define if not already defined.
88377         (array_size_overflow): New function.
88378         (xalloc_die): Abort instead of exiting if 'error' returns.
88379         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88380         (xmalloc, xrealloc): Use them.
88381         (xcalloc): Check for address arithmetic overflow.
88382         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88383         a bit faster than strcpy.
88384
88385 2003-10-10  Simon Josefsson  <jas@extundo.com>
88386
88387         * modules/argp (Depends-on): Add restrict and strcase.
88388
88389 2003-10-10  Simon Josefsson  <jas@extundo.com>
88390
88391         * m4/argp.m4: Add AC_C_INLINE.
88392
88393 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88394
88395         Merge getpass from libc, plus a few fixes.
88396
88397         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88398         Include <stdbool.h>.
88399         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88400         __fsetlocking to empty.
88401         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88402         do include <bits/libc-lock.h>.
88403         Do not include <fcntl.h>; not needed.
88404         [_LIBC]: Include <wchar.h>.
88405         (NOTCANCEL_MODE): New macro.
88406         (flockfile, funlockfile) [_LIBC]: New macros.
88407         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88408         [!_LIBC]: New macros.
88409         (call_fclose): New function.
88410         (getpass): Use it.  Save tty stream separately; this simplifies the
88411         code and makes it more reliable if stdin happens to equal stdout.
88412         Invoke __fsetlocking on tty.
88413         Handle thread cancellation if needed.
88414         Namespace cleanup (use __tcgetattr, __getline).
88415         Use bool for Booleans.
88416         [USE_IN_LIBIO]: Handle wide streams.
88417         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88418         stream might go where.
88419
88420         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88421         doesn't have to include <stdio.h> before us.
88422         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88423         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88424         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88425         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88426         if not declared, so that we can use getpass.c code from libc without
88427         rewriting it.
88428         (flockfile, ftrylockfile, funlockfile): New macros.
88429
88430 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88431
88432         * modules/getpass: Depend on stdbool.
88433
88434 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88435
88436         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88437
88438 2003-10-07  Karl Berry  <karl@gnu.org>
88439
88440         * config/config.{guess,sub}: update from config.
88441
88442 2003-10-06  Jim Meyering  <jim@meyering.net>
88443             Bruno Haible  <bruno@clisp.org>
88444
88445         This lets translators provide better translations for the
88446         "Written by ..." part of --version output.
88447         * lib/version-etc.h: Include stdarg.h.
88448         (version_etc_copyright): Declare as readonly.
88449         (version_etc): Make this function variadic with a NULL-terminated list
88450         of author name strings.
88451         (version_etc_va): New declaration.
88452         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88453         (version_etc_copyright): Declare as readonly.
88454         (version_etc_va): New function. Provide a different translatable string
88455         for each possible number of authors < 10. Abbreviate when there are 10
88456         authors or more.
88457         (version_etc): Make this function variadic. Call version_etc_va.
88458         Suggestion from Gary V. Vaughan.
88459
88460         * lib/long-options.h (parse_long_options): Change prototype: the
88461         authors string is moved to the end and becomes variadic.
88462         * lib/long-options.c: Include stdarg.h.
88463         (parse_long_options): Make this function variadic, too.
88464         Call version_etc_va, not version_etc.
88465
88466 2003-10-06  Bruno Haible  <bruno@clisp.org>
88467
88468         * modules/version-etc-2: Remove file.
88469         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88470
88471 2003-10-06  Bruno Haible  <bruno@clisp.org>
88472
88473         * modules/fatal-signal: New file.
88474         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88475
88476 2003-10-06  Bruno Haible  <bruno@clisp.org>
88477
88478         * m4/fatal-signal.m4: New file.
88479         * m4/signalblocking.m4: New file, from GNU gettext.
88480
88481 2003-10-06  Bruno Haible  <bruno@clisp.org>
88482
88483         * lib/version-etc-2.h: Remove file.
88484         * lib/version-etc-2.c: Remove file.
88485
88486 2003-10-06  Bruno Haible  <bruno@clisp.org>
88487
88488         * lib/fatal-signal.h: New file, from GNU gettext.
88489         * lib/fatal-signal.c: New file, from GNU gettext.
88490
88491 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88492
88493         * README: Rework advice for preventing empty .o files.
88494         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88495         not <sys/types.h>.
88496
88497 2003-10-04  Karl Berry  <karl@gnu.org>
88498
88499         * lib/argp*: update from libc.
88500
88501 2003-10-04  Karl Berry  <karl@gnu.org>
88502
88503         * config/config.{guess,sub}: update from config.
88504
88505 2003-10-02  Bruno Haible  <bruno@clisp.org>
88506
88507         * modules/lchown (Include): Add lchown.h.
88508         * modules/time_r (Include): Use "..." syntax.
88509         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88510
88511 2003-10-01  Simon Josefsson  <jas@extundo.com>
88512
88513         * MODULES.html.sh (func_all_modules): Move gethostname from section
88514         'based on' to section 'lacking' POSIX:2001.
88515
88516 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88517
88518         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88519         to output mode on the same stream.
88520
88521 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88522
88523         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88524         Fix arg typo in previous patch.
88525
88526 2003-09-28  Jim Meyering  <jim@meyering.net>
88527
88528         * lib/error.c: Correct cpp indentation.
88529
88530 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88531
88532         * modules/free: New file.
88533
88534 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88535
88536         * m4/free.m4: New file.
88537
88538 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88539
88540         * lib/minmax.h (MIN, MAX)
88541         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88542         Omit the special code that used __typeof__, since we worry that
88543         it could be more trouble than it's worth.  See:
88544         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88545         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88546
88547         * lib/free.c: New file.
88548
88549 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88550
88551         Trivial fixes to Makefile.am parts of module listings.
88552         * modules/strstr: Append strstr.h to lib_SOURCES.
88553         * modules/strcase: Likewise, for strcase.h.
88554
88555 2003-09-27  Karl Berry  <karl@gnu.org>
88556
88557         * config/mkinstalldirs: update from automake.
88558
88559 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88560
88561         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88562         (error_tail): Do not loop, reallocating temporary buffer, since
88563         the output cannot contain more wide characters than the input
88564         contains bytes, the size must be big enough already.  This avoids
88565         one potential size overflow calculation.  Check for size overflow
88566         when calculating temporary buffer size.  Free temporary buffer
88567         when done, if it was allocated with malloc; this plugs a memory
88568         leak.  Remove casts from void * to pointers, that are no longer
88569         needed now that we're assuming C89 or better.
88570
88571         Merge error changes from glibc.
88572
88573         * lib/error.c, error.h: Update copyright notice header to match glibc.
88574         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88575         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88576         Disable cancellation while printing error.
88577         * lib/error.h: Prepend __ to parameter names.
88578
88579 2003-09-26  Jim Meyering  <jim@meyering.net>
88580
88581         * lib/error.c (error_tail): Move some declarations
88582         into inner scope where the local variables are used.
88583
88584 2003-09-26  Bruno Haible  <bruno@clisp.org>
88585
88586         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88587         stpncpy().
88588         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88589
88590 2003-09-26  Bruno Haible  <bruno@clisp.org>
88591
88592         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88593         (stpncpy): Define as alias for gnu_stpncpy.
88594         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88595
88596 2003-09-25  Simon Josefsson  <jas@extundo.com>
88597
88598         * lib/xgetdomainname.h: New file.
88599         * lib/xgetdomainname.c: New file.
88600
88601 2003-09-25  Simon Josefsson  <jas@extundo.com>
88602             Bruno Haible  <bruno@clisp.org>
88603
88604         * modules/getdomainname: New file.
88605         * modules/xgetdomainname: New file.
88606         * MODULES.html.sh (func_all_modules): Add getdomainname,
88607         xgetdomainname.
88608
88609 2003-09-25  Simon Josefsson  <jas@extundo.com>
88610             Bruno Haible  <bruno@clisp.org>
88611
88612         * m4/getdomainname.m4: New file.
88613
88614 2003-09-25  Simon Josefsson  <jas@extundo.com>
88615             Bruno Haible  <bruno@clisp.org>
88616
88617         * lib/getdomainname.h: New file.
88618         * lib/getdomainname.c: New file.
88619
88620 2003-09-25  Karl Berry  <karl@gnu.org>
88621
88622         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88623
88624 2003-09-25  Karl Berry  <karl@gnu.org>
88625
88626         * config/install-sh: update from automake.
88627
88628 2003-09-25  Bruno Haible  <bruno@clisp.org>
88629
88630         * modules/version-etc-2: New file, from modules/version-etc with
88631         modifications.
88632         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88633
88634 2003-09-25  Bruno Haible  <bruno@clisp.org>
88635
88636         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88637         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88638
88639 2003-09-24  Simon Josefsson  <jas@extundo.com>
88640
88641         * modules/xgethostname: Add xgethostname.h.
88642
88643 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88644
88645         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88646         the buffer associated with the argument.  Bug reported by
88647         Simon Josefsson.
88648
88649 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88650
88651         * README: Document assumptions that 'int' is at least 32 bits
88652         wide, that integer arithmetic is 2's complement without overflow,
88653         that there are no holes in integer values, that adding sizes of
88654         two nonoverlapping objects can't overflow, and that all-bits-zero
88655         yields scalar zero.  Fix spelling and capitalization typos.
88656
88657 2003-09-19  Karl Berry  <karl@gnu.org>
88658
88659         * lib/argp.h: update from libc.
88660
88661 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88662
88663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88664         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88665         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88666
88667 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88668
88669         * gnulib-tool: Use "test -h", not "test -L", for portability
88670         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88671         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88672         (sed_extract_prog): Issue s commands one-by-one, rather than
88673         using \| in one s command.
88674
88675 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88676
88677         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88678         input error, instead of returning NULL the next time we are called
88679         (and therefore losing track of errno).
88680
88681 2003-09-16  Bruno Haible  <bruno@clisp.org>
88682
88683         * gnulib-tool (func_create_testdir): Warn about duplicated
88684         dependencies.
88685
88686 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88687
88688         * modules/argmatch, modules/fatal, modules/obstack,
88689         modules/xalloc, modules/xgethostname: Sort dependencies by
88690         importance, not alphabetically.
88691
88692 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88693
88694         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88695         fails, so that the caller gets the proper errno.
88696
88697         * lib/readutmp.c (read_utmp): Likewise.
88698         Check for fstat error.  Close stream and free storage
88699         when failing.
88700
88701 2003-09-14  Karl Berry  <karl@gnu.org>
88702
88703         * config/srclist.txt (strdup.c): disable for c89 changes.
88704
88705 2003-09-14  Jim Meyering  <jim@meyering.net>
88706
88707         * lib/getloadavg.c: Correct cpp indentation.
88708         * lib/strdup.c: Likewise.
88709         * lib/vasnprintf.c: Likewise.
88710
88711 2003-09-14  Bruno Haible  <bruno@clisp.org>
88712
88713         * modules/fwriteerror: New file.
88714         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88715
88716 2003-09-14  Bruno Haible  <bruno@clisp.org>
88717
88718         * lib/fwriteerror.h: New file.
88719         * lib/fwriteerror.c: New file.
88720
88721 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88722
88723         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88724         modules/xgethostname, modules/xalloc: Depend on exit.
88725
88726 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88727
88728         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88729
88730         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88731         and AC_MINIX, too, so that their extensions are available.
88732
88733         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88734         This macro has been superseded by gl_BACKUPFILE.
88735
88736         More patches to assume C89 or better.
88737
88738         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88739
88740         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88741         unconditionally.
88742         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88743         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88744         Include <string.h>, <stdlib.h> unconditionally.
88745         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88746         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88747         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88748         headers or for string.h.
88749         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88750         or strtoul.
88751
88752         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88753         headers.
88754         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88755         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88756         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88757         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88758         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88759         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88760         memcpy, memset.
88761         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88762         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88763         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88764         strtol.
88765         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88766         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88767         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88768         strtoul.
88769
88770 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88771
88772         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88773         * lib/obstack.c [!defined _LIBC]: Likewise.
88774         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88775         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88776         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88777
88778         More changes to assume C89 or better.
88779
88780         * lib/error.c (error_tail): Assume vprintf.
88781
88782         * lib/argmatch.c (getenv): Remove decl.
88783         * lib/progreloc.c (get_full_program_name): Define via prototype.
88784         * lib/setenv.c (clearenv): Likewise.
88785         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88786         needed.
88787         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88788         (malloc, memcpy): Remove decls.
88789         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88790         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88791         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88792         (memcpy): Remove macro.
88793         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88794         (__P): Remove.  All uses removed.
88795         (PTR): Remove.  All uses changed to void *.
88796         (CHAR_BIT, NULL): Remove.
88797         (spaces, zeros, memset_space, memset_zero)
88798         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88799         Remove.
88800         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88801         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88802         Define with prototype.
88803         Remove now-unnecessary prototype decl.
88804         (extra_args_spec): Assume ANSI C.  All uses changed.
88805         (extra_args_spec_iso): Remove.
88806         (my_strftime, emacs_strftimeu): Define via prototype.
88807         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88808         unconditionally.
88809         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88810         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88811         (strtoul, strtol): Remove decls.
88812         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88813         LONG_MAX): Remove.
88814         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88815         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88816         (LOCALE_PARAM_PROTO): New macro.
88817         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88818         (INTERNAL (strtol), strtol): Define with a prototype.
88819         (PARAMS): Remove.  All uses removed.
88820         * lib/tempname.c: Include <string.h> unconditionally.
88821         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88822         * lib/xgethostname.c (main): Define with a prototype.
88823         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88824         Include <stdlib.h> unconditionally.
88825         (calloc, malloc, realloc, free): Remove decls.
88826         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88827         Include <stdlib.h> unconditionally.  Sort include file names.
88828         (strtod): Remove.
88829         (xstrtod): Define with a prototype.
88830         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88831         (strtol, strtoul): Remove decls.
88832
88833 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88834
88835         More patches to assume C89 or better.
88836         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88837         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88838         string.h, memchr, STDC_HEADERS.
88839
88840 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88841
88842         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88843         Include <stdlib.h>, <string.h> unconditionally.
88844         Remove now-unnecessary cast to char *.
88845         * lib/strnlen.c: Include <string.h> unconditionally.
88846         * lib/yesno.c (yesno): Define with a prototype.
88847
88848 2003-09-11  Bruno Haible  <bruno@clisp.org>
88849
88850         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88851
88852 2003-09-10  Jim Meyering  <jim@meyering.net>
88853
88854         * lib/error.c: Correct indentation of cpp directives.
88855
88856 2003-09-10  Bruno Haible  <bruno@clisp.org>
88857
88858         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88859         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88860         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88861         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88862         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88863         <stdlib.h> and <string.h> checks.
88864         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88865         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88866
88867 2003-09-10  Bruno Haible  <bruno@clisp.org>
88868
88869         * lib/strcspn.c: Include <string.h> unconditionally.
88870         * lib/strpbrk.c: Include <string.h> unconditionally.
88871         * lib/strstr.c: Include <string.h> unconditionally.
88872         * lib/unicodeio.c: Include <string.h> unconditionally.
88873         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88874         * lib/unsetenv.c: Likewise.
88875         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88876         * lib/yesno.c: Include <stdlib.h> unconditionally.
88877         (rpmatch): Add prototype.
88878
88879 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88880
88881         More patches to assume C89 or better.
88882         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88883         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88884         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88885         or for string.h.
88886         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88887         stdlib.h.
88888         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88889         C headers.
88890         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88891         string.h.
88892         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88893         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88894         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88895         or for string.h.
88896         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88897         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88898         C headers.
88899         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88900         memcpy.
88901         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88902         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88903         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88904         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88905         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88906         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88907         string.h, free.
88908         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88909         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88910         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88911         C headers, or for string.h.
88912         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88913         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88914         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88915         headers, memory.h, stdlib.h, string.h, strings.h.
88916         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88917         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88918         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88919         strchr.
88920         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88921         headers, memory.h, string.h.
88922         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88923         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88924         free.
88925         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88926         headers.
88927         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88928         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88929         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88930         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88931         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88932
88933 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88934
88935         More K&R removal.
88936
88937         * lib/acosl.c (main): Use a prototype.
88938         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88939         tanl.c: Likewise.
88940
88941         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88942
88943         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88944         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88945         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88946         with a prototype.
88947         * lib/getopt.c (const): Remove macro.
88948         Include <string.h> unconditionally.
88949         (my_index): Remove; all uses changed to strchr.
88950         (strlen): Remove decl.
88951         (exchange): Remove forward decl; no longer needed.
88952         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88953         Define with prototype.
88954         * lib/getopt1.c (const): Remove macro.
88955         (getopt_long, getopt_long_only, main): Define with prototype.
88956
88957         * lib/getugroups.c: Include <string.h> unconditionally.
88958
88959         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88960         (getusershell, setusershell, endusershell, readname, main):
88961         Define with prototypes.
88962
88963         * lib/group-member.c: Include group-member.h first.
88964         Include <stdlib.h> unconditionally.
88965
88966         * lib/hard-locale.c: Include hard-locale.h first.
88967         Include <stdlib.h>, <string.h> unconditionally.
88968
88969         * lib/hash.c (free, malloc): Remove decls.
88970         Include <stdlib.h> unconditionally.
88971
88972         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88973         (getenv): Do not declare.
88974
88975         * lib/idcache.c: Include <string.h> unconditionally.
88976
88977         * lib/long-options.c: Include long-options.h first, to test interface.
88978         Include <stdlib.h> unconditionally.
88979
88980         * lib/makepath.c: Include makepath.h first, to test interface.
88981         Include <stdlib.h> and <string.h> unconditionally.
88982
88983         * lib/linebuffer.c: Include <stdlib.h>.
88984         (free): Remove decl.
88985
88986         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88987         stddef.h. rpl_malloc returns void *, not char *.
88988         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88989         prototype.
88990
88991         * lib/md5.h: Include <limits.h> unconditionally.
88992         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88993         (__P): Remove; all uses removed.
88994         * lib/md5.c: Include "md5.h" first.
88995         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88996         md5_buffer, md5_process_bytes, md5_process_block):
88997         Define with prototypes.
88998         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88999         * lib/sha.c: Include "sha.h" first.
89000         Include <stdlib.h>, <string.h> unconditionally.
89001
89002         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89003         * lib/memcmp.c (__ptr_t): Likewise.
89004         * lib/memrchr.c (__ptr_t): Likewise.
89005         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89006         Include <string.h> unconditionally.
89007         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89008         * lib/memchr.c: Include <stdlib.h> unconditionally.
89009         * lib/memchr.c (LONG_MAX): Remove.
89010         * lib/memrchr.c (LONG_MAX): Likewise.
89011         * lib/memchr.c (__memchr): Define via a prototype.
89012         * lib/memrchr.c (__memrchr): Likewise.
89013         * lib/memcmp.c (__P): Remove, and remove all uses.
89014         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89015         Remove forward decls; no longer needed.
89016         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89017         Use types required by C89 in prototype.
89018
89019         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89020         * lib/savedir.c: Likewise.
89021         * lib/mkdir.c (free): Remove decl.
89022         * lib/rmdir.c (rmdir): Define with a prototype.
89023         * lib/savedir.c: Include savedir.h first, to test interface.
89024
89025         * lib/mktime.c (STDC_HEADERS): Remove.
89026         Include <stdlib.h>, <string.h> unconditionally.
89027
89028         * lib/modechange.c: Include <stdlib.h> unconditionally.
89029         (malloc): Remove decl.
89030
89031         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89032         (free): Remove decl.
89033
89034         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89035         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89036         (This type really should be intptr_t, but that's a C99ism.)
89037         (_obstack_memcpy): Remove: all uses changed to memcpy.
89038         Include <string.h> unconditionally.
89039         (struct obstack): Assume __STDC__ for types of members
89040         chunkfun, freefun, extra_arg.
89041         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89042         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89043         obstack_begin, obstack_specify_allocation,
89044         obstack_specify_allocation_with_arg, obstack_chunkfun,
89045         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89046         Remove unprototyped decls and the macros that use them.
89047         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89048         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89049         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89050         (defined __STDC__ && __STDC__)]:
89051         Remove nonprototyped code.
89052         Include <stdlib.h> unconditionally.
89053         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89054         _obstack_allocated_p, _obstack_free, obstack_free,
89055         _obstack_memory_used, print_and_abort):
89056         Define using prototypes.
89057         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89058         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89059         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89060         obstack_next_free, obstack_object_size, obstack_room) [0]:
89061         Remove unused, unprototyped code.
89062
89063         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89064
89065         * lib/physmem.c (physmem_total, physmem_available, main): Define
89066         with prototypes.
89067
89068         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89069         (main): Define with a prototype.
89070
89071         * lib/posixver.c (getenv): Remove decl.
89072
89073         * lib/putenv.c (malloc): Returns void *, not char *.
89074         Include <string.h> unconditionally.
89075         (strchr, memcpy, NULL): Do not define.
89076
89077         * lib/readtokens.c: Include readtokens.h first, to test interface.
89078         Include <stdlib.h>, <string.h> unconditionally.
89079         (init_tokenbuffer): Define with a prototype.
89080
89081         * lib/regex.c (PARAMS): Remove.  All uses removed.
89082         All uses of _RE_ARGS removed, too.
89083         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89084         unconditionally.
89085         (bzero): Assume memset exists.
89086         (memcmp, memcpy, NULL): Remove.
89087         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89088         char, or assignments to local vars of type signed char.
89089         (init_syntax_once, PREFIX(extract_number_and_incr),
89090         PREFIX(print_partial_compiled_pattern),
89091         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89092         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89093         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89094         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89095         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89096         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89097         wcs_compile_range, byte_compile_range, truncate_wchar,
89098         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89099         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89100         count_mbs_length, wcs_re_match_2_internal,
89101         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89102         PREFIX(alt_match_null_string_p),
89103         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89104         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89105         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89106         now-unnecessary declaration, if any.
89107         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89108         regcomp, regexec):
89109         Remove now-unnecessary casts among pointer types.
89110         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89111
89112         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89113         (free): Remove decl.
89114
89115         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89116
89117         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89118         (free): Remove decl.
89119
89120         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89121         * lib/xgetcwd.c: Likewise.
89122
89123         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89124         (free): Remove decl.
89125
89126         * lib/strchrnul.c (strchrnul): Define with a prototype.
89127         Fix bug: c_in was not converted to char before searching.
89128
89129         The following changes are not K&R related:
89130
89131         * lib/group-member.h: Include <sys/types.h>, so that this file is
89132         self-contained.
89133         * lib/makepath.h: Likewise.
89134
89135         * lib/getusershell.c (readname, default_index, line_size, readname):
89136         Use size_t, not int, for sizes.
89137         (readname): If the size overflows, report an error instead of
89138         looping forever.
89139
89140 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89141
89142         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89143         libc.
89144
89145 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89146
89147         * README: New section: portability guidelines.
89148
89149 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89150
89151         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89152         C89 spec.
89153
89154 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89155
89156         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89157
89158 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89159
89160         Assume C89 or better; remove K&R cruft.
89161         A few of these changes were first proposed by Derek Robert Price
89162         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89163
89164         * lib/addext.c: Include <string.h> unconditionally.
89165         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89166         Don't declare getenv or malloc.
89167
89168         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89169         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89170         (NULL): Remove.
89171         (find_stack_direction, alloca): Use prototypes.
89172
89173         * lib/atexit.c (atexit): Define using a prototype.
89174
89175         * lib/basename.c, dirname.c, stripslash.c:
89176         Include <string.h> unconditionally.
89177
89178         * lib/bcopy.c: Include <stddef.h>.
89179         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89180
89181         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89182
89183         * lib/error.h (error, error_at_line, error_print_progname)
89184         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89185         * lib/error.c: Include error.h first, to check interface.
89186         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89187         (VA_START): Remove; all uses changeed to va_start.
89188         (exit, strerror): Remove decls.
89189         (error_print_progname): Prototype uncondionally.
89190         Don't include <errno.h>; no longer needed.
89191         (private_strerror): Remove.
89192         (error_tail): Always define.
89193         (error, error_at_line): Assume C89 or better; always use prototypes.
89194         * lib/fatal.c: Include "fatal.h" first, to test interface.
89195         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89196         (VA_START): Remove; all uses changed to va_start.
89197         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89198         this case.
89199         (exit): Remove decl.
89200         (fatal): Prototype unconditionally.  Assume va_start works.
89201         Abort at end, to pacify gcc.
89202
89203         * lib/euidaccess.c (main): Define with a prototype.
89204
89205         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89206
89207         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89208
89209         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89210         prototypes.
89211         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89212         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89213         (getenv): Remove decl.
89214         (fnmatch): Define using a prototype.
89215         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89216         (FCT): Define using a prototype.
89217
89218         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89219
89220         * lib/gethostname.c: Include <stddef.h>.
89221         (gethostname): Define with prototype.  Length is size_t, not int.
89222
89223 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89224
89225         Assume C89 or better; remove K&R cruft.
89226         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89227         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89228         string.h, getenv, malloc.
89229         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89230         headers.
89231         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89232         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89233         do not check for strerror.
89234         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89235         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89236         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89237         do not check for doprnt or vprintf.
89238         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89239         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89240
89241 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89242
89243         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89244         getversion.c should have been removed then, but was accidentally
89245         preserved.
89246
89247         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89248         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89249
89250 2003-09-08  Karl Berry  <karl@gnu.org>
89251
89252         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89253                 config, forget about prep.
89254
89255         * config/depcomp, missing: update from automake.
89256
89257 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89258
89259         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89260         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89261
89262 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89263
89264         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89265         copy_tm_result.  Bug reported by Simon Josefsson in
89266         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89267
89268 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89269
89270         * m4/time_r.m4: New file.
89271         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89272         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89273         is. Check for timegm declaration.
89274         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89275         Do not check for gmtime_r.
89276         Replace mktime if __mktime_internal does not exist and if mktime
89277         hasn't been replaced already.
89278
89279 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89280
89281         * lib/time_r.c, lib/time_r.h: New files.
89282
89283         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89284         __localtime_r.
89285         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89286         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89287
89288         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89289         __gmtime_r.
89290         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89291         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89292         Include <time_r.h>.
89293
89294         * lib/timegm.c: Switch to glibc implementation, with the following
89295         changes:
89296         [defined HAVE_CONFIG_H]: Include <config.h>.
89297         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89298         (__mktime_internal) [!defined _LIBC]: New decl.
89299         (__gmtime_r) [!defined _LIBC]: New macro and function.
89300         (timegm): Use a prototype, since gnulib assumes C89.
89301         Do not bother declaring tmp to be const, as it's not really usefu.
89302         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89303         (timegm): Declare only if HAVE_DECL_TIMEGM.
89304
89305 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89306
89307         * MODULES.html.sh (func_all_modules): Add time_r.
89308         * modules/time_r: New file.
89309         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89310         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89311
89312 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89313
89314         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89315         Bug reported by Lute Kamstra in
89316         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89317
89318         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89319         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89320         course with correspondingly smaller numbers for tomorrow and
89321         yesterday.  From Tadayoshi Funaba.  Originally installed into
89322         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89323         coreutils merge?).
89324
89325 2003-08-31  Simon Josefsson  <jas@extundo.com>
89326
89327         * modules/timegm: New file.
89328         * MODULES.html.sh (func_all_modules): Add timegm.
89329
89330 2003-08-31  Simon Josefsson  <jas@extundo.com>
89331
89332         * m4/timegm.m4: New file.
89333
89334 2003-08-31  Simon Josefsson  <jas@extundo.com>
89335
89336         * lib/timegm.h: New file.
89337         * lib/timegm.c: New file.  Based on
89338         wget-1.8.2/src/http.c:mktime_from_utc.
89339
89340 2003-08-31  Karl Berry  <karl@gnu.org>
89341
89342         * lib/argp.h: update from libc.
89343
89344 2003-08-28  Bruno Haible  <bruno@clisp.org>
89345
89346         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89347         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89348         followed by '#define fnmatch fnmatch_posix' gives an error.
89349
89350 2003-08-28  Bruno Haible  <bruno@clisp.org>
89351
89352         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89353         warning on QNX, which defines O_BINARY to 000000.
89354
89355 2003-08-27  Jim Meyering  <jim@meyering.net>
89356
89357         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89358         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89359         would fail after 32.  Reported by Danny Levinson.  Details here:
89360         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89361
89362 2003-08-24  Bruno Haible  <bruno@clisp.org>
89363
89364         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89365         MSVC7 <stdio.h> is included later.
89366
89367 2003-08-22  Simon Josefsson  <jas@extundo.com>
89368
89369         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89370
89371 2003-08-20  Karl Berry  <karl@gnu.org>
89372
89373         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89374
89375 2003-08-20  Bruno Haible  <bruno@clisp.org>
89376
89377         * modules/progname: New file.
89378         * MODULES.html.sh (func_all_modules): Add progname.
89379
89380 2003-08-20  Bruno Haible  <bruno@clisp.org>
89381
89382         * lib/progname.h: New file, from GNU gettext.
89383         * lib/progname.c: New file, from GNU gettext.
89384         * lib/progreloc.c: New file, from GNU gettext.
89385
89386 2003-08-19  Jim Meyering  <jim@meyering.net>
89387
89388         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89389         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89390
89391 2003-08-19  Bruno Haible  <bruno@clisp.org>
89392
89393         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89394         more.
89395
89396 2003-08-19  Bruno Haible  <bruno@clisp.org>
89397
89398         * lib/xstrdup.c: Assume <string.h> exists.
89399
89400 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89401
89402         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89403         in makefile rules.
89404
89405 2003-08-18  Jim Meyering  <jim@meyering.net>
89406
89407         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89408         * m4/lib-ld.m4: Likewise.
89409
89410 2003-08-18  Jim Meyering  <jim@meyering.net>
89411
89412         * lib/setenv.h: Indent nested cpp directive.
89413         * lib/vasnprintf.c: Remove trailing blanks.
89414
89415 2003-08-17  Simon Josefsson  <jas@extundo.com>
89416
89417         * modules/xstrndup: New file.
89418         * MODULES.html.sh (func_all_modules): Add xstrndup.
89419
89420 2003-08-17  Simon Josefsson  <jas@extundo.com>
89421
89422         * modules/argp: Fix autoconf macro name. Add more dependencies.
89423
89424 2003-08-17  Simon Josefsson  <jas@extundo.com>
89425
89426         * m4/xstrndup.m4: New file.
89427
89428 2003-08-17  Simon Josefsson  <jas@extundo.com>
89429
89430         * m4/argp.m4: New file.
89431
89432 2003-08-17  Simon Josefsson  <jas@extundo.com>
89433             Bruno Haible  <bruno@clisp.org>
89434
89435         * lib/xstrndup.h: New file.
89436         * lib/xstrndup.c: New file.
89437
89438 2003-08-17  Bruno Haible  <bruno@clisp.org>
89439
89440         * modules/strndup (Files, Include): Add lib/strndup.h.
89441
89442 2003-08-17  Bruno Haible  <bruno@clisp.org>
89443
89444         * modules/euidaccess (Files): Add lib/euidaccess.h.
89445
89446 2003-08-17  Bruno Haible  <bruno@clisp.org>
89447
89448         * lib/strndup.h: New file.
89449
89450 2003-08-17  Bruno Haible  <bruno@clisp.org>
89451
89452         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89453         like AC_GNU_SOURCE.
89454         * modules/extensions (configure.ac): Comment out the invocation of
89455         gl_USE_SYSTEM_EXTENSIONS.
89456
89457 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89458
89459         Merges from coreutils, etc.
89460         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89461         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89462         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89463         fixing a typo.
89464         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89465         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89466
89467 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89468
89469         Document merge from coreutils.
89470         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89471         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89472         * modules/utime: Add m4/utimes-null.m4.
89473
89474 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89475
89476         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89477         space, undoing this 2003-08-12 change:
89478         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89479
89480 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89481
89482         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89483         strtoul.c from libc, undoing this 2003-08-12 change:
89484         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89485
89486 2003-08-16  Jim Meyering  <jim@meyering.net>
89487
89488         Merges from coreutils.
89489         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89490         prefix.  Adjust cache variables similarly.  Create 500 rather than
89491         just 300 files, to exercise bug on Darwin6.5, too.
89492         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89493         $missing_dir.
89494         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89495         AM_SYS_POSIX_TERMIOS.
89496         Reported by mkc@mathdogs.com.
89497         Also change use of $am_cv_sys_posix_termios
89498         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89499         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89500         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89501         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89502         in /proc/mounts until it finds one with matching device number.  This
89503         is unnecessary when the FILE argument *is* a mount point.  No stat call
89504         is necessary in that case.  So, disable the statvfs-testing code on
89505         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89506         as RedHat bug# 84846.
89507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89508         to 1MB, so as not to render systems with no stack size limit (e.g.,
89509         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89510         Include <unistd.h>.  On some systems,
89511         it is required for the definition of _SC_PAGESIZE.
89512
89513 2003-08-16  Jim Meyering  <jim@meyering.net>
89514
89515         Merge from coreutils.
89516         * lib/xstrtoimax.c: #else #if -> #elif.
89517         * lib/xstrtoumax.c: Likewise.
89518
89519 2003-08-16  Jim Meyering  <jim@meyering.net>
89520
89521         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89522         * m4/utimes.m4: Removed.
89523         * m4/utimes-null.m4: Renamed from utimes.m4.
89524
89525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89526         to 1MB, so as not to render systems with no stack size limit (e.g.,
89527         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89528         Include <unistd.h>.  On some systems,
89529         it is required for the definition of _SC_PAGESIZE.
89530
89531 2003-08-16  Jim Meyering  <jim@meyering.net>
89532         and Paul Eggert  <eggert@cs.ucla.edu>
89533
89534         Merges from coreutils, etc.
89535
89536         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89537         using the latest version from cvs.  This avoids problems with #line
89538         directives using a vendor (Sun) compiler.
89539         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89540         Don't set GETGROUPS_LIB here; now it's
89541         done via getgroups.m4's wrapper function.
89542         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89543         rather than just in sh-util/configure.in, so that the
89544         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89545         same.
89546         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89547         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89548         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89549         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89550         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89551         Remove code that is now done by the newly-required macros.
89552         Append $(EXEEXT) to DF_PROG.
89553         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89554         Do not invoke or require the following here,
89555         since prereq.m4 or some gnulib .m4 now does this for us:
89556         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89557         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89558         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89559         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89560         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89561         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89562         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89563         AC_FUNC_OBSTACK.
89564         Do not replace the following functions, as this is now the job
89565         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89566         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89567         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89568         atexit getpass, strdup, getpagesize.
89569         Replace 'raise'.
89570         Do not check for the following functions, as this is now the job
89571         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89572         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89573         setregid.
89574         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89575         Check for sys/sysctl.h.
89576         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89577         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89578         of checking for ssize_t ourselves.
89579
89580         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89581         Require every macro that gnulib/modules/* suggests for us.
89582         (jm_PREREQ_ADDEXT): New macro.
89583         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89584         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89585
89586         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89587         (gl_PHYSMEM): Use it.
89588         Also check for `table' function.
89589         Check for new headers and functions.
89590         Add check for sys/sysmp.h.
89591         With suggestions from Kaveh Ghazi.
89592         Ignore headers that are present but cannot be compiled.  This
89593         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89594         C 5.4.
89595
89596 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89597
89598         Document merge from coreutils.
89599         * modules/userspec: Depend on posixver.
89600         * modules/strftime: Depend on tzset.
89601
89602 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89603
89604         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89605         rather than tab, after '#' in shell-script copyright notices.
89606         Suggested by Bruno Haible.
89607
89608 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89609
89610         * config/srclist-update: Use three spaces, rather than tab, after '#'
89611         in shell-script copyright notices.  Suggested by Bruno Haible.
89612         Remove unnecessary parenthesization in regular expression.
89613
89614 2003-08-15  Jim Meyering  <jim@meyering.net>
89615
89616         Merge from coreutils.
89617         * lib/xgethostname.c: Include <stdlib.h>.
89618         (xghostname): Don't exit for anything other than memory-related
89619         failure; just return NULL.
89620         * lib/userspec.c: Include "posixver.h".
89621         (parse_user_spec): Accept `.' as a separator only
89622         in pre-POSIX-200112 mode.
89623         * lib/strtoimax.c: Use #elif rather than #else #if.
89624         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89625         Remove function, now that we can rely on a working tzset function.
89626         [!_LIBC]: Ensure that the required autoconf test has been run.
89627         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89628         Use underlying_strftime for %r.
89629         * lib/sha.c: Merge in some clean-up and optimization changes from
89630         glibc.
89631         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89632         Ensure that it is a multiple of 64.
89633         Rearrange loop exit tests so as to avoid performing an
89634         additional fread after encountering an error or EOF.
89635         * lib/realloc.c: Update copyright date.
89636
89637 2003-08-15  Jim Meyering  <jim@meyering.net>
89638         and Paul Eggert  <eggert@twinsun.com>
89639
89640         Merge from coreutils.
89641         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89642         member but strut utmpx does not.  Needed for AIX 4.3.3.
89643         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89644
89645 2003-08-15  Jim Meyering  <jim@meyering.net>
89646         and Paul Eggert  <eggert@cs.ucla.edu>
89647
89648         Merges from coreutils, etc.
89649         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89650         Require gl_FUNC_TZSET_CLOBBER.
89651         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89652         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89653         members.
89654
89655 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89656
89657         Help the merge from coreutils.
89658         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89659         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89660         * m4/tzset.m4: Use it too.
89661
89662 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89663
89664         * modules/tzset: New file.
89665
89666 2003-08-14  Jim Meyering  <jim@meyering.net>
89667
89668         Merges from coreutils.
89669         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89670         variable names, rather than @FNMATCH_H@.
89671         * modules/alloca: Likewise for $(ALLOCA_H).
89672
89673         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89674         the three copies of the literal target, `fnmatch.h'.
89675         * modules/alloca (alloca.h): Likewise.
89676
89677 2003-08-14  Jim Meyering  <jim@meyering.net>
89678
89679         Merge from coreutils.
89680         * m4/tzset.m4: New file.
89681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89682         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89683         otherwise, AIX 5.1 systems would end up using the latter.
89684         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89685         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89686         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89687         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89688
89689 2003-08-14  Jim Meyering  <jim@meyering.net>
89690
89691         Merge from coreutils.
89692         * lib/obstack.h: Whitespace changes.
89693         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89694         and xcalloc return values.
89695         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89696         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89697         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89698         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89699         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89700         error from mntctl.
89701         Use mntctl's return value to drive the entry-processing loop, since
89702         we can't rely on the value of the vmt_length member in the last
89703         entry.  On some systems doing so could result in exhausting
89704         virtual memory.  Based in part on a patch from Mike Jetzer.
89705
89706 2003-08-14  Jim Meyering  <jim@meyering.net>
89707         and Paul Eggert  <eggert@twinsun.com>
89708
89709         Merges from coreutils, plus other fixes.
89710         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89711         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89712         for credits and details.  Thanks to Kaveh Ghazi for helping
89713         to keep these files in sync.
89714         (ARRAY_SIZE): Define it.
89715         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89716         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89717         (memcasecmp): Don't assume size_t fits in unsigned int.
89718         Remove casts and duplicate code.
89719         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89720         (memcpy): Remove definition.
89721         Merge in some clean-up and optimization changes from glibc.
89722         [BLOCKSIZE]: Move definition to top of file.
89723         Ensure that it is a multiple of 64.
89724         Rearrange loop exit tests so as to avoid performing an
89725         additional fread after encountering an error or EOF.
89726         * lib/md5.h (md5_uintptr): Define.
89727         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89728         return to the initial working directory.  Preserve errno
89729         for caller.
89730         * lib/idcache.c: Include "xalloc.h".
89731         (xmalloc, xrealloc): Remove decls.
89732         (getuser): Remove casts no longer required in C89.
89733         * lib/human.c: Include stdio.h, for sprintf.
89734         * lib/group-member.c: Include "xalloc.h".
89735         (xmalloc, xrealloc): Remove decls.
89736         (get_group_info): Remove casts no longer required in C89.
89737         * lib/getusershell.c (readname): Remove casts no longer required in
89738         C89.
89739         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89740         * lib/getline.c: Whitespace fix, from coreutils.
89741
89742 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89743
89744         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89745         Check for isascii.
89746
89747         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89748         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89749         Undo previous (whitespace-only) change.
89750
89751 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89752
89753         * lib/exclude.c: Include <ctype.h>
89754         (IN_CTYPE_DOMAIN): New macro.
89755         (is_space): New fn.
89756         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89757         and empty lines.
89758
89759         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89760         Undo previous (whitespace-only) change.
89761
89762 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89763
89764         * config/srclist-update: Change update back to the old behavior,
89765         leaving whitespace alone.  Use one 'sed' command rather than a
89766         pipeline.
89767         (fixlicense): Now a variable, not a function.
89768         (remove_trailing_blanks): Remove.
89769         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89770         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89771         Undo previous (whitespace-only) change.
89772
89773 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89774
89775         Merge from coreutils.
89776         * modules/euidaccess: Add lib_SOURCES, include for new
89777         file euidaccess.h
89778
89779 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89780
89781         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89782         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89783         Normalize leading white space and remove trailing white space.
89784
89785         Merge from coreutils
89786         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89787
89788         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89789         0.12.1.  These files are now being upgraded automatically by
89790         ../config/srclist-update.
89791
89792 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89793
89794         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89795         Normalize leading white space and remove trailing white space.
89796         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89797         notice, as per ../config/srclist-update.
89798
89799         Merge from coreutils.
89800         * lib/euidaccess.h: New file.
89801         * lib/euidaccess.c: Include it.
89802         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89803         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89804         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89805
89806 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89807
89808         * config/srclist-update: Add copyright notice.
89809         (remove_id_lines, remove_trailing_blanks): New constants.
89810         (fixfile): Use them to normalize spacing a bit in copied files.
89811         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89812         Normalize leading white space and remove trailing white space.
89813
89814         * config/texinfo.tex: Sync with texinfo.
89815
89816         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89817         strtoul.c from libc, to merge coreutils whitespace changes.
89818
89819         * config/srclist.txt: Get the following m4 files from gettext:
89820         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89821         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89822         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89823         wint_t.m4.
89824
89825 2003-08-12  Karl Berry  <karl@gnu.org>
89826
89827         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89828         been made.
89829
89830 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89831
89832         * modules/gnu-source, m4/gnu-source.m4:
89833         Remove; we're assuming Autoconf 2.54 or later now.
89834         Suggested by Bruno Haible.
89835         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89836
89837 2003-08-11  Bruno Haible  <bruno@clisp.org>
89838
89839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89840
89841 2003-08-11  Bruno Haible  <bruno@clisp.org>
89842
89843         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89844         (vasnprintf): Use it instead of wcslen.
89845
89846 2003-08-11  Bruno Haible  <bruno@clisp.org>
89847
89848         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89849         value to ensure that _Bool promotes to int. Use #define for _Bool when
89850         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89851
89852 2003-08-10  Karl Berry  <karl@gnu.org>
89853
89854         * lib/regex.h: update from libc (whitespace fix).
89855
89856 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89857
89858         Merge some files from coreutils.  These changes were
89859         originally made by Jim Meyering.
89860         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89861         many older Unixes require this.
89862         * lib/alloca.c (alloca): Remove cast to argument of free;
89863         no longer needed in C89.
89864         * lib/alloca_.h, regex.h: Fix white space to match
89865         what GNU indent does.
89866
89867 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89868
89869         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89870         apparently Emacs's Unicode mode got confused before my 2003-08-05
89871         checkin.
89872
89873 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89874
89875         * m4/extensions.m4: New file.
89876         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89877         Require gl_USE_SYSTEM_EXTENSIONS.
89878         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89879         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89880
89881 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89882
89883         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89884         * modules/extensions, modules/gnu-source: New files.
89885         * modules/timespec, modules/unlocked-io: Depend on extensions.
89886
89887 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89888
89889         * modules/restrict: New file.
89890         * MODULES.html.sh (func_all_modules): Add restrict.
89891         * modules/regex: Depend on restrict.
89892
89893 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89894
89895         * m4/restrict.m4: New file.
89896         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89897
89898 2003-08-07  Bruno Haible  <bruno@clisp.org>
89899
89900         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89901         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89902
89903 2003-08-07  Bruno Haible  <bruno@clisp.org>
89904
89905         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89906         makes the module 'getndelim2' compatible with the module 'getline'.
89907
89908 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89909
89910         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89911         byte with "\201" to avoid glitches when editing that source file
89912         with multi-gnome-terminal.
89913
89914 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89915
89916         * lib/bumpalloc.h: Remove.
89917
89918 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89919
89920         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89921         * modules/bumpalloc: Remove.
89922
89923 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89924
89925         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89926         GNU coding style.
89927
89928         Merge from coreutils.
89929         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89930         1. From glibc.
89931         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89932         from Karl Berry, implemented by Jim Meyering.
89933         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89934         from Dmitry V. Levin.
89935         Remove anachronistic cast of xrealloc.
89936         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89937         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89938         type. Otherwise, it wouldn't compile with at least /bin/cc on
89939         ymp-cray-unicos9.0.2.X.
89940         Combine two mostly-identical uses of alloca into one.
89941         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89942
89943 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89944
89945         [From Emacs.]
89946
89947         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89948         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89949         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89950         obsolete NLIST_NAME_UNION.
89951         [__GNU__]: Undef BSD and FSCALE.
89952         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89953
89954 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89955
89956         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89957         an enum type, so that it's guaranteed to promote to int.  See:
89958         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89959
89960 2003-08-03  Karl Berry  <karl@gnu.org>
89961
89962         * config/depcomp: update from automake.
89963
89964 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89965
89966         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89967         (strerror): Don't assume that a printable int fits in 14 bytes.
89968
89969 2003-07-31  Bruno Haible  <bruno@clisp.org>
89970
89971         * modules/getpass-gnu: New file.
89972         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89973
89974 2003-07-31  Bruno Haible  <bruno@clisp.org>
89975
89976         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89977
89978 2003-07-24  Karl Berry  <karl@gnu.org>
89979
89980         * config/missing: update from automake.
89981
89982 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89983             Bruno Haible  <bruno@clisp.org>
89984
89985         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89986         * lib/getline.c (getline, getdelim): Likewise.
89987         Remove _GNU_SOURCE define; now it's defined in config.h through
89988         m4/getline.m4.
89989
89990 2003-07-23  Karl Berry  <karl@gnu.org>
89991
89992         * config/config.sub: update from prep.
89993
89994 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89995
89996         * modules/xalloc (Depends-on): Add exitfail.
89997         * modules/xmemcoll: Likewise.
89998
89999 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90000
90001         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90002         over-parenthesization in macros.
90003
90004         Sync with coreutils.
90005
90006         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90007         required by C99.
90008
90009         Use `exit_failure' for xalloc and xmemcoll instead of their own
90010         private exit-failure variables.
90011         * lib/xalloc.h (xalloc_exit_failure): Remove.
90012         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90013         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90014         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90015         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90016         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90017
90018 2003-07-20  Jim Meyering  <jim@meyering.net>
90019
90020         * modules/closeout (Depends-on): Add exitfail.
90021         Suggestion from Bruno Haible.
90022
90023 2003-07-19  Karl Berry  <karl@gnu.org>
90024
90025         * config/config.sub: update from prep.
90026
90027 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90028
90029         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90030         Remove.
90031         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90032         to test that it can stand by itself.  Include "exitfail.h".
90033         Clients should set exit_failure instead.
90034         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90035
90036 2003-07-18  Bruno Haible  <bruno@clisp.org>
90037
90038         * modules/getndelim2: New file.
90039         * modules/getline: Share files with module getndelim2.
90040         * modules/getnline: Depend on getndelim2 instead of sharing files with
90041         it. Add getnline.c to lib_SOURCES.
90042         * MODULES.html.sh (func_all_modules): Add getndelim2.
90043
90044 2003-07-18  Bruno Haible  <bruno@clisp.org>
90045
90046         * m4/getndelim2.m4: New file.
90047         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90048         invoke gl_PREREQ_GETNDELIM2.
90049         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90050         gl_PREREQ_GETNDELIM2.
90051         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90052         gl_GETNDELIM2.
90053
90054 2003-07-18  Bruno Haible  <bruno@clisp.org>
90055
90056         * lib/getndelim2.h: New file.
90057         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90058         getndelim2.h.
90059         (getndelim2): Make non-static. Change return type to ssize_t.
90060         * lib/getline.h: Change argument names.
90061         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90062         * lib/getnline.c: Include getndelim2.h.
90063
90064 2003-07-18  Andreas Schwab  <schwab@suse.de>
90065
90066         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90067
90068 2003-07-17  Karl Berry  <karl@gnu.org>
90069
90070         * config/config.sub: update from prep.
90071
90072 2003-07-17  Bruno Haible  <bruno@clisp.org>
90073
90074         * modules/getnline: New file.
90075         * modules/getline: Add lib/getndelim2.c to source file list.
90076         * MODULES.html.sh (func_all_modules): Add getnline.
90077
90078 2003-07-17  Bruno Haible  <bruno@clisp.org>
90079
90080         * m4/getnline.m4: New file.
90081
90082 2003-07-17  Bruno Haible  <bruno@clisp.org>
90083
90084         * m4/Makefile.am.in: Remove file.
90085         * m4/Makefile.am: Remove file.
90086         * m4/Makefile.in: Remove file.
90087
90088 2003-07-17  Bruno Haible  <bruno@clisp.org>
90089
90090         * lib/getnline.h: New file.
90091         * lib/getnline.c: New file.
90092         * lib/getndelim2.c: New file, extracted from getline.c.
90093         (getndelim2): Renamed from getdelim2, with added nmax argument.
90094         * lib/getline.c: Include getndelim2.c.
90095         (getdelim2): Moved out to getndelim2.c.
90096         (getline, getdelim): Update.
90097
90098 2003-07-17  Bruno Haible  <bruno@clisp.org>
90099
90100         * lib/Makefile.am: Remove file.
90101         * lib/Makefile.in: Remove file.
90102
90103 2003-07-17  Bruno Haible  <bruno@clisp.org>
90104
90105         * configure.in: Remove file.
90106         * Makefile.in: Remove file.
90107
90108 2003-07-17  Bruno Haible  <bruno@clisp.org>
90109
90110         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90111
90112 2003-07-16  Karl Berry  <karl@gnu.org>
90113
90114         * config/srclist-update: was running fixlicense twice, which caused
90115                 texinfo.tex to be nullified for some reason.  Simplify,
90116                 $gplsrc is no longer needed as far as I can see?
90117
90118 2003-07-16  Jim Meyering  <jim@meyering.net>
90119
90120         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90121
90122 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90123
90124         * config/srclist.txt: Get the following files from gettext-runtime/intl
90125         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90126         ref-del.sin.  From Bruno Haible.
90127         * config/srclist-update (fixfile): Change grep pattern again, since the
90128         previous fix didn't work (there was another trailing $).  Use
90129         '[$]' to escape the $s.
90130
90131 2003-07-15  Karl Berry  <karl@gnu.org>
90132
90133         * lib/vasnprintf.c: update from gettext.
90134
90135 2003-07-15  Karl Berry  <karl@gnu.org>
90136
90137         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90138         gets expanded when surrounded by '$'.
90139
90140 2003-07-15  Jim Meyering  <jim@meyering.net>
90141
90142         * modules/save-cwd: Don't depend on error.  From Derek Price.
90143
90144 2003-07-15  Jim Meyering  <jim@meyering.net>
90145
90146         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90147
90148 2003-07-14  Simon Josefsson  <jas@extundo.com>
90149
90150         * modules/mempcpy: New file.
90151         * MODULES.html.sh (func_all_modules): Add mempcpy.
90152
90153 2003-07-14  Simon Josefsson  <jas@extundo.com>
90154
90155         * m4/mempcpy.m4: New file.
90156
90157 2003-07-14  Simon Josefsson  <jas@extundo.com>
90158
90159         * lib/mempcpy.h: New file.
90160         * lib/mempcpy.c: New file.
90161
90162 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90163
90164         * modules/getdate, modules/posixtm: Depend on mktime.
90165
90166 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90167
90168         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90169         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90170         unicodeio.c, unicodeio.h, unlocked-io.h:
90171         Switch from LGPL to GPL.
90172
90173 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90174
90175         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90176         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90177         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90178         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90179         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90180         updated automatically by ../config/srclist-update.  This changes
90181         their license from LPGL to GPL.
90182
90183 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90184
90185         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90186         assumed to refer to the root of the most recent stable gettext version.
90187         * config/srclistvars.sh: Add defaults for eggert.
90188         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90189         Match "This program" as well as "The program".  This is needed
90190         for gettext.
90191
90192 2003-07-14  Jim Meyering  <jim@meyering.net>
90193
90194         Don't emit diagnostics.  Let callers do that.
90195         * lib/save-cwd.c: Don't include "error.h".
90196         (save_cwd): Don't call error.  Ensure that errno is valid
90197         when returning nonzero.
90198
90199         * lib/save-cwd.h (restore_cwd): Update prototype.
90200         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90201         Simplify.  Don't call error upon failure.  Let callers do that.
90202         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90203         when auditing is enabled.  But don't bother updating the #if.
90204
90205 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90206
90207         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90208         it breaks C++ compilation.
90209         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90210
90211 2003-07-10  Simon Josefsson  <jas@extundo.com>
90212
90213         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90214
90215 2003-07-10  Jim Meyering  <jim@meyering.net>
90216
90217         * m4/clock_time.m4: Remove trailing blank.
90218         * m4/intmax_t.m4: Likewise.
90219
90220 2003-07-10  Jim Meyering  <jim@meyering.net>
90221
90222         * lib/vasnprintf.c: Remove trailing blanks.
90223         Make cpp indentation consistent.
90224
90225 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90226
90227         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90228         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90229         Switch from LGPL to GPL.
90230
90231 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90232
90233         * config/srclist.txt: Sort sublists.  Add
90234         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90235         that differ from gnulib for one reason or another; we'd like this list
90236         to be smaller but for now let's document what we have.
90237
90238 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90239
90240         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90241         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90242         and sweeter "eval x=$x".
90243         * config/srclist.txt: Get lib/argp* from glibc.
90244
90245 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90246
90247         * lib/mktime.c: Fix some boundary cases and remove need for floating
90248         point.
90249
90250         Issue a compile-time diagnostic if time_t is floating point, or if
90251         two's complement arithmetic is not in effect, or if arithmetic
90252         right shift does not propagate the sign.  These assumptions were
90253         all in the original code but they weren't checked.
90254
90255         (TIME_T_MIDPOINT, verify): New macros.
90256         (__isleap): Remove; it has integer overflow problems.
90257         (leapyear): New function, without those problems.
90258         (ydhms_tm_diff): Remove; splitting into two parts.
90259         (ydhms_diff): New function, containing the arithmetic part of
90260         the old ydhms_tm_diff function.  Issue a compile-time
90261         diagnostic if we are not using C99 integer division.
90262         Avoid casts when possible.
90263         (guess_time_tm): New function, containing the checking part of
90264         the old ydhms_tm_diff function.  Return the new value, rather than
90265         the difference between it and the old.  Accept a new argument T
90266         so that *T specifies the old value.  Check for overflow in the result.
90267
90268         (__mktime_internal): Use a time_t offset, not a long int offset.
90269         This undoes the 2003-06-04 change, which is no longer needed now
90270         that we have better overflow checking.
90271         (localtime_offset): Likewise.
90272
90273         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90274         and long are 64-bit but int is only 32-bit.
90275         (ydhms_diff): Use long int to store year1 and yday1.
90276         Issue a compile-time diagnostic if long int is not wide enough.
90277
90278         (__mktime_internal): Use long int to store adjusted year and yday.
90279         Use plain C rather than preprocessor commands, if that doesn't
90280         affect efficiency.
90281         Check for overflow (and try to repair) after each probe
90282         rather than checking only at the very end.  This avoids some bugs
90283         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90284         does not equal GMT offset at maximum time).
90285         Use integer to check for overflow rather than floating point; this
90286         is more portable to non-IEEE hosts, and is a tad faster.
90287         When we detect that we are oscillating between two values,
90288         don't check whether tm_isdst has the requested value, since
90289         we already know the answer.  When tm_isdst has the wrong value,
90290         use a different heuristic to find the right one, based on the
90291         extreme values actually observed in practice in tz2003a,
90292         rather than the (overly optimistic) "previous 3 calendar quarters".
90293
90294         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90295         "T const" to accommodate glibc style.
90296         (check_result): Use less-confusing report format.  "long" -> "long int.
90297         (main): Likewise.
90298         Don't loop if the iteration overflows time_t.
90299         Allow a negative step in the iteration.
90300
90301 2003-07-06  Karl Berry  <karl@gnu.org>
90302
90303         * config/depcomp: update from automake.
90304         * config/config.sub: update from prep.
90305
90306 2003-07-03  Karl Berry  <karl@gnu.org>
90307
90308         * config/config.guess: update from prep.
90309
90310 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90311
90312         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90313         xreadlink.c now includes it unconditionally.
90314
90315 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90316
90317         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90318         having it depend on HAVE_SYS_TYPES_H.
90319
90320 2003-07-01  Bruno Haible  <bruno@clisp.org>
90321
90322         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90323         <sys/types.h> should be sufficient.
90324         Reported by Paul Eggert.
90325
90326 2003-06-26  Karl Berry  <karl@gnu.org>
90327
90328         * config/depcomp: update from automake.
90329
90330 2003-06-26  Bruno Haible  <bruno@clisp.org>
90331
90332         * modules/human: Depend on module stdbool.
90333
90334 2003-06-25  Bruno Haible  <bruno@clisp.org>
90335
90336         * modules/readlink: New file.
90337         * modules/xreadlink: Depend on it.
90338         * MODULES.html.sh (func_all_modules): Add readlink.
90339
90340 2003-06-25  Bruno Haible  <bruno@clisp.org>
90341
90342         * m4/readlink.m4: New file.
90343
90344 2003-06-25  Bruno Haible  <bruno@clisp.org>
90345
90346         * lib/readlink.c: New file.
90347
90348 2003-06-22  Karl Berry  <karl@gnu.org>
90349
90350         * config/srclist.txt: update mkinstalldirs from automake.
90351         * config/mkinstalldirs: update.
90352
90353 2003-06-22  Bruno Haible  <bruno@clisp.org>
90354
90355         Portability to mingw32.
90356         * m4/ssize_t.m4: New file, from GNU gettext.
90357         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90358         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90359
90360 2003-06-22  Bruno Haible  <bruno@clisp.org>
90361
90362         * modules/safe-read: Add m4/ssize_t.m4.
90363         * modules/xreadlink: Add m4/ssize_t.m4.
90364
90365 2003-06-20  Bruno Haible  <bruno@clisp.org>
90366
90367         Assume C89, so PARAMS isn't needed.
90368         * lib/unicodeio.h (PARAMS): Remove.
90369         * lib/unicodeio.c: Don't use PARAMS.
90370
90371 2003-06-18  Karl Berry  <karl@gnu.org>
90372
90373         * config/config.{guess,sub}: update from prep.
90374
90375 2003-06-18  Jim Meyering  <jim@meyering.net>
90376
90377         Merge changes from coreutils.
90378         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90379         Remove explicit declarations of xmalloc and realloc.
90380         Include xalloc.h.
90381         (read_utmp): Remove anachronistic cast of xmalloc.
90382
90383 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90384
90385         Assume C89, so PARAMS isn't needed.
90386         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90387         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90388         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90389         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90390         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90391         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90392         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90393         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90394         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90395         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90396         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90397         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90398         no longer needed. Anyway, config.h should always be included before any
90399         other file.
90400
90401 2003-06-11  Simon Josefsson  <jas@extundo.com>
90402
90403         * modules/sysexits: New file.
90404         * MODULES.html.sh (func_all_modules): Add sysexits.
90405
90406 2003-06-11  Simon Josefsson  <jas@extundo.com>
90407
90408         * lib/sysexit_.h: New file.
90409
90410 2003-06-11  Derek Price  <derek@ximbiot.com>
90411
90412         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90413         necessary.
90414
90415 2003-06-11  Bruno Haible  <bruno@clisp.org>
90416
90417         * m4/sysexits.m4: New file.
90418
90419 2003-06-10  Simon Josefsson  <jas@extundo.com>
90420
90421         * lib/argp.h: New file, from glibc.
90422         * lib/argp-ba.c: New file, from glibc.
90423         * lib/argp-eexst.c: New file, from glibc.
90424         * lib/argp-fmtstream.c: New file, from glibc.
90425         * lib/argp-fmtstream.h: New file, from glibc.
90426         * lib/argp-fs-xinl.c: New file, from glibc.
90427         * lib/argp-help.c: New file, from glibc.
90428         * lib/argp-namefrob.h: New file, from glibc.
90429         * lib/argp-parse.c: New file, from glibc.
90430         * lib/argp-pv.c: New file, from glibc.
90431         * lib/argp-pvh.c: New file, from glibc.
90432         * lib/argp-xinl.c: New file, from glibc.
90433
90434 2003-06-10  Simon Josefsson  <jas@extundo.com>
90435
90436         * modules/strchrnul: New file.
90437
90438 2003-06-10  Simon Josefsson  <jas@extundo.com>
90439
90440         * modules/argp: New file.
90441
90442 2003-06-10  Simon Josefsson  <jas@extundo.com>
90443
90444         * m4/strchrnul.m4: New file.
90445
90446 2003-06-10  Simon Josefsson  <jas@extundo.com>
90447
90448         * lib/strchrnul.h: New file.
90449         * lib/strchrnul.c: New file.
90450
90451 2003-06-10  Bruno Haible  <bruno@clisp.org>
90452
90453         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90454
90455 2003-06-07  Karl Berry  <karl@gnu.org>
90456
90457         * config/config.{guess,sub}: update from prep.
90458
90459 2003-06-07  Jim Meyering  <jim@meyering.net>
90460
90461         * modules/strtod: Use $(...) notation, not @...@ for
90462         AC_REPLACE'd variables.
90463         * modules/localcharset: Likewise.
90464
90465 2003-06-07  Jim Meyering  <jim@meyering.net>
90466
90467         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90468         in place of my name in the copyright comment.
90469         Remove definition and uses of __P.
90470
90471         From coreutils.
90472         * lib/stat.c: Don't declare xmalloc explicitly.
90473         Instead, include "xalloc.h".
90474         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90475         xrealloc, and xcalloc return values.
90476         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90477         Improve comment.
90478         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90479
90480 2003-06-07  Bruno Haible  <bruno@clisp.org>
90481
90482         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90483         avoid AC_CONFIG_LINKS.
90484         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90485         fnmatch.h, to avoid AC_CONFIG_LINKS.
90486         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90487
90488 2003-06-07  Bruno Haible  <bruno@clisp.org>
90489
90490         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90491         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90492         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90493         directory.
90494         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90495         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90496         directory.
90497
90498 2003-06-06  Jim Meyering  <jim@meyering.net>
90499
90500         Merge from coreutils.
90501         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90502         Consolidate declarations and initializations of *_base* locals.
90503
90504         Merge from coreutils.
90505         This avoids a core dump on systems without GNU putenv,
90506         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90507         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90508         (unsetenv): New static function, from GNU libc.
90509         (rpl_putenv): Use it.
90510
90511         * lib/modechange.c: Remove trailing blanks.
90512
90513         Merge from coreutils.
90514         * lib/fsusage.c: Remove declaration of statfs.
90515         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90516
90517         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90518
90519 2003-06-06  Jim Meyering  <jim@meyering.net>
90520
90521         * lib/stdbool_.h: Renamed from stdbool.h.in.
90522
90523 2003-06-06  Jim Meyering  <jim@meyering.net>
90524             Bruno Haible  <bruno@clisp.org>
90525
90526         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90527         Adjust Makefile.am snippet not to redirect directly to target.
90528         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90529
90530 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90531
90532         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90533         mismatch, look in future quarters as well as past.  This fixes a
90534         bug when processing fall-backwards gaps immediately after a long
90535         period of daylight-saving time.
90536
90537         * lib/mktime.c: Assume freestanding C89 or better.
90538         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90539         (__P): Remove; not used.
90540         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90541         (mktime, not_equal_tm, print_tm, check_result,
90542         main): Use prototypes.  Use const * where appropriate.
90543         (main): Fix typo in testing code that uncovered by above changes.
90544         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90545
90546 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90547
90548         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90549         locale.h, localeconv.  This merges changes from coreutils.
90550
90551         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90552         It can be removed after the next Autoconf is released.
90553         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90554         needed.
90555
90556 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90557
90558         * lib/mktime.c: Fix Debian bug 177940
90559         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90560         (localtime_offset): Now long int, not time_t, because we want it
90561         to be guaranteed to be signed.  All uses changed.
90562         (__mktime_internal): If overflow would occur when adding offset,
90563         don't add it.
90564
90565         Merge 'human' changes from coreutils.  Rewrite to support
90566         locale-specific notations like thousands separators.
90567         * lib/human.c: Simplify authorship notice.
90568         Include human.h immediately after config.h.
90569         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90570         <limits.h>: Do not include, since human.h does.
90571         (SIZE_MAX, UINTMAX_MAX): New macros.
90572         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90573         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90574         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90575         (power_letter): Renamed from suffixes.
90576         (generate_suffix_backwards): Remove.
90577         (adjust_value): Now takes int style (because of human.h changes)
90578         and long double value (for greater precision on some platforms).
90579         (group_number): New function.
90580         (human_readable): Use it.  Use integer options, not enum.
90581         Put the options before the sizes in the arg list.
90582         Support all the new options.
90583         The old human_readable function has been removed;
90584         use inttostr.h instead.
90585         (human_readable, default_block_size, humblock):
90586         Use uintmax_t, not int, for block sizes.
90587         (human_readable_inexact, block_size_types): Remove.
90588         (block_size_opts): New constant.
90589         (human_options): Renamed from human_block_size, with new signature
90590         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90591         * lib/human.h: Add copyright and authorship notice.
90592         Include <limits.h> and <stdbool.h> unconditionally.
90593         (PARAMS): Remove.  All uses removed.
90594         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90595         (enum human_inexact_style): Remove tag; now a nameless enum.
90596         (human_floor, human_ceiling, human_round_to_even): Now have
90597         values 2, 0, 1 rather than -1, 1, 0.
90598         (human_group_digits, human_suppress_point_zero, human_autoscale,
90599         human_base_1024, human_SI, human_B): New constants.
90600         (human_readable_inexact, human_block_size): Remove.
90601         (human_readable): Size args are now uintmax_t, not int.
90602         (human_options): New decl.
90603
90604         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90605         unnecessary now that we assume C89 or better.  This change
90606         imported from coreutils.
90607
90608         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90609         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90610         in the 2003-05-30 sync from glibc.
90611
90612         .h files should stand alone, but we shouldn't include <sys/types.h>
90613         if we can get away with just <stddef.h>.
90614
90615         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90616         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90617         rather than <sys/types.h>, as we merely need size_t.
90618         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90619         to get size_t.
90620         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90621         Include <stdio.h>, to get FILE.
90622         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90623         memcasecmp.h has included <stddef.h> and all we need is size_t.
90624         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90625         our interface, instead of including <sys/types.h>
90626
90627 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90628
90629         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90630         now, as glibc mktime is buggy on non-glibc systems.
90631
90632 2003-06-03  Karl Berry  <karl@gnu.org>
90633
90634         * config/config.sub: update from prep.
90635
90636 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90637
90638         [from coreutils]
90639         Fix some minor time-related bugs with POSIX time arguments.
90640         Some valid time stamps were being rejected (notably -1, and
90641         time stamps before 1900 on 64-bit hosts).  And some invalid
90642         time stamps were being accepted, e.g. September 31.
90643
90644         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90645         that we can return (time_t) -1 successfully.
90646         * lib/posixtm.c: Likewise.
90647         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90648         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90649         (t): Remove static var.
90650         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90651         of static var.  All uses changed.
90652         (year): Do not reject years before 1900; they can occur with
90653         64-bit time_t.
90654         (posix_time_parse): Do not check for out-of-range components;
90655         that is now the caller's responsibility, since our checks were
90656         only approximations.
90657         (posixtime): Use mktime to check for out-of-range components,
90658         since it knows them exactly.
90659         If mktime returns (time_t) -1, check whether an error actually occurred
90660         by invoking localtime on -1.
90661         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90662         posixtime failures better.
90663         Improve the test data (in comments only).
90664
90665 2003-06-02  Karl Berry  <karl@gnu.org>
90666
90667         * config/mkinstalldirs (version): new variable.
90668         (--version): new option.
90669         (usage): improve message.
90670
90671 2003-05-30  Karl Berry  <karl@gnu.org>
90672
90673         * lib/mktime.c: update from libc.
90674
90675 2003-05-30  Bruno Haible  <bruno@clisp.org>
90676
90677         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90678         * config/config.rpath: Upgrade to gettext-0.12.1.
90679
90680 2003-05-30  Bruno Haible  <bruno@clisp.org>
90681
90682         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90683         * m4/nls.m4: New file, from gettext-0.12.1.
90684         * m4/po.m4: New file, from gettext-0.12.1.
90685         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90686
90687 2003-05-30  Bruno Haible  <bruno@clisp.org>
90688
90689         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90690         * lib/localcharset.h: Likewise.
90691         * lib/localcharset.c: Likewise.
90692
90693 2003-05-29  Karl Berry  <karl@gnu.org>
90694
90695         * config/config.rpath: update from gettext.
90696
90697 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90698
90699         Assume the headers required for C89 freestanding compilers.
90700         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90701         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90702         * m4/human.m4 (gl_HUMAN): Likewise.
90703         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90704         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90705         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90706         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90708         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90709
90710 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90711
90712         Assume the headers required for C89 freestanding compilers.
90713         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90714         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90715         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90716         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90717         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90718         define, since <limits.h> is guaranteed to do that.
90719         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90720         * lib/exclude.c: Include <stdbool.h> unconditionally.
90721         * lib/tempname.c: Include <stddef.h> unconditionally.
90722         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90723         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90724         <stddef.h> does that.
90725         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90726         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90727         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90728         needed.
90729         * lib/xstrtol.c: Likewise.
90730         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90731         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90732
90733         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90734         warnings on some platforms.
90735
90736         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90737         arbitrarily.
90738
90739 2003-05-26  Jim Meyering  <jim@meyering.net>
90740
90741         Merge in a change from coreutils:
90742         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90743         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90744         that condition, rather than `-1' which is slightly misleading.
90745         Change the name of the cache variable to have the gl_ prefix.
90746         Prompted by a patch from Richard Dawe for DJGPP.
90747
90748 2003-05-24  Karl Berry  <karl@gnu.org>
90749
90750         * config/config.guess: update from prep.
90751
90752 2003-05-22  Karl Berry  <karl@gnu.org>
90753
90754         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90755
90756 2003-05-20  Karl Berry  <karl@gnu.org>
90757
90758         * config/config.guess: update from prep.
90759
90760 2003-05-18  Karl Berry  <karl@gnu.org>
90761
90762         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90763         might actually be set by the user.
90764
90765         * config/depcomp, install-sh, mdate-sh: update from automake.
90766
90767 2003-05-17  Bruno Haible  <bruno@clisp.org>
90768
90769         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90770         invalid expansion for AC_EGREP_CPP.
90771         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90772         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90773         Suggested by Akim Demaille <akim@epita.fr> in
90774         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90775
90776 2003-05-12  Jim Meyering  <jim@meyering.net>
90777
90778         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90779         the space-padded-by-default conversion specifiers, %e, %k, %l.
90780
90781 2003-05-12  Bruno Haible  <bruno@clisp.org>
90782
90783         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90784         the string is longer than 4 KB.
90785
90786 2003-05-11  Karl Berry  <karl@gnu.org>
90787
90788         * config/config.{guess,sub}: update from prep.
90789
90790 2003-05-09  Bruno Haible  <bruno@clisp.org>
90791
90792         * modules/error: Add m4/strerror_r.m4 to file list.
90793
90794 2003-05-03  Bruno Haible  <bruno@clisp.org>
90795
90796         Upgrade to Unicode-4.0.
90797         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90798         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90799         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90800         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90801         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90802         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90803         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90804         Change width of U+E0100..U+E01EF from 1 to 0.
90805
90806 2003-04-25  Jim Meyering  <jim@meyering.net>
90807
90808         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90809         of type size_t, not int.
90810
90811 2003-04-25  Bruno Haible  <bruno@clisp.org>
90812
90813         * lib/copy-file.c: Include <stddef.h>, for size_t.
90814
90815 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90816
90817         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90818         code which expansion is under static control.  Patch imported from
90819         Akim Demaille's patch to Bison; see
90820         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90821
90822 2003-04-14  Bruno Haible  <bruno@clisp.org>
90823
90824         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90825
90826 2003-04-11  Jim Meyering  <jim@meyering.net>
90827
90828         Merge changes from Coreutils.
90829
90830         2003-03-22  Jim Meyering  <jim@meyering.net>
90831
90832         * lib/strftime.c (widen): Cast alloca return value to proper type.
90833
90834         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90835
90836         From GNU libc.
90837         * lib/strftime.c (my_strftime): Handle very large width
90838         specifications for numeric values correctly.  Improve checks for
90839         overflow.
90840
90841         2003-01-19  Jim Meyering  <jim@meyering.net>
90842
90843         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90844         definitions.
90845         (nl_get_alt_digit) [! defined my_strftime]: Define.
90846         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90847         _nl_get_alt_digit and _nl_get_walt_digit.
90848
90849         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90850         libc. These changes have no effect outside of _LIBC.
90851
90852 2003-04-10  Bruno Haible  <bruno@clisp.org>
90853
90854         * modules/findprog: New file.
90855         * MODULES.html.sh (func_all_modules): Add it.
90856
90857 2003-04-10  Bruno Haible  <bruno@clisp.org>
90858
90859         * m4/findprog.m4: New file.
90860         * m4/eaccess.m4: New file.
90861
90862 2003-04-10  Bruno Haible  <bruno@clisp.org>
90863
90864         * lib/findprog.h: New file, from GNU gettext.
90865         * lib/findprog.c: New file, from GNU gettext.
90866
90867 2003-04-05  Jim Meyering  <jim@meyering.net>
90868
90869         Merge changes from Coreutils.
90870
90871         * lib/exclude.h (PARAMS): Remove definition and uses.
90872         * lib/exclude.c: Remove uses of `PARAMS'.
90873
90874         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90875         Add test-cases for DOS filenames. Declare program_name.
90876         (main): Set up program_name.  Patch by Rich Dawe.
90877
90878         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90879         error from mntctl.
90880         Use mntctl's return value to drive the entry-processing loop, since
90881         we can't rely on the value of the vmt_length member in the last
90882         entry.  On some systems doing so could result in exhausting
90883         virtual memory.  Based in part on a patch from Mike Jetzer.
90884
90885 2003-04-04  Bruno Haible  <bruno@clisp.org>
90886
90887         * modules/linebreak: New file.
90888         * MODULES.html.sh (func_all_modules): Add it.
90889
90890 2003-04-04  Bruno Haible  <bruno@clisp.org>
90891
90892         * m4/linebreak.m4: New file.
90893
90894 2003-04-04  Bruno Haible  <bruno@clisp.org>
90895
90896         * lib/linebreak.h: New file, from GNU gettext.
90897         * lib/linebreak.c: New file, from GNU gettext with slight
90898         modifications.
90899         * lib/lbrkprop.h: New file, from GNU gettext.
90900
90901 2003-04-03  Bruno Haible  <bruno@clisp.org>
90902
90903         * modules/utf8-ucs4: New file.
90904         * modules/utf16-ucs4: New file.
90905         * modules/ucs4-utf8: New file.
90906         * modules/ucs4-utf16: New file.
90907         * MODULES.html.sh (func_all_modules): Add them.
90908
90909 2003-04-03  Bruno Haible  <bruno@clisp.org>
90910
90911         * m4/utf-ucs4.m4: New file.
90912         * m4/ucs4-utf.m4: New file.
90913
90914 2003-04-03  Bruno Haible  <bruno@clisp.org>
90915
90916         * lib/utf8-ucs4.h: New file, from GNU gettext.
90917         * lib/utf16-ucs4.h: New file, from GNU gettext.
90918         * lib/ucs4-utf8.h: New file, from GNU gettext.
90919         * lib/ucs4-utf16.h: New file, from GNU gettext.
90920
90921 2003-04-02  Bruno Haible  <bruno@clisp.org>
90922
90923         * modules/binary-io: New file.
90924         * MODULES.html.sh (func_all_modules): Add it.
90925
90926 2003-04-02  Bruno Haible  <bruno@clisp.org>
90927
90928         * lib/binary-io.h: New file, from GNU gettext.
90929
90930 2003-04-01  Bruno Haible  <bruno@clisp.org>
90931
90932         * modules/pathname: New file.
90933         * MODULES.html.sh (func_all_modules): Add it.
90934
90935 2003-04-01  Bruno Haible  <bruno@clisp.org>
90936
90937         * lib/pathname.h: New file, from GNU gettext.
90938         * lib/concatpath.c: New file, from GNU gettext.
90939
90940 2003-03-30  Bruno Haible  <bruno@clisp.org>
90941
90942         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90943
90944 2003-03-30  Bruno Haible  <bruno@clisp.org>
90945
90946         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90947         function chown() doesn't exist.
90948
90949 2003-03-28  Bruno Haible  <bruno@clisp.org>
90950
90951         * modules/copy-file: New file.
90952         * MODULES.html.sh (func_all_modules): Add it.
90953
90954 2003-03-28  Bruno Haible  <bruno@clisp.org>
90955
90956         * m4/copy-file.m4: New file.
90957
90958 2003-03-28  Bruno Haible  <bruno@clisp.org>
90959
90960         * lib/copy-file.h: New file, from GNU gettext.
90961         * lib/copy-file.c: New file, from GNU gettext.
90962
90963 2003-03-18  Jim Meyering  <jim@meyering.net>
90964
90965         * lib/quote.c (quote_n): Fix typo in comment.
90966
90967 2003-03-18  Bruno Haible  <bruno@clisp.org>
90968
90969         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90970         checking.
90971         * m4/onceonly_2_57.m4: Likewise.
90972
90973 2003-03-17  Bruno Haible  <bruno@clisp.org>
90974
90975         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90976         (m4_quote): Remove macro.
90977         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90978
90979 2003-03-14  Jim Meyering  <jim@meyering.net>
90980
90981         Merge changes from Coreutils.
90982         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90983         to be const, in order to avoid warnings.
90984         (obstack_room): Likewise.
90985         (obstack_empty_p): Likewise.
90986
90987 2003-03-14  Bruno Haible  <bruno@clisp.org>
90988
90989         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90990         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90991
90992 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90993
90994         Merge changes from Bison.
90995         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90996         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90997         when compiling Bison 1.875's `bitset bset = obstack_alloc
90998         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90999         * lib/hash.c: Include <stdbool.h> unconditionally.
91000
91001 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91002
91003         * m4/onceonly.m4 (m4_quote): New macro.
91004         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91005         Quote AC_FOREACH variable-expansions properly.
91006
91007 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91008
91009         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91010
91011 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91012
91013         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91014         Reported by Bruce Becker; see:
91015         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91016
91017 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91018             Bruno Haible  <bruno@clisp.org>
91019
91020         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91021         Reported by John Hughes, see
91022         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91023
91024 2003-02-20  Bruno Haible  <bruno@clisp.org>
91025
91026         * MODULES.html.sh (func_all_modules): Add poll.
91027
91028 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91029
91030         * modules/poll: New file.
91031
91032 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91033
91034         * lib/poll_.h: New file.
91035         * lib/poll.c: New file.
91036
91037 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91038
91039         * m4/poll.m4: New file.
91040
91041 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91042
91043         * modules/mathl: New file.
91044
91045 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91046
91047         * lib/mathl.h: New file.
91048         * lib/acosl.c: New file.
91049         * lib/asinl.c: New file.
91050         * lib/atanl.c: New file.
91051         * lib/ceill.c: New file.
91052         * lib/cosl.c: New file.
91053         * lib/expl.c: New file.
91054         * lib/floorl.c: New file.
91055         * lib/frexpl.c: New file.
91056         * lib/ldexpl.c: New file.
91057         * lib/logl.c: New file.
91058         * lib/sincosl.c: New file.
91059         * lib/sinl.c: New file.
91060         * lib/sqrtl.c: New file.
91061         * lib/tanl.c: New file.
91062         * lib/trigl.c: New file.
91063         * lib/trigl.h: New file.
91064
91065 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91066
91067         * m4/mathl.m4: New file.
91068
91069 2003-02-18  Bruno Haible  <bruno@clisp.org>
91070
91071         * MODULES.html.sh (func_all_modules): Add mathl.
91072
91073 2003-02-17  Bruno Haible  <bruno@clisp.org>
91074
91075         * modules/mkdtemp: New module.
91076         * MODULES.html.sh (func_all_modules): Add it.
91077
91078 2003-02-17  Bruno Haible  <bruno@clisp.org>
91079
91080         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91081
91082 2003-02-17  Bruno Haible  <bruno@clisp.org>
91083
91084         * lib/mkdtemp.h: New file, from GNU gettext.
91085         * lib/mkdtemp.c: New file, from GNU gettext.
91086
91087 2003-02-02  Jim Meyering  <jim@meyering.net>
91088
91089         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91090         e.g. glibc-2.2.93.
91091
91092 2003-01-31  Bruno Haible  <bruno@clisp.org>
91093
91094         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91095         'rpl_rename'.
91096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91097         'rpl_strnlen'.
91098         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91099         'rpl_strtod'.
91100         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91101         'rpl_utime'.
91102
91103 2003-01-31  Bruno Haible  <bruno@clisp.org>
91104
91105         * lib/rename.c: #undef rename before defining rpl_rename.
91106         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91107
91108 2003-01-30  Bruno Haible  <bruno@clisp.org>
91109
91110         * modules/vasnprintf, modules/vasprintf: New modules.
91111         * MODULES.html.sh (func_all_modules): Add them.
91112
91113 2003-01-30  Bruno Haible  <bruno@clisp.org>
91114
91115         * m4/signed.m4: New file, from GNU gettext.
91116         * m4/longdouble.m4: New file, from GNU gettext.
91117         * m4/wchar_t.m4: New file, from GNU gettext.
91118         * m4/wint_t.m4: New file, from GNU gettext.
91119         * m4/vasnprintf.m4: New file.
91120         * m4/vasprintf.m4: New file.
91121
91122 2003-01-30  Bruno Haible  <bruno@clisp.org>
91123
91124         * lib/printf-args.h: New file, from GNU gettext.
91125         * lib/printf-args.c: New file, from GNU gettext.
91126         * lib/printf-parse.h: New file, from GNU gettext.
91127         * lib/printf-parse.c: New file, from GNU gettext.
91128         * lib/vasnprintf.h: New file, from GNU gettext.
91129         * lib/vasnprintf.c: New file, from GNU gettext.
91130         * lib/asnprintf.c: New file, from GNU gettext.
91131         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91132         * lib/vasprintf.c: New file, from GNU gettext.
91133         * lib/asprintf.c: New file, from GNU gettext.
91134
91135 2003-01-29  Bruno Haible  <bruno@clisp.org>
91136
91137         * modules/stpncpy: New module.
91138         * MODULES.html.sh (func_all_modules): Add it.
91139
91140 2003-01-29  Bruno Haible  <bruno@clisp.org>
91141
91142         * m4/stpncpy.m4: New file.
91143
91144 2003-01-29  Bruno Haible  <bruno@clisp.org>
91145
91146         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91147         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91148
91149 2003-01-28  Bruno Haible  <bruno@clisp.org>
91150
91151         * modules/c-ctype: New module.
91152         * MODULES.html.sh (func_all_modules): Add it.
91153
91154 2003-01-28  Bruno Haible  <bruno@clisp.org>
91155
91156         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91157         Paul Eggert.
91158         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91159         Paul Eggert.
91160
91161 2003-01-27  Bruno Haible  <bruno@clisp.org>
91162
91163         * modules/xsetenv: New module.
91164         * MODULES.html.sh (func_all_modules): Add it.
91165
91166 2003-01-27  Bruno Haible  <bruno@clisp.org>
91167
91168         * lib/xsetenv.h: New file, from GNU gettext.
91169         * lib/xsetenv.c: New file, from GNU gettext.
91170
91171 2003-01-23  Jim Meyering  <jim@meyering.net>
91172
91173         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91174         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91175
91176 2003-01-23  Bruno Haible  <bruno@clisp.org>
91177
91178         * modules/minmax: New module.
91179         * MODULES.html.sh (func_all_modules): Add it.
91180
91181 2003-01-23  Bruno Haible  <bruno@clisp.org>
91182
91183         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91184         Eggert.
91185
91186 2003-01-22  Bruno Haible  <bruno@clisp.org>
91187
91188         * modules/exit: New module.
91189         * MODULES.html.sh (func_all_modules): Add it.
91190
91191 2003-01-22  Bruno Haible  <bruno@clisp.org>
91192
91193         * lib/exit.h: New file, from GNU gettext.
91194
91195 2003-01-19  Bruno Haible  <bruno@clisp.org>
91196
91197         * gnulib-tool: Recognize option --extract-maintainer.
91198         (func_get_maintainer): New function.
91199         * modules/*: Add Maintainer entry.
91200
91201 2003-01-16  Jim Meyering  <jim@meyering.net>
91202
91203         * m4/regex.m4: The `regex' struct is both input and output.
91204         Initialize it before each use.  Patch by Tim Waugh.
91205
91206 2003-01-16  Bruno Haible  <bruno@clisp.org>
91207
91208         * MODULES.html.sh: Add a table of contents. Add the module name as
91209         leftmost column. Add hyperlinks.
91210
91211 2003-01-15  Bruno Haible  <bruno@clisp.org>
91212
91213         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91214
91215 2003-01-15  Bruno Haible  <bruno@clisp.org>
91216
91217         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91218         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91219         suffix.
91220
91221 2003-01-15  Bruno Haible  <bruno@clisp.org>
91222
91223         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91224
91225 2003-01-15  Bruno Haible  <bruno@clisp.org>
91226
91227         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91228         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91229
91230 2003-01-14  Jim Meyering  <jim@meyering.net>
91231
91232         * lib/same.c (same_name): Tweak a comment.
91233
91234 2003-01-14  Bruno Haible  <bruno@clisp.org>
91235
91236         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91237         when a string comparison is sufficient.
91238
91239 2003-01-14  Bruno Haible  <bruno@clisp.org>
91240
91241         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91242         'unsigned int'.
91243
91244 2003-01-14  Bruno Haible  <bruno@clisp.org>
91245
91246         * lib/hash-pjw.c: Add comment about low quality of this function.
91247
91248 2003-01-13  Bruno Haible  <bruno@clisp.org>
91249
91250         * modules/stpcpy: Distribute lib/stpcpy.h.
91251         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91252
91253 2003-01-13  Bruno Haible  <bruno@clisp.org>
91254
91255         * modules/*: Add a description.
91256         * modules/strpbrk: Fix Makefile.am snippet.
91257         * modules/strtoimax: Fix dependencies.
91258         * modules/strtoumax: Likewise.
91259
91260 2003-01-13  Bruno Haible  <bruno@clisp.org>
91261
91262         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91263         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91264         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91265
91266 2003-01-13  Bruno Haible  <bruno@clisp.org>
91267
91268         * gnulib-tool (func_create_testdir): Store config/* files in the main
91269         directory.
91270         * config.rpath: Move to ...
91271         * config/config.rpath: ... here.
91272         * modules/gettext: Contains config/config.rpath, not config.rpath.
91273         * modules/iconv: Likewise.
91274
91275 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91276
91277         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91278         to avoid collisions with libcurses and libreadline.
91279
91280         * m4/getstr.m4: Remove.
91281         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91282
91283 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91284
91285         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91286         to avoid collisions with libcurses and libreadline.
91287
91288         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91289         * lib/getstr.h, getstr.c: Remove.
91290         * lib/getline.c: Include "getline.h", to check interface.
91291         Move body of old getstr.c here: this defines MIN_CHUNK and
91292         declares getdelim2, which is renamed from getstr.
91293         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91294
91295         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91296         All uses changed.
91297         * lib/linebuffer.h: Likewise.
91298         (readline): Remove backward-compatibility macro.
91299
91300 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91301
91302         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91303         to avoid collisions with libcurses and libreadline.
91304         * getstr: Remove.
91305         * MODULES.html.sh: Remove getstr.
91306         * modules/getline: Depend on unlocked-io, not getstr.
91307
91308 2003-01-12  Jim Meyering  <jim@meyering.net>
91309
91310         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91311
91312 2003-01-10  Bruno Haible  <bruno@clisp.org>
91313
91314         * modules/alloca: Change Makefile.am requirements. Simplify Include
91315         requirements. Add lib/alloca_.h to file list.
91316
91317 2003-01-10  Bruno Haible  <bruno@clisp.org>
91318
91319         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91320
91321 2003-01-10  Bruno Haible  <bruno@clisp.org>
91322
91323         * lib/alloca_.h: New file.
91324         * lib/getdate.y: Unconditionally include alloca.h.
91325         * lib/makepath.c: Likewise.
91326         * lib/setenv.c: Likewise.
91327         * lib/userspec.c: Likewise.
91328
91329 2003-01-09  Karl Berry  <karl@gnu.org>
91330
91331         * MODULES.html.sh: include `dirname $0` in PATH, to find
91332         gnulib-tool.
91333
91334 2003-01-09  Bruno Haible  <bruno@clisp.org>
91335
91336         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91337         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91338
91339 2003-01-09  Bruno Haible  <bruno@clisp.org>
91340
91341         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91342
91343 2003-01-09  Bruno Haible  <bruno@clisp.org>
91344
91345         * lib/stdbool.h.in: New file.
91346
91347 2003-01-09  Bruno Haible  <bruno@clisp.org>
91348
91349         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91350         * MODULES.html.sh: Likewise.
91351
91352 2003-01-08  Jim Meyering  <jim@meyering.net>
91353
91354         * lib/full-write.c: Undefine and define-away `const' after inclusion
91355         of errno.h, not before.  Suggestion from Bruno Haible.
91356
91357 2003-01-08  Bruno Haible  <bruno@clisp.org>
91358
91359         * modules/full-read: Depend on full-write.
91360
91361 2003-01-08  Bruno Haible  <bruno@clisp.org>
91362
91363         * lib/safe-read.c: Include specification header first, to ensure its
91364         selfcontainedness.
91365         * lib/full-write.c: Likewise.
91366
91367 2003-01-07  Jim Meyering  <jim@meyering.net>
91368
91369         * lib/full-write.c: Rework so that it may serve to define full_read,
91370         too.
91371         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91372
91373 2003-01-07  Bruno Haible  <bruno@clisp.org>
91374
91375         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91376         <inttypes.h>.
91377         * lib/xstrtol.h: Likewise.
91378         * lib/xstrtoimax.c: Likewise.
91379         * lib/xstrtoumax.c: Likewise.
91380         * lib/human.h: Likewise.
91381
91382         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91383         on systems that have <inttypes.h> but not <stdint.h>.
91384
91385 2003-01-07  Bruno Haible  <bruno@clisp.org>
91386
91387         * MODULES.html.sh: Add copyright notice.
91388         (missed_files): Omit CVS directory entries.
91389         (func_module): Make it work with sed-3.02.
91390         * MODULES.txt: Remove file.
91391
91392 2003-01-06  Jim Meyering  <jim@meyering.net>
91393
91394         * lib/version-etc.c: Update year in translatable copyright string.
91395
91396 2003-01-03  Karl Berry  <karl@gnu.org>
91397
91398         * config/config.{guess,sub}: update from prep.
91399
91400 2003-01-02  Karl Berry  <karl@gnu.org>
91401
91402         * doc/COPYING.DOC: belatedly updated to 1.2.
91403
91404 2003-01-01  Karl Berry  <karl@gnu.org>
91405
91406         * gnulib-tool (func_verify_module): report module name $module in
91407         error message, not $1.
91408         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91409         be created, only if it doesn't exist.
91410         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91411
91412 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91413
91414         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91415
91416 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91417
91418         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91419         memcmp if strcoll doesn't work.
91420
91421 2002-12-31  Bruno Haible  <bruno@clisp.org>
91422
91423         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91424         nonempty.
91425
91426 2002-12-31  Bruno Haible  <bruno@clisp.org>
91427
91428         * lib/memcoll.c (STRCOLL): New macro.
91429         (memcoll): Use it.
91430
91431 2002-12-31  Bruno Haible  <bruno@clisp.org>
91432
91433         * lib/localcharset.h: New file.
91434         * lib/localcharset.c: Include it.
91435         * lib/unicodeio.c: Likewise.
91436
91437 2002-12-31  Bruno Haible  <bruno@clisp.org>
91438
91439         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91440         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91441
91442 2002-12-31  Bruno Haible  <bruno@clisp.org>
91443
91444         * lib/getline.h: Include <stddef.h>, for size_t.
91445
91446         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91447         * lib/unicodeio.c: Don't include <stddef.h>.
91448
91449 2002-12-31  Bruno Haible  <bruno@clisp.org>
91450
91451         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91452         HAVE_TM_ZONE.
91453
91454 2002-12-24  Karl Berry  <karl@gnu.org>
91455
91456         * config/config.guess: update from prep.
91457
91458 2002-12-24  Bruno Haible  <bruno@clisp.org>
91459
91460         General infrasructure.
91461         * m4/README: Rewritten.
91462         * m4/onceonly.m4: New file.
91463         * m4/onceonly_2_57.m4: New file.
91464
91465         Module atexit.
91466         * m4/atexit.m4: New file.
91467
91468         Module strtod.
91469         * m4/strtod.m4: New file.
91470
91471         Module strtol.
91472         * m4/strtol.m4: New file.
91473
91474         Module strtoul.
91475         * m4/strtoul.m4: New file.
91476
91477         Module memchr.
91478         * m4/memchr.m4: New file.
91479
91480         Module memcmp.
91481         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91482         (jm_FUNC_MEMCMP): Invoke it.
91483
91484         Module memcpy.
91485         * m4/memcpy.m4: New file.
91486
91487         Module memmove.
91488         * m4/memmove.m4: New file.
91489
91490         Module memset.
91491         * m4/memset.m4: New file.
91492
91493         Module strcspn.
91494         * m4/strcspn.m4: New file.
91495
91496         Module strpbrk.
91497         * m4/strpbrk.m4: New file.
91498
91499         Module strstr.
91500         * m4/strstr.m4: New file.
91501
91502         Module strerror.
91503         * m4/strerror.m4: New file.
91504
91505         Module mktime.
91506         * m4/mktime.m4: Renamed from jm-mktime.m4.
91507         (gl_PREREQ_MKTIME): New macro.
91508         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91509
91510         Module malloc.
91511         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91512         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91513         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91514
91515         Module realloc.
91516         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91517         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91518         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91519
91520         Module strftime.
91521         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91522         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91523         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91524         gl_TM_GMTOFF.
91525         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91526
91527         Module xalloc.
91528         * m4/xalloc.m4: New file.
91529
91530         Module alloca.
91531         * m4/alloca.m4: New file.
91532
91533         Module putenv.
91534         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91535         (jm_FUNC_PUTENV): Invoke it.
91536
91537         Module setenv.
91538         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91539         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91540         when invoked twice.
91541         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91542         gt_FUNC_SETENV.
91543
91544         Module memrchr.
91545         * m4/memrchr.m4: New file.
91546
91547         Module stpcpy.
91548         * m4/stpcpy.m4: New file.
91549
91550         Module strcase.
91551         * m4/strcase.m4: New file.
91552
91553         Module strdup.
91554         * m4/strdup.m4: New file.
91555
91556         Module strnlen.
91557         * m4/strnlen.m4: New file.
91558
91559         Module strndup.
91560         * m4/strndup.m4: New file.
91561
91562         Module xstrtod.
91563         * m4/xstrtod.m4: New file.
91564
91565         Module xstrtol.
91566         * m4/xstrtol.m4: New file.
91567
91568         Module getdate.
91569         * m4/getdate.m4: New file.
91570
91571         Module unlocked-io.
91572         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91573         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91574         * m4/jm-glibc-io.m4n: Remove file.
91575
91576         Module long-options.
91577         * m4/long-options.m4: New file.
91578
91579         Module md5.
91580         * m4/md5.m4: New file.
91581
91582         Module sha.
91583         * m4/sha.m4: New file.
91584
91585         Module getstr.
91586         * m4/getstr.m4: New file.
91587
91588         Module getline.
91589         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91590         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91591         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91592         simply getline. Infoke gl_PREREQ_GETLINE.
91593
91594         Module obstack.
91595         * m4/obstack.m4: New file.
91596
91597         Module hash.
91598         * m4/hash.m4: New file.
91599
91600         Module readtokens.
91601         * m4/readtokens.m4: New file.
91602
91603         Module strverscmp.
91604         * m4/strverscmp.m4: New file.
91605
91606         Module stdbool.
91607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91608         OSF/1.
91609
91610         Module strtoll.
91611         * m4/strtoll.m4: New file.
91612
91613         Module strtoull.
91614         * m4/strtoull.m4: New file.
91615
91616         Module strtoimax.
91617         * m4/strtoimax.m4: New file.
91618
91619         Module strtoumax.
91620         * m4/strtoumax.m4: New file.
91621
91622         Module xstrtoimax.
91623         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91624         jm_AC_PREREQ_XSTRTOIMAX.
91625         Moved the strtol prerequisites to strtol.m4.
91626         Moved the strtoll prerequisites to strtoll.m4.
91627         Moved the strtoimax prerequisites to strtoimax.m4.
91628
91629         Module xstrtoumax.
91630         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91631         jm_AC_PREREQ_XSTRTOUMAX.
91632         Moved the strtoul prerequisites to strtoul.m4.
91633         Moved the strtoull prerequisites to strtoull.m4.
91634         Moved the strtoumax prerequisites to strtoumax.m4.
91635
91636         Module chown.
91637         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91638         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91639
91640         Module dup2.
91641         * m4/dup2.m4: New file.
91642
91643         Module ftruncate.
91644         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91645         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91646
91647         Module getgroups.
91648         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91649         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91650
91651         Module gettimeofday.
91652         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91653         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91654         gl_PREREQ_GETTIMEOFDAY.
91655
91656         Module mkdir.
91657         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91658         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91659
91660         Module mkstemp.
91661         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91662         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91663         jm_AC_TYPE_UINTMAX_T.
91664         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91665
91666         Module stat.
91667         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91668         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91669
91670         Module lstat.
91671         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91672         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91673
91674         Module timespec.
91675         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91676         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91677         * m4/st_mtim.m4: Indentation.
91678
91679         Module nanosleep.
91680         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91681         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91682         gl_PREREQ_NANOSLEEP.
91683
91684         Module regex.
91685         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91686         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91687         (gl_REGEX): New macro.
91688
91689         Module rename.
91690         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91691         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91692
91693         Module rmdir.
91694         * m4/rmdir.m4: New file.
91695
91696         Module utime.
91697         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91698         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91699         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91700
91701         Module dirname.
91702         * m4/dirname.m4: New file.
91703
91704         Module getopt.
91705         * m4/getopt.m4: New file.
91706
91707         Module unistd-safer.
91708         * m4/unistd-safer.m4: New file.
91709
91710         Module fnmatch.
91711         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91712         declaration.
91713         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91714         (gl_FUNC_FNMATCH_POSIX): New macro.
91715         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91716         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91717         simply fnmatch.
91718
91719         Module exclude.
91720         * m4/exclude.m4: New file.
91721
91722         Module human.
91723         * m4/human.m4: New file.
91724
91725         Module acl.
91726         * m4/acl.m4: Nop.
91727
91728         Module backupfile.
91729         * m4/backupfile.m4: New file.
91730         * m4/d-ino.m4: Indentation.
91731
91732         Module fsusage.
91733         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91734         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91735         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91736
91737         Module dirfd.
91738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91739         requirements.
91740
91741         Module euidaccess.
91742         * m4/euidaccess.m4: New file.
91743
91744         Module file-type.
91745         * m4/file-type.m4: New file.
91746
91747         Module fileblocks.
91748         * m4/fileblocks.m4: New file.
91749
91750         Module filemode.
91751         * m4/filemode.m4: New file.
91752
91753         Module isdir.
91754         * m4/isdir.m4: New file.
91755
91756         Module lchown.
91757         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91758         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91759
91760         Module makepath.
91761         * m4/makepath.m4: New file.
91762
91763         Module modechange.
91764         * m4/modechange.m4: New file.
91765
91766         Module mountlist.
91767         * m4/mountlist.m4: New file.
91768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91769         Indentation.
91770
91771         Module path-concat.
91772         * m4/path-concat.m4: New file.
91773
91774         Module pathmax.
91775         * m4/pathmax.m4: New file.
91776
91777         Module same.
91778         * m4/same.m4: New file.
91779
91780         Module save-cwd.
91781         * m4/save-cwd.m4: New file.
91782
91783         Module savedir.
91784         * m4/savedir.m4: New file.
91785
91786         Module xgetcwd.
91787         * m4/xgetcwd.m4: New file.
91788         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91789
91790         Module xreadlink.
91791         * m4/xreadlink.m4: New file.
91792
91793         Module safe-read.
91794         * m4/safe-read.m4: New file.
91795
91796         Module safe-write.
91797         * m4/safe-write.m4: New file.
91798
91799         Module closeout.
91800         * m4/closeout.m4: New file.
91801
91802         Module stdio-safer.
91803         * m4/stdio-safer.m4: New file.
91804
91805         Module getpass.
91806         * m4/getpass.m4: New file.
91807
91808         Module getugroups.
91809         * m4/getugroups.m4: New file.
91810
91811         Module group-member.
91812         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91813         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91814
91815         Module idcache.
91816         * m4/idcache.m4: New file.
91817
91818         Module userspec.
91819         * m4/userspec.m4: New file.
91820
91821         Module gettime.
91822         * m4/clock_time.m4: New file.
91823         * m4/gettime.m4: New file.
91824
91825         Module settime.
91826         * m4/settime.m4: New file.
91827
91828         Module posixtm.
91829         * m4/posixtm.m4: New file.
91830
91831         Module gethostname.
91832         * m4/gethostname.m4: New file.
91833
91834         Module canon-host.
91835         * m4/canon-host.m4: New file.
91836
91837         Module gettext.
91838         * m4/codeset.m4: New file, from gettext-0.11.5.
91839         * m4/gettext.m4: New file, from gettext-0.11.5.
91840         * m4/glibc21.m4: New file, from gettext-0.11.5.
91841         * m4/iconv.m4: New file, from gettext-0.11.5.
91842         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91843         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91844         * m4/inttypes.m4: New file, from gettext-0.11.5.
91845         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91846         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91847         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91848         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91849         * m4/lib-link.m4: New file, from gettext-0.11.5.
91850         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91851         * m4/progtest.m4: New file, from gettext-0.11.5.
91852         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91853         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91854         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91855
91856         Module localcharset.
91857         * m4/localcharset.m4: New file.
91858
91859         Module hard-locale.
91860         * m4/hard-locale.m4: New file.
91861
91862         Module mbswidth.
91863         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91864         onceonly macros.
91865         * m4/mbrtowc.m4: Add comment.
91866
91867         Module memcasecmp.
91868         * m4/memcasecmp.m4: New file.
91869
91870         Module memcoll.
91871         * m4/memcoll.m4: New file.
91872
91873         Module unicodeio.
91874         * m4/unicodeio.m4: New file.
91875
91876         Module rpmatch.
91877         * m4/rpmatch.m4: New file.
91878
91879         Module yesno.
91880         * m4/yesno.m4: New file.
91881
91882         Module exitfail.
91883         * m4/exitfail.m4: New file.
91884
91885         Module c-stack.
91886         * m4/c-stack.m4 (gl_C_STACK): New macro.
91887         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91888
91889         Module error.
91890         * m4/error.m4 (gl_ERROR): New macro.
91891         (jm_PREREQ_ERROR): Use onceonly macros.
91892
91893         Module fatal.
91894         * m4/fatal.m4: New file.
91895
91896         Module getloadavg.
91897         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91898         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91899
91900         Module getpagesize.
91901         * m4/getpagesize.m4: New file.
91902
91903         Module getusershell.
91904         * m4/getusershell.m4: New file.
91905
91906         Module physmem.
91907         * m4/physmem.m4: New file.
91908
91909         Module posixver.
91910         * m4/posixver.m4: New file.
91911
91912         Module quotearg.
91913         * m4/quotearg.m4: New file.
91914
91915         Module quote.
91916         * m4/quote.m4: New file.
91917
91918         Module readutmp.
91919         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91920
91921         Module sig2str.
91922         * m4/sig2str.m4: New file.
91923
91924         Other.
91925         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91926         ulonglong.m4.
91927         * m4/intmax_t.m4: New file.
91928         * m4/d-type.m4: Indentation.
91929         * m4/jm-macros.m4: Update.
91930         * m4/prereq.m4 (jm_PREREQ): Update.
91931         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91932         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91933         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91934         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91935         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91936         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91937         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91938         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91939         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91940         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91941         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91942         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91943         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91944         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91945         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91946         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91947         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91948         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91949         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91950
91951 2002-12-24  Bruno Haible  <bruno@clisp.org>
91952
91953         * MODULES.txt: Update according to m4/ changes.
91954
91955         Module gettext.
91956         * config.rpath: New file, from gettext-0.11.5.
91957
91958         * modules/*: New module descriptions.
91959         * gnulib-tool: New file.
91960         * MODULES.html.sh: New file.
91961
91962 2002-12-21  Karl Berry  <karl@gnu.org>
91963
91964         * doc/fdl.texi: update to version 1.2.
91965
91966 2002-12-19  Karl Berry  <karl@gnu.org>
91967
91968         * config/config.guess: update from prep.
91969
91970 2002-12-18  Bruno Haible  <bruno@clisp.org>
91971
91972         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91973         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91974
91975 2002-12-17  Bruno Haible  <bruno@clisp.org>
91976
91977         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91978         stdlib.h, string.h.
91979
91980 2002-12-17  Bruno Haible  <bruno@clisp.org>
91981
91982         * lib/canon-host.c (strdup): Remove unused declaration.
91983
91984         * lib/fsusage.c: Include full_read.h.
91985         (get_fs_usage): Use full_read instead of safe_read.
91986
91987         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91988
91989 2002-12-12  Karl Berry  <karl@gnu.org>
91990
91991         * config/config.guess: update from prep.
91992
91993 2002-12-11  Bruno Haible  <bruno@clisp.org>
91994
91995         * m4/setenv.m4: New file, from gettext-0.11.5.
91996
91997 2002-12-11  Bruno Haible  <bruno@clisp.org>
91998
91999         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92000         not unsetenv().
92001         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92002         modifications:
92003
92004         2002-12-11  Bruno Haible  <bruno@clisp.org>
92005
92006                 * setenv.c (alloca): Fall back to malloc.
92007                 (freea): New macro.
92008                 (setenv): Use freea() to free memory allocated with alloca().
92009
92010         2002-11-13  Bruno Haible  <bruno@clisp.org>
92011
92012                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92013                 function declarations.
92014                 * unsetenv.c (unsetenv): Likewise.
92015
92016         2002-03-04  Bruno Haible  <bruno@clisp.org>
92017
92018                 Portability to AIX 4.3.3.
92019                 * unsetenv.c: New file, extracted from setenv.c.
92020                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92021
92022         2001-12-20  Bruno Haible  <bruno@clisp.org>
92023
92024                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92025                 use malloc instead. For SunOS 4.
92026
92027         2001-12-11  Bruno Haible  <bruno@clisp.org>
92028
92029                 * setenv.c: Declare alloca.
92030                 (compar_fn_t): New typedef.
92031                 (KNOWN_VALUE, STORE_VALUE): Use it.
92032
92033         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92034         setenv.h.
92035
92036 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92037
92038         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92039         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92040         Choose values that are less likely to collide with system fnmatch
92041         options.
92042         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92043         defined (e.g., a pure POSIX system).
92044         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92045         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92046
92047 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92048
92049         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92050         a pain in practice to deal with generated m4 files.  This change
92051         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92052
92053         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92054         and jm-glibc-io.m4, as they are no longer a special case.
92055         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92056         kludge and the auto-generation stuff.  Check only whether the
92057         functions are declared, not whether they exist, since older hosts
92058         that don't declare the functions can't use the optimization anyway.
92059
92060 2002-12-06  Jim Meyering  <jim@meyering.net>
92061
92062         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92063
92064         Merge in changes from libc's misc/error.c, in preparation
92065         for the merge of gnulib's changes back into libc.
92066
92067         * lib/error.c (_): Define only if not already defined.
92068         Move definition to follow all #include directives.
92069         Include unlocked-io.h only if !_LIBC.
92070         [_LIBC]: Include <libio/libioP.h>.
92071         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92072         (fflush): Tweak definition to use INTUSE.
92073         (putc): Define.
92074
92075 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92076
92077         * lib/alloca.c [defined emacs]: Include "lisp.h".
92078         (xalloc_die) [defined emacs]: New macro.
92079         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92080         [! defined emacs]: Include <xalloc.h>.
92081         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92082         (pointer): Typedef to POINTER_TYPE *.
92083         (malloc): Remove decl; we now always use xmalloc.
92084         (alloca): Use old-style definition, since Emacs needs this.
92085         Check for arithmetic overflow when computing combined size.
92086
92087 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92088
92089         Do not generate unlocked-io.h automatically, since it's easier to
92090         maintain it by hand.
92091
92092         * lib/unlocked-io.h: New file, from GNU diffutils,
92093         but with proper copyright notice and attribution.
92094         * lib/gen-uio: Remove.
92095         * lib/Makefile.am: Add copyright notice.
92096         (libfetish_a_SOURCES): Add unlocked-io.h.
92097         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92098         (DISTCLEANFILES, io_functions): Remove macros.
92099         (EXTRA_DIST): Remove gen_uio.
92100         (unlocked-io.h): Remove rule.
92101
92102 2002-12-04  Jim Meyering  <jim@meyering.net>
92103
92104         Reflect the fact that stat.c and lstat.c are no longer generated.
92105         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92106         (DISTCLEANFILES): Likewise.
92107         (EXTRA_DIST): Likewise.
92108         (all_local): Don't depend on stat.c or lstat.c.
92109         (stat.c, lstat.c): Remove rules.
92110         (EXTRA_DIST): Remove xstat.in.
92111
92112         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92113         * lib/stat.c: New file.  Contents mostly from xstat.in.
92114         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92115         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92116
92117         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92118         too.
92119         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92120
92121 2002-12-03  Jim Meyering  <jim@meyering.net>
92122
92123         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92124         but not semantics, to minimize the differences between these two files.
92125         (safe_read): Change comment to mention SAFE_READ_ERROR.
92126
92127         * lib/safe-read.c (IS_EINTR): Define.
92128         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92129
92130 2002-12-02  Jim Meyering  <jim@meyering.net>
92131
92132         * lib/safe-read.c (EINTR): Define.
92133         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92134         (INT_MAX): Provide fallback.
92135         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92136
92137         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92138
92139 2002-12-02  Bruno Haible  <bruno@clisp.org>
92140
92141         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92142         Define, taken from safe-read.c.
92143         (INT_MAX): Provide fallback.
92144         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92145         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92146
92147         * lib/safe-read.c (EINTR): Remove definition.
92148         (safe_read): Don't use EINTR if it is absent.
92149
92150 2002-12-01  Jim Meyering  <jim@meyering.net>
92151
92152         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92153         zero.
92154         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92155
92156 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92157
92158         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92159         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92160         with `if (! (value < limit)) abort ();', for readability.
92161
92162 2002-11-26  Karl Berry  <karl@gnu.org>
92163
92164         * lib/strdup.c: copy from libc again, with jim's ok.
92165         * lib/.cppi-disable: re-add strdup.c
92166
92167 2002-11-25  Karl Berry  <karl@gnu.org>
92168
92169         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92170         instead of "strtol.c".
92171
92172 2002-11-25  Karl Berry  <karl@gnu.org>
92173
92174         * config/install-sh: update from automake for variable quoting, $0 in
92175         error msgs, etc.
92176
92177         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92178         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92179         entry.
92180
92181 2002-11-25  Jim Meyering  <jim@meyering.net>
92182
92183         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92184
92185 2002-11-24  Karl Berry  <karl@gnu.org>
92186
92187         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92188         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92189
92190 2002-11-24  Jim Meyering  <jim@meyering.net>
92191
92192         Update from coreutils:
92193
92194         * lib/mktime.c: Merge in changes from libc.
92195
92196         Avoid a link-time failure on some Linux systems.
92197         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92198         (otherwise).
92199         (__mon_yday): Declare with the STATIC attribute.
92200         (__mktime_internal): Likewise.
92201         Based on a report from Greg Schafer.
92202
92203 2002-11-23  Jim Meyering  <jim@meyering.net>
92204
92205         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92206         Use `unsigned', not `int', as type of index.
92207
92208         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92209
92210         * lib/fsusage.c: Remove unneeded parentheses around operands of
92211         `defined'.
92212
92213 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92214
92215         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92216         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92217         so that we can be included first.
92218         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92219         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92220         No need to include stddef.h or sys/types.h any more.
92221         Surround local include files with "", not "<>".
92222         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92223         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92224         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92225         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92226         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92227         (ISPRINT): Remove; no longer needed now that we assume C89.
92228
92229         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92230         Preserve errno.
92231
92232         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92233         quotearg_char): Use SIZE_MAX rather than
92234         (size_t) -1 when we are talking about "infinity".
92235
92236         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92237
92238 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92239
92240         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92241         hint that one should use `if (! x) abort ();' rather than `assert
92242         (x);', and anyway it's one less thing to worry about configuring.
92243         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92244         hash_rehash, hash_insert): Use abort rather than assert.
92245
92246 2002-11-22  Bruno Haible  <bruno@clisp.org>
92247
92248         * lib/safe-read.h: Assume C89. Add comments.
92249         (safe_read): Change return type to size_t.
92250         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92251         byte counts > SSIZE_MAX correctly.
92252         * lib/safe-write.h: New file.
92253         * lib/safe-write.c: New file.
92254         * lib/full-read.h: New file.
92255         * lib/full-read.c: New file.
92256         * lib/full-write.h: Assume C89. Add comments.
92257         * lib/full-write.c: Include safe-write.h.
92258         (full_write): Rewritten to use safe_write.
92259         Suggested by Jim Meyering and Paul Eggert.
92260
92261 2002-11-21  Jim Meyering  <jim@meyering.net>
92262
92263         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92264
92265         Merge in changes from the coreutils.
92266
92267         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92268         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92269         <stdint.h>.
92270         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92271         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92272         int.  Work more efficiently if X is the same width as uintmax_t.
92273         Do not compare X to -1, to avoid bogus compiler warning.
92274         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92275         Don't assume that f_frsize and f_bsize are the same type.
92276
92277         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92278         warning on FreeBSD.
92279
92280         * lib/makepath.c (make_path): Restore umask *before* creating the final
92281         component.
92282         (make_path): Minor reformatting.
92283
92284         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92285         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92286         HAVE_MALLOC/HAVE_REALLOC.
92287
92288         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92289         dummy ones.  At least on GNU/Linux systems, `auto' means something
92290         else.
92291         From Michael Stone.
92292
92293 2002-11-21  Bruno Haible  <bruno@clisp.org>
92294
92295         Remove case insensitive option matching.
92296         * lib/argmatch.h (argcasematch): Remove declaration.
92297         (ARGCASEMATCH): Remove macro.
92298         (__xargmatch_internal): Remove case_sensitive argument.
92299         (XARGMATCH): Update.
92300         (XARGCASEMATCH): Remove macro.
92301         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92302         case_sensitive argument.
92303         (argcasematch): Remove function.
92304         (__xargmatch_internal): Remove case_sensitive argument.
92305         (main): Use XARGMATCH instead of XARGCASEMATCH.
92306
92307         * lib/xmalloc.c: Change compile-time error message. Add comment about
92308         required autoconf version.
92309
92310 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92311
92312         Merge argmatch cleanups from Bison.  Assume C89.
92313
92314         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92315         Include stdlib.h, for EXIT_FAILURE.
92316         Always include <string.h>, since we assume C89.
92317         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92318         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92319         Include <stddef.h> instead, since it's all we need for size_t.
92320         (PARAMS): Remove.  All uses removed.
92321         (ARRAY_CARDINALITY): Do not bother to #undef.
92322         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92323         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92324         Remove unnecessary parentheses.
92325         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92326         Insert necessary parentheses.
92327         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92328         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92329
92330 2002-11-19  Bruno Haible  <bruno@clisp.org>
92331
92332         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92333         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92334
92335         * lib/mbswidth.h (PARAMS): Remove macro.
92336         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92337         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92338
92339         * lib/gcd.h (PARAMS): Remove macro.
92340         (gcd): Use ANSI C function declarations.
92341         * lib/gcd.c (gcd): Likewise.
92342
92343 2002-11-15  Bruno Haible  <bruno@clisp.org>
92344
92345         * lib/strcspn.c: Include <stddef.h>.
92346         (strcspn): Use ANSI C function declaration. Change return type to
92347         size_t. Use NULL.
92348         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92349         (strpbrk): Use NULL.
92350         * lib/strpbrk.h (PARAMS): Remove macro.
92351         (strpbrk): Use ANSI C function declaration.
92352         * lib/strstr.c: Don't include <sys/types.h>.
92353         * lib/strstr.h (PARAMS): Remove macro.
92354         (strstr): Use ANSI C function declarations.
92355
92356 2002-11-14  Karl Berry  <karl@gnu.org>
92357
92358         * config/mkinstalldirs: `do' on separate line, instead of
92359         `for var; do'.
92360
92361 2002-11-06  Bruno Haible  <bruno@clisp.org>
92362
92363         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92364         * lib/gcd.c (gcd): Likewise.
92365
92366 2002-11-05  Bruno Haible  <bruno@clisp.org>
92367
92368         * lib/gcd.h: New file, from gettext-0.11.5.
92369         * lib/gcd.c: New file, from gettext-0.11.5.
92370
92371 2002-11-05  Bruno Haible  <bruno@clisp.org>
92372
92373         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92374         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92375         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92376         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92377
92378         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92379         <libintl.h>.
92380         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92381         <libintl.h>.
92382
92383         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92384         * lib/human.c: Include gettext.h instead of <libintl.h>.
92385         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92386         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92387         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92388         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92389         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92390         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92391         (textdomain): Remove definition.
92392         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92393
92394         * lib/long-options.c: Remove include of <libintl.h> and definition of
92395         _.
92396         * lib/same.c: Remove include of <libintl.h> and definition of _.
92397
92398 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92399
92400         * lib/config.charset: A few additions for Solaris.
92401
92402 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92403
92404         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92405         * lib/localcharset.c (locale_charset): Declare as extern "C".
92406
92407 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92408
92409         * lib/config.charset: msdos in uk_UA uses CP1125.
92410
92411 2002-11-04  Bruno Haible  <bruno@clisp.org>
92412
92413         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92414         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92415         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92416         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92417         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92418
92419 2002-11-04  Bruno Haible  <bruno@clisp.org>
92420
92421         * lib/localcharset.c (locale_charset): Don't return an empty string.
92422
92423 2002-11-04  Bruno Haible  <bruno@clisp.org>
92424
92425         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92426         aliases.
92427
92428 2002-11-04  Bruno Haible  <bruno@clisp.org>
92429
92430         * lib/config.charset: Update for newest glibc. Add canonical names
92431         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92432
92433 2002-11-04  Bruno Haible  <bruno@clisp.org>
92434
92435         * lib/config.charset: Add support for NetBSD.
92436
92437 2002-11-04  Bruno Haible  <bruno@clisp.org>
92438
92439         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92440
92441 2002-11-01  Bruno Haible  <bruno@clisp.org>
92442
92443         * configure.in: Add AC_CONFIG_AUX_DIR call.
92444         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92445         test/Makefile.
92446         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92447
92448 2002-09-28  Karl Berry  <karl@gnu.org>
92449
92450         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92451         installed automake until the next release, since changes have been
92452         made.
92453
92454 2002-09-25  Karl Berry  <karl@gnu.org>
92455
92456         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92457         * lib/getopt*: copy from libc/posix.
92458         * lib/gettext.h: copy from gettext.
92459         * lib/.cppi-disable: add strdup.c, gettext.h.
92460
92461 2002-09-25  Karl Berry  <karl@gnu.org>
92462
92463         * config/srclist.txt: enable gettext.h check.
92464         * config/config.{guess,sub}: update from prep.
92465         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92466                 from automake 1.6.3.
92467         See srclist*.
92468
92469 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92470
92471         * regex.c (PATFETCH): Remove the translating fetch.
92472         (PATFETCH_RAW): Rename to PATFETCH.
92473         (set_image_of_range): New fun.
92474         (SET_RANGE_TABLE_WORK_AREA): Use it.
92475         (regex_compile): Don't translate the pattern chars so eagerly.
92476         Only do it when inserting an `exactn' bytecode or when handling
92477         a char-range.
92478         (mutually_exclusive_p): Avoid empty statement.
92479
92480 2002-07-06  Jim Meyering  <meyering@lucent.com>
92481
92482         * m4/README: Don't mention Makefile.am.in.
92483         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92484
92485 2002-07-01  Jim Meyering  <meyering@lucent.com>
92486
92487         * lib/c-stack.c: Include sys/time.h.
92488         From Volker Borchert.
92489
92490 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92491
92492         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92493
92494 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92495
92496         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92497         New macro.  Use it uniformly instead of
92498         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92499         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92500         reported by Vin Shelton.
92501
92502 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92503
92504         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92505         Do not assume SA_SIGINFO behavior.
92506         Bug reported by Jim Meyering on NetBSD 1.5.2.
92507
92508 2002-06-22  Jim Meyering  <meyering@lucent.com>
92509
92510         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92511         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92512
92513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92514         now that configure.ac uses AC_GNU_SOURCE.
92515         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92516         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92517
92518         Update to latest tools.  Suggestions from Paul Eggert.
92519         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92520         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92521         * m4/fnmatch.m4: Likewise.
92522         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92523         to AC_HEADER_STDBOOL
92524
92525 2002-06-22  Jim Meyering  <meyering@lucent.com>
92526
92527         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92528         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92529
92530 2002-06-22  Jim Meyering  <meyering@lucent.com>
92531
92532         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92533
92534         * lib/exitfail.c, exitfail.h: Likewise.
92535         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92536
92537         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92538         of fnmatch.h.
92539         (EXTRA_DIST): Add fnmatch_loop.c.
92540         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92541
92542         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92543         * lib/fnmatch.c: Update from diffutils-2.8.2.
92544         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92545         * lib/fnmatch.h: Remove file.
92546
92547 2002-06-21  Jim Meyering  <meyering@lucent.com>
92548
92549         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92550         * m4/mbrtowc.m4: Likewise.
92551
92552         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92553         * m4/mbswidth.m4: Reflect name change:
92554         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92555         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92556
92557         * m4/lib-link.m4: Update from gettext-0.11.2.
92558         * m4/gettext.m4: Likewise.
92559
92560         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92561         From Alfred M. Szmidt.
92562
92563 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92564
92565         * lib/file-type.h: Report an error if neither S_ISREG nor
92566         S_IFREG is defined, instead of using a test specific to glibc
92567         2.2.  This should be safe, since POSIX requires S_ISREG and
92568         Unix Version 7 had S_IFREG.  We don't need to check for
92569         <sys/types.h> since we don't use any symbols that it defines.
92570
92571 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92572
92573         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92574         $@-t, so that each temporary file name is unique and valid in the first
92575         8 characters, for operation under DOS.
92576
92577 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92578
92579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92580
92581 2002-06-15  Jim Meyering  <meyering@lucent.com>
92582
92583         Work even with DJGPP 2.03, which lacks support for symlinks.
92584         From Richard Dawe.
92585         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92586         is defined.
92587         * lib/lchown.c (S_ISLNK): Likewise.
92588
92589 2002-06-15  Jim Meyering  <meyering@lucent.com>
92590
92591         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92592         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92593         have been included before this file.
92594
92595 2002-06-14  Jim Meyering  <meyering@lucent.com>
92596
92597         * lib/file-type.h: Use the version from diffutils-2.8.2.
92598         * lib/file-type.c: Likewise.
92599
92600 2002-06-07  Jim Meyering  <meyering@lucent.com>
92601
92602         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92603         They're needed at least for NetBSD 1.5.2.
92604         ($statxfs_includes): Include those same headers.
92605         ($statxfs_includes): Include sys/vfs.h if available.
92606         ($statxfs_includes): Likewise for sys/statvfs.h.
92607         Check for the following members in both structs statfs and statvfs:
92608         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92609
92610 2002-06-01  Jim Meyering  <meyering@lucent.com>
92611
92612         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92613         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92614
92615 2002-05-28  Jim Meyering  <meyering@lucent.com>
92616
92617         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92618         Reported by Volker Borchert.
92619
92620 2002-05-27  Jim Meyering  <meyering@lucent.com>
92621
92622         Fix a problem seen only on nonconforming systems whereby ls.c's
92623         use of localtime, and then of gettimeofday would cause trouble:
92624         the localtime call used to initialize rpl_gettimeofday's save
92625         mechanism would clobber ls's current local time information so
92626         that in any long listing the first file would always be listed
92627         with date 1970-01-01.  Analysis by Volker Borchert.
92628
92629         * lib/gettimeofday.c (localtime): Undefine.
92630         (rpl_localtime): New function.
92631
92632 2002-05-27  Jim Meyering  <meyering@lucent.com>
92633
92634         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92635         localtime.
92636
92637         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92638         use the replacement function; it wouldn't resolve at link time.
92639         Reported by Volker Borchert.
92640
92641 2002-05-22  Jim Meyering  <meyering@lucent.com>
92642
92643         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92644         file-type.h.
92645         * lib/file-type.h: New file.
92646         * lib/file-type.c (file_type): New file/function.  Extracted from
92647         diffutils.
92648
92649 2002-04-30  Jim Meyering  <meyering@lucent.com>
92650
92651         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92652
92653 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92654
92655         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92656
92657 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92658
92659         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92660         Do not check for alloca.h (no longer used) or stdbool.h (was never
92661         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92662
92663 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92664
92665         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92666
92667 2002-04-29  Jim Meyering  <meyering@lucent.com>
92668
92669         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92670         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92671         Use AC_FUNC_STRNLEN here instead.
92672
92673         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92674         With autoconf-2.53a, it's part of AC_PROG_CC.
92675
92676 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92677
92678         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92679         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92680
92681 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92682
92683         * lib/sig2str.h, lib/sig2str.c: New files.
92684         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92685
92686 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92687
92688         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92689         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92690         of 127, since 64 is the largest conceivable number for ancient
92691         nonstandard hosts.
92692         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92693
92694 2002-04-28  Jim Meyering  <meyering@lucent.com>
92695
92696         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92697
92698 2002-04-24  Jim Meyering  <meyering@lucent.com>
92699
92700         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92701         (jm_PREREQ): Use it.
92702
92703         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92704         mach/mach.h fcntl.h.
92705         Check for this function: setlocale.
92706
92707 2002-04-24  Jim Meyering  <meyering@lucent.com>
92708
92709         * lib/gettext.h: New file, from Gettext.
92710         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92711         (libfetish_a_SOURCES): Add gettext.h.
92712
92713 2002-04-16  Jim Meyering  <meyering@lucent.com>
92714
92715         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92716         ut_pid, ut_id, ut_exit.
92717
92718 2002-04-16  Jim Meyering  <meyering@lucent.com>
92719
92720         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92721         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92722         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92723
92724 2002-04-12  Jim Meyering  <meyering@lucent.com>
92725
92726         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92727         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92728         existence of the getmntinfo function.  Needed for Darwin 5.3.
92729
92730         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92731         This is necessary at least on Darwin 5.3.
92732
92733         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92734         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92735         strnlen.o in the library, and that makes some versions of ranlib
92736         object.
92737
92738 2002-04-12  Jim Meyering  <meyering@lucent.com>
92739
92740         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92741
92742 2002-04-09  Jim Meyering  <meyering@lucent.com>
92743
92744         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92745         to be more precise.  Rather than saying we're checking whether the
92746         function `works', say what we're testing.
92747         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92748         Reported by Bruno Haible.
92749
92750 2002-03-10  Jim Meyering  <meyering@lucent.com>
92751
92752         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92753         Suggestion from Santiago Vila.
92754
92755 2002-03-08  Jim Meyering  <meyering@lucent.com>
92756
92757         * lib/rename.c: Mention that this wrapper is needed also on
92758         mips-dec-ultrix4.4 systems.
92759
92760 2002-03-02  Jim Meyering  <meyering@lucent.com>
92761
92762         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92763         not HAVE_CLOCK_SETTIME.
92764
92765 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92766
92767         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92768         Check for clock_settime.
92769
92770 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92771
92772         * lib/nanosleep.h: Rename to....
92773         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92774
92775         * lib/gettime.c: New file.
92776         * lib/settime.c: New file.
92777         * lib/stime.c: Remove.
92778
92779         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92780         timespec.h.  Remove nanosleep.h.
92781
92782 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92783
92784         * m4/acl.m4: New file.
92785         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92786         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92787
92788 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92789
92790         * lib/acl.c, lib/acl.h: New files.
92791         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92792
92793 2002-02-24  Jim Meyering  <meyering@lucent.com>
92794
92795         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92796         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92797         cause trouble.  Reported by Nelson Beebe.
92798
92799 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92800
92801         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92802         compilers that don't know that xalloc_die never returns.
92803
92804 2002-02-20  Jim Meyering  <meyering@lucent.com>
92805
92806         * lib/getdate.c: Regenerate using bison-1.33.
92807
92808 2002-02-17  Jim Meyering  <meyering@lucent.com>
92809
92810         * config/config.guess (main): Don't use `head -1'; it's no longer
92811         portable. Use `sed 1q' instead.
92812
92813 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92814
92815         * m4/codeset.m4: Upgrade to gettext-0.11.
92816         * m4/gettext.m4: Upgrade to gettext-0.11.
92817         * m4/glibc21.m4: Upgrade to gettext-0.11.
92818         * m4/iconv.m4: Upgrade to gettext-0.11.
92819         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92820         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92821         * m4/lib-ld.m4: New file, from gettext-0.11.
92822         * m4/lib-link.m4: New file, from gettext-0.11.
92823         * m4/lib-prefix.m4: New file, from gettext-0.11.
92824         * m4/progtest.m4: Upgrade to gettext-0.11.
92825
92826 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92827
92828         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92829         (jm_PREREQ): Use it.
92830
92831 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92832
92833         * lib/posixver.c, lib/posixver.h: New files.
92834         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92835
92836 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92837             Bruno Haible  <bruno@clisp.org>
92838
92839         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92840         (fwrite_success_callback): New declaration.
92841         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92842         print_unicode_char. Call failure callback instead of error.
92843         (fwrite_success_callback): New function.
92844         (exit_failure_callback): New function.
92845         (fallback_failure_callback): New function.
92846         (print_unicode_char): Call unicode_to_mb.
92847
92848 2002-01-26  Jim Meyering  <meyering@lucent.com>
92849
92850         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92851         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92852
92853 2002-01-26  Jim Meyering  <meyering@lucent.com>
92854
92855         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92856
92857 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92858
92859         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92860
92861 2002-01-22  Jim Meyering  <meyering@lucent.com>
92862
92863         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92864         Otherwise, some versions of automake would omit the rule that makes
92865         Makefile from Makefile.in.
92866
92867 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92868
92869         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92870         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92871         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92872         (memcoll): Set errno to zero if there is no error.
92873
92874         * lib/quotearg.c (quotearg_buffer_restyled):
92875         Fix bug with quoting buffers containing NUL when backslashing escapes.
92876         This bug was exposed by the other changes in this patch.
92877         (quotearg_n_options): New arg ARGSIZE.
92878         All callers changed.
92879         (quoting_options_from_style): New function.
92880         (quotearg_n_style): Use it.
92881         (quotearg_n_style_mem): New function.
92882
92883         * lib/quotearg.h (quotearg_n_style_mem): New function.
92884
92885 2002-01-19  Jim Meyering  <meyering@lucent.com>
92886
92887         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92888         Remove useless quotes: DF_PROG="df".
92889         * m4/strnlen.m4: New file.
92890
92891 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92892
92893         * lib/backupfile.c (ISDIGIT): Comment fix.
92894         * lib/getdate.y (ISDIGIT): Likewise.
92895         * lib/posixtm.c (ISDIGIT, year): Likewise.
92896         * lib/strverscmp.c (ISDIGIT): Likewise.
92897         * lib/userspec.c (ISDIGIT): Likewise.
92898
92899 2002-01-16  Jim Meyering  <meyering@lucent.com>
92900
92901         * lib/getdate.y: Add three semicolons, each just before a closing
92902         brace. Bison (as of version 1.31) no longer papers over that mistake.
92903
92904 2002-01-05  Jim Meyering  <meyering@lucent.com>
92905
92906         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92907
92908 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92909
92910         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92911         not silently exit merely because the output buffer happens to
92912         have nothing pending.
92913
92914 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92915
92916         See the big note in ../ChangeLog.
92917         * lib/human.c (suffixes): Prefer K to k for 1024.
92918         (generate_suffix_backwards): New function.
92919         (human_readable_inexact): Use it.
92920         * lib/xstrtol.c (__xstrtol): If there is no number but there
92921         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92922         Accept 'K' as well as 'k'.
92923
92924 2001-12-15  Jim Meyering  <meyering@lucent.com>
92925
92926         * lib/regex.h (__restrict_arr): Update from libc.
92927
92928         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92929         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92930         (STREQ): Define.
92931
92932 2001-12-14  Jim Meyering  <meyering@lucent.com>
92933
92934         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92935         Suggestion from Bruno Haible.
92936
92937 2001-12-10  Jim Meyering  <meyering@lucent.com>
92938
92939         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92940         xrealloc, Instead, include "xalloc.h".
92941         (initbuffer): Don't cast xmalloc return value to char*.
92942         (readline): Reword comment.
92943         Don't cast xrealloc return value to char*
92944         Return NULL, not 0.
92945
92946 2001-12-09  Jim Meyering  <meyering@lucent.com>
92947
92948         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92949         about `signed and unsigned type in conditional expression'.
92950         * lib/posixtm.c (posix_time_parse): Likewise.
92951
92952         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92953
92954         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92955         to avoid a pedantic warning.
92956
92957         * lib/getstr.c: Don't include assert.h.
92958         (getstr): Remove warning-evoking assertions.
92959         Return -1 if offset parameter is out of bounds.
92960         Change the type of a local from int to size_t.
92961
92962         * lib/strftime.c (my_strftime_localtime_r): Include this function
92963         definition in the `#if ! HAVE_TM_GMTOFF' block.
92964
92965         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92966         Include xalloc.h instead.
92967
92968 2001-12-02  Jim Meyering  <meyering@lucent.com>
92969
92970         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92971         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92972         included.
92973
92974         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92975         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92976
92977 2001-11-30  Akim Demaille  <akim@epita.fr>
92978
92979         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92980         before being defined.
92981
92982 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92983
92984         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92985         First arg is int, not unsigned.
92986         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92987         (SIZE_MAX, UINT_MAX): New macros.
92988         (quotearg_n_options): Abort if N is negative.
92989         Avoid overflow check on hosts where size_t is 64 bits and int
92990         is 32 bits, as overflow is impossible there.
92991         Fix off-by-one typo that caused unnecessary reallocation.
92992
92993 2001-11-27  Jim Meyering  <meyering@lucent.com>
92994
92995         * lib/tempname.c: Merge with version from libc.
92996         * lib/regex.c: Likewise.
92997
92998         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92999         systems for which STDC_HEADERS is 0, it was not included, resulting in
93000         a warning about an integer-to-pointer conversion problem with getenv.
93001         Reported by Volker Borchert.
93002
93003 2001-11-26  Jim Meyering  <meyering@lucent.com>
93004
93005         * lib/gtod.h: Remove file.
93006         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93007         * lib/gettimeofday.c: Don't include gtod.h.
93008         (GTOD_init): Remove function.
93009         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93010         Suggestion from Volker Borchert.
93011
93012 2001-11-23  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93015         it.
93016         * lib/hash.c (struct hash_table): Define it here instead.
93017
93018 2001-11-22  Jim Meyering  <meyering@lucent.com>
93019
93020         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93021
93022 2001-11-20  Jim Meyering  <meyering@lucent.com>
93023
93024         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93025         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93026
93027 2001-11-19  Jim Meyering  <meyering@lucent.com>
93028
93029         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93030         directory.  Use "conftestXXXXXX" as the template.
93031         Suggestion from Paul Eggert.
93032
93033         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93034         immediately, so the test doesn't mistakenly hit the max-open-files
93035         limit.
93036
93037 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93038
93039         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93040         (TEMPORARIES): New macro.
93041         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93042         removes an artificial limitation (e.g. HP-UX 10.20, where
93043         TMP_MAX is 17576).
93044
93045 2001-11-18  Jim Meyering  <meyering@lucent.com>
93046
93047         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93048
93049 2001-11-18  Jim Meyering  <meyering@lucent.com>
93050
93051         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93052         on SunOS 4.
93053
93054         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93055         files will be created before anything else.
93056
93057 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93058
93059         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93060         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93061
93062 2001-11-17  Jim Meyering  <meyering@lucent.com>
93063
93064         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93065         Prompted by a report from Bob Proulx.
93066
93067         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93068         Instead, require UTILS_FUNC_MKSTEMP.
93069
93070 2001-11-17  Jim Meyering  <meyering@lucent.com>
93071
93072         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93073         Now, that's done as part of AC_FUNC_STRTOD.
93074
93075 2001-11-17  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93078         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93079         rather than group writable.  Patch by Juan F. Codagnone.
93080
93081         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93082         xrealloc, Instead, include "xalloc.h".
93083
93084         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93085         Remove explicit declarations of xmalloc, xrealloc,
93086         and xstrdup.  Instead, include "xalloc.h".
93087
93088         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93089         unlocked-io.h.
93090         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93091         Likewise.
93092         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93093
93094         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93095         Reported by Padraig Brady.
93096
93097         * lib/mkstemp.c: #undef mkstemp.
93098         Include config.h.
93099         (rpl_mkstemp): Rename from mkstemp.
93100         Protoize.
93101
93102 2001-11-16  Jim Meyering  <meyering@lucent.com>
93103
93104         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93105         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93106         determine the amount of total physical memory, use pstat_getstatic.
93107         HPUX-11 doesn't define _SC_PHYS_PAGES.
93108         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93109         If sysconf couldn't be used to determine the amount of available
93110         physical memory, use both pstat_getstatic and pstat_getdynamic.
93111         Based on a patch from Bob Proulx.
93112
93113 2001-11-10  Jim Meyering  <meyering@lucent.com>
93114
93115         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93116         (jm_PREREQ): Use it.
93117
93118 2001-11-09  Jim Meyering  <meyering@lucent.com>
93119
93120         * m4/jm-macros.m4: Require autoconf-2.52f.
93121         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93122         Use these AC_-prefixed names, not the AM_-prefixed ones.
93123
93124         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93125
93126 2001-11-05  Jim Meyering  <meyering@lucent.com>
93127
93128         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93129
93130 2001-11-04  Jim Meyering  <meyering@lucent.com>
93131
93132         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93133         $DEFS.
93134
93135 2001-11-03  Jim Meyering  <meyering@lucent.com>
93136
93137         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93138         of AC_DEFUN.
93139
93140         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93141         know the name of the variable in the macro definition.
93142
93143 2001-11-03  Jim Meyering  <meyering@lucent.com>
93144
93145         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93146         in argmatch_to_argument call.
93147
93148         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93149         argument.
93150
93151         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93152         e.g., a fault due to an attempt to free a NULL pointer.
93153
93154 2001-11-01  Jim Meyering  <meyering@lucent.com>
93155
93156         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93157         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93158
93159 2001-11-01  Jim Meyering  <meyering@lucent.com>
93160
93161         * lib/dirfd.c, lib/dirfd.h: New files.
93162         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93163
93164         * lib/hash.c (hash_print) [TESTING]: Clean up.
93165
93166 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93167
93168         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93169         to avoid a warning if -Wall.
93170
93171 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93172
93173         * README: New file
93174         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93175         (per RMS's instructions, this is now the canonical source)
93176         * lgpl/, gpl/: New directories.
93177
93178 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93179
93180         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93181
93182 2001-10-21  Jim Meyering  <meyering@lucent.com>
93183
93184         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93185         this code would end up calling gettext even in packages built
93186         with --disable-nls.
93187         * lib/getopt.c (_): Likewise.
93188         * lib/regex.c (_): Likewise.
93189
93190 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93191
93192         * m4/error.m4 (jm_PREREQ_ERROR):
93193         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93194         AC_FUNC_STRERROR_R does that.
93195         Check for strerror declaration.
93196
93197         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93198         are supposed to have them these days.
93199         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93200         Merge changes from latest Autoconf CVS.
93201         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93202         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93203         POSIX decided to standardize on the int flavor of strerror_r.
93204
93205 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93206
93207         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93208         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93209         Use strerror_r that is only a macro, even if it is not a function.
93210         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93211         (private_strerror): Use prototypes, not old-style function definition.
93212         (print_errno_message): New function.
93213         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93214         char*-flavored one.
93215         (error_tail, error, error_at_line): Use it.
93216
93217 2001-10-11  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93220         and quote_n (1, ... to avoid clobbering a buffer.
93221
93222 2001-10-05  Jim Meyering  <meyering@lucent.com>
93223
93224         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93225         hash-pjw.h.
93226         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93227         * lib/hash-pjw.h: New file.
93228
93229 2001-09-30  Jim Meyering  <meyering@lucent.com>
93230
93231         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93232         `struct fsstat' has the `f_fstypename' member.
93233         Use that to define FS_TYPE, which is now used to make
93234         the getfsstat link test tighter.
93235
93236 2001-09-30  Jim Meyering  <meyering@lucent.com>
93237
93238         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93239         Include <sys/ucred.h>, for Apple Darwin.
93240         Include sys/mount.h and sys/fs_types.h only if available.
93241         (FS_TYPE): Define.
93242         (read_filesystem_list): Use FS_TYPE.
93243
93244 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93245
93246         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93247         a boolean context.
93248
93249 2001-09-29  Jim Meyering  <meyering@lucent.com>
93250
93251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93252         [one-argument getmntent function]): Include stdio.h before mntent.h.
93253         SunOS 4.1.x needs it for the declaration of `FILE'.
93254         Patch by Volker Borchert.
93255
93256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93257         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93258         sys/fs_types.h, and make the link-test for getfsstat guard #include
93259         directives with appropriate #if HAVE_*_H tests so that we can
93260         detect getfsstat on Apple Darwin1.3.7 systems.
93261         Reported by Nelson Beebe.
93262         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93263
93264 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93265
93266         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93267         #defines strtoimax.  Also treat the other strto* functions
93268         like strtoimax.
93269
93270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93271         Check for strtoul and strtoumax,
93272         as those declarations are made even in the signed case.
93273         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93274         Likewise, for strtol and strtoimax.
93275
93276 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93277
93278         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93279         #defines strtoimax.  Also treat the other strto* functions
93280         like strtoimax.
93281
93282         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93283         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93284         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93285
93286 2001-09-26  Jim Meyering  <meyering@lucent.com>
93287
93288         Most macros in unlocked-io.h had the wrong number of arguments.
93289         * lib/gen-uio: New script.
93290         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93291         * lib/unlocked-io.hin: Remove file.
93292         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93293         rather than trying to embed it here.
93294         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93295         Reported by Padraig Brady.
93296
93297 2001-09-25  Volker Borchert  <bt@teknon.de>
93298
93299         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93300         `result'.
93301
93302 2001-09-24  Jim Meyering  <meyering@lucent.com>
93303
93304         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93305
93306 2001-09-23  Jim Meyering  <meyering@lucent.com>
93307
93308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93309         instead of the mere test for existence of mntent.h.  The latter
93310         would get a false-positive on AIX 3.4 systems.
93311         In the outer getmntent if-block, don't die if neither of the getmntent
93312         tests succeeds.  Instead, just fall through and continue with the
93313         remaining tests.
93314
93315 2001-09-23  Jim Meyering  <meyering@lucent.com>
93316
93317         * lib/mountlist.c: Remove useless parentheses in #if directives.
93318         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93319         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93320
93321 2001-09-22  Jim Meyering  <meyering@lucent.com>
93322
93323         * m4/gettext.m4: New file.  From gettext.
93324         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93325         * m4/progtest.m4: Likewise
93326         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93327         * m4/glibc21.m4: Likewise.
93328
93329         * m4/libintl.m4: Remove.  No longer used.
93330
93331 2001-09-22  Jim Meyering  <meyering@lucent.com>
93332
93333         * lib/localcharset.c: Update from latest gettext.
93334         * lib/config.charset: Likewise.
93335
93336 2001-09-20  Jim Meyering  <meyering@lucent.com>
93337
93338         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93339         strtoimax.
93340         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93341         strtoumax.
93342
93343 2001-09-20  Jim Meyering  <meyering@lucent.com>
93344
93345         * lib/xstrtol.c (strtoimax): Guard declaration with
93346         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93347         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93348         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93349         (strtoumax): Likewise, for completeness (it wasn't necessary).
93350
93351 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93352
93353         * lib/strtoimax.c (HAVE_LONG_LONG):
93354         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93355         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93356         to work around bug in IBM C compiler.
93357
93358 2001-09-17  Jim Meyering  <meyering@lucent.com>
93359
93360         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93361         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93362         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93363         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93364         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93365         whenever the right hand side need not be expanded by the shell.
93366
93367 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93368
93369         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93370         library.  It's not correct, as some older glibcs are buggy.
93371         fnmatch wasn't fixed until glibc 2.2.
93372
93373         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93374         special shell magic here.
93375
93376 2001-09-16  Jim Meyering  <meyering@lucent.com>
93377
93378         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93379         * m4/jm-macros.m4: Require it.
93380
93381 2001-09-16  Jim Meyering  <meyering@lucent.com>
93382
93383         * lib/mkdir.c: New file.
93384
93385 2001-09-15  Jim Meyering  <meyering@lucent.com>
93386
93387         * m4/jm-macros.m4: Check for help2man.
93388
93389 2001-09-11  Jim Meyering  <meyering@lucent.com>
93390
93391         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93392         The body, by Paul Eggert, was moved here from configure.in.
93393         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93394
93395 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93396
93397         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93398         (jm_PREREQ): Use it.
93399
93400 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93401
93402         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93403         Use ssize_t, not int, to store result of readlink.
93404         Check for ssize_t overflow as well as size_t overflow,
93405         as POSIX says the result of readlink is implementation-defined
93406         when ssize_t overflows.
93407         Remove unnecessary cast to char*.
93408         Use free+malloc instead of realloc, as the storage doesn't need
93409         to be preserved and it's clearer and can be more efficient that way.
93410         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93411         * lib/xreadlink.h (xreadlink): Update prototype.
93412
93413 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93414
93415         * lib/xgetcwd.c: Revert some of the previous change; intead,
93416         fix the HAVE_GETCWD_NULL code to behave more like the
93417         !HAVE_GETCWD_NULL code used to.
93418
93419         Include "xalloc.h".
93420         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93421         invoke xalloc_die.
93422
93423 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93424
93425         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93426         sys/param.h, as pathmax.h includes them.
93427
93428 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93429
93430         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93431         (jm_PREREQ_XGETCWD): New macro.
93432
93433         * m4/getcwd.m4: New file.
93434
93435 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93436
93437         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93438         like the HAVE_GETCWD_NULL code.
93439         Include pathmax.h if not HAVE_GETCWD.
93440         Do not include xalloc.h.
93441         (INITIAL_BUFFER_SIZE): New symbol.
93442         Do not use xmalloc / xrealloc, since the caller is responsible for
93443         handling errors.  Preserve errno around `free' during failure.
93444         Do not overrun buffer when using getwd.
93445
93446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93447
93448         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93449         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93450         getcwd (NULL, 0).
93451
93452 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93453
93454         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93455         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93456         spotted by Jim Meyering.
93457
93458 2001-09-03  Jim Meyering  <meyering@lucent.com>
93459
93460         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93461         failure.
93462
93463 2001-09-02  Jim Meyering  <meyering@lucent.com>
93464
93465         * lib/error.c: Update from GNU libc.
93466
93467 2001-09-01  Jim Meyering  <meyering@lucent.com>
93468
93469         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93470         Used by df.
93471
93472 2001-09-01  Jim Meyering  <meyering@lucent.com>
93473
93474         * lib/xreadlink.c: New file.
93475         * lib/xreadlink.h: New file.
93476         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93477         xreadlink.h.
93478
93479         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93480         doesn't conflict with sparc Solaris 7's definition in
93481         /usr/include/sys/int_types.h.
93482
93483         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93484         files.
93485         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93486         and strncasecmp as r-values.  Unixware didn't have declarations.
93487
93488 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93489
93490         * lib/xstrtol.h: Add copyright notice.
93491         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93492         LONGINT_INVALID_SUFFIX_CHAR.
93493
93494 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93495
93496         * lib/xstrtol.c (strtoimax): New decl.
93497
93498 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93499
93500         * lib/xgetcwd.c: Don't include pathmax.h.
93501         Include stdlib.h and unistd.h if available.
93502         Include xalloc.h.
93503         (xmalloc, xstrdup, free): Remove decls.
93504         (xgetcwd): Don't assume sizes fit in unsigned.
93505         Check for overflow when computing sizes.
93506         Simplify reallocation code.
93507
93508 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93509
93510         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93511         a directory's st_size can have an arbitrary value, so the old
93512         usage could waste an arbitrary amount of memory.  All uses
93513         changed.
93514         * lib/savedir.h: Update prototype.
93515
93516 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93517
93518         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93519
93520         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93521         old strtoimax.c.
93522
93523         Also, make the following further changes to make this file's
93524         configuration more similar to that of strtol.c:
93525         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93526         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93527         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93528         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93529         changed to signed values.
93530
93531         And make the following changes as well:
93532         Fix copyright notice, as 1999 was missing.
93533         (verify): New macro.
93534         (strtoimax): Check sizes at compile-time, not run-time.
93535         Prefer strtol to strtoll if both work.
93536         (main): Remove; it was not that useful and was a pain to maintain.
93537
93538         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93539
93540 2001-08-31  Jim Meyering  <meyering@lucent.com>
93541
93542         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93543         Use an initial, malloc'd, buffer of length 128 rather than
93544         a statically allocated one of length 1024.
93545
93546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93547
93548         Simplify code, partly by assuming autoconf 2.52 semantics.
93549
93550         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93551
93552         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93553         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93554         All uses removed.
93555         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93556         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93557         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93558         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93559         jm_AC_HEADER_INTTYPES_H.
93560         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93561
93562         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93563
93564         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93565         Quote first arg of AC_DEFUN.
93566         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93567         since they are needed to parse the include file even if we need
93568         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93569         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93570         but with opposite signedness.
93571
93572 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93573
93574         Merge 'exclude' changes from tar 1.13.22.
93575         This fixes one or two unlikely storage allocation overflow bugs,
93576         but doesn't change user-visible behavior otherwise.
93577
93578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93579
93580         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93581         (jm_PREREQ_EXCLUDE): New macro.
93582
93583 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93584
93585         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93586         tm to be declared.
93587
93588 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93589
93590         * lib/hash.c: Remove '2001' from copyright notice.
93591
93592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93593
93594         * lib/full-write.h: New file.
93595         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93596         * lib/full-write.c: Correct credits, as cccp.c no longer
93597         exists and anyway it was so heavily changed from the old cccp
93598         code as to be unrecognizable.  Include full-write.h.
93599         (full_write): Return size_t, with short writes meaning failure.
93600         All callers changed.  This fixes a bug with large buffers
93601         on 64-bit hosts.
93602         * lib/utime.c: Include full-write.h.
93603
93604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93605
93606         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93607         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93608         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93609         Include if available.
93610         (<xalloc.h>): Include
93611         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93612         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93613         collide with FNM macros.
93614         (struct patopts): New struct.
93615         (struct exclude): Use it, as exclude patterns now come with options.
93616         (new_exclude): Support above changes.
93617         (new_exclude, add_exclude_file):
93618         Initial size must now be a power of two to simplify overflow checking.
93619         (free_exclude, fnmatch_no_wildcards): New function.
93620         (excluded_filename): No longer requires options arg, as the options
93621         are determined by add_exclude.  Now returns bool, not int.
93622         (excluded_filename, add_exclude):
93623         Add support for the fancy new exclusion options.
93624         (add_exclude, add_exclude_file): Now takes int options arg.
93625         Check for arithmetic overflow when computing sizes.
93626         (add_exclude_file): xrealloc might modify errno, so don't
93627         realloc until after errno might be used.
93628
93629         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93630         New macros.
93631         (free_exclude): New decl.
93632         (add_exclude, add_exclude_file): Now takes int options arg.
93633         (excluded_filename): No longer requires options arg, as the options
93634         are determined by add_exclude.  Now returns bool, not int.
93635
93636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93637
93638         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93639
93640 2001-08-27  Jim Meyering  <meyering@lucent.com>
93641
93642         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93643
93644         * lib/version-etc.c (N_): Remove definition.
93645         Revert most of last change.
93646         Instead, simply don't mark the `Copyright...' string for translation.
93647         Based on advice from Paul Eggert.
93648
93649         * lib/strtoxmax.c: Tweak comment.
93650
93651 2001-08-26  Jim Meyering  <meyering@lucent.com>
93652
93653         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93654
93655         * m4/xstrtoimax.m4: New file.
93656         * m4/xstrtoumax.m4: Add comments explaining why we
93657         AC_REPLACE_FUNCS(strtol).
93658
93659 2001-08-26  Jim Meyering  <meyering@lucent.com>
93660
93661         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93662         of copyright with `%s' so translators don't get an untranslated
93663         message in 2002.
93664         (COPYRIGHT_YEAR): Define.
93665         (version_etc): Use fprintf rather than fputs.
93666         Suggestion from Ulrich Drepper.
93667
93668         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93669
93670         * lib/strtoll.c: New file, from GNU libc.
93671         * lib/xstrtoimax.c: New file.
93672
93673         * lib/xstrtol.h: Add xstrtoimax.
93674         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93675         * lib/strtoimax.c: New file.  Likewise, but first define
93676         STRTOUXMAX_SIGNED.
93677
93678         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93679         ...
93680         * lib/strtoxmax.c: ... then renamed to this.
93681
93682 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93683
93684         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93685         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93686         (jm_AC_TYPE_INTMAX_T): New macro.
93687         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93688
93689         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93690
93691         * m4/longlong.m4: Renamed from ulonglong.m4.
93692         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93693         * m4/uintmax_t.m4: Removed.
93694
93695 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93696
93697         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93698         Port to Solaris 8, where 'sed' requires a space after the 'r'
93699         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93700         Redirect output to $tmp just once.
93701
93702 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93703
93704         * lib/addext.c (<errno.h>): Include.
93705         (errno): Declare if not defined.
93706         (addext): Work correctly when pathconf returns -1 and leaves
93707         errno alone because there is no limit.  Also, work even if
93708         pathconf returns a value greater than SIZE_MAX.
93709
93710 2001-08-12  Jim Meyering  <meyering@lucent.com>
93711
93712         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93713         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93714         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93715         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93716         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93717         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93718         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93719         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93720         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93721         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93722         utime.m4, utimes.m4, xstrtoumax.m4:
93723         Quote the first argument in each use of AC_DEFUN.
93724
93725 2001-08-12  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93728         Simply `return getcwd (NULL, 0);'.
93729         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93730         Use 1300 as initial value for length, not PATH_MAX.
93731
93732         * lib/pathmax.h: Clean up cpp syntax.
93733
93734 2001-08-12  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/gettimeofday.c: New file.
93737         * lib/gtod.h: New file.
93738         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93739
93740 2001-08-05  Jim Meyering  <meyering@lucent.com>
93741
93742         * m4/jm-macros.m4: Require autoconf-2.52.
93743
93744 2001-08-04  Jim Meyering  <meyering@lucent.com>
93745
93746         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93747         stmt, to get in sync with glibc.
93748
93749 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93750
93751         The following changes are from gettext 0.10.39 as maintained by
93752         Bruno Haible.
93753
93754         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93755         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93756         with inverted sense.  All uses changed.
93757
93758         * lib/mbswidth.c: Don't include <limits.h>.
93759         Include <stdlib.h> and <string.h> unconditionally.
93760         (iswcntrl, mbsinit, ISCNTRL): New macros.
93761         (mbsnwidth): Use K&R style function declarations.
93762         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93763         can optimize it when MB_CUR_MAX == 1.
93764         The width of control characters is zero, not 1.
93765
93766 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93767
93768         The following changes are from gettext 0.10.39 as maintained by
93769         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93770
93771         * m4/codeset.m4: Upgrade to serial AM1.
93772         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93773         all uses changed.  Quote first arg of AC_DEFUN.
93774         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93775
93776         * m4/iconv.m4: Upgrade to serial AM2.
93777         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93778         Add --with-libconv-prefix.
93779         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93780         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93781         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93782         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93783         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93784
93785         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93786         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93787         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93788         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93789         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93790         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93791         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93792         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93793         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93794
93795         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93796         string.h any more.
93797
93798         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93799         not the default value.
93800
93801         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93802         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93803         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93804         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93805         Also check for iswcntrl, used for wcwidth fallback.
93806         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93807         to Autoconf 2.13.
93808
93809 2001-08-03  Jim Meyering  <meyering@lucent.com>
93810
93811         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93812         as it was in the original.  Reported by Paul Eggert.
93813
93814 2001-07-16  Jim Meyering  <meyering@lucent.com>
93815
93816         * m4/gettimeofday.m4: New file.
93817         Prompted by a report from Bernhard Baehr.
93818
93819 2001-07-15  Jim Meyering  <meyering@lucent.com>
93820
93821         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93822         stuff. Now it's in ../Makefile.cfg.
93823
93824 2001-07-15  Jim Meyering  <meyering@lucent.com>
93825
93826         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93827         (BUILT_SOURCES): Add unlocked-io.h.
93828         (io_functions): Define.
93829         (unlocked-io.h): New rule.
93830         (DISTCLEANFILES): Add unlocked-io.h.
93831         (all-local): Depend on unlocked-io.h, to ensure it is created.
93832
93833         * lib/unlocked-io.hin: New file
93834
93835         * lib/regex.c: Update from glibc.
93836
93837 2001-07-05  Jim Meyering  <meyering@lucent.com>
93838
93839         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93840         recommendation.
93841         (libfetish_a_SOURCES): Put all .h files here instead.
93842         Remove a thus-exposed (better checks in automake) duplicate and
93843         two unnecessary .h files.
93844
93845 2001-07-04  Jim Meyering  <meyering@lucent.com>
93846
93847         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93848         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93849         distcheck failure.
93850
93851 2001-07-02  Jim Meyering  <meyering@lucent.com>
93852
93853         The following changes were prompted by suggestions from Bruno Haible.
93854
93855         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93856         is now generated.
93857         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93858         definition of EXTRA_DIST.
93859         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93860         ensure that the generated file is created/updated whenever the list
93861         of $(unlocked_functions) is changed.
93862         (jm-glibc-io.m4): New rule.
93863         (unlocked-io.h): New rule -- currently unused.
93864
93865 2001-06-24  Jim Meyering  <meyering@lucent.com>
93866
93867         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93868         unmatched right bracket, rather than kludging it with an extra,
93869         falsely-matching quote in a comment.  Patch by Akim Demaille.
93870
93871 2001-06-11  Jim Meyering  <meyering@lucent.com>
93872
93873         * lib/regex.c: Update from GNU libc.
93874
93875 2001-05-27  Jim Meyering  <meyering@lucent.com>
93876
93877         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93878         Check for ut_type in struct utmp.
93879
93880 2001-05-27  Jim Meyering  <meyering@lucent.com>
93881
93882         * lib/readutmp.h (UT_TYPE): Define.
93883
93884 2001-05-24  Jim Meyering  <meyering@lucent.com>
93885
93886         * lib/argmatch.c: Include "quote.h".
93887         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93888         quote function.  Reported by Göran Uddeborg.
93889
93890 2001-05-22  Jim Meyering  <meyering@lucent.com>
93891
93892         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93893         now that we use the package-supplied version unconditionally.
93894         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93895
93896 2001-05-21  Jim Meyering  <meyering@lucent.com>
93897
93898         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93899         shell syntax errors.
93900
93901 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93902
93903         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93904
93905 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93906
93907         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93908         Don't bother to check library strftime, since
93909         we'll be using our own my_strftime function anyway.
93910         Define my_strftime instead of strftime.
93911
93912 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93913
93914         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93915         which is not yet declared.
93916
93917 2001-05-15  Jim Meyering  <meyering@lucent.com>
93918
93919         * m4/regex.m4: Use proper quoting so brackets appear in the test
93920         program.
93921         Reported by, and with help from, Bruno Haible.
93922
93923 2001-05-13  Jim Meyering  <meyering@lucent.com>
93924
93925         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93926         undefined.
93927
93928 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93929
93930         dirname code cleanup.  base_name now behaves more compatibly
93931         with POSIX basename when given file names that have trailing
93932         slashes, and similarly for dir_name.  Add new primitives
93933         base_len and dir_len.  Put the directory-name-related decls
93934         into dirname.h.
93935
93936         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93937         * lib/backupfile.c (base_name): Likewise.
93938         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93939         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93940         * lib/makepath.c (strip_trailing_slashes): Likewise.
93941         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93942         ISSLASH): Likewise.
93943         * lib/rename.c (strip_trailing_slashes): Likewise.
93944         * lib/same.c (base_name): Likewise.
93945         * lib/stripslash.c (ISSLASH): Likewise.
93946
93947         * lib/addext.c: Include <dirname.h> after size_t is defined.
93948         * lib/backupfile.c: Likewise.
93949
93950         * lib/addext.c (addext): Use base_len to trim redundant
93951         trailing slashes instead of doing it ourselves.
93952         But do not trim the last slash if it is not redundant.
93953
93954         * lib/backupfile.c (find_backup_file_name,
93955         max_backup_version): Use base_len instead of rolling it ourselves.
93956         Handle the case of "" and (on DOS) "C:" correctly.
93957
93958         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93959         needed. Include <string.h>, <dirname.h>.
93960         (base_name): Allow file names ending in slashes, other than names
93961         that are all slashes.  In this case, return the basename followed
93962         by the slashes.  This is more general, and can be used in places
93963         where the original base_name purposely had an assertion failure.
93964         (base_len): New function.
93965
93966         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93967         Do not include <assert.h>; no longer needed.
93968         Include xalloc.h.
93969         (memrchr): Remove decl.
93970         (dir_name_r): Remove.
93971         (dir_len): Renamed from dirlen.  All callers changed.
93972         Rewrite in terms of base_name, for simplicity and consistency.
93973         (dir_name): Never return NULL.  All callers changed.
93974         Do not include <stdlib.h> in test program; no longer needed.
93975         return 0; is fine for test program.
93976
93977         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93978         New macros.
93979         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93980
93981         * lib/path-concat.c (path_concat): Use base_len to compute
93982         base length, not strlen; this means we cannot rely on memcpy
93983         to null-terminate.
93984
93985         * lib/same.c (STREQ): Remove.
93986         (same_name): Handle the case where the basename ends in trailing '/'.
93987
93988         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93989         a slash was stripped.  Do not strip the last slash after a
93990         file system prefix.
93991
93992 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93993
93994         * lib/Makefile.am (libfetish_a_SOURCES):
93995         Add strftime.c, since we now compile it on all hosts.
93996
93997         * lib/strftime.c (my_strftime):
93998         Define to nstrftime if emacs, but only if my_strftime is not defined.
93999         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94000         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94001         Add one more extra argument: a nanoseconds value.
94002         All uses changed.
94003         (ns): New macro.
94004         (my_strftime function): Add %N format.
94005         (emacs_strftimeu): Renamed from emacs_strftime,
94006         with extra ut argument.
94007
94008 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94009
94010         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94011
94012 2001-04-21  Jim Meyering  <meyering@lucent.com>
94013
94014         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94015         doesn't interfere.
94016
94017 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94018
94019         * m4/ftruncate.m4: Check for chsize.
94020         Link with ftruncate.o unconditionally if ftruncate is missing.
94021         This was required when cross-compiling to i586-mingw32msvc.
94022
94023 2001-04-08  Jim Meyering  <meyering@lucent.com>
94024
94025         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94026         recomputed; that's necessary when the offset spans a DST transition.
94027         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94028
94029 2001-04-02  Jim Meyering  <meyering@lucent.com>
94030
94031         * lib/regex.h, regex.c: Update from GNU libc.
94032
94033 2001-03-24  Jim Meyering  <meyering@lucent.com>
94034
94035         * m4/jm-macros.m4: Require autoconf-2.49d.
94036
94037 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94038
94039         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94040
94041 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94042
94043         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94044
94045 2001-03-17  Jim Meyering  <meyering@lucent.com>
94046
94047         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94048         now that the version in autoconf is equivalent.
94049         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94050
94051         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94052         Suggestion from Akim Demaille.
94053
94054         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94055         (jm_PREREQ_TEMPNAME): New function.
94056
94057 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94058
94059         * lib/tempname.c (uint64_t): Define to uintmax_t if
94060         not defined, and if UINT64_MAX is not defined.
94061         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94062         Reported by John David Anglin.
94063
94064 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94065
94066         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94067         resolve alias if codeset is empty.
94068         * lib/config.charset (BeOS): Use wildcard syntax.
94069
94070 2001-03-13  Jim Meyering  <meyering@lucent.com>
94071
94072         * lib/path-concat.c (path_concat)
94073         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94074         concatenating e.g., `C:' and `foo'.
94075         From Bruno Haible.
94076
94077 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94078
94079         * lib/localcharset.c (locale_charset): Don't use
94080         setlocale(LC_CTYPE,NULL). Don't return NULL.
94081         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94082
94083 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94084
94085         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94086         support for DOS/DJGPP.
94087
94088 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94089
94090         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94091         lacks mkstemp.  Compile our own tempname.c if we compile our own
94092         mkstemp.c, as mkstemp relies on tempname.
94093
94094 2001-03-01  Jim Meyering  <meyering@lucent.com>
94095
94096         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94097         AH_VERBATIM really does output its argument verbatim.
94098
94099 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94100
94101         * lib/Makefile.am (libfetish_a_SOURCES):
94102         Add dup-safer.c, fopen-safer.c.
94103         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94104
94105         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94106         * lib/unistd-safer.h: New files.
94107
94108 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94109
94110         The mkstemp replacement is taken from glibc 2.2.2, with some
94111         portability fixes for use outside glibc, as follows:
94112
94113         * lib/tempname.c (struct_stat64): New macro.
94114         (direxists, __gen_tempname): Use it.
94115         This avoids a portability problem with Solaris 8.
94116
94117         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94118         (<stddef.h>, <stdint.h>, <string.h>):
94119         Include only if STDC_HEADERS || _LIBC.
94120         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94121         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94122         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94123         (__set_errno): Define this macro if <errno.h> doesn't.
94124         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94125         Define these macros if <stdio.h> doesn't.
94126         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94127         Define these macros if <sys/stat.h>
94128         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94129         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94130         __xstat64): Define if not _LIBC.
94131         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94132         (__gen_tempname): Invoke gettimeofday only if
94133         HAVE_GETTIMEOFDAY || _LIBC;
94134         otherwise, fall back on plain "time".
94135         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94136
94137         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94138
94139         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94140
94141 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94142
94143         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94144
94145 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94146
94147         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94148         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94149         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94151
94152 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94153
94154         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94155         Remove workaround macros for hosts that have mbrtowc but not
94156         mbstate_t, as we now insist on proper declarations for both
94157         before using mbrtowc.
94158
94159 2001-02-17  Jim Meyering  <meyering@lucent.com>
94160
94161         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94162         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94163         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94164         UnixWare 7.1.1.
94165
94166         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94167         rather than AC_CACHE_VAL.
94168
94169 2001-02-17  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94172         around included file name.
94173
94174         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94175
94176         * lib/strftime.c: Update from GNU libc (the only changes were to
94177         comments).
94178
94179 2001-02-17  Jim Meyering  <meyering@lucent.com>
94180
94181         * lib/regex.c: Update from libc.
94182
94183 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94184
94185         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94186         clash.
94187
94188 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94189
94190         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94191         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94192         Reported by Mark Hounschell via Paul Eggert.
94193
94194 2001-02-07  Jim Meyering  <meyering@lucent.com>
94195
94196         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94197
94198 2001-02-05  Jim Meyering  <meyering@lucent.com>
94199
94200         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94201         it includes the patch required for `large file' support with at least
94202         HP-UX's 10.20 /bin/cc.
94203
94204 2001-02-03  Jim Meyering  <meyering@lucent.com>
94205
94206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94207         AS_IF, now that it works once again (mysteriously).
94208         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94209
94210 2001-01-30  Jim Meyering  <meyering@lucent.com>
94211
94212         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94213         * m4/chown.m4: Rename conftestchown to conftest.chown.
94214         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94215         s/conftestdir2/conftest.d2/.
94216         * m4/utimes.m4: s/conftestdata/conftest.data/
94217         Inspired by Pavel Roskin's change in autoconf.
94218
94219 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94220
94221         * lib/config.charset: Update for FreeBSD 4.2.
94222
94223 2001-01-27  Jim Meyering  <meyering@lucent.com>
94224
94225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94226         a use of AS_IF.
94227         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94228
94229 2001-01-26  Jim Meyering  <meyering@lucent.com>
94230
94231         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94232         quotearg.c includes it.
94233
94234 2001-01-26  Jim Meyering  <meyering@lucent.com>
94235
94236         * lib/quotearg.c: Include stddef.h.
94237         * lib/quote.c: Include stddef.h.
94238         Reported by Axel Kittenberger.
94239
94240         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94241         line in double quotes so that it evokes a better diagnostic.
94242         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94243         Reported by Axel Kittenberger.
94244
94245 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94246
94247         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94248         as if it was a `charset'.
94249
94250 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94251
94252         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94253         has const.
94254
94255 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94256
94257         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94258         to avoid a warning.  Add back 'const' to inptr.
94259
94260 2001-01-20  Jim Meyering  <meyering@lucent.com>
94261
94262         Be sure that headers are checked before used in code compiled
94263         for the type checks.
94264         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94265         In place of that, invoke jm_CHECK_ALL_TYPES.
94266         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94267         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94268         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94269         The check for ssize_t was mistakenly run before the test for unistd.h.
94270
94271         The configure-time check for stdbool.h was missing.
94272         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94273         (jm_PREREQ_HASH): New function.
94274
94275 2001-01-17  Jim Meyering  <meyering@lucent.com>
94276
94277         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94278         for autoconf-2.49c.
94279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94280
94281 2001-01-16  Jim Meyering  <meyering@lucent.com>
94282
94283         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94284         From Bruno Haible.
94285
94286 2001-01-14  Jim Meyering  <meyering@lucent.com>
94287
94288         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94289         foo and bar.  Create conftestdir/ in the script, not in the C code.
94290         Remove directories in the script, not in the C code.
94291         Remove conftestdir{,2} before trying to create the directory.
94292         Make the entire configure script fail if the mkdir fails.
94293
94294 2001-01-14  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/rename.c: New file.  From Volker Borchert.
94297         Include stdlib.h, string.h or strings.h, and xalloc.h.
94298         Use strip_trailing_slashes rather than open-coding it.
94299
94300 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94301
94302         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94303
94304 2001-01-03  Jim Meyering  <meyering@lucent.com>
94305
94306         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94307         of local `inptr' to avoid warning with some system declarations of
94308         iconv.
94309
94310 2001-01-02  Volker Borchert  <bt@teknon.de>
94311
94312         * m4/rename.m4: New file.
94313         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94314
94315 2001-01-01  Jim Meyering  <meyering@lucent.com>
94316
94317         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94318         even on systems with utmpx.h.  It's necessary for the declaration of
94319         utmp's ut_user member.  Reported by Andreas Jaeger.
94320
94321         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94322         available. They are required for the declarations of getgrgid and
94323         getpwuid resp.
94324         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94325         Reported by Andreas Jaeger.
94326
94327 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94328
94329         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94330         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94331         so `make install' also works in VPATH builds.
94332
94333 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94334
94335         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94336         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94337         can be used in subdirectories.
94338
94339 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94340
94341         * lib/modechange.c: Do not assume that mode_t uses the
94342         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94343         the other-execute bit of FOO even if S_IXOTH != 1.
94344
94345         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94346         WOTH, XOTH, ALLM): New macros.
94347         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94348          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94349         Use them.
94350         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94351         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94352         (mode_compile):
94353         No need to use uintmax_t; unsigned long is long enough.
94354         Don't bother to get suffix since we don't use it.
94355
94356 2000-12-26  Jim Meyering  <meyering@lucent.com>
94357
94358         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94359         better with autoheader.
94360
94361 2000-12-24  Jim Meyering  <meyering@lucent.com>
94362
94363         * lib/hash.c (is_prime): Return explicit boolean values.
94364         (hash_get_first): Return NULL to appease Irix5.6's 89.
94365         Reported by Nelson Beebe.
94366
94367 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94368
94369         * lib/localcharset.c (locale_charset): Add support for Win32.
94370
94371 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94372
94373         * lib/physmem.h, lib/physmem.c: New files.
94374
94375         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94376         (noinst_HEADERS): Add physmem.h.
94377
94378         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94379         't' for compatibility with Solaris 8 sort.
94380
94381 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94382
94383         * lib/config.charset: Add support for BeOS.
94384
94385 2000-12-17  Jim Meyering  <meyering@lucent.com>
94386
94387         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94388         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94389
94390 2000-12-16  Jim Meyering  <meyering@lucent.com>
94391
94392         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94393         N and M) would have treated it like `chown N:N FILE'.
94394
94395         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94396
94397 2000-12-16  Jim Meyering  <meyering@lucent.com>
94398
94399         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94400         SHELLS_FILE to a file name that's useful on djgpp systems.
94401         Include stdlib.h.
94402         (ADDITIONAL_DEFAULT_SHELLS): Define.
94403         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94404         Based mostly on a patch from Prashant TR.
94405
94406 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94407
94408         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94409         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94410         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94411
94412 2000-12-08  Andreas Schwab  <schwab@suse.de>
94413
94414         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94415         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94416
94417 2000-12-07  Jim Meyering  <meyering@lucent.com>
94418
94419         * lib/stripslash.c (ISSLASH): Define.
94420         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94421         `/'.
94422         From Prashant TR.
94423
94424         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94425         (dir_name_r): Declare this function as static.
94426         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94427         manifest itself on a name containing a mix of slashes and
94428         backslashes.
94429         Make this function work with names starting with a DOS-style
94430         drive letter and colon prefix.
94431         (dir_name): Append `.' if necessary.
94432         Based mostly on patches from Prashant TR and Eli Zaretskii.
94433
94434         * lib/dirname.h (dir_name_r): Remove prototype.
94435
94436 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94437
94438         * m4/off_t-format.m4: Remove this file.
94439         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94440
94441 2000-12-06  Jim Meyering  <meyering@lucent.com>
94442
94443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94444         replacement strtoull, we may well need the replacement strtoul, too.
94445         Check for declarations of strtoul and strtoull.
94446         Check for strtol.  Mainly as a cue to cause automake to include
94447         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94448         Check for limits.h -- strtol.c needs it.
94449
94450 2000-12-05  Jim Meyering  <meyering@lucent.com>
94451
94452         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94453
94454 2000-12-04  Jim Meyering  <meyering@lucent.com>
94455
94456         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94457         Also include memory.h, stdlib.h, unistd.h if appropriate.
94458         Reported by Andreas Jaeger (conflicting declaration of malloc).
94459
94460 2000-12-02  Jim Meyering  <meyering@lucent.com>
94461
94462         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94463         * m4/jm-macros.m4 (jm_MACROS): require it.
94464
94465 2000-12-02  Jim Meyering  <meyering@lucent.com>
94466
94467         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94468
94469 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94470
94471         * lib/memrchr.c: Include <config.h> before any system include file.
94472
94473 2000-11-30  Jim Meyering  <meyering@lucent.com>
94474
94475         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94476
94477 2000-11-30  Jim Meyering  <meyering@lucent.com>
94478
94479         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94480
94481 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94482
94483         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94484
94485 2000-11-26  Jim Meyering  <meyering@lucent.com>
94486
94487         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94488
94489 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94490
94491         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94492         size of (size_t) -1; it's not portable.
94493
94494 2000-11-17  Jim Meyering  <meyering@lucent.com>
94495
94496         * lib/strstr.c: Update from GNU libc.
94497
94498 2000-11-17  Akim Demaille  <akim@epita.fr>
94499
94500         * lib/obstack.h: Formatting changes.
94501         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94502         prevent type checking.
94503         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94504         cast the value to (void *): assigning a `foo *' to a `void *'
94505         variable is valid.
94506         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94507
94508 2000-11-16  Jim Meyering  <meyering@lucent.com>
94509
94510         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94511
94512 2000-11-11  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94515
94516 2000-11-10  Jim Meyering  <meyering@lucent.com>
94517
94518         * lib/obstack.h: Update from GNU libc.
94519         * lib/obstack.c: Likewise.
94520
94521 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94522
94523         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94524
94525 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94526
94527         * lib/getusershell.c (setusershell): Use rewind rather than
94528         fseek/fseeko, to avoid configuration hassles with fseeko.
94529         Don't bother opening SHELLS_FILE if shellstream is NULL;
94530         it's not necessary.
94531
94532 2000-11-05  Jim Meyering  <meyering@lucent.com>
94533
94534         * lib/makepath.h (make_dir): Declare.
94535         * lib/makepath.c (make_dir): Remove `static' attribute.
94536         Tweak a comment.
94537
94538 2000-11-04  Jim Meyering  <meyering@lucent.com>
94539
94540         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94541
94542 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94543
94544         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94545         last one in a bucket, advance to the next bucket.
94546
94547 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94548
94549         * lib/fnmatch.c: Do not comment out all the code if we are using
94550         the GNU C library, because in some cases we are replacing buggy
94551         code in the GNU C library itself.
94552
94553 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94554
94555         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94556         (regex_compile): Catch bogus \(\1\).
94557
94558 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94559
94560         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94561         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94562         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94563
94564 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94565
94566         * lib/error.h, getline.h, modechange.h:
94567         Remove "2000" from Copyright line, as the file hasn't been
94568         changed this year other than in the copyright notice.
94569
94570         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94571         was changed this year.
94572
94573 2000-10-29  Jim Meyering  <meyering@lucent.com>
94574
94575         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94576         renaming.
94577         * m4/ls-mntd-fs.m4: Likewise
94578
94579 2000-10-29  Jim Meyering  <meyering@lucent.com>
94580
94581         * lib/xstat.in: Fix grammar in comment.
94582
94583 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94584
94585         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94586         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94587         doesn't define __restrict_arr.
94588
94589 2000-10-28  Jim Meyering  <meyering@lucent.com>
94590
94591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94592         (jm_PREREQ_MEMCHR): New function.
94593
94594 2000-10-28  Jim Meyering  <meyering@lucent.com>
94595
94596         * lib/memchr.c: Update from libc.
94597         Adjust for portability:
94598         [HAVE_STDLIB_H]: Include stdlib.h.
94599         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94600         Undef __memchr, too.
94601         [!weak_alias]: Define __memchr to memchr.
94602
94603         * lib/regex.c: Update from libc.
94604         * lib/regex.h: Likewise.
94605         * lib/getopt1.c: Likewise.
94606         * lib/memcmp.c: Likewise.
94607
94608         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94609         Avoid using fseek, when possible -- it's broken by design.
94610         Patch by Ulrich Drepper.
94611
94612 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94613
94614         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94615         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94616         Giving in to popular pressure to shut up the compiler with casts.
94617
94618 2000-10-26  Jim Meyering  <meyering@lucent.com>
94619
94620         * lib/strftime.c: Update from libc.
94621
94622 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94623
94624         * regex.c: More `unsigned char' -> `re_char' changes.
94625         Also change several `int' into `re_wchar_t'.
94626         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94627         (PUSH_FAILURE_POINTER): Don't cast any more.
94628         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94629         We want GCC to complain, since this piece of code makes
94630         re_match non-reentrant, which *should* be fixed.
94631         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94632         (EXTEND_BUFFER): Use RETALLOC.
94633         (SET_LIST_BIT): Don't cast.
94634         (re_wchar_t): New type.
94635         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94636         that those two functions will always properly return.
94637         (IMMEDIATE_QUIT_CHECK): Cast to void.
94638         (analyse_first): Use recursion rather than an explicit stack.
94639         (re_compile_fastmap): Can't fail anymore.
94640         (re_search_2): Don't check re_compile_fastmap for failure.
94641         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94642         Now also sets the new value (passed in a new argument).
94643         (re_match_2_internal): Use it.
94644         Also, use a new var `reg' of type size_t when looping through regs
94645         rather than reuse the inappropriate `mcnt'.
94646
94647 2000-10-25  Jim Meyering  <meyering@lucent.com>
94648
94649         * lib/obstack.c: Update from libc.
94650
94651 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94652
94653         * regex.c (regex_compile): Change the way of handling a range from
94654         a char less than 256 to a char not less than 256.
94655
94656 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94657
94658         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94659         NT-Emacs only.
94660         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94661         so that re_search functions only quit when callers expect them to.
94662
94663 2000-10-23  Jim Meyering  <meyering@lucent.com>
94664
94665         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94666         wrong.  That set_locale call must not have any side effects.
94667         From Paul Eggert.
94668
94669 2000-10-22  Jim Meyering  <meyering@lucent.com>
94670
94671         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94672         [CYCLIC]: Remove now-unused definition.
94673
94674         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94675         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94676         Suggestion from Ulrich Drepper.
94677
94678 2000-10-21  Jim Meyering  <meyering@lucent.com>
94679
94680         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94681         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94683
94684 2000-10-21  Jim Meyering  <meyering@lucent.com>
94685
94686         * lib/dirname.c (memrchr): Declare if necessary.
94687         (dir_name): Remove the restriction that there be no
94688         trailing slashes.  Now, this code skips past them, effectively
94689         ignoring them.
94690         [TEST_DIRNAME] (main): New unit tests.
94691
94692         * lib/memrchr.c: New file from GNU libc.
94693         Undef __memrchr, too.
94694         [!weak_alias]: Define __memrchr to memrchr.
94695         Guard weak_alias use with `#ifdef weak_alias'.
94696
94697 2000-10-21  Jim Meyering  <meyering@lucent.com>
94698
94699         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94700         (dir_name): Use dir_name_r.
94701         * lib/dirname.h (dir_name_r): Declare it.
94702
94703 2000-10-17  Jim Meyering  <meyering@lucent.com>
94704
94705         * lib/quote.h (PARAMS): Define and use.
94706         Reported by Akim Demaille.
94707
94708         * lib/getopt.c: Update from libc.
94709
94710 2000-10-16  Jim Meyering  <meyering@lucent.com>
94711
94712         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94713         setlocale.
94714         From Jan Fedak.
94715
94716 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94717
94718         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94719
94720 2000-09-25  Jim Meyering  <meyering@lucent.com>
94721
94722         * lib/md5.h (rol): Define (from GnuPG).
94723
94724         * lib/sha.c: Give credit (GnuPG) where due.
94725         (M): Use rol rather than open-coding it.
94726         Add a FIXME comment.
94727
94728 2000-09-21  Jim Meyering  <meyering@lucent.com>
94729
94730         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94731         Reported by Michael Stone.
94732
94733 2000-09-20  Jim Meyering  <meyering@lucent.com>
94734
94735         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94736         (noinst_HEADERS): Add sha.h.
94737         Based on code from Scott G. Miller and from GnuPG.
94738
94739 2000-09-18  Jim Meyering  <meyering@lucent.com>
94740
94741         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94742         LIBS. Otherwise, everyone ends up linking with -lelf for some
94743         configurations.
94744         Reported by Mike Stone.
94745
94746 2000-09-15  Jim Meyering  <meyering@lucent.com>
94747
94748         * lib/regex.c: Update from libc.
94749
94750 2000-09-10  Jim Meyering  <meyering@lucent.com>
94751
94752         * lib/getopt.c (_getopt_internal): Update from glibc.
94753
94754 2000-09-09  Jim Meyering  <meyering@lucent.com>
94755
94756         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94757         think it should be used as a general replacement for isascii.
94758         * lib/fnmatch.c: Likewise.
94759         * lib/mbswidth.c: Likewise
94760         * lib/regex.c: Likewise.
94761
94762         Don't use atoi.
94763         * lib/userspec.c: Include sys/param.h and limits.h.
94764         Include xstrtol.h.
94765         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94766         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94767         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94768         UID, GID.  Check range.
94769
94770 2000-09-06  Jim Meyering  <meyering@lucent.com>
94771
94772         * lib/getopt.c (_getopt_internal): Update from glibc.
94773
94774 2000-08-30  Jim Meyering  <meyering@lucent.com>
94775
94776         * lib/strftime.c: Merge in changes from GNU libc.
94777
94778 2000-08-26  Jim Meyering  <meyering@lucent.com>
94779
94780         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94781         * m4/fpending.m4: New file.
94782
94783 2000-08-26  Jim Meyering  <meyering@lucent.com>
94784
94785         * lib/closeout.c: Include "__fpending.h".
94786         (close_stdout_status): Return right away if there's nothing to flush.
94787
94788         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94789         * lib/__fpending.c: New file.
94790         * lib/__fpending.h: New file.
94791
94792 2000-08-20  Jim Meyering  <meyering@lucent.com>
94793
94794         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94795         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94796         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94797
94798 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94799
94800         Improve fileutils installation on systems where running
94801         programs (like install) can't be unlinked.
94802         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94803         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94804
94805 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94806
94807         Standardize on "memory exhausted" instead of "Memory exhausted"
94808         or "virtual memory exhausted".
94809         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94810         "virtual memory exhausted".
94811         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94812         our own message.
94813         * lib/userspec.c (parse_user_spec): Likewise.
94814         * lib/bumpalloc.h: comment fix
94815         * lib/same.c, userspec.c: Include xalloc.h.
94816
94817         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94818         not char *const and pointing to a constant array.
94819         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94820         (xrealloc): Comment fix.
94821
94822         * lib/userspec.c (parse_user_spec):
94823         Don't translate a message until just before returning,
94824         to avoid unnecessary translation.
94825
94826 2000-08-07  Jim Meyering  <meyering@lucent.com>
94827
94828         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94829         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94830         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94831         getgroups.c, gethostname.c, getopt.h, group-member.c,
94832         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94833         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94834         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94835         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94836         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94837         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94838         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94839         yesno.c: Back out Copyright date changes for each file with no change
94840         this year.  This eases coordination with other programs using the same
94841         source code modules.  From Paul Eggert.
94842
94843 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94844
94845         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94846         not char, for compatibility with glibc 2.1.3 strftime.c.
94847
94848 2000-08-03  Greg McGary  <greg@mcgary.org>
94849
94850         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94851         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94852         (EXTEND_BUFFER): Use them.
94853
94854 2000-08-01  Jim Meyering  <meyering@lucent.com>
94855
94856         * lib/dirname.c (ISSLASH): Define.
94857         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94858         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94859         both `\' and `/' may be use as path separators.
94860         Based on a patch from Prashant TR.
94861
94862 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94863
94864         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94865         slot vector a constant, since it might get modified.
94866
94867 2000-07-31  Jim Meyering  <meyering@lucent.com>
94868
94869         * lib/xmalloc.c: Use `virtual memory exhausted', not
94870         `Memory exhausted'.
94871         * lib/obstack.c (print_and_abort): Likewise.
94872
94873 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94874
94875         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94876         buffer, so that the caller can always quote one small
94877         component of a "memory exhausted" message in slot 0.
94878         From a suggestion by Jim Meyering.
94879
94880 2000-07-30  Jim Meyering  <meyering@lucent.com>
94881
94882         * lib/makepath.c (make_path): Quote the other instance, too.
94883
94884         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94885         (STATIC_BUF_SIZE): Define.
94886         (quotearg_n_options): Use only statically allocated storage when
94887         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94888         than STATIC_BUF_SIZE.
94889
94890 2000-07-29  Jim Meyering  <meyering@lucent.com>
94891
94892         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94893         * lib/dirname.c (dir_name): Likewise.
94894
94895         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94896         `/'.
94897
94898         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94899         (dir_name): Assert that there are no trailing slashes.
94900
94901 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94902
94903         * lib/mbswidth.h (mbswidth): Add a flags argument.
94904         (mbswidth): New declaration.
94905         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94906         * lib/mbswidth.c (mbswidth): Add a flags argument.
94907         (mbsnwidth): New function.
94908
94909 2000-07-24  Jim Meyering  <meyering@lucent.com>
94910
94911         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94912
94913 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94914
94915         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94916
94917 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94918
94919         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94920         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94921         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94922         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94923         invoke multibyte primitives.
94924
94925 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94926
94927         * lib/quotearg.c:
94928         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94929         so that mbstate_t is always defined.
94930
94931         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94932         be 1 in at least one GCC installation, and this configuration
94933         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94934         performance on hosts that have mbrtowc but have only unibyte
94935         locales, but I assume these hosts are rare.
94936
94937 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94938
94939         * lib/mbswidth.c (_XOPEN_SOURCE):
94940         Don't define; this causes problems on Solaris 7.
94941         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94942
94943 2000-07-23  Jim Meyering  <meyering@lucent.com>
94944
94945         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94946         too: getgrgid, getpwuid, getuid.
94947
94948 2000-07-23  Jim Meyering  <meyering@lucent.com>
94949
94950         * lib/basename.c (base_name): Add an assertion.
94951
94952 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94953
94954         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94955         shadow its mbsinit function.
94956
94957 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94958
94959         * lib/mbswidth.h: New file.
94960         * lib/mbswidth.c: New file.
94961         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94962         (noinst_HEADERS): Add mbswidth.h.
94963
94964 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94965
94966         * lib/config.charset: Add support for FreeBSD. Improve support for
94967         HP-UX and IRIX 6.
94968
94969 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94970
94971         * m4/mbswidth.m4: New file.
94972         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94973
94974 2000-07-15  Jim Meyering  <meyering@lucent.com>
94975
94976         * lib/makepath.c: Include quote.h.
94977         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94978         corresponding argument in a `quote (...)' call.
94979         Give better diagnostics.
94980
94981         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94982         (noinst_HEADERS): Add quote.h.
94983
94984         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94985         from tar's src/misc.c.
94986         * lib/quote.h: New file.  Prototypes for same.
94987
94988 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94989
94990         From a suggestion by Bruno Haible.
94991         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94992         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94993         to decide whether to define the BeOS workaround macro;
94994         this adjusts to the change to AC_MBSTATE_T.
94995
94996 2000-07-14  Jim Meyering  <meyering@lucent.com>
94997
94998         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94999         jm_AC_TYPE_UINTMAX_T.
95000
95001 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95002
95003         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95004
95005         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95006         quotearg_buffer_restyled): Add support for
95007         clocale_quoting_style.  Undo previous change to
95008         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95009         and "{RIGHT QUOTATION MARK}" msgids.
95010
95011 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95012
95013         From a suggestion by Bruno Haible.
95014         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95015         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95016         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95017         and mbstate_t, to a single-part test that simply defines mbstate_t.
95018         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95019         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95020
95021 2000-07-10  Jim Meyering  <meyering@lucent.com>
95022
95023         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95024
95025         * m4/gnu-source.m4: Output to confdefs.h directly.
95026         Suggestion from Akim Demaille.
95027
95028 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95029
95030         The old behavior of quoting `like this' doesn't look good with
95031         newer, ISO-style fonts.  See:
95032         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95033
95034         Instead, quote "like this" by default.  Let the translator
95035         tailor the locale-specific quoting behavior by providing
95036         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95037
95038         * lib/quotearg.c (N_): New macro.
95039         (gettext_default): New function.
95040         (quotearg_buffer_restyled): Use
95041         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95042         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95043
95044 2000-07-09  Jim Meyering  <meyering@lucent.com>
95045
95046         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95047         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95048
95049         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95051
95052 2000-07-09  Jim Meyering  <meyering@lucent.com>
95053
95054         * lib/Most files: Update copyright dates to include 2000.
95055
95056 2000-07-08  Jim Meyering  <meyering@lucent.com>
95057
95058         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95059         if not defined.
95060         (xgethostname): Remove now-unnecessary #ifdef.
95061         Move declaration of `err' into loop where it's used.
95062
95063 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95064         and Bruno Haible  <haible@clisp.cons.org>
95065
95066         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95067         only if the test for an object-type mbstate_t fails.  This
95068         prevents us from mistakenly reporting that mbstate_t is a
95069         system object type after we "#define mbstate_t int" to work
95070         around its lack.
95071
95072 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95073         and Bruno Haible  <haible@clisp.cons.org>
95074
95075         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95076
95077 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95078
95079         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95080         to strerror_r.
95081         Include <ctype.h> for use of isalpha.
95082
95083 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95084
95085         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95086         by allocating a larger buffer. Test the gethostname return value for
95087         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95088         returns an error and ENAMETOOLONG isn't defined.
95089
95090 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95091
95092         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95093         dimension.
95094
95095 2000-07-04  Jim Meyering  <meyering@lucent.com>
95096
95097         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95098         of the deprecated AC_CHECKING.
95099
95100 2000-07-04  Jim Meyering  <meyering@lucent.com>
95101
95102         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95103         Reported by Bruno Haible.
95104
95105 2000-07-04  Jim Meyering  <meyering@lucent.com>
95106
95107         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95108         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95109         lacks mbrtowc.
95110
95111 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95112
95113         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95114         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95115
95116 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95117         and Bruno Haible  <haible@clisp.cons.org>
95118
95119         * lib/quotearg.c (mbrtowc):
95120         Assign to *pwc, and return 1 only if result is nonzero.
95121         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95122
95123 2000-07-03  Jim Meyering  <meyering@lucent.com>
95124
95125         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95126
95127 2000-07-03  Jim Meyering  <meyering@lucent.com>
95128
95129         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95130         This is necessary to get a definition of e.g., UTMP_FILE on
95131         HP-UX 10.20.
95132         From Bob Proulx.
95133
95134 2000-07-02  Jim Meyering  <meyering@lucent.com>
95135
95136         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95137
95138         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95139         AC_LIBOBJ(function_name).
95140         * m4/chown.m4: Likewise.
95141         * m4/fnmatch.m4: Likewise.
95142         * m4/ftruncate.m4: Likewise.
95143         * m4/getgroups.m4: Likewise.
95144         * m4/getline.m4: Likewise.
95145         * m4/group-member.m4: Likewise.
95146         * m4/jm-macros.m4: Likewise.
95147         * m4/lstat.m4: Likewise.
95148         * m4/malloc.m4: Likewise.
95149         * m4/memcmp.m4: Likewise.
95150         * m4/nanosleep.m4: Likewise.
95151         * m4/putenv.m4: Likewise.
95152         * m4/realloc.m4: Likewise.
95153         * m4/regex.m4: Likewise.
95154         * m4/stat.m4: Likewise.
95155         * m4/strftime.m4: Likewise.
95156
95157 2000-07-02  Jim Meyering  <meyering@lucent.com>
95158
95159         * lib/quotearg.c (mbstate_t): Don't define here.
95160
95161 2000-07-02  Jim Meyering  <meyering@lucent.com>
95162
95163         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95164
95165 2000-07-01  Jim Meyering  <meyering@lucent.com>
95166
95167         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95168
95169 2000-07-01  Jim Meyering  <meyering@lucent.com>
95170
95171         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95172         problem.
95173
95174 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95175
95176         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95177         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95178
95179 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95180
95181         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95182         per change in ../m4/ls-mntd-fs.m4.
95183         (read_filesystem_list): Ignore symbolic links.
95184
95185 2000-06-29  Jim Meyering  <meyering@lucent.com>
95186
95187         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95188         for declaration of strcmp.
95189
95190         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95191
95192         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95193         Avoid warning by casting result to `char *' to remove `const'.
95194
95195 2000-06-28  Jim Meyering  <meyering@lucent.com>
95196
95197         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95198         included by quotearg.c, for which we perform this test.  From
95199         Bruno Haible.
95200
95201 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95202
95203         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95204         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95205         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95206
95207 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95208
95209         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95210
95211 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95212
95213         savedir now sets errno on failure and invokes xmalloc to get memory.
95214         Fix a couple of other minor bugs while we're at it.
95215
95216         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95217         (NAMLEN): Remove macro.
95218         (malloc, realloc): Remove decls.
95219         (stpcpy): Likewise.
95220         ("xalloc.h"): Include.
95221         (NAME_SIZE_DEFAULT): New macro.
95222         (savedir): Use xmalloc / xrealloc to allocate memory.
95223         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95224         Skip "" directory entries.
95225         Use strlen to calculate directory entry length, since the old method
95226         is rarely used these days and isn't worth supporting.
95227         Don't use a pointer after freeing it.
95228         Check for integer overflow when calculating allocation size.
95229         Use memcpy to copy entries, instead of stpcpy.
95230         Set errno properly when returning NULL.
95231         Check for readdir error.
95232
95233 2000-06-26  Jim Meyering  <meyering@lucent.com>
95234
95235         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95236
95237 2000-06-25  Jim Meyering  <meyering@lucent.com>
95238
95239         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95240         Linux header bug when _XOPEN_SOURCE is defined to 500.
95241
95242 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95243
95244         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95245         deficiency.
95246
95247 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95248
95249         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95250         Include xalloc.h.
95251         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95252
95253 2000-06-24  Jim Meyering  <meyering@lucent.com>
95254
95255         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95256         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95257         for which strerror does return char*, but which lacks a conveniently
95258         accessible declaration of the function.  If the compile-test says
95259         strerror_r doesn't work, then resort to a `run'-test that works on
95260         BeOS and segfaults on DEC Unix.
95261
95262 2000-06-24  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95265
95266 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95267
95268         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95269         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95270
95271 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95272
95273         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95274         (mbrtowc, mbstate_t): Define substitutes if
95275         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95276         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95277         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95278
95279 2000-06-23  Jim Meyering  <meyering@lucent.com>
95280
95281         * m4/afs.m4: Add missing AC_MSG_RESULT.
95282         Reported by Bruno Haible.
95283
95284         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95285         Suggestion from Bruno Haible.
95286
95287 2000-06-23  Jim Meyering  <meyering@lucent.com>
95288
95289         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95290
95291 2000-06-21  Jim Meyering  <meyering@lucent.com>
95292
95293         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95294
95295 2000-06-21  Jim Meyering  <meyering@lucent.com>
95296
95297         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95298         (noinst_HEADERS): Add getstr.h.
95299
95300         * lib/getline.c (getstr): Move into a separate file.
95301         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95302         the following changes: new parameter, delim2; both delim[12]
95303         parameters have type `int', not `char'.  The latter would lose
95304         with 8-bit delimiters.
95305         * lib/getstr.h: New file.
95306
95307 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95308
95309         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95310         than 1024, return a memory chunk of least possible size, instead
95311         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95312         Use free/xmalloc instead of xrealloc to avoid copying for very long
95313         paths.
95314
95315 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95316
95317         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95318         the empty string.
95319
95320 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95321
95322         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95323         address, not strdup.  Include <stdlib.h> and don't declare free().
95324
95325 2000-06-19  Jim Meyering  <meyering@lucent.com>
95326
95327         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95328
95329 2000-06-18  Jim Meyering  <meyering@lucent.com>
95330
95331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95332
95333         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95334         `checking whether...' message to be consistent with that of the
95335         lstat test.
95336
95337 2000-06-18  Jim Meyering  <meyering@lucent.com>
95338
95339         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95340         Besides, these days every porting target provides a mkdir function.
95341
95342         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95343         needed. (this snippet comes from src/system.h).
95344
95345 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95346
95347         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95348
95349 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95350
95351         * lib/human.c (adjust_value): New function.
95352         (human_readable_inexact): Apply rounding style even when
95353         printing approximate values.
95354
95355 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95356
95357         * lib/human.c (human_readable_inexact): Allow an input block
95358         size that is not a multiple of the output block size, and vice versa.
95359         Reported by Piergiorgio Sartor.
95360
95361 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95362
95363         * lib/getdate.y (get_date): Apply relative times after time
95364         zone indicator, not before.  Reported by Todd A. Jacobs.
95365
95366 2000-06-13  Jim Meyering  <meyering@lucent.com>
95367
95368         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95369
95370         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95371
95372 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95373
95374         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95375
95376 2000-06-12  Jim Meyering  <meyering@lucent.com>
95377
95378         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95379         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95380         optional argument.
95381         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95382         the optional argument, `lib'.
95383
95384 2000-06-08  Jim Meyering  <meyering@lucent.com>
95385
95386         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95387
95388 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95389
95390         Rewrite largefile configuration so that we don't need to run
95391         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95392         AC_CANONICAL_HOST in configure.in -- jmm]
95393
95394         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95395         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95396         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95397         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95398         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95399         All uses changed.
95400         Instead of inspecting the output of getconf, try to compile the
95401         test program without and with the macro definition.
95402         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95403         for getconf.  Instead, check for the needed flags by compiling
95404         test programs.
95405
95406 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95407
95408         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95409
95410 2000-06-04  Jim Meyering  <meyering@lucent.com>
95411
95412         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95413         SunOS 4.1.4 for which gid_t is an unsigned type.
95414
95415 2000-06-03  Jim Meyering  <meyering@lucent.com>
95416
95417         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95418         now that autoconf requires that.
95419
95420         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95421         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95422         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95423
95424 2000-06-03  Jim Meyering  <meyering@lucent.com>
95425
95426         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95427
95428 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95429
95430         * m4/glibc21.m4: New file.
95431         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95432
95433 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95434
95435         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95436         newer, don't install charset.alias.
95437         * lib/config.charset: Change the Linux/glibc rules so they become empty
95438         on glibc-2.1 or newer.
95439
95440 2000-06-02  Jim Meyering  <meyering@lucent.com>
95441
95442         * lib/mountlist.c: Back out last change.  Instead, do this...
95443         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95444         me_dummy member using the same `ignore'-testing code.
95445         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95446         fs_type strings.
95447         From Mark D. Roth.
95448
95449 2000-05-29  Jim Meyering  <meyering@lucent.com>
95450
95451         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95452         mounts with the `ignore' attribute.  Based on a patch from
95453         Mark D. Roth.
95454
95455 2000-05-28  Jim Meyering  <meyering@lucent.com>
95456
95457         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95458         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95459         * m4/stat.m4: Likewise.
95460         * m4/lstat.m4: Likewise.
95461         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95462
95463         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95464         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95465
95466 2000-05-26  Jim Meyering  <meyering@lucent.com>
95467
95468         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95469
95470 2000-05-24  Jim Meyering  <meyering@lucent.com>
95471
95472         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95473         autoconf requires that.
95474         * m4/lib-check.m4: Likewise.
95475         * m4/jm-macros.m4: Likewise.
95476         * m4/strftime.m4: Likewise.
95477
95478         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95479         AC_CHECK_DECLS, now that autoconf requires that.
95480
95481 2000-05-22  Jim Meyering  <meyering@lucent.com>
95482
95483         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95484         * m4/lstat.m4: Likewise.
95485
95486 2000-05-22  Jim Meyering  <meyering@lucent.com>
95487
95488         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95489
95490 2000-05-20  Jim Meyering  <meyering@lucent.com>
95491
95492         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95493         (jm_PREREQ): Use it.
95494
95495 2000-05-18  Jim Meyering  <meyering@lucent.com>
95496
95497         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95498         back, too, since it may have been modified by allocate_entry.
95499         (hash_delete): Rewrite to use neither the assignment operator
95500         nor the comma operator in an if-expression.
95501
95502 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95503
95504         * lib/closeout.c:
95505         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95506         Remove; no longer needed.
95507         "quotearg.h": Add include.
95508         (file_name): Do not bother to explicitly initialize to NULL; it's less
95509         efficient on some hosts.
95510         (close_stdout_status): Remove test as to whether stdout was already
95511         closed; it breaks for the case "echo x | sort >&-".
95512         Quote file name colons.
95513         Do not assume that _("write error") lacks format strings.
95514
95515 2000-05-15  Jim Meyering  <meyering@lucent.com>
95516
95517         * lib/version-etc.c (version_etc_copyright): Update the copyright
95518         string used in all --version output.
95519
95520 2000-05-14  Jim Meyering  <meyering@lucent.com>
95521
95522         * lib/closeout.c (close_stdout_set_file_name): New function.
95523         (close_stdout_status): Use new file-scoped global.
95524         Return right away if fstat says the stdout file descriptor is invalid.
95525         * lib/closeout.h (close_stdout_set_file_name): Declare.
95526
95527 2000-05-10  Jim Meyering  <meyering@lucent.com>
95528
95529         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95530         (close_stdout_set_status): New function.
95531         * lib/closeout.h (close_stdout_set_status): Declare.
95532
95533 2000-05-09  Jim Meyering  <meyering@lucent.com>
95534
95535         * m4/gettext.m4: Rename this...
95536         * m4/libintl.m4: ...to this.
95537
95538 2000-05-08  Jim Meyering  <meyering@lucent.com>
95539
95540         * lib/long-options.c: Don't include closeout.h.
95541         (parse_long_options): Don't call close_stdout for --version.
95542
95543 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95544
95545         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95546         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95547         2.1.3 bug.  This avoids a clash when files like regex.c define
95548         _GNU_SOURCE.
95549
95550 2000-05-06  Jim Meyering  <meyering@lucent.com>
95551
95552         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95553         (AC_REPLACE_FUNCS): Add strnlen.
95554
95555         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95556         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95557
95558         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95559         AC_SEARCH_LIBS call for nanosleep.
95560         (LIB_NANOSLEEP): Set and AC_SUBST.
95561
95562 2000-05-06  Jim Meyering  <meyering@lucent.com>
95563
95564         * lib/strnlen.c: Undefine __strnlen and strnlen.
95565         [!weak_alias]: Define __strnlen to strnlen.
95566
95567         * lib/atexit.c: New file, from libiberty.
95568
95569 2000-05-06  Jim Meyering  <meyering@lucent.com>
95570
95571         * lib/closeout.c (close_stdout_status): Also check for errors on the
95572         stderr stream.
95573
95574 2000-05-05  Jim Meyering  <meyering@lucent.com>
95575
95576         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95577         AC_SEARCH_LIBS call for clock_gettime.
95578         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95579
95580         * m4/search-libs.m4: Update from autoconf.
95581
95582         su doesn't work on Solaris 2.6.
95583         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95584         <shadow.h>.  Reported by Dragos Harabor.
95585
95586 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95587
95588         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95589         memcpy instead of xmalloc, xrealloc, path_concat.
95590         (locale_charset): Treat empty environment variables as absent.
95591         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95592
95593 2000-05-04  Jim Meyering  <meyering@lucent.com>
95594
95595         * lib/getopt.c: Update from glibc.
95596         * lib/obstack.c: Likewise.
95597         * lib/obstack.h: Likewise.
95598         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95599         file
95600
95601         * lib/regex.h: Likewise.
95602         * lib/strndup.c: Likewise.
95603         * lib/strnlen.c: New file, from glibc.
95604
95605 2000-05-03  Jim Meyering  <meyering@lucent.com>
95606
95607         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95608
95609 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95610
95611         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95612         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95613         compile-time test, rather than inspecting host and OS, to
95614         decide whether to define _LARGEFILE_SOURCE.
95615
95616 2000-05-01  Jim Meyering  <meyering@lucent.com>
95617
95618         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95619
95620         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95621         Based on a patch from Bruno Haible.
95622
95623 2000-05-01  Jim Meyering  <meyering@lucent.com>
95624
95625         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95626
95627 2000-04-29  Jim Meyering  <meyering@lucent.com>
95628
95629         * lib/path-concat.c: Declare strdup only if it's not defined.
95630         * lib/canon-host.c: Likewise.
95631
95632 2000-04-28  Jim Meyering  <meyering@lucent.com>
95633
95634         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95635         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95636         is included first, then limits.h is included by locale.h by libintl.h.
95637         From John David Anglin.
95638
95639 2000-04-25  Jim Meyering  <meyering@lucent.com>
95640
95641         * lib/makepath.c (S_IRWXUGO): Define.
95642         (make_path): Always perform explicit chmod if MODE specifies any
95643         of the `special' permission bits.  Prompted by a bug report against
95644         install from Mate Wierdl and Joost van Baal.
95645
95646 2000-04-18  Jim Meyering  <meyering@lucent.com>
95647
95648         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95649         (jm_PREREQ): Use it.
95650
95651 2000-04-18  Jim Meyering  <meyering@lucent.com>
95652
95653         * lib/README: New file.
95654
95655         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95656         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95657
95658 2000-04-17  Jim Meyering  <meyering@lucent.com>
95659
95660         Get it right :-)
95661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95662         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95663         Suggestion from Akim Demaille.
95664
95665 2000-04-17  Jim Meyering  <meyering@lucent.com>
95666
95667         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95668         the definition of it to rpl_strftime also defined-away the system's
95669         declaration.
95670
95671 2000-04-15  Jim Meyering  <meyering@lucent.com>
95672
95673         Use `C' to denote so-called `contiguous' files, the same way
95674         that tar does.
95675         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95676         (ftypelet): Use S_ISCTG.
95677         From Michael Deutschmann.
95678
95679 2000-04-14  Jim Meyering  <meyering@lucent.com>
95680
95681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95682         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95683         clobbered.
95684
95685 2000-04-14  Jim Meyering  <meyering@lucent.com>
95686
95687         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95688
95689 2000-04-13  Jim Meyering  <meyering@lucent.com>
95690
95691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95692         AH_VERBATIM to insert required #ifndef into config.h.in.
95693         Suggestion from Akim Demaille.
95694
95695 2000-04-12  Jim Meyering  <meyering@lucent.com>
95696
95697         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95698         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95699         Christian Krackowizer.
95700
95701         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95702         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95703         (AC_SYS_LARGEFILE): Require.
95704         (AM_C_PROTOTYPES): Require.
95705
95706 2000-04-08  Jim Meyering  <meyering@lucent.com>
95707
95708         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95709         names don't conflict.  Reported by Eli Zaretskii.
95710
95711 2000-04-07  Jim Meyering  <meyering@lucent.com>
95712
95713         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95714         sys/types.h, to work around system header problems on AIX 3.2.5.
95715         From Bruno Haible.
95716
95717 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95718
95719         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95720         bug.  Deal with the different error behavior of Irix iconv.
95721
95722 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95723
95724         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95725         IRIX if the installer said otherwise.
95726
95727 2000-04-05  Jim Meyering  <meyering@lucent.com>
95728
95729         Portability tweaks required for ultrix4.3.
95730         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95731         (jm_CHECK_DECLS): Add getutent to the list of functions.
95732         (_jm_DECL_HEADERS): Add utmpx.h.
95733         From John David Anglin.
95734
95735         * m4/strftime.m4: Back out the 2000-04-02 change.
95736         Instead of that change, simply undefine putenv in the test program.
95737
95738 2000-04-05  Jim Meyering  <meyering@lucent.com>
95739
95740         Portability tweaks required for ultrix4.3.
95741         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95742         getutent.
95743         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95744         * lib/canon-host.c: Declare strdup.
95745         * lib/path-concat.c: Likewise.
95746         From John David Anglin.
95747
95748 2000-04-04  Jim Meyering  <meyering@lucent.com>
95749
95750         Be more DOS 8.3-friendly.
95751         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95752         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95753         * lib/Makefile.am: Reflect renaming.
95754         Reported by Eli Zaretskii.
95755
95756         Use a temporary file name that won't clash with `charset.alias'
95757         in the DOS 8.3 name space.
95758         * lib/Makefile.am (charset_tmp): Define.
95759         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95760         (uninstall-local): Likewise.
95761         Reported by Eli Zaretskii.
95762
95763 2000-04-03  Jim Meyering  <meyering@lucent.com>
95764
95765         * m4/gettext.m4: Fix typo in comment.
95766
95767         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95768         textutils/configure.in).  Suggestion from Paul Eggert.
95769         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95770
95771 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95772
95773         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95774         variable in the shell rather than using putenv, which isn't
95775         portable.  This avoids the configure-time inter-test dependency
95776         on the potentially-renamed putenv function.
95777
95778 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95779
95780         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95781         before checking struct stat.st_blksize, so that
95782         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95783
95784 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95785
95786         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95787         since strftime.c uses HAVE_STRFTIME to decide whether to use
95788         the underlying strftime.
95789
95790 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95791
95792         * lib/time/strftime.c (my_strftime): Make sure we call the system
95793         strftime, not ourselves, when invoking the underlying strftime.
95794
95795 2000-03-24  Jim Meyering  <meyering@lucent.com>
95796
95797         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95798         (charset_alias): Define.
95799         (install-exec-local): Factor out common code.
95800         (uninstall-local): Split lines longer than 80.
95801         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95802         (SUFFIXES): Define.
95803         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95804         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95805
95806 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95807
95808         * lib/config.charset: Output a line containing "Packages using this
95809         file".
95810         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95811         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95812         ref-del.sed): New rules.
95813
95814 2000-03-17  Jim Meyering  <meyering@lucent.com>
95815
95816         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95817         Otherwise, include <strings.h>
95818
95819 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95820
95821         * lib/unicodeio.c (utf8_wctomb): New function.
95822         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95823         format instead of in UCS-4 with platform dependent endianness.
95824
95825 2000-03-10  Jim Meyering  <meyering@lucent.com>
95826
95827         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95828         From Marco Franzen.
95829
95830 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95831
95832         * lib/savedir.c (savedir): Work even if directory size is
95833         negative; this can happen with some screwy NFS configurations.
95834
95835 2000-03-06  Jim Meyering  <meyering@lucent.com>
95836
95837         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95838         if it's NULL (because we ran out of memory).  From Bruno Haible.
95839
95840 2000-03-05  Jim Meyering  <meyering@lucent.com>
95841
95842         * lib/localcharset.c ("path-concat.h"): Include.
95843         (get_charset_aliases): Use path_concat instead of ANSI string
95844         concatenation.
95845
95846         * lib/unicodeio.h (PARAMS): Define.
95847         Use it to guard prototype.
95848
95849 2000-03-04  Jim Meyering  <meyering@lucent.com>
95850
95851         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95852         for lib/localcharset.c.
95853
95854 2000-03-04  Jim Meyering  <meyering@lucent.com>
95855
95856         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95857         installing into it.
95858         (uninstall-local): Uncomment this rule so `make distcheck' works
95859         once again.
95860
95861         * lib/unicodeio.c (<errno.h>): Include it.
95862         (errno): Declare if not defined.
95863
95864         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95865
95866         * lib/config.charset: New version, incorporating remarks from a linux
95867         i18n mailing list.  From Bruno Haible.
95868
95869 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95870
95871         * m4/codeset.m4: New file.
95872         * m4/iconv.m4: New file.
95873         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95874
95875 2000-03-03  Jim Meyering  <meyering@lucent.com>
95876
95877         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95878
95879 2000-03-02  Jim Meyering  <meyering@lucent.com>
95880
95881         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95882         the messages come out on separate lines.
95883
95884         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95885         rather than jm_CHECK_DECLARATIONS.
95886         * m4/decl.m4: Remove now-unused file.
95887
95888         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95889         geteuid.
95890
95891 2000-03-02  Jim Meyering  <meyering@lucent.com>
95892
95893         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95894
95895 2000-03-01  Jim Meyering  <meyering@lucent.com>
95896
95897         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95898         * lib/unicodeio.c: Likewise.
95899
95900 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95901
95902         * lib/config.charset: New file.
95903         * lib/localcharset.c: New file.
95904         * lib/unicodeio.h, lib/unicodeio.c: New files.
95905         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95906         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95907         (noinst_HEADERS): Add unicodeio.h.
95908         (all-local, install-exec-local, charset.alias): New targets.
95909
95910 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95911
95912         * lib/quotearg.c (ALERT_CHAR): New macro.
95913         (quotearg_buffer_restyled): Use it.
95914
95915 2000-02-27  Jim Meyering  <meyering@lucent.com>
95916
95917         * m4/check-decl.m4: Add getenv to the list.
95918
95919 2000-02-27  Jim Meyering  <meyering@lucent.com>
95920
95921         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95922         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95923
95924         * lib/backupfile.c: Guard inclusion of stdlib.h with
95925         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95926         Declare malloc if needed.
95927
95928         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95929         `#ifndef HAVE_DECL..'
95930         now that autoconf always defines the HAVE_DECL_ symbols.
95931         * lib/human.c: Likewise.
95932         * lib/same.c: Likewise.
95933         * lib/strtoumax.c: Likewise.
95934
95935         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95936         declaration check was not run.
95937         * lib/hash.c: Likewise.
95938         * lib/human.c: Likewise.
95939         * lib/same.c: Likewise.
95940         * lib/strtoumax.c: Likewise.
95941
95942         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95943         `.', then first look up the entire `.'-containing string as a login
95944         name.
95945
95946 2000-02-23  Jim Meyering  <meyering@lucent.com>
95947
95948         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95949         in place of my hack.
95950
95951 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95952
95953         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95954         (textint): New typedef.
95955         (parser_control): Member year changed from int to textint.
95956         All uses changed.
95957         (YYSTYPE): Removed; replaced by %union with int and textint members.
95958         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95959         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95960         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95961         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95962         (date, number, to_year): Use width of number in digits, not its value,
95963         to determine whether it's a 2-digit year, or a 2-digit time.
95964         (yylex): Store number of digits of numeric tokens.
95965         Reported by John Kendall.
95966
95967         (parser_control): Changed from struct parser_control to typedef (for
95968         consistency).  All uses changed.
95969
95970         (tID): Removed; not used.
95971         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95972
95973 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95974
95975         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95976         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95977
95978 2000-02-12  Jim Meyering  <meyering@lucent.com>
95979
95980         * lib/userspec.c (ISDIGIT): Define it.
95981         (isdigit): Remove definition.
95982         (is_number): Use ISDIGIT, not isdigit.
95983         <libintl.h>: Include.
95984         (_ and N_): Define.
95985         (parse_user_spec): Mark translatable strings.
95986
95987 2000-02-10  Jim Meyering  <meyering@lucent.com>
95988
95989         With these changes, nanosleep.[ch] are finally enough like the other
95990         lib/* replacement files to compile on a few more losing systems.
95991
95992         * lib/nanosleep.h: Don't include config.h.
95993         Remove prototype from declaration of nanosleep.
95994         (PARAMS): Remove now-unneeded definition.
95995         * lib/nanosleep.c: #undef nanosleep.
95996         (rpl_nanosleep): Rename from nanosleep.
95997
95998 2000-02-10  Jim Meyering  <meyering@lucent.com>
95999
96000         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96001         gnu_nanosleep to rpl_nanosleep.
96002
96003 2000-02-09  Jim Meyering  <meyering@lucent.com>
96004
96005         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96006         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96007
96008 2000-02-08  Akim Demaille  <akim@epita.fr>
96009
96010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96011         `[' and `]' and remove uses of `changequote'.
96012         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96013         (AC_SYS_LARGEFILE): Likewise.
96014         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96015         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96016         of changequote.
96017         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96018         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96019         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96020         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96021
96022 2000-02-05  Jim Meyering  <meyering@lucent.com>
96023
96024         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96025         Remove explicit use of AC_HEADER_TIME.  It is required by
96026         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96027         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96028         in autoconf whereby the expansion of the latter ended up preceding
96029         the expansion of its prerequisite, AC_HEADER_TIME.
96030         Reported by Volker Borchert.
96031
96032 2000-02-03  Jim Meyering  <meyering@lucent.com>
96033
96034         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96035
96036 2000-02-03  Jim Meyering  <meyering@lucent.com>
96037
96038         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96039         rather than with `#if HAVE_UTMPNAME'.
96040
96041 2000-02-02  Jim Meyering  <meyering@lucent.com>
96042
96043         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96044         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96045         Reported by Eli Zaretskii.
96046
96047 2000-02-01  Jim Meyering  <meyering@lucent.com>
96048
96049         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96050
96051 2000-01-31  Jim Meyering  <meyering@lucent.com>
96052
96053         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96054         functions.  Add the time.h and sys/time.h headers along with the
96055         AC_REQUIRE'ment of AC_HEADER_TIME.
96056
96057 2000-01-31  Jim Meyering  <meyering@lucent.com>
96058
96059         * lib/nanosleep.h (nanosleep): Guard declaration with
96060         `#if ! HAVE_DECL_NANOSLEEP'.
96061         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96062         the declaration in that vendor's sys/timers.h.
96063         Reported by Christian Krackowizer.
96064
96065         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96066         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96067         (ISPRINT): Likewise.
96068         Reported by Tom Tromey.
96069
96070 2000-01-30  Jim Meyering  <meyering@lucent.com>
96071
96072         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96073
96074         * m4/prereq.m4 (utmp_includes): Define.
96075         Check for ut_user and ut_name members in both struct utmpx
96076         and struct utmp.
96077
96078 2000-01-30  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96081         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96082         header files where only utmpx.ut_user is declared.
96083
96084         * lib/readutmp.h (UT_USER): Define.
96085
96086 2000-01-29  Jim Meyering  <meyering@lucent.com>
96087
96088         * m4/lib-check.m4: New file containing library-related checks from
96089         fileutils and sh-utils (textutils had none).
96090
96091 2000-01-28  Jim Meyering  <meyering@lucent.com>
96092
96093         * m4/perl.m4: Change format of warning message to look more like that
96094         from the missing script.  Suggestion from François Pinard.
96095
96096 2000-01-25  Jim Meyering  <meyering@lucent.com>
96097
96098         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96099         well as time.h in the compile check.
96100         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96101         Fix typo in cross-compiling case: s/yes/no/.
96102
96103 2000-01-23  Jim Meyering  <meyering@lucent.com>
96104
96105         * m4/jm-macros.m4: Move df-related tests here from
96106         fileutils/configure.in
96107
96108         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96109         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96110
96111         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96112         s/space/ac_fsusage_space/.
96113         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96114
96115         * m4/ftruncate.m4: New file (derived from part of
96116         fileutils/configure.in).
96117         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96118         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96119
96120         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96121         AC_SUBST these here, rather than just in sh-util/configure.in, so
96122         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96123         all the same.
96124         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96125         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96126         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96127         (AC_SUBST(POW_LIBM)): Likewise.
96128         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96129
96130 2000-01-23  Jim Meyering  <meyering@lucent.com>
96131
96132         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96133         obstack.c.
96134
96135 2000-01-22  Jim Meyering  <meyering@lucent.com>
96136
96137         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96138
96139         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96140
96141         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96142         configure.in
96143         (AC_CHECK_HEADERS): Likewise for sh-utils.
96144         (AC_CHECK_HEADERS): Likewise for textutils.
96145         Merge the three lists of headers.
96146
96147         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96148         from fileutils' configure.in.
96149
96150         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96151         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96152         check-decl.m4.
96153
96154         * m4/check-decl.m4: Use #if rather than #ifdef.
96155         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96156         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96157         (_jm_DECL_HEADERS): Define new function.
96158         (jm_CHECK_DECLARATIONS): Require it.
96159
96160 2000-01-22  Jim Meyering  <meyering@lucent.com>
96161
96162         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96163         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96164         Required for some AIX systems.  Reported by Christian Krackowizer.
96165         [TESTING] (main): New function.
96166
96167         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96168         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96169         letters.
96170
96171         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96172         iswprint.
96173
96174         * lib/strverscmp.c (ISDIGIT): Define.
96175         (strverscmp): Use ISDIGIT, not isdigit.
96176
96177 2000-01-19  Jim Meyering  <meyering@lucent.com>
96178
96179         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96180         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96181         defines `struct timespec' in <sys/time.h>
96182
96183         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96184         Thanks to Akim for explaining.
96185
96186 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96187
96188         * lib/nanosleep.c (nanosleep):
96189         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96190         POSIX.1 doesn't require SA_INTERRUPT and some systems
96191         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96192         it's been part of POSIX.1 since day 1 (in 1988).
96193
96194 2000-01-17  Jim Meyering  <meyering@lucent.com>
96195
96196         * lib/interlock: Remove unused file.  Reported by François Pinard.
96197
96198 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96199
96200         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96201         alert, backslash, formfeed, and vertical tab unnecessarily in
96202         shell quoting style.
96203
96204 2000-01-16  Jim Meyering  <meyering@lucent.com>
96205
96206         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96207         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96208         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96209         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96210
96211 2000-01-16  Jim Meyering  <meyering@lucent.com>
96212
96213         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96214         because the latter didn't work.
96215
96216 2000-01-15  Jim Meyering  <meyering@lucent.com>
96217
96218         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96219         (AC_REPLACE_FUNCS): Add memcpy and memset.
96220         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96221         Add strpbrk.
96222         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96223
96224 2000-01-12  Jim Meyering  <meyering@lucent.com>
96225
96226         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96227         (jm_PREREQ): Use it.
96228         (jm_PREREQ_READUTMP): New macro.
96229         (jm_PREREQ): Use it.
96230
96231 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96232
96233         Quote multibyte characters correctly.
96234         * m4/c-bs-a.m4: New file.
96235         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96236         (jm_PREREQ): Use it.
96237
96238 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96239
96240         * m4/uintmax_t.m4: Port to autoconf 2.13.
96241
96242 2000-01-08  Jim Meyering  <meyering@ascend.com>
96243
96244         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96245         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96246
96247 2000-01-04  Jim Meyering  <meyering@ascend.com>
96248
96249         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96250         jm_STRUCT_DIRENT_D_TYPE.
96251         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96252         jm_STRUCT_DIRENT_D_INO.
96253         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96254         jm_STRUCT_UTIMBUF.
96255         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96256         renamings.
96257         * m4/utime.m4: Likewise.
96258
96259         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96260         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96261
96262 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96263
96264         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96265         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96266
96267 2000-01-02  Jim Meyering  <meyering@ascend.com>
96268
96269         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96270         remember if this is necessary.
96271
96272 1999-12-26  Jim Meyering  <meyering@ascend.com>
96273
96274         * m4/jm-macros.m4: Use it here.
96275         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96276
96277 1999-12-23  Jim Meyering  <meyering@ascend.com>
96278
96279         * m4/jm-macros.m4: Check for clock_gettime (moved from
96280         fileutils/configure.in)
96281         Check for gettimeofday.
96282
96283 1999-12-20  Jim Meyering  <meyering@ascend.com>
96284
96285         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96286         autoconf-2.14a-1999-12-20.
96287
96288 1999-12-19  Jim Meyering  <meyering@ascend.com>
96289
96290         * m4/lstat-slash.m4: New file.
96291         * m4/jm-macros.m4: Use the new macro:
96292         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96293
96294 1999-12-07  Jim Meyering  <meyering@ascend.com>
96295
96296         * m4/perl.m4: Require that File::Compare be available, too.
96297         Too many systems seem to lack it.
96298
96299         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96300         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96301
96302 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96303
96304         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96305         problem with the QNX 4.25 shell, which doesn't propagate exit
96306         status of failed commands inside shell assignments.
96307
96308 1999-11-17  Jim Meyering  <meyering@ascend.com>
96309
96310         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96311
96312 1999-11-07  Jim Meyering  <meyering@ascend.com>
96313
96314         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96315
96316 1999-11-06  Jim Meyering  <meyering@ascend.com>
96317
96318         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96319         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96320
96321 1999-11-05  Jim Meyering  <meyering@ascend.com>
96322
96323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96324         configure.in of textutils, fileutils, and sh-utils into this one
96325         (shared between those packages) file.
96326         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96327         AC_STRUCT_ST_BLKSIZE.
96328
96329 1999-11-03  Jim Meyering  <meyering@ascend.com>
96330
96331         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96332         of AC_CHECK_TYPE checks includes unistd.h.
96333         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96334         Suggestion from Akim Demaille.
96335
96336 1999-10-30  Jim Meyering  <meyering@ascend.com>
96337
96338         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96339         m4-quoted string.
96340         * m4/ls-mntd-fs.m4: Likewise.
96341         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96342         * m4/jm-winsz1.m4: Likewise.
96343
96344         * m4/const.m4: Remove file, since the fix made it into the experimental
96345         version of autoconf.
96346         * m4/mktime.m4: Likewise.
96347
96348         * m4/check-type.m4: Remove file, now that the latest version of
96349         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96350
96351         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96352         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96353         AC_CHECK_TYPE.
96354
96355 1999-10-04  Jim Meyering  <meyering@ascend.com>
96356
96357         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96358
96359 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96360
96361         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96362         2.95.1 bug with HP-UX 10.20.
96363
96364 1999-09-17  Jim Meyering  <meyering@ascend.com>
96365
96366         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96367         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96368         due to missing strdup (against sh-utils-2.0).
96369
96370 1999-08-29  Jim Meyering  <meyering@ascend.com>
96371
96372         * m4/jm-macros.m4: Require jm_BISON.
96373         * m4/bison.m4: New file.
96374
96375 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96376
96377         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96378         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96379
96380 1999-08-05  Jim Meyering  <meyering@ascend.com>
96381
96382         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96383         to avoid conflicts with `conftest' on 8+3 filesystems.
96384         Suggestion from Eli Zaretskii.
96385
96386 1999-08-04  Jim Meyering  <meyering@ascend.com>
96387
96388         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96389         fileutils and sh-utils (textutils's getline test was inadequate).
96390         (AM_FUNC_GETLINE): Run this test.
96391         (AC_CHECK_FUNCS): Check for getdelim.
96392         Reported by Bob Proulx.
96393
96394 1999-08-02  Jim Meyering  <meyering@ascend.com>
96395
96396         * m4/jm-macros.m4: Add a comment.
96397
96398 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96399
96400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96401         <inttypes.h> defines strtoumax as a macro (and not as a
96402         function).
96403
96404 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96405
96406         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96407         that we can shift, multiply and divide unsigned long long
96408         values; Ultrix cc can't do it.
96409
96410 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96411
96412         * m4/mktime.m4: New file, which is a preview of what should appear
96413         in the next public autoconf release.
96414
96415 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96416
96417         * m4/lfs.m4: Remove this file.
96418         * m4/largefile.m4: New file.  It contains the old contents of
96419         lfs.m4, except that all names with prefix AC_LFS have been
96420         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96421         compatible with future autoconf versions.  Also, some minor m4
96422         quoting problems have been fixed.
96423
96424 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96425
96426         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96427         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96428         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96429         and simplify the shell code.
96430
96431 1999-08-01  Jim Meyering  <meyering@ascend.com>
96432
96433         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96434         m4.
96435
96436 1999-07-20  Jim Meyering  <meyering@ascend.com>
96437
96438         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96439
96440 1999-07-15  Jim Meyering  <meyering@ascend.com>
96441
96442         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96443
96444 1999-05-22  Jim Meyering  <meyering@ascend.com>
96445
96446         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96447
96448 1999-05-20  Jim Meyering  <meyering@ascend.com>
96449
96450         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96451         Add a colon after each `then' in case $4 is empty.
96452
96453 1999-05-16  Jim Meyering  <meyering@ascend.com>
96454
96455         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96456
96457 1999-05-10  Jim Meyering  <meyering@ascend.com>
96458
96459         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96460
96461         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96462         AC_FUNC_MKTIME.
96463
96464 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96465
96466         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96467
96468 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96469
96470         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96471         not CPPFLAGS, so that linking works correctly in IRIX.
96472
96473 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96474
96475         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96476
96477 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96478
96479         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96480         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96482         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96483         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96484
96485         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96486
96487 1999-04-20  Jim Meyering  <meyering@ascend.com>
96488
96489         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96490         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96491         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96492
96493 1999-04-18  Jim Meyering  <meyering@ascend.com>
96494
96495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96496         * m4/jm-macros.m4: Use it.
96497
96498 1999-04-06  Jim Meyering  <meyering@ascend.com>
96499
96500         * m4/strftime.m4: Remove test for %f.
96501
96502 1999-03-29  Jim Meyering  <meyering@ascend.com>
96503
96504         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96505         superset of the AC_TYPE_* checks in the textutils, fileutils,
96506         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96507         AC_TYPE_PID_T.
96508
96509 1999-03-28  Jim Meyering  <meyering@ascend.com>
96510
96511         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96512         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96513         replaced e.g., in the *.sh files of the sh-utils.
96514
96515 1999-03-20  Jim Meyering  <meyering@ascend.com>
96516
96517         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96518         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96519         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96520
96521 1999-03-19  Jim Meyering  <meyering@ascend.com>
96522
96523         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96524
96525 1999-03-12  Jim Meyering  <meyering@ascend.com>
96526
96527         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96528
96529 1999-03-07  Jim Meyering  <meyering@ascend.com>
96530
96531         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96532         declared.
96533
96534 1999-02-17  Jim Meyering  <meyering@ascend.com>
96535
96536         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96537         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96538
96539 1999-02-07  Jim Meyering  <meyering@ascend.com>
96540
96541         * m4/group-member.m4: New file -- extracted from sh-utils'
96542         configure.in.
96543
96544         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96545         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96546
96547 1999-02-06  Jim Meyering  <meyering@ascend.com>
96548
96549         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96550         * m4/fnmatch.m4: Likewise.
96551         * m4/getgroups.m4: Likewise.
96552         * m4/lstat.m4: Likewise.
96553         * m4/malloc.m4: Likewise.
96554         * m4/putenv.m4: Likewise.
96555         * m4/realloc.m4: Likewise.
96556         * m4/regex.m4: Likewise.
96557         * m4/stat.m4: Likewise.
96558         * m4/strftime.m4: Likewise.
96559         Suggestion from Alain Magloire.
96560
96561         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96562         * m4/fnmatch.m4: Likewise.
96563         * m4/getgroups.m4: Likewise.
96564         * m4/getline.m4: Likewise.
96565         * m4/lstat.m4: Likewise.
96566         * m4/malloc.m4: Likewise.
96567         * m4/memcmp.m4: Likewise.
96568         * m4/putenv.m4: Likewise.
96569         * m4/realloc.m4: Likewise.
96570         * m4/regex.m4: Likewise.
96571         * m4/stat.m4: Likewise.
96572         * m4/strftime.m4: Likewise.
96573         Suggestion from Alain Magloire.
96574
96575         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96576         an argument.
96577
96578         * m4/regex.m4: Add a run-time Test for proper operation of
96579         re_compile_pattern.
96580
96581 1999-01-31  Jim Meyering  <meyering@ascend.com>
96582
96583         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96584
96585 1999-01-30  Jim Meyering  <meyering@ascend.com>
96586
96587         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96588
96589         * m4/jm-mktime.m4: Make this a wrapper around the official
96590         AM_FUNC_MKTIME rather than my private copy, now that the official one
96591         is up to date.
96592         * m4/mktime.m4: Remove file.
96593
96594         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96595         * m4/uptime.m4: Likewise.
96596         * m4/uintmax_t.m4: Likewise.
96597
96598 1999-01-28  Jim Meyering  <meyering@ascend.com>
96599
96600         * m4/jm-macros.m4: Use jm_AFS.
96601         * m4/afs.m4: New file (from fileutils' configure.in).
96602
96603         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96604         * m4/chown.m4: Likewise.
96605         * m4/d-ino.m4: Likewise.
96606         * m4/d-type.m4: Likewise.
96607         * m4/fnmatch.m4: Likewise.
96608         * m4/getgroups.m4: Likewise.
96609         * m4/gettext.m4: Likewise.
96610         * m4/jm-mktime.m4: Likewise.
96611         * m4/jm-winsz2.m4: Likewise.
96612         * m4/lcmessage.m4: Likewise.
96613         * m4/ls-mntd-fs.m4: Likewise.
96614         * m4/malloc.m4: Likewise.
96615         * m4/memcmp.m4: Likewise.
96616         * m4/putenv.m4: Likewise.
96617         * m4/realloc.m4: Likewise.
96618         * m4/st_mtim.m4: Likewise.
96619         * m4/strftime.m4: Likewise.
96620
96621 1999-01-16  Jim Meyering  <meyering@ascend.com>
96622
96623         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96624         (ARGMATCH_DIE_DECL): Define.
96625
96626 1999-01-12  Jim Meyering  <meyering@ascend.com>
96627
96628         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96629         Reported by Lars Hecking.
96630
96631 1999-01-10  Jim Meyering  <meyering@ascend.com>
96632
96633         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96634         gross kludge.
96635         * m4/inttypes_h.m4: Likewise.
96636         * m4/lstat.m4: Likewise.
96637         * m4/malloc.m4: Likewise.
96638         * m4/readdir.m4: Likewise.
96639         * m4/realloc.m4: Likewise.
96640         * m4/st_dm_mode.m4: Likewise.
96641         * m4/stat.m4: Likewise.
96642         * m4/utimbuf.m4: Likewise.
96643         * m4/utimes.m4: Likewise.
96644
96645         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96646         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96647         comments in config.h.in are meaningful.
96648
96649         * m4/jm-macros.m4: Require autoconf-2.13 here.
96650
96651         * m4/regex.m4: By default, don't use the included regex.c on systems
96652         with glibc 2.  Suggestion from Uli Drepper.
96653
96654 1999-01-02  Jim Meyering  <meyering@ascend.com>
96655
96656         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96657
96658 1998-12-18  Jim Meyering  <meyering@ascend.com>
96659
96660         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96661         Based on a suggestion from Lars Hecking.
96662
96663 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96664
96665         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96666
96667 1998-11-16  Jim Meyering  <meyering@ascend.com>
96668
96669         * m4/lfs.m4: Double-quote the `uname...` expression.
96670
96671 1998-11-14  Jim Meyering  <meyering@ascend.com>
96672
96673         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96674         * m4/stat.m4: Likewise.
96675
96676 1998-11-03  Jim Meyering  <meyering@ascend.com>
96677
96678         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96679         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96680
96681 1998-10-18  Jim Meyering  <meyering@ascend.com>
96682
96683         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96684
96685 1998-10-17  Jim Meyering  <meyering@ascend.com>
96686
96687         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96688         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96689         calls for those previously hard-coded headers.  Instead, take a new
96690         parameter.
96691         (jm_CHECK_DECLARATIONS): Reflect interface change.
96692         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96693         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96694
96695         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96696
96697 1998-10-14  Jim Meyering  <meyering@ascend.com>
96698
96699         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96700         instead of "TZ=America/Vancouver".  From Paul Eggert.
96701
96702 1998-10-11  Jim Meyering  <meyering@ascend.com>
96703
96704         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96705         This adds a test for a recently added compatibility fix for mktime.c.
96706         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96707
96708 1998-09-27  Jim Meyering  <meyering@ascend.com>
96709
96710         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96711
96712         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96713         ../configure.in, including a change from Gordon Matzigkeit to allow
96714         cross-compiling for the Hurd.
96715
96716         * m4/glibc.m4: New file/macro to test for the GNU C Library
96717         versions 1 and 2.  From Gordon Matzigkeit.
96718         Indent.
96719
96720 1998-09-21  Jim Meyering  <meyering@ascend.com>
96721
96722         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96723
96724 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96725
96726         Port nanosecond-resolution times to UnixWare 2.1.2 and
96727         pedantic Solaris 2.6.
96728
96729         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96730         AC_STRUCT_ST_MTIM.
96731         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96732         Generate name of ns member, instead of just 1 or undef.
96733         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96734
96735 1998-08-15  Jim Meyering  <meyering@ascend.com>
96736
96737         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96738         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96739         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96740         instead of jm_TYPE_SSIZE_T.
96741
96742 1998-08-12  Jim Meyering  <meyering@ascend.com>
96743
96744         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96745
96746 1998-08-02  Jim Meyering  <meyering@ascend.com>
96747
96748         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96749         in acconfig.h manually.
96750
96751 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96752
96753         * m4/st_mtim.m4: New file.
96754
96755 1998-07-28  Jim Meyering  <meyering@ascend.com>
96756
96757         * m4/utimes.m4: Undef stat.
96758
96759 1998-07-25  Jim Meyering  <meyering@ascend.com>
96760
96761         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96762         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96763
96764 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96765
96766         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96767         uid and gid actually remain unchanged.
96768
96769 1998-07-07  Jim Meyering  <meyering@ascend.com>
96770
96771         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96772
96773 1998-07-04  Jim Meyering  <meyering@ascend.com>
96774
96775         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96776         to prove that this macro can be used in packages without regex.c.
96777
96778 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96779
96780         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96781         is to be used.
96782
96783 1998-07-03  Jim Meyering  <meyering@ascend.com>
96784
96785         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96786
96787         * m4/gettext.m4: New file -- from gettext-0.10.35.
96788         * m4/lcmessage.m4: Likewise.
96789         * m4/progtest.m4: Likewise.
96790
96791         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96792         * m4/jm-macros.m4: Require the new macro.
96793
96794 1998-06-29  Jim Meyering  <meyering@ascend.com>
96795
96796         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96797         for the definition of NGROUPS (used in a system header included
96798         by sys/mount.h).
96799
96800 1998-06-28  Jim Meyering  <meyering@ascend.com>
96801
96802         * m4/ls-mntd-fs.m4: New file.
96803         * m4/fstypename.m4: New file.
96804
96805         * m4/jm-macros.m4: Require the new macro.
96806         * m4/jm-glibc-io.m4: New file.
96807
96808 1998-05-19  Jim Meyering  <meyering@ascend.com>
96809
96810         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96811         * m4/lchown.m4: New file.
96812
96813         * m4/Makefile.am.in: New file.
96814         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96815
96816 1998-05-14  Jim Meyering  <meyering@ascend.com>
96817
96818         * m4/Makefile.am (EXTRA_DIST): Add them.
96819         * m4/jm-macros.m4: New file.
96820         * m4/utimbuf.m4: New file.
96821
96822 1998-05-12  Jim Meyering  <meyering@ascend.com>
96823
96824         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96825
96826 1998-05-11  Jim Meyering  <meyering@ascend.com>
96827
96828         * m4/isc-posix.m4: New file.
96829
96830 1998-05-10  Jim Meyering  <meyering@ascend.com>
96831
96832         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96833
96834 1998-05-09  Jim Meyering  <meyering@ascend.com>
96835
96836         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96837         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96838         with automake.
96839
96840         * m4/ssize_t.m4: New file.
96841         * m4/mktime.m4: Remove file -- the new automake has this now.
96842
96843 1998-04-26  Jim Meyering  <meyering@ascend.com>
96844
96845         * m4/assert.m4: New file.
96846         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96847
96848 1998-04-05  Jim Meyering  <meyering@ascend.com>
96849
96850         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96851         (jm_PREREQ): Use it here.
96852
96853 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96854
96855         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96856         in acconfig.h.
96857
96858 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96859
96860         * m4/prereq.m4: New file.
96861         * m4/error.m4: New file.
96862         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96863
96864 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96865
96866         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96867         cache-check for the same variable -- that defeated the purpose of
96868         the test; the test program was never run.  This was a problem only
96869         on systems with losing getline functions -- HP-UX 10.20 is one.
96870         Reported by Bjorn Helgaas.
96871
96872 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96873
96874         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96875
96876 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96877
96878         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96879
96880         * m4/const.m4: New file.  Use an initializer in this declaration
96881         typedef int charset[2]; const charset x;
96882         Reported by Bob Glickstein.
96883
96884 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96885
96886         * m4/chown.m4: Fix reversed types on -1 args to chown.
96887         From Kaveh Ghazi.
96888
96889 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96890
96891         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96892         Add lseek and memchr.
96893
96894         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96895         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96896         have a 20-character limit on names.
96897
96898 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96899
96900         * m4/inttypes_h.m4: New file.
96901         * m4/uintmax_t.m4: New file.
96902         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96903
96904
96905         -----
96906
96907         Local Variables:
96908         coding: utf-8
96909         End:
96910
96911         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96912
96913         Copying and distribution of this file, with or without
96914         modification, are permitted provided the copyright notice
96915         and this notice are preserved.